We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1169 - SetupWindowData(video/x11/SDL_x11window.c:116) send null pointer to XCreateIC and cause segfault.
Summary: SetupWindowData(video/x11/SDL_x11window.c:116) send null pointer to XCreateIC...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 major
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 01:53 UTC by O01eg
Modified: 2013-05-21 02:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O01eg 2011-03-16 01:53:25 UTC
If I set environment XMODIFIERS="@im=uim" videodata->im is null pointer. When it send to XCreateIC it cause segfalut.
If I unset XMODIFIERS videodata->im point to real data and this bug don't cause.
P.S. Result of XCreateIC also isn't checked for null.
P.P.S. http://forums.pcsx2.net/Thread-Linux-Compile-Guide-and-Support?pid=159304#pid159304
Comment 1 Sam Lantinga 2013-05-21 02:31:23 UTC
This is fixed in the latest snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip