MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013845 | CMake | (No Category) | public | 2013-01-10 15:12 | 2013-06-03 09:05 |
Reporter | rbmj | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x86_64-linux-gnu | OS | Debian | OS Version | Wheezy |
Product Version | CMake 2.8.9 | ||||
Target Version | CMake 2.8.11 | Fixed in Version | CMake 2.8.11 | ||
Summary | 0013845: CMake segfault if extra newline in link.txt | ||||
Description | The origin of this problem was that I was writing/testing a cross toolchain file which made complicated custom link rules. One of the variables in the link rule came from an execute_process command that had a trailing newline and that, because of its positioning, ended up adding a blank line in the link.txt. This causes cmake to segfault. This may be rare enough that it's not an issue. Also, I don't have the latest and greatest CMake, so it may already be fixed... Reproducing is easy though: | ||||
Steps To Reproduce | Make hello.c: #include <stdio.h> int main() { printf("Hello, World!\n"); return 0; } and CMakeLists.txt: cmake_minimum_required(VERSION 2.8) project(hello) add_executable(hello hello.c) Go to build directory and run cmake. Then, add a blank line to the beginning of CMakeFiles/hello.dir/link.txt Run make: ... Linking C executable hello Error running link command: Segmentation fault make[2]: *** [hello] Error 1 make[1]: *** [CMakeFiles/hello.dir/all] Error 2 make: *** [all] Error 2 | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-01-10 15:12 | rbmj | New Issue | |||
2013-01-11 09:39 | Brad King | Note Added: 0032096 | |||
2013-01-11 09:39 | Brad King | Assigned To | => Brad King | ||
2013-01-11 09:39 | Brad King | Status | new => assigned | ||
2013-01-11 09:39 | Brad King | Target Version | => CMake 2.8.11 | ||
2013-01-11 11:05 | Brad King | Note Added: 0032097 | |||
2013-01-11 11:05 | Brad King | Status | assigned => resolved | ||
2013-01-11 11:05 | Brad King | Resolution | open => fixed | ||
2013-01-11 11:05 | Brad King | Fixed in Version | => CMake 2.8.11 | ||
2013-06-03 09:05 | Robert Maynard | Note Added: 0033186 | |||
2013-06-03 09:05 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|