public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/31604] Segfault at runtime on I/O with OpenMP and static linking
Date: Tue, 17 Apr 2007 15:05:00 -0000	[thread overview]
Message-ID: <20070417150521.18836.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31604-10259@http.gcc.gnu.org/bugzilla/>



------- 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


  parent reply	other threads:[~2007-04-17 15:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-17 12:59 [Bug libfortran/31604] New: Segfault at runtime on I/O to preconnected unit with OpenMP fxcoudert at gcc dot gnu dot org
2007-04-17 13:03 ` [Bug libfortran/31604] Segfault at runtime on I/O with OpenMP and static linking fxcoudert at gcc dot gnu dot org
2007-04-17 14:44 ` pinskia at gcc dot gnu dot org
2007-04-17 14:56 ` fxcoudert at gcc dot gnu dot org
2007-04-17 15:00 ` pinskia at gcc dot gnu dot org
2007-04-17 15:05 ` fxcoudert at gcc dot gnu dot org [this message]
2007-04-17 15:23 ` pinskia at gcc dot gnu dot org
2007-04-18 10:14 ` dfranke at gcc dot gnu dot org
2007-04-18 17:47 ` fxcoudert at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070417150521.18836.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).