I found these in Intel website.
Segmentation Violation with static link to libpthreads
Applications built with libpthreads.a statically linked, (libpthreads.a is used by default when -static is used), may fail with a segmentation violation on some versions of Linux when the applications use more than 2MB of stack space. This is a known limitation of Linuxthreads. If you encounter this problem, link libpthreads dynamically. As an alternative, on Red Hat Linux 9 and Red Hat Enterprise Linux 3.0, you can install the nptl-devel
package and pass "-I/usr/include/nptl -L/usr/lib/nptl
" on the ifort command line. This will create a statically-linked binary which will run under nptl only, but which does not have the stack size limitation.
1 comment:
for bash:
ulimit -s unlimited
use ulimit -a to see you settings.
for csh:
unlimit stacksize
Or, compile the program with dynamic-linked libraries.
Post a Comment