Saturday, January 10, 2009

ifort error

See my origin post http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/a168181d1bd0481a?hl=en#.

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:

Enod said...

for bash:
ulimit -s unlimited
use ulimit -a to see you settings.

for csh:
unlimit stacksize


Or, compile the program with dynamic-linked libraries.