Bug 11055 - XrmDestroyDatabase() should unlock mutex before destroying it
Summary: XrmDestroyDatabase() should unlock mutex before destroying it
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: 7.2 (2007.02)
Hardware: Other NetBSD
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2007-05-24 11:35 UTC by Sergey Svishchev
Modified: 2009-03-16 14:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
proposed fix (291 bytes, patch)
2007-05-24 11:35 UTC, Sergey Svishchev
no flags Details | Splinter Review

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.