Bug 11055

Summary: XrmDestroyDatabase() should unlock mutex before destroying it
Product: xorg Reporter: Sergey Svishchev <svs>
Component: Lib/XlibAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: patch
Version: 7.2 (2007.02)   
Hardware: Other   
OS: NetBSD   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
proposed fix none

Description Sergey Svishchev 2007-05-24 11:35:23 UTC
Any application that uses xine-lib is aborted by NetBSD thread library on exit with the following message: "Error detected by libpthread: Destroying locked mutex."
Comment 1 Sergey Svishchev 2007-05-24 11:35:45 UTC
Created attachment 10085 [details] [review]
proposed fix
Comment 2 Sergey Svishchev 2007-12-19 13:29:04 UTC
Still an issue in libX11 1.1.3.
Comment 3 Alan Coopersmith 2009-03-16 14:42:33 UTC
Already fixed as part of this commit:

commit f1ed3da9a30a1f0264fdc7d1c6466f27fe2a3d7d
Author: Jeremy C. Reed <reed@glacier.reedmedia.net>
Date:   Thu Aug 16 17:37:22 2007 -0500

    Fix a mutex reference-counting bug.
    
    I was told that some systems have a much more permissive libpthread.
    I was asked to commit this. This is from NetBSD's X source.
    (I didn't receive any feedback on xorg list for over two weeks
    about this.)

http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=f1ed3da9a30a1f0264fdc7d1c6466f27fe2a3d7d

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.