PDA

View Full Version : LF95 Linux: SIGSEGV error generated on Red Hat Enterprise Linux release 3


Lahey Support
02-13-2004, 04:41 PM
LF95 Linux: SIGSEGV error generated on Red Hat Enterprise Linux release 3.


<hr>

The information in this post applies to:

LF95 Linux PRO
LF95 Linux Express

Symptoms

LF95 produces a SIGSEGV error when executed on Red Hat Enterprise Linux release 3.

f95: /usr/local/lf9562/bin/../bin/jwd_fort: SIGSEGV signal received.

Cause

This problem seems to be caused by a different memory management scheme used by Red Hat Enterprise Linux release 3. While a bash login on Red Hat 9 sets the stack at 8192 bytes and the compiler runs, the stack is set to 10240 bytes on Red Hat Enterprise Linux release 3 and the compiler produces the error.

Workaround

Increase the stack limit for the bash shell using ulimit:

Red Hat Enterprise Linux WS release 3 (Taroon Update 1)
Kernel 2.4.21-9.EL on an i686

$ lf95 --version
Lahey/Fujitsu Fortran 95 Compiler Release L6.20b S/N:
Copyright (C) 1994-2003 Lahey Computer Systems. All rights reserved.
Copyright (C) 1998-2003 FUJITSU LIMITED. All rights reserved.
Registered to: dtb
lcs
$ ulimit -s
10240
$ lf95 hello.f90
f95: /usr/local/lf9562/bin/../bin/jwd_fort: SIGSEGV signal received.
$ ulimit -s unlimited
$ ulimit -s
unlimited
$ lf95 hello.f90
Encountered 0 errors, 0 warnings in file hello.f90.
$ ./a.out
hello
$

Increase the stack limit for the csh and tcsh shells using limit:
$ limit stacksize unlimited

Status

Open.