MantisBT - CMake
View Issue Details
0011616CMakeCMakepublic2010-12-16 14:132011-01-12 08:00
Ryan Pavlik 
Alex Neundorf 
normalcrashalways
closedfixed 
LinuxUbuntu x6410.04
CMake 2.8.3 
CMake 2.8.4CMake 2.8.4 
0011616: CMake crashes when clicking Generate with this minimal CMakeLists.txt
Crashes when the project type is set to NONE. This occurs in 2.8.2 and 2.8.3.
Put these two lines in a CMakeLists.txt and configure/generate:

cmake_minimum_required(VERSION 2.8)
project(bug-testcase NONE)

Notice that it crashes.
Remove NONE, and try again. It doesn't crash.
No tags attached.
txt log.txt (5,341) 2010-12-17 17:02
https://public.kitware.com/Bug/file/3584/log.txt
Issue History
2010-12-16 14:13Ryan PavlikNew Issue
2010-12-16 15:54Alex NeundorfNote Added: 0024215
2010-12-16 15:55Brad KingNote Added: 0024216
2010-12-17 17:02Ryan PavlikNote Added: 0024251
2010-12-17 17:02Ryan PavlikFile Added: log.txt
2010-12-19 05:21Alex NeundorfAssigned To => Alex Neundorf
2010-12-19 05:21Alex NeundorfStatusnew => assigned
2010-12-21 16:47Alex NeundorfNote Added: 0024316
2010-12-21 16:47Alex NeundorfStatusassigned => closed
2010-12-21 16:47Alex NeundorfResolutionopen => fixed
2010-12-21 16:47Alex NeundorfFixed in Version => CMake 2.8.4
2011-01-12 08:00David ColeTarget Version => CMake 2.8.4

Notes
(0024215)
Alex Neundorf   
2010-12-16 15:54   
I tried here and it didn't crash.
Tested with 2.8.3 and git HEAD.
That's what it says:

tests/empty_project_crash/b283$ /opt/cmake-2.8.3-Linux-i386/bin/cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/src/CMake/tests/empty_project_crash/b283
tests/empty_project_crash/b283$


Also running it in gdb doesn't show problems.
This is on a 32bit Slackware Linux, with the Kitware-provided 2.8.3 and a self-compiled git HEAD.

How was your cmake built ?
The package from Ubuntu, the binary package from Kitware or self-compiled ?

Can you please run it in gdb and post the backtrace ?

Thanks
Alex
(0024216)
Brad King   
2010-12-16 15:55   
I cannot reproduce this with a 64-bit local build of 2.8.3 or with the 32-bit prebuilt binary. Is this the ubuntu-provided system-installed version or one you built? Which cmake dialog are you running, ccmake or cmake-gui?
(0024251)
Ryan Pavlik   
2010-12-17 17:02   
I initially had this issue with the 2.8.2 package I backported here: https://launchpad.net/~abiryan/+archive/ryanvrac [^]

I continue to have the issue with the 2.8.3 package I backported (from debian source package), on 64-bit.

I think I figured out the subtle detail - it only happens with the Eclipse generator.

I'll attach a log file including backtrace.
(0024316)
Alex Neundorf   
2010-12-21 16:47   
Fixed and merged into next, should be in 2.8.4.

Alex