Hello everyone , I use CMake to build a qt4 project, 
I found after this commit 

ec85306025ae787e08d4ce097fde966f1809c74f
Merge topic 'tll-includes-defines'

re-run cmake of my project gives segmentfault.

console :

....config step is just all right
-- Configuring done
segmentfault

gdb trace the problem here:

#0  0xb7f6de74 in std::string::c_str (this=0x8)
    at 
/home/MY_NAME/project/gcc/463/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h:1767
#1  0x083c84f8 in cmGeneratorExpressionDAGChecker::EvaluatingIncludeDirectories 
(this=0x0)
    at ../Source/cmGeneratorExpressionDAGChecker.cxx:158
#2  0x083cd6a2 in LinkedNode::Evaluate (this=0x8699574 <linkedNode>, 
    parameters=std::vector of length 1, capacity 1 = {...}, context=0xbfffedd8, 
content=0x8e22170, 
    dagChecker=0x0) at ../Source/cmGeneratorExpressionEvaluator.cxx:672
#3  0x083ca2ea in GeneratorExpressionContent::Evaluate (this=0x8e22170, 
context=0xbfffedd8, dagChecker=0x0)
    at ../Source/cmGeneratorExpressionEvaluator.cxx:1110
#4  0x083d1685 in cmCompiledGeneratorExpression::Evaluate (this=0x8e21fa0, 
mf=0x8862560, config=0x0, 
    quiet=true, headTarget=0x0, currentTarget=0x0, dagChecker=0x0) at 
../Source/cmGeneratorExpression.cxx:98
#5  0x082c26a5 in cmTargetTraceDependencies::CheckCustomCommand 
(this=0xbfffef54, cc=...)
    at ../Source/cmTarget.cxx:1846
#6  0x082c1eec in cmTargetTraceDependencies::Trace (this=0xbfffef54) at 
../Source/cmTarget.cxx:1706
#7  0x082c2a15 in cmTarget::TraceDependencies (this=0x886b0a4, 
vsProjectFile=0x0) at ../Source/cmTarget.cxx:1903
#8  0x083ff9a2 in cmLocalGenerator::TraceDependencies (this=0x885bcd0) at 
../Source/cmLocalGenerator.cxx:268
#9  0x083d85cc in cmGlobalGenerator::Generate (this=0x86c4398) at 
../Source/cmGlobalGenerator.cxx:958
#10 0x083057ad in cmGlobalNinjaGenerator::Generate (this=0x86c4398) at 
../Source/cmGlobalNinjaGenerator.cxx:474
#11 0x082eea47 in cmake::Generate (this=0xbffff11c) at ../Source/cmake.cxx:2535
#12 0x082ee8c7 in cmake::Run (this=0xbffff11c, args=std::vector of length 2, 
capacity 2 = {...}, 
    noconfigure=false) at ../Source/cmake.cxx:2515
#13 0x0825a15c in do_cmake (ac=2, av=0xbffff5c4) at ../Source/cmakemain.cxx:529
#14 0x082596f1 in main (ac=2, av=0xbffff5c4) at ../Source/cmakemain.cxx:338


in this function

std::string Evaluate(const std::vector<std::string> &parameters,
668                        cmGeneratorExpressionContext *context,
669                        const GeneratorExpressionContent *content,
670                        cmGeneratorExpressionDAGChecker *dagChecker) const
671   {
672     if (dagChecker->EvaluatingIncludeDirectories())

the dagChecker is NULL.

hopes this can help. thank you

comicfans44,comicfan...@gmail.com
2013-2-22 
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to