View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011616CMakeCMakepublic2010-12-16 14:132011-01-12 08:00
ReporterRyan Pavlik 
Assigned ToAlex Neundorf 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSUbuntu x64OS Version10.04
Product VersionCMake 2.8.3 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0011616: CMake crashes when clicking Generate with this minimal CMakeLists.txt
DescriptionCrashes when the project type is set to NONE. This occurs in 2.8.2 and 2.8.3.
Steps To ReproducePut 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.
TagsNo tags attached.
Attached Filestxt file icon log.txt [^] (5,341 bytes) 2010-12-17 17:02 [Show Content]

 Relationships

  Notes
(0024215)
Alex Neundorf (developer)
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 (manager)
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 (reporter)
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 (developer)
2010-12-21 16:47

Fixed and merged into next, should be in 2.8.4.

Alex

 Issue History
Date Modified Username Field Change
2010-12-16 14:13 Ryan Pavlik New Issue
2010-12-16 15:54 Alex Neundorf Note Added: 0024215
2010-12-16 15:55 Brad King Note Added: 0024216
2010-12-17 17:02 Ryan Pavlik Note Added: 0024251
2010-12-17 17:02 Ryan Pavlik File Added: log.txt
2010-12-19 05:21 Alex Neundorf Assigned To => Alex Neundorf
2010-12-19 05:21 Alex Neundorf Status new => assigned
2010-12-21 16:47 Alex Neundorf Note Added: 0024316
2010-12-21 16:47 Alex Neundorf Status assigned => closed
2010-12-21 16:47 Alex Neundorf Resolution open => fixed
2010-12-21 16:47 Alex Neundorf Fixed in Version => CMake 2.8.4
2011-01-12 08:00 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team