MantisBT - CMake
View Issue Details
0007101CMakeCMakepublic2008-05-26 15:152008-05-27 11:19
troy d. straszheim 
Brad King 
normalcrashalways
closedfixed 
CMake-2-6 
 
0007101: [boost] segfault when install(EXPORT ...) present
To reproduce:

svn co -r 45781 https://svn.boost.org/svn/boost/branches/CMake/release [^] src
mkdir build
cd build
cmake ../src
ccmake .
[disable BUILD_MULTI_THREADED and BUILD_SHARED]
'c' to configure (ok)
'g' to generate (segfault)
you can then 'make rebuild_cache' w/o crash
- Look for 'install(EXPORT' in toplevel CMakeLists.txt. Comment that out to
toggle the crash, see this commit:

   http://svn.boost.org/trac/boost/changeset/45782 [^]

- Other users see different symptoms:

    http://lists.boost.org/boost-cmake/2008/05/0043.php [^]
No tags attached.
Issue History
2008-05-26 15:15troy d. straszheimNew Issue
2008-05-26 15:37Bill HoffmanStatusnew => assigned
2008-05-26 15:37Bill HoffmanAssigned To => Brad King
2008-05-27 11:19Brad KingNote Added: 0012116
2008-05-27 11:19Brad KingStatusassigned => closed
2008-05-27 11:19Brad KingNote Added: 0012117
2008-05-27 11:19Brad KingResolutionopen => fixed

Notes
(0012116)
Brad King   
2008-05-27 11:19   
The internal representation of target export sets was not getting cleared at the start of each Configure step. Only in ccmake is more than one configure with the same global generator possible which is why it works from the command line tool.

/cvsroot/CMake/CMake/Source/cmGlobalGenerator.cxx,v <-- Source/cmGlobalGenerator.cxx
new revision: 1.230; previous revision: 1.229
/cvsroot/CMake/CMake/Source/cmGlobalGenerator.h,v <-- Source/cmGlobalGenerator.h
new revision: 1.109; previous revision: 1.108
(0012117)
Brad King   
2008-05-27 11:19   
We'll include this fix in the next 2.6 release. Thanks for the detailed instructions to reproduce it.