public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/28465] New: [gomp] Statically linked OpenMP Fortran programs cause segment fault
@ 2006-07-24 0:58 canqun at nudt dot edu dot cn
2006-07-24 1:03 ` [Bug fortran/28465] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: canqun at nudt dot edu dot cn @ 2006-07-24 0:58 UTC (permalink / raw)
To: gcc-bugs
All statically linked OpenMP Fortran programs cause segment fault when executed
on i686-pc-linux-gnu platform.
--
Summary: [gomp] Statically linked OpenMP Fortran programs cause
segment fault
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: canqun at nudt dot edu dot cn
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28465
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/28465] [gomp] Statically linked OpenMP Fortran programs cause segment fault
2006-07-24 0:58 [Bug fortran/28465] New: [gomp] Statically linked OpenMP Fortran programs cause segment fault canqun at nudt dot edu dot cn
@ 2006-07-24 1:03 ` pinskia at gcc dot gnu dot org
2006-07-24 19:29 ` fxcoudert at gcc dot gnu dot org
2006-07-24 19:46 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-24 1:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-24 01:03 -------
This is a bug in glibc I think, can you get a backtrace? Also what version of
glibc are you using? Also static linking is on its way out for glibc in
general which is why I would not doubt this is a bug in glibc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28465
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/28465] [gomp] Statically linked OpenMP Fortran programs cause segment fault
2006-07-24 0:58 [Bug fortran/28465] New: [gomp] Statically linked OpenMP Fortran programs cause segment fault canqun at nudt dot edu dot cn
2006-07-24 1:03 ` [Bug fortran/28465] " pinskia at gcc dot gnu dot org
@ 2006-07-24 19:29 ` fxcoudert at gcc dot gnu dot org
2006-07-24 19:46 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-07-24 19:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2006-07-24 19:29 -------
> All statically linked OpenMP Fortran programs cause segment fault when executed
> on i686-pc-linux-gnu platform.
To help making further progress on this PR, could you report the different
glibc version numbers on which you experienced that bug? It works fine for me
with RedHat's glibc-2.4-8 and Debian testing glibc 2.3.
$ cat hello.f
PROGRAM HELLO
INTEGER NTHREADS, TID, OMP_GET_NUM_THREADS,
+ OMP_GET_THREAD_NUM
C Fork a team of threads giving them their own copies of variables
!$OMP PARALLEL PRIVATE(NTHREADS, TID)
C Obtain thread number
TID = OMP_GET_THREAD_NUM()
PRINT *, 'Hello World from thread = ', TID
C Only master thread does this
IF (TID .EQ. 0) THEN
NTHREADS = OMP_GET_NUM_THREADS()
PRINT *, 'Number of threads = ', NTHREADS
END IF
C All threads join master thread and disband
!$OMP END PARALLEL
END
quatramaran /tmp $ ./irun/bin/gfortran -static hello.f -fopenmp
quatramaran /tmp $ file ./a.out
./a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux
2.4.1, statically linked, for GNU/Linux 2.4.1, not stripped
$ OMP_NUM_THREADS=4 ./a.out
Hello World from thread = 0
Number of threads = 4
Hello World from thread = 1
Hello World from thread = 2
Hello World from thread = 3
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28465
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/28465] [gomp] Statically linked OpenMP Fortran programs cause segment fault
2006-07-24 0:58 [Bug fortran/28465] New: [gomp] Statically linked OpenMP Fortran programs cause segment fault canqun at nudt dot edu dot cn
2006-07-24 1:03 ` [Bug fortran/28465] " pinskia at gcc dot gnu dot org
2006-07-24 19:29 ` fxcoudert at gcc dot gnu dot org
@ 2006-07-24 19:46 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-24 19:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-24 19:46 -------
This is a bug in glibc with TLS and static linking. It has been fixed already
in newer glibcs.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28465
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-24 19:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-24 0:58 [Bug fortran/28465] New: [gomp] Statically linked OpenMP Fortran programs cause segment fault canqun at nudt dot edu dot cn
2006-07-24 1:03 ` [Bug fortran/28465] " pinskia at gcc dot gnu dot org
2006-07-24 19:29 ` fxcoudert at gcc dot gnu dot org
2006-07-24 19:46 ` pinskia at gcc dot gnu dot org
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).