sxemacs-devel
[Top] [All Lists]

Our first bug report (aka "how Steve broke it")

From: Steve Youngs <steve@xxxxxxxxxxx>
Subject: Our first bug report (aka "how Steve broke it")
Date: Tue, 07 Dec 2004 15:50:02 +1000
Organization: The SXEmacs Project
User-agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4 (Security Through Obscurity, linux)
As I mentioned in my build report... SXEmacs is dumping core in X.
This has no doubt been introduced by some breakage in my
mega-indentatin patch.

Can you C gurus please take a look at this and tell me where/how I
screwed up.  Thanks.


Current directory is /home/steve/programming/SXEmacs/core/sxemacs-22.1.0/src/
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".

(eicq-gdb) run -no-autoloads
Starting program: 
/home/steve/programming/SXEmacs/core/sxemacs-22.1.0/src/xemacs -no-autoloads
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 14098)]
Warning: Cannot convert string "XIMPreeditPosition|XIMStatusArea" to type 
XIMStyles.
Using default string "XIMPreeditPosition|XIMStatusArea
XIMPreeditPosition|XIMStatusNone
XIMPreeditPosition|XIMStatusNothing
XIMPreeditNothing|XIMStatusArea
XIMPreeditNothing|XIMStatusNothing
XIMPreeditNothing|XIMStatusNone
XIMPreeditNone|XIMStatusArea
XIMPreeditNone|XIMStatusNothing
XIMPreeditNone|XIMStatusNone" instead.

Warning: Cannot convert string "XIMPreeditPosition|XIMStatusArea" to type 
XIMStyles.
Using default string "XIMPreeditPosition|XIMStatusArea" instead.

Fatal error: assertion failed, file input-method-xlib.c, line 630, 
fromVal->size == strlen(fromVal->addr) + 1

Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 14098)]
0x403faac1 in kill () from /lib/libc.so.6
(eicq-gdb) cont
Continuing.

Fatal error (6).

Your files have been auto-saved.
Use `M-x recover-session' to recover them.

Your version of XEmacs was distributed with a PROBLEMS file that  may describe
your crash, and with luck a workaround.  Please check it first, but do report
the crash anyway.  Please report this bug by invoking M-x report-emacs-bug,
or by selecting `Send Bug Report' from the Help menu.  If necessary, send
ordinary email to `crashes@xxxxxxxxxx'.  *MAKE SURE* to include the XEmacs
configuration from M-x describe-installation, or equivalently the file
Installation in the top of the build tree.

*Please* try *hard* to obtain a C stack backtrace; without it, we are unlikely
to be able to analyze the problem.  Locate the core file produced as a result
of this crash (often called `core' or `core.<process-id>', and located in
the directory in which you started XEmacs or your home directory), and type

  gdb /home/steve/programming/SXEmacs/core/sxemacs-22.1.0/src/xemacs core

then type `where' at the debugger prompt.  No GDB on your system?  You may
have DBX, or XDB, or SDB.  (Ask your system administrator if you need help.)
If no core file was produced, enable them (often with `ulimit -c unlimited'
in case of future recurrance of the crash.

Lisp backtrace follows:

  # bind (frame-being-created)
  make-frame(nil #<x-device on ":0.0" 0x166>)
  frame-initialize()
  # bind (debugger debug-on-error command-line-args-left)
  command-line()
  # (condition-case ... . ((t (byte-code "      Â§" ... 1))))
  # bind (error-data)
  normal-top-level()
  # (condition-case ... . error)
  # (catch top-level ...)

Program received signal SIGABRT, Aborted.
0x403faac1 in kill () from /lib/libc.so.6
(eicq-gdb) bt
#0  0x403faac1 in kill () from /lib/libc.so.6
#1  0x080bb285 in fatal_error_signal (sig=6) at emacs.c:624
#2  0x40690c45 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x403faac1 in kill () from /lib/libc.so.6
#5  0x4068d9ed in pthread_kill () from /lib/libpthread.so.0
#6  0x4068dd0b in raise () from /lib/libpthread.so.0
#7  0x403fa6fa in raise () from /lib/libc.so.6
#8  0x403fc127 in abort () from /lib/libc.so.6
#9  0x080bdda1 in assert_failed (file=0x8246765 "input-method-xlib.c", 
line=630, expr=0x8246780 "fromVal->size == strlen(fromVal->addr) + 1") at 
emacs.c:3340
#10 0x081054c1 in EmacsXtCvtStringToXIMStyles (dpy=0x869ea38, args=0x0, 
num_args=0xbfffd3bc, fromVal=0xbfffd0f8, toVal=0xbfffd4d8, 
converter_data=0xbfffd394) at input-method-xlib.c:630
#11 0x081056d8 in EmacsXtCvtStringToXIMStyles (dpy=0x869ea38, args=0x0, 
num_args=0xbfffd3bc, fromVal=0xbfffd308, toVal=0xbfffd4d8, 
converter_data=0xbfffd394) at input-method-xlib.c:679
#12 0x081056d8 in EmacsXtCvtStringToXIMStyles (dpy=0x869ea38, args=0x0, 
num_args=0xbfffd3bc, fromVal=0xbfffd4e8, toVal=0xbfffd4d8, 
converter_data=0xbfffd394) at input-method-xlib.c:679
#13 0x40157aa3 in CallConverter () from /usr/X11R6/lib/libXt.so.6
#14 0x40156d32 in _XtConvert () from /usr/X11R6/lib/libXt.so.6
#15 0x4017445a in GetResources () from /usr/X11R6/lib/libXt.so.6
#16 0x401738c3 in _XtGetApplicationResources () from /usr/X11R6/lib/libXt.so.6
#17 0x40173b02 in XtGetApplicationResources () from /usr/X11R6/lib/libXt.so.6
#18 0x0810435d in XIM_init_frame (f=0x8708510) at input-method-xlib.c:342
#19 0x081fb2a0 in x_popup_frame (f=0x8708510) at frame-x.c:2036
#20 0x081fb516 in x_init_frame_3 (f=0x8708510) at frame-x.c:2149
#21 0x08145df4 in Fmake_frame (props=1081156384, device=141156416) at 
frame.c:466
#22 0x080c46c7 in Ffuncall (nargs=3, args=0xbfffeac0) at eval.c:3356
#23 0x08095564 in execute_optimized_program (program=0x87083f8 "Æ \210Ç ?­&È\fÉ 
\"¬\027Ê\r\v\"\022Ë\rÈ\tÌ 
\"@\"\211\020\026\020Í\r!\025Î\016\021!\210Ï\211\024\207XXXXXX!", 
stack_depth=5, constants_data=0x407a1a18) at bytecode.c:820
#24 0x0809506a in funcall_compiled_function (fun=1082173232, nargs=0, 
args=0xbfffed14) at bytecode.c:574
#25 0x080c497f in Ffuncall (nargs=1, args=0xbfffed10) at eval.c:3382
#26 0x08095564 in execute_optimized_program (program=0x868af28 
"\vA\035ÆÇ\032\031ˆ\r!\025\bÉa«\004Ê \210ËÌ!«\004Í 
\210\f«\017\016\035¬\vÎÏÐ\f!ÑQ! \210Ò \210*Ó \210Ô \210rÕÖ!q\210× 
\210ØÙ!\210\016!Úa«\005\016\" \210)Û Üa«\bÝ ¬\004Þ \210ß \210Ù\026#Ý 
­\004àÇ!)\207", stack_depth=4, constants_data=0x4078bda8) at bytecode.c:820
#27 0x0809506a in funcall_compiled_function (fun=1082140948, nargs=0, 
args=0xbfffeed0) at bytecode.c:574
#28 0x080c4267 in Feval (form=1081322056) at eval.c:3229
#29 0x080c0c08 in condition_case_1 (handlers=1081317400, bfun=0x80c3744 
<Feval>, barg=1081322056, hfun=0x80c0c6b <run_condition_case_handlers>, 
harg=1081131664) at eval.c:1591
#30 0x080c0fb1 in condition_case_3 (bodyform=1081322056, var=1081131664, 
handlers=1081317400) at eval.c:1662
#31 0x080969d4 in execute_rare_opcode (stack_ptr=0xbffff190, 
program_ptr=0x8689981 "\210Ì\r!\025\016.«\016ÚÓá\016.â ã 
$!\0267äå!\210\016&«\005äæ!\210Ü\026&ç 
\210\016(«\005äè!\210Ü\026(\t«\bé\t@\tA\"\210)\0168­\003ê \207", opcode=143) at 
bytecode.c:1343
#32 0x080952b4 in execute_optimized_program (program=0x86898f0 
"\b«\005ÆÇ!\207È\020É \211\034«\025\fG\rGW«\016Ê\r!Ê\f!k«\005Ë\f!\025)Ì\r!\025Í 
\210Î \210\v®\aÏÐ!­\002È\033Ñ\016/\0160\"\022\v«\tÒÓÔ\n\"Õ\"\210\n¬\004Ö 
\210×\n\0161\016+\0162\v%\210Ø 
\210)\016,¬\022\016-«\016ÙÚÛ\0163!\016-\"ÜÈ#\210\016,¬\024\016+¬\006Ý\0164!\210Ý\0165!\210Ý\0166!\210Ü\031Þßà\217\210Ì\r!\025\016.«\016ÚÓá\016.â
 ã $!\0267äå!\210\016&«\005äæ!\210Ü\026&ç 
\210\016(«\005äè!\210Ü\026(\t«\bé"..., stack_depth=7, 
constants_data=0x4078c498) at bytecode.c:712
#33 0x0809506a in funcall_compiled_function (fun=1082141816, nargs=0, 
args=0xbffff350) at bytecode.c:574
#34 0x080c4267 in Feval (form=1081249060) at eval.c:3229
#35 0x080c0c08 in condition_case_1 (handlers=1081156000, bfun=0x80c3744 
<Feval>, barg=1081249060, hfun=0x80a2171 <cmd_error>, harg=1081156384) at 
eval.c:1591
#36 0x080a220e in top_level_1 (dummy=1081156384) at cmdloop.c:201
#37 0x080c07fb in internal_catch (tag=1080957952, func=0x80a21cc <top_level_1>, 
arg=1081156384, threw=0x0) at eval.c:1266
#38 0x080a22fd in initial_command_loop (load_me=1081156384) at cmdloop.c:275
#39 0x080bc79f in xemacs_22_1_b0_i686_pc_linux (argc=2, argv=0xbffff804, 
envp=0xbffff810, restart=0) at emacs.c:2400
#40 0x080bd25e in main (argc=2, argv=0xbffff804, envp=0xbffff810) at 
emacs.c:2758
(eicq-gdb) 

-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|                        In space,                         |
|             No one can hear you rip a stinky             |
|------------------------------------<steve@xxxxxxxxxxx>---|

Attachment: pgpdqkVbhAUc7.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>