This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/31604] Segfault at runtime on I/O with OpenMP and static linking
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Apr 2007 15:05:21 -0000
- Subject: [Bug libfortran/31604] Segfault at runtime on I/O with OpenMP and static linking
- References: <bug-31604-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from fxcoudert at gcc dot gnu dot org 2007-04-17 16:05 -------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 140130416 (LWP 25328)]
0x00000000 in ?? ()
(gdb) where
#0 0x00000000 in ?? ()
#1 0x0804cdbb in get_external_unit (n=6, do_create=1)
at
/home/fxcoudert/gfortran_nightbuild/trunk/libgfortran/../gcc/gthr-posix.h:613
#2 0x0804b987 in data_transfer_init (dtp=0xbfe9b024, read_flag=0)
at /home/fxcoudert/gfortran_nightbuild/trunk/libgfortran/io/transfer.c:1702
#3 0x0804827f in MAIN__.omp_fn.0 (.omp_data_i=0x0) at hello.f90:2
#4 0x08048235 in MAIN__ () at hello.f90:2
#5 0x080482dd in main (argc=Cannot access memory at address 0x1
The line 613 in gcc/gthr-posix.h is the call to pthread_mutex_trylock() in:
static inline int
__gthread_mutex_trylock (__gthread_mutex_t *mutex)
{
if (__gthread_active_p ())
return __gthrw_(pthread_mutex_trylock) (mutex);
else
return 0;
}
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2007-04-17 15:56:53 |2007-04-17 16:05:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31604