MantisBT - CMake
View Issue Details
0012610CMakeCMakepublic2011-12-06 16:502012-01-04 14:59
Georg Rudoy 
Alex Neundorf 
normalcrashsometimes
closedno change required 
LinuxGentoo LinuxAMD64
CMake 2.8.7 
 
0012610: Uncaught exception in automoc logic on a specific CMakeLists.txt
When running CMake over the given CMakeLists.txt (see the attachment), it fails in cmQtAutomoc::SetupAutomocTarget(cmTarget*).

The issue fails to reproduce with any other CMakeLists.txt I've tried (so there is no sane minimal reproducing example, sorry), but it always reproduces with this CMakeLists.txt.
1. Run CMake over the CMakeLists.txt from the attachment.
2. Get the uncaught exception.
The whole app is available at git://github.com/0xd34df00d/leechcraft.git [^] , the CMakeLists.txt in question is at /src/plugins/azoth/plugins/acetamide/ in that repo. The commit hash where this is observed is 9ce67f2958e695e6a616f14ab52568be99ae296e. It hasn't been observed earlier, since that CMakeLists.txt had no support for being ran over directly until this commit.

I'm using gcc 4.5.3 and Qt 4.8 from their master.

There are CMake output, backtrace and CMakeLists.txt in question in the attachment, as well as a couple of files it uses.
No tags attached.
bz2 issue.tar.bz2 (3,124) 2011-12-06 16:50
https://public.kitware.com/Bug/file/4138/issue.tar.bz2
Issue History
2011-12-06 16:50Georg RudoyNew Issue
2011-12-06 16:50Georg RudoyFile Added: issue.tar.bz2
2011-12-06 16:59Alex NeundorfAssigned To => Alex Neundorf
2011-12-06 16:59Alex NeundorfStatusnew => assigned
2011-12-06 17:00Alex NeundorfNote Added: 0027929
2011-12-11 10:40Alex NeundorfNote Added: 0027944
2012-01-04 14:59Alex NeundorfNote Added: 0028169
2012-01-04 14:59Alex NeundorfStatusassigned => closed
2012-01-04 14:59Alex NeundorfResolutionopen => no change required
2012-01-04 14:59Alex NeundorfProduct VersionCMake 2.8.6 => CMake 2.8.7

Notes
(0027929)
Alex Neundorf   
2011-12-06 17:00   
Can you please check whether this still happens with the current master branch (or cmake 2.8.7 RC1 which will be released very soon) ?
I fixed a similar problem already, maybe yours is fixed too by this.

Alex
(0027944)
Alex Neundorf   
2011-12-11 10:40   
Please check cmake 2.8.7rc1, it includes a fix for a crash in cmQtAutomoc::SetupAutomocTargets(), caused by an empty string.

Please let me know if that works for you or not.

Alex
(0028169)
Alex Neundorf   
2012-01-04 14:59   
This has been already fixed for 2.8.7.
Feel free to reopen this bug if you can reproduce this crash with cmake 2.8.7.

Alex