Bug 486949 - PATCH: Fix tk applications crashing with libX11-1.2 update
Summary: PATCH: Fix tk applications crashing with libX11-1.2 update
Keywords:
Status: CLOSED DUPLICATE of bug 480742
Alias: None
Product: Fedora
Classification: Fedora
Component: tk
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-23 13:24 UTC by Hans de Goede
Modified: 2009-02-23 13:35 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-02-23 13:35:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
PATCH: Fix tk applications crashing with libX11-1.2 update (424 bytes, patch)
2009-02-23 13:24 UTC, Hans de Goede
no flags Details | Diff

Description Hans de Goede 2009-02-23 13:24:01 UTC
Created attachment 332927 [details]
PATCH: Fix tk applications crashing with libX11-1.2 update

tk applications started segfaulting after the libX11-1.2 update, atleast gitk is segfaulting for me.

This is caused by tk not checking if a XCreateIC call succeeds. The attached patch fixed this by adding the check. This is safe todo as all other users already check if winPtr->inputContext is NULL.

I've done some tracing with both libX11-1.1.99.2-4.fc11 and libX11-1.2-1.fc11, and with the former one the code path calling XCreateIC never got entered with the newer libX11 it does get entered but XCreateIC fails.

This may be something worth investigating further, but given that with the older libX11 the XCreateIC calls was never made at all, I do not believe that this call failing will lead to regressions.

Comment 1 Marcela Mašláňová 2009-02-23 13:35:26 UTC
I reported bug to upstream so I'm also aware of the patch. The only problem now is koji.

*** This bug has been marked as a duplicate of bug 480742 ***


Note You need to log in before you can comment on or make changes to this bug.