[Bug fortran/42477] New: Runtime segfault with -fopenmp -static
janus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 23 12:56:00 GMT 2009
Consider this simple program:
use omp_lib
print *, 'Number of processors:', omp_get_num_procs()
end
After compiling this with "-fopenmp -static -fbacktrace", executing it gives
the output:
Number of processors: 2
Program received signal 11 (SIGSEGV): Segmentation fault.
Backtrace for this error:
+ function __restore_rt (0x41EAB0)
from file sigaction.c
The segfault is gone when compiling without the -static flag. Also this seems
to be a Fortran-only problem. An equivalent C program does not run into the
segfault.
--
Summary: Runtime segfault with -fopenmp -static
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42477
More information about the Gcc-bugs
mailing list