application crash if compiled with -fopenmp

Daniel Franke franke.daniel@gmail.com
Tue Jan 8 17:54:00 GMT 2008


Hi all.

Somewhat strange problem: I have a large source file (1.2MB, 32kloc)
that compiles (and works) fine. Compiling the same source, that does
not yet contain any OMP statements, with -fopenmp, it crashes
immediately on runtime (bt below). This holds for gfortran-svn
20080107 on i686 and x86_64. Using gfortran-4.2 20080107, it seems to
work as expected. Of course, the same does not happen with a two-line
hello-world program. I'll try to cut the large file down as soon as I
find time to do so ...

Has anyone seen this before?


(gdb) run
Starting program: /data/home/daniel/a.out
[Thread debugging using libthread_db enabled]
[New Thread 46912507483376 (LWP 30806)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912507483376 (LWP 30806)]
0x00000000004015c2 in gasbor22i () at gasbor22i_full.for:3
3             program GASBOR22i
Current language:  auto; currently fortran
(gdb) bt
#0  0x00000000004015c2 in gasbor22i () at gasbor22i_full.for:3
#1  0x000000000044438c in main (argc=1, argv=0x7fffffc03b48) at
../../../../svn/gcc/libgfortran/fmain.c:21


Thanks
        Daniel



More information about the Fortran mailing list