| Ticket UUID: | 1616245 | |||
| Title: | segmentation fault after call to XOpenIM | |||
| Type: | Bug | Version: | None | |
| Submitter: | marijn72 | Created on: | 2006-12-15 09:45:44 | |
| Subsystem: | 67. Unix Window Operations | Assigned To: | jenglish | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2008-05-19 09:20:22 | |
| Resolution: | None | Closed By: | sf-robot | |
| Closed on: | 2008-05-19 02:20:22 | |||
| Description: |
We were able to fix a segmentation fault by commenting out the call to OpenIM (tkUnixEvent.c), in OpenIM there's a call to the function XOpenIM from the X11 library (libX11.a) that caused the segmentation fault on a Fedora Core 3 (64 bit) machine with an amd processor. Unfortunately we don't own the machine and don't have root acces on it, so we can't tell if there's an 'X Input Method' server running on that machin\ e. | |||
| User Comments: |
sf-robot added on 2008-05-19 09:20:22:
Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). jenglish added on 2008-05-05 00:35:48: Logged In: YES user_id=68433 Originator: NO Is this still a problem? marijn72 added on 2006-12-19 23:33:34: Logged In: YES user_id=1669190 Originator: YES Thanks! I just added the line, but I need access to that particular machine to test it, I'll do that tomorrow morning dgp added on 2006-12-19 22:43:51: Logged In: YES user_id=80530 Originator: NO Your Tcl_AppInit() routine can Tcl_Eval() a script in the interp. marijn72 added on 2006-12-19 22:17:22: Logged In: YES user_id=1669190 Originator: YES We don't start this application from a tcl shell or something, our program, written in c and tcl/tk, calls Tk_Main from the main() c function. dgp added on 2006-12-18 22:54:47: Logged In: YES user_id=80530 Originator: NO Does [tk useinputmethods 0] help address this at all? marijn72 added on 2006-12-18 04:12:27: Logged In: YES user_id=1669190 Originator: YES The Tk version was 4.8.12 I didn't get a coredump, but I do have an idea about the functioncall stack, because I tried to dig into the cause of the segmenataion fault. Again, the segfault happened while calling XOpenIM() (an X11 library function), called by the function : from the sourcefile: XOpenIM() OpenIm() tkUnixEvent.c TkpOpenDisplay() " GetScreen() tkWindow.c CreateTopLevelWindow() " TkCreateMainWindow() " CreateFrame() tkFrame.c TkCreateFrame() " Initialize() tkWindow.c Tk_Init() This is a hand-made stack back-trace, it shows how the segfault occurred before the toplevel window was created. Again, This is probably not a Tk bug, rather an X11 bug, but we ran into it and solved our problem by building Tk with the OpenIM call disabled. nobody added on 2006-12-16 00:23:56: Logged In: NO What version of Tk was this? Could you provide a stack backtrace? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki