public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/109664] New: Deadlocks with gomp_fatal called from libgomp/plugins/
@ 2023-04-28 10:06 burnus at gcc dot gnu.org
2023-04-28 10:45 ` [Bug libgomp/109664] " burnus at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2023-04-28 10:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109664
Bug ID: 109664
Summary: Deadlocks with gomp_fatal called from libgomp/plugins/
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
See thread starting at:
https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603616.html
Issue:
Fatal errors inside mutex-locked regions (i.e. basically anything in the
plugin) will cause it to hang up trying to take the lock to clean everything
up.
Possible solutions:
would be not use gomp_fatal from within the
plugins, but use gomp_error instead and through possibly adjusted plugin
APIs tell libgomp that there was a fatal error and let libgomp unlock
anything that needs unlocking and exit (EXIT_FAILURE); afterwards.
another possibility would be not use gomp_fatal from within the
plugins, but use gomp_error instead and through possibly adjusted plugin
APIs tell libgomp that there was a fatal error and let libgomp unlock
anything that needs unlocking and exit (EXIT_FAILURE); afterwards.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libgomp/109664] Deadlocks with gomp_fatal called from libgomp/plugins/
2023-04-28 10:06 [Bug libgomp/109664] New: Deadlocks with gomp_fatal called from libgomp/plugins/ burnus at gcc dot gnu.org
@ 2023-04-28 10:45 ` burnus at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2023-04-28 10:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109664
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Once done, we might want to change some error propagation from a chain of
boolean-returning functions to just GOMP_PLUGIN_fatal – or not.
Cf. for instance:
https://gcc.gnu.org/pipermail/gcc-patches/2023-April/616992.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-28 10:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28 10:06 [Bug libgomp/109664] New: Deadlocks with gomp_fatal called from libgomp/plugins/ burnus at gcc dot gnu.org
2023-04-28 10:45 ` [Bug libgomp/109664] " burnus at gcc dot gnu.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).