public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/67141] New: wrong libgomp mutex initialisation order
@ 2015-08-06 21:47 mattiase at acm dot org
  2015-08-11 17:33 ` [Bug libgomp/67141] " xantares09 at hotmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: mattiase at acm dot org @ 2015-08-06 21:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67141

            Bug ID: 67141
           Summary: wrong libgomp mutex initialisation order
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mattiase at acm dot org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

Libgomp may use a mutex, acc_device_lock, prior to initialising it depending on
the constructor calling order: it is initialised in initialize_env and used in
goacc_host_init, both declared __attribute__ ((constructor)) but in different
files.

This was discovered on Windows after a change to the pthread library in
mingw-w64, making all-zero an invalid mutex value. Apparently the constructors
were called in the "wrong" order, and pthread_mutex_lock called before
pthread_mutex_init.


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

end of thread, other threads:[~2015-10-28 13:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-06 21:47 [Bug libgomp/67141] New: wrong libgomp mutex initialisation order mattiase at acm dot org
2015-08-11 17:33 ` [Bug libgomp/67141] " xantares09 at hotmail dot com
2015-08-12  8:01 ` xantares09 at hotmail dot com
2015-08-24 18:42 ` jakub at gcc dot gnu.org
2015-09-11 10:17 ` ktietz at gcc dot gnu.org
2015-09-21  9:36 ` tschwinge at gcc dot gnu.org
2015-09-22  6:46 ` cltang at gcc dot gnu.org
2015-09-22 11:19 ` cltang at gcc dot gnu.org
2015-09-24 13:33 ` cltang at gcc dot gnu.org
2015-10-28 13:31 ` xantares09 at hotmail dot com

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