Bug 11752

Summary: libXt: SIGABRT in XtFree() in GetConversion()
Product: xorg Reporter: Brice Goglin <brice.goglin>
Component: Lib/XtAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WORKSFORME QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.2 (2007.02)   
Hardware: Other   
OS: All   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428176
Whiteboard:
i915 platform: i915 features:

Description Brice Goglin 2007-07-28 03:31:58 UTC
Bug reported by Sune Vuorela on the Debian BTS about 2 months ago. He gets a sigabort when trying to select some text in vim.

> Program received signal SIGABRT, Aborted.
> [Switching to Thread -1229543216 (LWP 18110)]
> 0xb7f417f2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
> (gdb) bt
> #0  0xb7f417f2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
> #1  0xb70e1d60 in raise () from /lib/i686/cmov/libc.so.6
> #2  0xb70e35b1 in abort () from /lib/i686/cmov/libc.so.6
> #3  0xb711808b in __libc_message () from /lib/i686/cmov/libc.so.6
> #4  0xb711feed in _int_free () from /lib/i686/cmov/libc.so.6
> #5  0xb7123530 in free () from /lib/i686/cmov/libc.so.6
> #6  0xb7628d31 in XtFree (ptr=0x0) at ../../src/Alloc.c:170
> #7  0xb764cf4b in GetConversion (ctx=0x82d72c8, event=0xbfd1f5c4, target=425, property=291, widget=0x82f6778) at ../../src/Selection.c:774

For some reason, GetConversion appears to be calling XtFree on a NULL
pointer. It seems it could be related to the locale, maybe the lib doesn't support it.

Locale: LANG=en_DK.ISO-8859-15, LC_CTYPE=en_DK.ISO-8859-15 (charmap=ISO-8859-15)

Cheers,
Brice
Comment 1 Brice Goglin 2007-07-29 01:20:21 UTC
It's strange that gdb shows free() being called during XtFree(ptr=0) since XtFree does nothing in this case. Maybe the stack arguments are messed up somehow, and ptr wasn't NULL in the beginning.
Comment 2 Jeremy Huddleston Sequoia 2011-10-02 13:29:34 UTC
Is this still an issue?  If so, can you please try a build without 
optimizations (-O0) and reopen with a current backtrace.

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.