[Bug 853311] New: Various applications crash because of unlock-before-lock and TSX
https://bugzilla.novell.com/show_bug.cgi?id=853311 https://bugzilla.novell.com/show_bug.cgi?id=853311#c0 Summary: Various applications crash because of unlock-before-lock and TSX Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: schwab@suse.com ReportedBy: vojtech@suse.com QAContact: qa-bugs@suse.de CC: matz@suse.com Found By: Beta-Customer Blocker: No Various applications (GroupWise client, libusb) crash on 13.2 and processors having the TSX feature because transactional memory lock elision is enabled in glibc on posix semaphores that doesn't tolerate unlocking a non-locked lock. It should be possible to disable TSX support using an environment variable. -- 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=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c1
--- Comment #1 from Richard Biener
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c2
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c3
--- Comment #3 from Michael Matz
Unlocking a non-locked lock is never tolerated.
It is in the sense that the applications in question don't segfault and don't see other adverse effects. For application we (or anyone else) can change I agree that they should be fixed (like libusb). But we're talking about stuff that nobody is going to change anymore, and we do need a work around for those to keep them working. -- 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=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c4
--- Comment #4 from Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c5
--- Comment #5 from Michael Matz
Unlocking a non-locked lock has always had adverse effects.
But unfortunately only theoretical ones in some cases. For a user the (unchangeable) application "worked" before, with new glibc on Haswells it crashes right away. That is a problem which we can't define away by being right in the abstract. Rather we should provide a method to transform the crashing application back into a halfway (or barely, or sometimes, or whatever other definition of not quite, but better than crashing) working one. Patches to that effect (environment variable influence TSX unlock crashes) were even implemented by Andi but never upstreamed. OTOH it'd probably be better to just disable all the TSX stuff via a envvar disabling detection of TSX. -- 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=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c6
--- Comment #6 from Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c7
--- Comment #7 from Michael Matz
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c8
--- Comment #8 from Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c9
--- Comment #9 from Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c10
Holger Sickenberg
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c11
Richard Biener
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c12
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c13
--- Comment #13 from Holger Sickenberg
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c14
Holger Sickenberg
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c15
Andreas Schwab
https://bugzilla.novell.com/show_bug.cgi?id=853311
https://bugzilla.novell.com/show_bug.cgi?id=853311#c16
--- Comment #16 from Dennis Foster
participants (1)
-
bugzilla_noreply@novell.com