Bug 69088 - Protect concurrent access to XIM
Summary: Protect concurrent access to XIM
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-08 08:06 UTC by Carlo Marchiori
Modified: 2018-08-10 20:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Carlo Marchiori 2013-09-08 08:06:51 UTC
XIM module does not proctect access to its global variables, so every call to XIM should be protected by a global lock. See http://bugs.winehq.org/show_bug.cgi?id=34367.
Comment 1 Carlo Marchiori 2013-09-12 20:45:22 UTC
As a clarification, I first posted a bug to uim, but they said it's not a bug of theirs.

Muneyuki Noguchi changed bug 68885 
What	Removed	Added 
Status	NEW	RESOLVED
Resolution	---	NOTOURBUG
Comment # 1 on bug 68885 from Muneyuki Noguchi
This bug has nothing to do with uim, which isn't a part of libX11.

In this kind of situation, either the callee protects its global variabls or the caller does it in its stead. I'm not an expert C programmer so I don't know which is the usual practise (I understand that the absense of locks in the callee makes it generally more performant, but making the odds of crashes more likely if the caller is not aware of it).
Comment 2 GitLab Migration User 2018-08-10 20:10:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libx11/issues/31.


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.