[Bug: 21.5-b18] Crashes under X11

Ben Wing ben at 666.com
Wed Nov 24 04:31:34 EST 2004


> Yes, I'm sure. XEmacs is compiled using -g and no "-O" 
> options whatsoever. But wouldn't the reason for unreadable 
> backtraces be that most libraries on my system are compiled 
> using "-Os -fomit-frame-pointer"?

But it wouldn't make the backtraces for XEmacs frames get all messed up.

It really looks like you have a stripped executable; otherwise you should be
getting a much better backtrace.

Presumably when you recompile your XEmacs, you are installing it into
/usr/local/bin?  I'm just asking because I don't see how you could be
getting stripped backtraces like this if you have freshly recompiled with -g
and not -O so I want to make sure you're picking up the right XEmacs.

Maybe if you comment out the call to XFreeModifiermap your crash will go
away, but that's really just a nasty hack.

ben

> 
> > -- rather than using gdb on the core dump, run xemacs from 
> within gdb.
> > 
> > Also try the following patch and let me know if it helps.
> 
> It doesn't. But I have another backtrace, obtained when 
> running XEmacs under gdb:
> 
> [19:59] tnuctip:/home/jwr>gdb `which xemacs`
> GNU gdb 6.2.1
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public 
> License, and you are welcome to change it and/or distribute 
> copies of it under certain conditions. Type "show copying" to 
> see the conditions. There is absolutely no warranty for GDB.  
> Type "show warranty" for details. This GDB was configured as 
> "i686-pc-linux-gnu"...Using host libthread_db library 
> "/lib/libthread_db.so.1".
> 
> (gdb) r
> Starting program: /usr/local/bin/xemacs
> Detaching after fork from child process 19856.
> Detaching after fork from child process 19857.
> Detaching after fork from child process 19858.
> Detaching after fork from child process 19859.
> Detaching after fork from child process 19861.
> Detaching after fork from child process 19862.
> Detaching after fork from child process 19863.
> Detaching after fork from child process 19864.
> Detaching after fork from child process 19865.
> Detaching after fork from child process 19866.
> Detaching after fork from child process 19867.
> Detaching after fork from child process 19868.
> Detaching after fork from child process 19869.
> Detaching after fork from child process 19870.
> Detaching after fork from child process 19885.
> *** glibc detected *** free(): invalid pointer: 0x40487aa4 ***
> 
> Program received signal SIGABRT, Aborted.
> 0x403bd561 in kill () from /lib/libc.so.6
> (gdb) 
> #0  0x403bd561 in kill () from /lib/libc.so.6
> #1  0x403bd33c in raise () from /lib/libc.so.6
> #2  0x403be413 in abort () from /lib/libc.so.6
> #3  0x403f0d55 in mallopt () from /lib/libc.so.6
> #4  0x403efd1b in mallopt () from /lib/libc.so.6
> #5  0x403eed34 in free () from /lib/libc.so.6
> #6  0x4de8f698 in XFreeModifiermap () from 
> /usr/X11R6/lib/libX11.so.6 #7  0x40487aa4 in 
> __after_morecore_hook () from /lib/libc.so.6 #8  0x4e0296ac 
> in ?? () from /usr/X11R6/lib/libXt.so.6 #9  0x0968f5a8 in ?? 
> () #10 0x082023cf in x_reset_modifier_mapping () #11 
> 0x00000000 in ?? () #12 0x00000000 in ?? () #13 0x00000000 in 
> ?? () #14 0x00000000 in ?? () #15 0x00000000 in ?? () #16 
> 0x00000000 in ?? () #17 0x097454f8 in ?? () #18 0x0823d283 in 
> Redisplay () #19 0x090dc4f8 in ?? () #20 0x4e0296ac in ?? () 
> from /usr/X11R6/lib/libXt.so.6 #21 0xbfffc410 in ?? () #22 
> 0x4e0296ac in ?? () from /usr/X11R6/lib/libXt.so.6 #23 
> 0x4e0296ac in ?? () from /usr/X11R6/lib/libXt.so.6 #24 
> 0x4e02c618 in dummyAction.0 () from /usr/X11R6/lib/libXt.so.6 
> #25 0xbfffc410 in ?? () #26 0x4e02c610 in QAny () from 
> /usr/X11R6/lib/libXt.so.6 #27 0x0820234e in 
> emacs_Xt_mapping_action () #28 0x4e01de57 in HandleActions () 
> from /usr/X11R6/lib/libXt.so.6 #29 0x089088c8 in ?? () #30 
> 0x0899fd48 in ?? () #31 0xbfffc2f0 in ?? () #32 0x4e01e02c in 
> FreeContext () from /usr/X11R6/lib/libXt.so.6 #33 0x0001c638 
> in ?? () #34 0x08a6a438 in ?? () #35 0x00000000 in ?? () #36 
> 0x4e0296ac in ?? () from /usr/X11R6/lib/libXt.so.6 #37 
> 0x00000000 in ?? () #38 0x00000000 in ?? () #39 0x0899ecd8 in 
> ?? () #40 0x4e01e398 in HandleSimpleState () from 
> /usr/X11R6/lib/libXt.so.6 #41 0xbfffc410 in ?? () #42 
> 0x0899ecd8 in ?? () #43 0x00000000 in ?? () #44 0x0899f73c in 
> ?? () #45 0x4e02c610 in QAny () from 
> /usr/X11R6/lib/libXt.so.6 #46 0x082dca4c in dumped_data () 
> #47 0x080e2dca in Fmake_event. () #48 0x00000000 in ?? () #49 
> 0x00000000 in ?? () #50 0x01013f5c in ?? () #51 0x4e02c610 in 
> QAny () from /usr/X11R6/lib/libXt.so.6 #52 0x00000001 in ?? 
> () #53 0x08a6a470 in ?? () #54 0x0892c3d0 in ?? () #55 
> 0x4e0296ac in ?? () from /usr/X11R6/lib/libXt.so.6 #56 
> 0x08a6a468 in ?? () #57 0xbfffc2f0 in ?? () #58 0x00000000 in 
> ?? () #59 0x4e01e997 in _XtTranslateEvent () from 
> /usr/X11R6/lib/libXt.so.6 #60 0x08a6a438 in ?? () #61 
> 0x08a6a468 in ?? () #62 0xbfffc2f0 in ?? () #63 0x09a94dc8 in 
> ?? () #64 0x086b1e0c in Vpre_idle_hook () #65 0x085eb2cc in 
> pending_async_timeout_list () #66 0x082067a7 in 
> emacs_Xt_event_handler () #67 0xbfffc410 in ?? () #68 
> 0x00000000 in ?? () #69 0x00000000 in ?? () #70 0x00000000 in 
> ?? () #71 0x00000022 in ?? () #72 0x00000000 in ?? () #73 
> 0x00000000 in ?? () #74 0x00000000 in ?? () #75 0x4defaa00 in 
> locale_alias.0 () from /usr/X11R6/lib/libX11.so.6 #76 
> 0x4df31668 in ?? () from /usr/X11R6/lib/libX11.so.6 #77 
> 0x096821e4 in ?? () #78 0x4dec4ca1 in XRefreshKeyboardMapping 
> () from /usr/X11R6/lib/libX11.so.6 #79 0x096821e4 in ?? () 
> #80 0x0966b284 in ?? () #81 0x00000000 in ?? () #82 
> 0x4e01ec76 in DispatchMappingNotify () from 
> /usr/X11R6/lib/libXt.so.6 #83 0x08a6a438 in ?? () #84 
> 0xbfffc410 in ?? () #85 0x4e0296ac in ?? () from 
> /usr/X11R6/lib/libXt.so.6 #86 0x4dfe96ed in 
> XtCallCallbackList () from /usr/X11R6/lib/libXt.so.6 #87 
> 0x08a6a438 in ?? () #88 0xbfffc410 in ?? () #89 0xbfffc3b0 in 
> ?? () #90 0x4e0296ac in ?? () from /usr/X11R6/lib/libXt.so.6 
> #91 0x096821e4 in ?? () #92 0xbfffc410 in ?? () #93 
> 0x086e7870 in ?? () #94 0x4e00352e in _XtRefreshMapping () 
> from /usr/X11R6/lib/libXt.so.6 #95 0x00000000 in ?? () #96 
> 0x0966b280 in ?? () #97 0xbfffc410 in ?? () #98 0x01ff3a4e in 
> ?? () #99 0x4e0296ac in ?? () from /usr/X11R6/lib/libXt.so.6 
> #100 0x00000000 in ?? () #101 0xbfffc410 in ?? () #102 
> 0x4dff779a in XtDispatchEvent () from 
> /usr/X11R6/lib/libXt.so.6 #103 0x00000003 in ?? () #104 
> 0x4dff71d0 in DispatchEvent () from /usr/X11R6/lib/libXt.so.6 
> #105 0xbfffc410 in ?? () #106 0x086e7870 in ?? () #107 
> 0x4e0039b1 in XtAppProcessEvent () from 
> /usr/X11R6/lib/libXt.so.6 #108 0x00000000 in ?? ()
> (gdb) 
> 
> If you tell me that the only way to debug this is to 
> recompile my X11 using no optimization, I will do it -- but 
> this will take significant effort.
> 
> Thanks,
> --Jan
> 






More information about the XEmacs-Beta mailing list