emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crash in emacs-21.1


From: Pavel Janík
Subject: Re: crash in emacs-21.1
Date: Sat, 27 Oct 2001 12:23:24 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i386-suse-linux-gnu)

[emacs-devel added to CC:]

   From: "Sadinoff, Daniel" <address@hidden>
   Date: Thu, 25 Oct 2001 18:38:53 -0400

   > newly reduced set of .elc's are available at 
   > http://www.sadinoff.com/tmp/crasher.tar.gz
   > 
   > I've narrowed it down to two of the .elcs.

Thank you very much Daniel, I can now reproduce that even on my
system. I only need cc-engine.elc to that:

address@hidden:/tmp/q> ls -l
total 56
-rw-r--r--    1 pavel    users       52015 Oct 29  1998 cc-engine.elc
address@hidden:/tmp/q> emacs -nw -q -L . new.java -f c-guess-basic-syntax
Fatal error (11).Segmentation fault (SIGSEGV)

I have recompiled bytecode.c with BYTE_CODE_SAFE defined and it aborted on
line 1710:

          if (op < Bconstant)
            {
              abort ();
            }

The value of op is 190 here and it is less than Bconstant (192) so we
abort here.

Can anyone with better knowledge of byte compiler look at this issue and
clarify it for us mere mortals? :-)

I will leave the rest of your mail here for reference.

   > This was compiled with gcc-2.95.1
   > 
   > here's a debug session ( I had sent a similar one previously, to the bug
   > list, not sure if you saw it )
   > 
   > Current directory is /opt/emacs-21.1/bin/
   > GNU gdb 4.18
   > Copyright 1998 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 "sparc-sun-solaris2.6"...
   > (gdb) source /home/sadind/src/emacs-21.1/src/.gdbinit 
   > Warning: /opt/emacs-21.1/bin/../lwlib: No such file or directory.
   > DISPLAY = 148.86.161.119:0
   > TERM = dumb
   > Breakpoint 1 at 0xd6f2c: file /home/sadind/src/emacs-21.1/src/emacs.c, line
   > 387.
   > Breakpoint 2 at 0xba58c: file /home/sadind/src/emacs-21.1/src/xterm.c, line
   > 12015.
   > (gdb) run  -q --no-site-file -L /home/sadind/tmp /home/sadind/tmp/Test.java
   > -f c-indent-command
   > Starting program: /opt/emacs-21.1/bin/emacs -q --no-site-file -L
   > /home/sadind/tmp /home/sadind/tmp/Test.java -f c-indent-command
   > 
   > Program received signal SIGSEGV, Segmentation fault.
   > 0x16b974 in Fbyte_code (bytestr=-268446344, vector=1078937600, maxdepth=9)
   > at /home/sadind/src/emacs-21.1/src/bytecode.c:494
   > (gdb) list
   > 489        #ifdef BYTE_CODE_METER
   > 490              prev_op = this_op;
   > 491              this_op = op = FETCH;
   > 492              METER_CODE (prev_op, op);
   > 493        #else
   > 494              op = FETCH;
   > 495        #endif
   > 496        
   > 497              switch (op)
   > 498                {
   > (gdb) xbacktrace
   > 0x4f8788 "c-guess-basic-syntax"
   > 0x4f8fe8 "c-indent-line"
   > 0x5003e8 "c-indent-command"
   > 0x25d4ec "command-line-1"
   > 0x25c5a4 "command-line"
   > 0x25aebc "normal-top-level"
   > (gdb) bt
   > #0  0x16b974 in Fbyte_code (bytestr=-268446344, vector=1078937600,
   > maxdepth=9) at /home/sadind/src/emacs-21.1/src/bytecode.c:494
   > #1  0x13d7d0 in funcall_lambda (fun=1079216288, nargs=0,
   > arg_vector=0xefffd75c) at /home/sadind/src/emacs-21.1/src/eval.c:2847
   > #2  0x13d244 in Ffuncall (nargs=1, args=0xefffd758) at
   > /home/sadind/src/emacs-21.1/src/eval.c:2712
   > #3  0x16bd80 in Fbyte_code (bytestr=-268445864, vector=1079135744,
   > maxdepth=8) at /home/sadind/src/emacs-21.1/src/bytecode.c:716
   > #4  0x13d7d0 in funcall_lambda (fun=1079216160, nargs=0,
   > arg_vector=0xefffd95c) at /home/sadind/src/emacs-21.1/src/eval.c:2847
   > #5  0x13d244 in Ffuncall (nargs=1, args=0xefffd958) at
   > /home/sadind/src/emacs-21.1/src/eval.c:2712
   > #6  0x16bd80 in Fbyte_code (bytestr=-268445352, vector=1079007232,
   > maxdepth=7) at /home/sadind/src/emacs-21.1/src/bytecode.c:716
   > #7  0x13d7d0 in funcall_lambda (fun=1079108800, nargs=0,
   > arg_vector=0xefffdb5c) at /home/sadind/src/emacs-21.1/src/eval.c:2847
   > #8  0x13d244 in Ffuncall (nargs=1, args=0xefffdb58) at
   > /home/sadind/src/emacs-21.1/src/eval.c:2712
   > #9  0x16bd80 in Fbyte_code (bytestr=-268444840, vector=1, maxdepth=11) at
   > /home/sadind/src/emacs-21.1/src/bytecode.c:716
   > #10 0x13d7d0 in funcall_lambda (fun=1076230544, nargs=1,
   > arg_vector=0xefffdd6c) at /home/sadind/src/emacs-21.1/src/eval.c:2847
   > #11 0x13d244 in Ffuncall (nargs=2, args=0xefffdd68) at
   > /home/sadind/src/emacs-21.1/src/eval.c:2712
   > #12 0x16bd80 in Fbyte_code (bytestr=-268444312, vector=1076222444,
   > maxdepth=5) at /home/sadind/src/emacs-21.1/src/bytecode.c:716
   > #13 0x13d7d0 in funcall_lambda (fun=1076221180, nargs=0,
   > arg_vector=0xefffdf64) at /home/sadind/src/emacs-21.1/src/eval.c:2847
   > #14 0x13d244 in Ffuncall (nargs=1, args=0xefffdf60) at
   > /home/sadind/src/emacs-21.1/src/eval.c:2712
   > #15 0x16bd80 in Fbyte_code (bytestr=-268443808, vector=1076217436,
   > maxdepth=5) at /home/sadind/src/emacs-21.1/src/bytecode.c:716
   > #16 0x13d7d0 in funcall_lambda (fun=1076217268, nargs=0,
   > arg_vector=0xefffe0a0) at /home/sadind/src/emacs-21.1/src/eval.c:2847
   > #17 0x13d44c in apply_lambda (fun=1076217268, args=271285252, eval_flag=1)
   > at /home/sadind/src/emacs-21.1/src/eval.c:2766
   > #18 0x13c2f0 in Feval (form=1346743716) at
   > /home/sadind/src/emacs-21.1/src/eval.c:2055
   > #19 0xd9878 in top_level_2 () at
   > /home/sadind/src/emacs-21.1/src/keyboard.c:1254
   > #20 0x13acfc in internal_condition_case (bfun=0xd9868 <top_level_2>,
   > handlers=271407300, hfun=0xd9520 <cmd_error>)
   >     at /home/sadind/src/emacs-21.1/src/eval.c:1267
   > #21 0xd98bc in top_level_1 () at
   > /home/sadind/src/emacs-21.1/src/keyboard.c:1262
   > #22 0x13a880 in internal_catch (tag=271359652, func=0xd9880 <top_level_1>,
   > arg=271285252) at /home/sadind/src/emacs-21.1/src/eval.c:1030
   > #23 0xd97e8 in command_loop () at
   > /home/sadind/src/emacs-21.1/src/keyboard.c:1223
   > #24 0xd9274 in recursive_edit_1 () at
   > /home/sadind/src/emacs-21.1/src/keyboard.c:950
   > #25 0xd93e0 in Frecursive_edit () at
   > /home/sadind/src/emacs-21.1/src/keyboard.c:1006
   > #26 0xd81a4 in main (argc=8, argv=0xefffea44, envp=0xefffe800) at
   > /home/sadind/src/emacs-21.1/src/emacs.c:1547
   > (gdb) info local
   > count = 22
   > op = 190
   > vectorp = (int *) 0x4f4808
   > bytestr_length = 267
   > stack = {
   >   pc = 0x10b <Address 0x10b out of bounds>, 
   >   top = 0x0, 
   >   bottom = 0xefffd550, 
   >   byte_string = 810694116, 
   >   byte_string_start = 0x54900c "\212\214\300y\210`\031\302\e\304
   > \211\035\036\006\016\a\310=\205\037", 
   >   constants = 1078937600, 
   >   next = 0xefffd778
   > }
   > top = (int *) 0xefffd578
   > result = -268446344
   > (gdb) 
   > 
   > -----Original Message-----
   > From: address@hidden [mailto:address@hidden
   > Sent: Thursday, October 25, 2001 5:11 PM
   > To: Sadinoff, Daniel
   > Cc: 'address@hidden'; address@hidden
   > Subject: Re: crash in emacs-21.1
   > 
   > 
   >    From: "Sadinoff, Daniel" <address@hidden>
   >    Date: Thu, 25 Oct 2001 16:14:29 -0400
   > 
   > Hi,
   > 
   >    > I'm happy to supply a solaris coredump, if that will help.
   > 
   > that would be helpful (though I do not have easy access to such
   > machine). But - can you please try to load each *.elc file one-by-one into
   > Emacs (running without site-files and init-files) and see which one is the
   > cause of failure? If you find that, please try running emacs inside
   > debugger and show us backtrace so we can at least look where it
   > crashed. Can you also try another compiler and test emacs then? Which one
   > do you use?
   > 
   > Thank you for you help to debug this problem.

-- 
Pavel Janík

It is better to keep your mouth shut and be thought a fool, than to open it
and remove all doubt.
                  -- Ion Badulescu in linux-kernel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]