This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43050] -fopenmp causes segementation fault with large arrays
- From: "rknochenmuss at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Feb 2010 17:18:46 -0000
- Subject: [Bug fortran/43050] -fopenmp causes segementation fault with large arrays
- References: <bug-43050-18776@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rknochenmuss at gmx dot net 2010-02-12 17:18 -------
Thanks guys. Apparently it is a stack limitation. Using ulimit -a, the default
is:
stack size (kbytes, -s) 8192
ulimit-s unlimited is not permitted. The largest value allowed is 20000, this
isnt enough to avoid the segmentation fault.
Dominque's suggestion solved the problem, at least at first glance (not fully
tested yet). Adding -Wl,-stack_size,0x20000000 as a link option prevents the
seg fault.
--
rknochenmuss at gmx dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43050