This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/43050] -fopenmp causes segementation fault with large arrays



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]