MantisBT - CMake
View Issue Details
0007392CMakeCMakepublic2008-07-22 16:332008-08-04 09:39
Marcelo Fontenele S Santos 
Brad King 
normalcrashalways
closedfixed 
CMake-2-6 
 
0007392: make install core dumps if previous installation is of a different kind
On linux (centos3 and centos5):

I had a previously installed python script in the bin dir.
When I did a make install of an application (ELF) with the same name as the existing python script, cmake crashed (core dump, make Error 139).
I expected cmake to overwrite the existing python script with my application.

After I removed the python script from the bin dir I was able to make install.
Core dump:

#0 0x082adbb0 in cmELFInternal::GetFileType ()
#1 0x082aa116 in cmELF::GetRPath ()
0000002 0x081d8655 in cmSystemTools::CheckRPath ()
0000003 0x0822ee49 in cmFileCommand::HandleRPathCheckCommand ()
0000004 0x08228c02 in cmFileCommand::InitialPass ()
0000005 0x0826d71e in cmCommand::InvokeInitialPass ()
0000006 0x0819ebc0 in cmMakefile::ExecuteCommand ()
0000007 0x08241ca0 in cmIfFunctionBlocker::IsFunctionBlocked ()
0000008 0x081a64fc in cmMakefile::IsFunctionBlocked ()
#9 0x0819ea7d in cmMakefile::ExecuteCommand ()
0000010 0x08241ca0 in cmIfFunctionBlocker::IsFunctionBlocked ()
#11 0x081a64fc in cmMakefile::IsFunctionBlocked ()
0000012 0x0819ea7d in cmMakefile::ExecuteCommand ()
0000013 0x08241ca0 in cmIfFunctionBlocker::IsFunctionBlocked ()
0000014 0x081a64fc in cmMakefile::IsFunctionBlocked ()
0000015 0x0819ea7d in cmMakefile::ExecuteCommand ()
0000016 0x0819f7f7 in cmMakefile::ReadListFile ()
0000017 0x08244762 in cmIncludeCommand::InitialPass ()
0000018 0x0826d71e in cmCommand::InvokeInitialPass ()
0000019 0x0819ebc0 in cmMakefile::ExecuteCommand ()
0000020 0x08241ca0 in cmIfFunctionBlocker::IsFunctionBlocked ()
0000021 0x081a64fc in cmMakefile::IsFunctionBlocked ()
0000022 0x0819ea7d in cmMakefile::ExecuteCommand ()
0000023 0x0819f7f7 in cmMakefile::ReadListFile ()
0000024 0x081f5b2d in cmake::ReadListFile ()
0000025 0x081f57bf in cmake::SetCacheArgs ()
0000026 0x081fd512 in cmake::Run ()
0000027 0x08178ecb in do_cmake ()
0000028 0x08177d3d in main ()
No tags attached.
Issue History
2008-07-22 16:33Marcelo Fontenele S SantosNew Issue
2008-08-04 09:39Brad KingNote Added: 0012928
2008-08-04 09:39Brad KingNote Added: 0012929
2008-08-04 09:39Brad KingStatusnew => assigned
2008-08-04 09:39Brad KingAssigned To => Brad King
2008-08-04 09:39Brad KingStatusassigned => closed
2008-08-04 09:39Brad KingResolutionopen => fixed

Notes
(0012928)
Brad King   
2008-08-04 09:39   
Fixed:

/cvsroot/CMake/CMake/Source/cmELF.cxx,v <-- Source/cmELF.cxx
new revision: 1.13; previous revision: 1.12

There was a dumb mistake with operator precedence in the if-condition that is supposed to short-circuit when the file is not a valid ELF file.
(0012929)
Brad King   
2008-08-04 09:39   
We'll include this fix in 2.6.2.