[cmake-developers] [CMake 0014545]: cmake crash

Mantis Bug Tracker mantis at public.kitware.com
Mon Nov 4 22:24:34 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14545 
====================================================================== 
Reported By:                Orion Poplawski
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14545
Category:                   CMake
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-11-04 22:24 EST
Last Modified:              2013-11-04 22:24 EST
====================================================================== 
Summary:                    cmake crash
Description: 
See https://bugzilla.redhat.com/show_bug.cgi?id=1026030 for more info, but:

 /usr/bin/cmake -E cmake_automoc
/home/strous/src/stellarium-0.12.4/plugins/Exoplanets/src/CMakeFiles/Exoplanets-static_automoc.dir/

led to:

Program terminated with signal 11, Segmentation fault.
http://public.kitware.com/Bug/view.php?id=0  cmake::ExecuteCMakeCommand
(args=std::vector of length 3, capacity 4 = {...}) at
/usr/src/debug/cmake-2.8.12/Source/cmake.cxx:1740
1740	        const char *config = args[3].empty() ? 0 : args[3].c_str();

Thread 1 (Thread 0x7f0a8ccef840 (LWP 10873)):
http://public.kitware.com/Bug/view.php?id=0  cmake::ExecuteCMakeCommand
(args=std::vector of length 3, capacity 4 = {...}) at
/usr/src/debug/cmake-2.8.12/Source/cmake.cxx:1740
        automoc = {QtMajorVersion = "", Sources = "", Headers = "",
IncludeProjectDirsBefore = false, Srcdir = "", Builddir = "", MocExecutable =
"", MocCompileDefinitionsStr = "", MocIncludesStr = "", MocOptionsStr = "",
ProjectBinaryDir = "", ProjectSourceDir = "", TargetName = "",
CurrentCompileSettingsStr = "", OldCompileSettingsStr = "", OutMocCppFilename =
"", MocIncludes = empty std::list, MocDefinitions = empty std::list, MocOptions
= std::vector of length 0, capacity 0, Verbose = false, ColorOutput = true,
RunMocFailed = false, GenerateAll = false, RelaxedMode = 124}
        config = <optimized out>
        automocSuccess = <optimized out>
http://public.kitware.com/Bug/view.php?id=1  0x000000000048d6ec in do_cmake
(ac=4, av=0x7fff0a364068) at
/usr/src/debug/cmake-2.8.12/Source/cmakemain.cxx:513

Seems like it's testing if the argument is empty, but not if the argument exists
at all first.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-11-04 22:24 Orion PoplawskiNew Issue                                    
======================================================================




More information about the cmake-developers mailing list