public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/42828]  New: OpenMP executes unreliably when used in pthread.
@ 2010-01-21 15:35 jos dot de_laender at telenet dot be
  2010-01-21 15:35 ` [Bug libgomp/42828] " jos dot de_laender at telenet dot be
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jos dot de_laender at telenet dot be @ 2010-01-21 15:35 UTC (permalink / raw)
  To: gcc-bugs

Background :

-OpenMP started from a pthread doesn't work for regular mingw. This has been
reported in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42616 and is confirmed.

For that reason I switched to http://sourceforge.net/projects/mingw-w64/ which
has the advantage of working TLS.

My test case runs much better and further now. But it crashes 1 out of 5 times
on my machine while cleaning up threads (gomp_free_thread). 

Some elementary analysis points very much in some weakness in the gomp_barrier
for mingw. I'm tending to conclude that because :

- adding some short Sleep() before the end of free_gomp_pool_helper makes it
rocksolid.
- It is rocksolid as well on Linux. I noticed that the barrier is implemented
differentl there.


-- 
           Summary: OpenMP executes unreliably when used in pthread.
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jos dot de_laender at telenet dot be
  GCC host triplet: i686-pc-mingw32
GCC target triplet: mingw64 - see description.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42828


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libgomp/42828] OpenMP executes unreliably when used in pthread.
  2010-01-21 15:35 [Bug libgomp/42828] New: OpenMP executes unreliably when used in pthread jos dot de_laender at telenet dot be
@ 2010-01-21 15:35 ` jos dot de_laender at telenet dot be
  2010-01-21 15:37 ` paolo dot carlini at oracle dot com
  2010-06-11  8:36 ` iains at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jos dot de_laender at telenet dot be @ 2010-01-21 15:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jos dot de_laender at telenet dot be  2010-01-21 15:35 -------
Created an attachment (id=19680)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19680&action=view)
The test case.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42828


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libgomp/42828] OpenMP executes unreliably when used in pthread.
  2010-01-21 15:35 [Bug libgomp/42828] New: OpenMP executes unreliably when used in pthread jos dot de_laender at telenet dot be
  2010-01-21 15:35 ` [Bug libgomp/42828] " jos dot de_laender at telenet dot be
@ 2010-01-21 15:37 ` paolo dot carlini at oracle dot com
  2010-06-11  8:36 ` iains at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-01-21 15:37 UTC (permalink / raw)
  To: gcc-bugs



-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42828


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libgomp/42828] OpenMP executes unreliably when used in pthread.
  2010-01-21 15:35 [Bug libgomp/42828] New: OpenMP executes unreliably when used in pthread jos dot de_laender at telenet dot be
  2010-01-21 15:35 ` [Bug libgomp/42828] " jos dot de_laender at telenet dot be
  2010-01-21 15:37 ` paolo dot carlini at oracle dot com
@ 2010-06-11  8:36 ` iains at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-06-11  8:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from iains at gcc dot gnu dot org  2010-06-11 08:36 -------
is this now fixed?
 in 4.5 after r160526, 
 and trunk after r160457
 which should have made the detection of emulated TLS more reliable.


-- 

iains at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iains at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42828


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-11  8:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 15:35 [Bug libgomp/42828] New: OpenMP executes unreliably when used in pthread jos dot de_laender at telenet dot be
2010-01-21 15:35 ` [Bug libgomp/42828] " jos dot de_laender at telenet dot be
2010-01-21 15:37 ` paolo dot carlini at oracle dot com
2010-06-11  8:36 ` iains 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).