[Bug 289641] New: lock-up on Qt app exit from g++ miscompiling pthread cleanup code
https://bugzilla.novell.com/show_bug.cgi?id=289641
Summary: lock-up on Qt app exit from g++ miscompiling pthread
cleanup code
Product: openSUSE 10.2
Version: Final
Platform: i686
OS/Version: openSUSE 10.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Development
AssignedTo: pth@novell.com
ReportedBy: ahanssen@trolltech.com
QAContact: qa@suse.de
Found By: Other
The program from the source code below locks up if compiled with gcc or g++
with exceptions disabled, but locks up when compiled with g++ with exception
support enabled. If you look in pthread.h, you'll see the cleanup handler code
is different when compiling for C or C++.
Effect: All Qt 4 applications can lock up on exit.
Why: Qt's QThread class uses pthread's cleanup handlers to get notifications
for when threads die on Unix. Because of what seems to be a gcc bug, this
cleanup handler is not called on OpenSuSE 10.2. We have tested the same
compiler version on other distributions, and it doesn't lock up there. Also,
Intel's ICC does not cause this lockup.
Compiler version: gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)
To compile as C: gcc main.c -lpthread
as C++: g++ main.c -lpthread
as C++: g++ main.c -lpthread -fno-exceptions
---8<---
#include
https://bugzilla.novell.com/show_bug.cgi?id=289641#c1
--- Comment #1 from Andreas Aardal Hanssen
The program from the source code below locks up if compiled with gcc or g++ with exceptions disabled, but locks up when compiled with g++ with exception support enabled. If you look in pthread.h, you'll see the cleanup handler
Sorry for the typo: The program does /not/ lock up with gcc or g++ without exceptions. ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=289641
Cristian Rodriguez
https://bugzilla.novell.com/show_bug.cgi?id=289641
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=289641#c2
Richard Guenther
https://bugzilla.novell.com/show_bug.cgi?id=289641#c3
--- Comment #3 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=289641#c4
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=289641
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=289641
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=289641#c5
--- Comment #5 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=289641#c6
Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=289641#c7
--- Comment #7 from Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=289641
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=289641#c9
--- Comment #9 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=289641#c10
K.R. Foley
https://bugzilla.novell.com/show_bug.cgi?id=289641#c11
--- Comment #11 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=289641#c12
--- Comment #12 from K.R. Foley
https://bugzilla.novell.com/show_bug.cgi?id=289641#c13
--- Comment #13 from K.R. Foley
https://bugzilla.novell.com/show_bug.cgi?id=289641
User jeffm@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=289641#c14
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=289641
User ak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=289641#c15
Andi Kleen
https://bugzilla.novell.com/show_bug.cgi?id=289641
User jbeulich@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=289641#c16
--- Comment #16 from Jan Beulich
https://bugzilla.novell.com/show_bug.cgi?id=289641
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=289641
Jan Beulich
https://bugzilla.novell.com/show_bug.cgi?id=289641
User jbeulich@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=289641#c20
Jan Beulich
https://bugzilla.novell.com/show_bug.cgi?id=289641
User dmueller@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=289641#c21
--- Comment #21 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=289641
User jbeulich@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=289641#c22
--- Comment #22 from Jan Beulich
https://bugzilla.novell.com/show_bug.cgi?id=289641
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=289641#c23
Andreas Jaeger
participants (1)
-
bugzilla_noreply@novell.com