MantisBT - CMake
View Issue Details
0008704CMakeCMakepublic2009-03-09 04:132009-03-12 19:26
Kevin Kofler 
Alex Neundorf 
normalcrashrandom
closedfixed 
CMake-2-6 
 
0008704: CMake 2.6.2 and 2.6.3 (and possibly earlier versions) sometimes crash during the build of kdepimlibs
CMake 2.6.2 and 2.6.3 (and possibly earlier versions) sometimes (mostly randomly, though under some conditions it can be reproduced quite reliably) crash during the build of kdepimlibs. This has been observed at least on the Fedora PPC64 builders - see https://bugzilla.redhat.com/show_bug.cgi?id=475876 [^] - and by a Debian user on x86_64.
We have tracked down the problem in the referenced Fedora bug to be caused by the calls to ret.erase in cmIncludeDirectoryCommand::AddDirectory. The stopping criteria in the while loops are faulty.

Here's a 2-line patch which appears to fix the problem:
http://cvs.fedoraproject.org/viewvc/rpms/cmake/devel/cmake-2.6.3-%23475876.patch?revision=1.1&view=markup [^]
(I'm also attaching it to this report.)
No tags attached.
patch cmake-2.6.3-#475876.patch (723) 2009-03-09 04:13
https://public.kitware.com/Bug/file/2108/cmake-2.6.3-%23475876.patch
Issue History
2009-03-09 04:13Kevin KoflerNew Issue
2009-03-09 04:13Kevin KoflerFile Added: cmake-2.6.3-#475876.patch
2009-03-12 19:26Alex NeundorfNote Added: 0015678
2009-03-12 19:26Alex NeundorfAssigned To => Alex Neundorf
2009-03-12 19:26Alex NeundorfStatusnew => closed
2009-03-12 19:26Alex NeundorfResolutionopen => fixed

Notes
(0015678)
Alex Neundorf   
2009-03-12 19:26   
Fixed in cvs HEAD with a slightly different patch.
Please try to verify that it works for you.

Alex