The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13912 
====================================================================== 
Reported By:                Mathäus Mendel
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13912
Category:                   (No Category)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-02-13 10:31 EST
Last Modified:              2013-02-13 10:31 EST
====================================================================== 
Summary:                    Incorrect settings for Embarcadero compiler
Description: 
The configuration file used for Embarcadero compiler -
Windows-Embarcadero.cmake, at Modules/Platform folder - has incorrect settings.
The variable 'CMAKE_EXE_LINKER_FLAGS_INIT' is set as "${_tM} -lS:10000000
-lSc:10000000 ", overriding the default configuration for stack and heap
allocation/commit.

Steps to Reproduce: 
The issue can be reproduced using a binary that allocates a lot of memory in a
short time span, running on a system with memory pagination disabled. The memory
commit size will increase and the system will hang or become unstable.

Additional Information: 
The ideal configuration to be passed to the linker would be:

set (CMAKE_EXE_LINKER_FLAGS_INIT "${_tM} -lS:1048576 -lSc:4098 -lH:1048576
-lHc:8192")

It will force the linker to use the default settings for stack and heap memory
allocation/usage.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-02-13 10:31 Mathäus Mendel New Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to