View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0010781 | CMake | CPack | public | 2010-05-28 18:24 | 2016-06-10 14:31 | ||||
Reporter | Chuck Seberino | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-8 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0010781: CPack infinite recursion with include | ||||||||
Description | I ran into a case where a set of cpack files were generated where there was a circular reference when calling include() leading to infinite recursion. I am including a trivial example that illustrates the problem. Running cpack on this file eventually generates a segmentation fault on ubuntu 9.04 (x86_64) linux and no output whatsoever on WinXP SP3. Tested on 2.8.1. CPackConfig.cmake --------------- set(CMAKE_MODULE_PATH .) include(CPackConfig) I have made accommodations in my build system to keep this from happening in the future, but it would be good to at least have some way to trap or report this condition besides no output (WinXP) or a segmentation fault (linux). | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |||||||||||
|
Relationships |
Notes | |
(0021542) Eric NOULARD (developer) 2010-07-29 09:15 |
May be this could be recasted in a generic way to avoid "double" or "more" inclusion of the same .cmake file, however there is currently a simple way to solve it just like for C/C++ header, protect yourself against multiple inclusion. set(CMAKE_MODULE_PATH .) if(NOT CPACK_CONFIG_INCLUDED) set(CPACK_CONFIG_INCLUDED TRUE) include(CPackConfig) else(NOT CPACK_CONFIG_INCLUDED) message("Not including this twice") endif(NOT CPACK_CONFIG_INCLUDED) This could be written as a macro include_once or may be a feature request for enhancing builtin include include(<file|module> [ONCE]) However how was the offending CPack file generated? Was it generated by custom tool? If this is the case then your custom tool could use "include_once" approach. If not would you be able to give us a complete [but small] example |
(0030590) David Cole (manager) 2012-08-13 15:06 |
Sending old, not-recently-updated issues to the backlog. (The age of the bug alone means that nobody is actively working on it...) If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing. |
(0041707) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2010-05-28 18:24 | Chuck Seberino | New Issue | |
2010-07-29 09:05 | Eric NOULARD | Relationship added | related to 0010751 |
2010-07-29 09:15 | Eric NOULARD | Note Added: 0021542 | |
2010-12-14 18:42 | David Cole | Assigned To | => David Cole |
2010-12-14 18:42 | David Cole | Status | new => assigned |
2011-02-07 02:00 | Eric NOULARD | Relationship added | child of 0011808 |
2012-08-13 15:06 | David Cole | Status | assigned => new |
2012-08-13 15:06 | David Cole | Note Added: 0030590 | |
2012-08-13 15:07 | David Cole | Status | new => backlog |
2012-08-13 15:21 | David Cole | Assigned To | David Cole => |
2016-06-10 14:28 | Kitware Robot | Note Added: 0041707 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |