This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Segmentation fault in openmp simple routine from libgomp testsuite.
- From: Benjamin RÃveillà <benjamin dot reveille at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Tue, 28 Feb 2006 08:58:22 +0100
- Subject: Segmentation fault in openmp simple routine from libgomp testsuite.
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:subject:date:user-agent:mime-version:content-disposition:to:content-type:content-transfer-encoding:message-id; b=mC+mTHcGQnFhqkmdUPMUbAr8rPF85anO3rWDWM/QvX36TQZFW/A8UWc5Q06GgQYWUCD3z10mSKrXvnEGnUph/LBfprR27JHWMs6Pk788Dd1HuhqESwVvJ+rYNEOHa1jC66yDiiDZqJB5MpJMfsbd99gCeuSwFBQKbD514U3LAQE=
Hello all
Since the gomp branch merge for fortran I have been trying to use
openmp in gfortran...
I might be missing out on something but I get a segmentation fault when
manualy executing omp_hello.f from libgomp testsuite
(libgomp/testsuite/libgomp.fortran/omp_hello.f)...
Compiled using gfortran -static -fopenmp -g omp_hello.f -o omp_hello
gdb omp_hello
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".
(gdb) run
Starting program: omp_hello
[Thread debugging using libthread_db enabled]
[New Thread -1210374432 (LWP 14286)]
Hello World from thread = 0
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210374432 (LWP 14286)]
0x00000004 in ?? ()
(gdb) bt
#0 0x00000004 in ?? ()
#1 0x0804884b in MAIN__.omp_fn.0 (.omp_data_i=0x0) at omp_hello.f:25
#2 0x080487ae in MAIN__ () at omp_hello.f:14
#3 0x08048917 in main (argc=467456, argv=0xb7faa2c8) at fmain.c:18
(gdb)
gfortran -v
Utilisation des specs internes.
Target: i686-pc-linux-gnu
Configurà avec: ../gcc/configure --prefix=/usr/local/temp_gfortran/irun
--host=i686-pc-linux-gnu --enable-languages=c,fortran --no-create
--no-recursion : (reconfigured) ../gcc/configure
--prefix=/usr/local/temp_gfortran/irun --host=i686-pc-linux-gnu
--enable-languages=c,fortran --no-create --no-recursion :
(reconfigured) ../gcc/configure --prefix=/usr/local/temp_gfortran/irun
--host=i686-pc-linux-gnu --enable-languages=c,fortran --no-create
--no-recursion : (reconfigured) ../gcc/configure
--prefix=/usr/local/temp_gfortran/irun --host=i686-pc-linux-gnu
--enable-languages=c,fortran --no-create --no-recursion :
(reconfigured) ../gcc/configure --prefix=/usr/local/temp_gfortran/irun
--host=i686-pc-linux-gnu --enable-languages=c,fortran --no-create
--no-recursion : (reconfigured) ../gcc/configure
--prefix=/usr/local/temp_gfortran/irun --host=i686-pc-linux-gnu
--enable-languages=c,fortran --no-create --no-recursion :
(reconfigured) ../gcc/configure --prefix=/usr/local/temp_gfortran/irun
--host=i686-pc-linux-gnu --enable-languages=c,fortran --no-create
--no-recursion
ModÃle de thread: posix
version gcc 4.2.0 20060227 (experimental)
Thanks for you help
Benjamin