GNU bug report logs - #1382
segfault when killing unsaved buffer

Previous Next

Package: emacs21;

Reported by: "Ben Walton (student)" <t-walton <at> cquest.utoronto.ca>

Date: Wed, 19 Nov 2008 19:45:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1382 in the body.
You can then email your comments to 1382 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1382; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Ben Walton (student)" <t-walton <at> cquest.utoronto.ca>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Ben Walton (student)" <t-walton <at> cquest.utoronto.ca>
To: bug-gnu-emacs <at> gnu.org
Subject: segfault when killing unsaved buffer
Date: Wed, 19 Nov 2008 14:35:39 -0500
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.4.1 (i686-redhat-linux-gnu)
 of 2007-12-10 on hs20-bc2-3.build.redhat.com
configured using `configure  --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --without-x'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

1. Open new emacs (-nox) session [tested with -q --no-site-file also]
2. Open buffer for new file (C-x C-f ~/somenewfile.txt RET)
3. Enter some text so buffer is modified/dirty.
4. Kill buffer (C-x k)
5. RET (to confirm killing the buffer)
6. Segfault

The following is a gdb backtrace from the core file:


$ gdb `which emacs-nox` core.21239
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Core was generated by `emacs-nox'.
Program terminated with signal 11, Segmentation fault.
#0  0x0095a402 in __kernel_vsyscall ()
(gdb) backtrace
#0  0x0095a402 in __kernel_vsyscall ()
#1  0x00690146 in kill () from /lib/libc.so.6
#2  0x0809b3c9 in fatal_error_signal (sig=11) at emacs.c:354
#3  <signal handler called>
#4  0x006d6053 in strlen () from /lib/libc.so.6
#5  0x0812e6f8 in doprnt1 (lispstrings=0,
    buffer=0xbfc6059c "Buffer \n, <gibberish>
    bufsize=<value optimized out>,
    format=0x81407f8 "Buffer %s modified; kill anyway? ",
    format_end=0x8140819 "", nargs=5, args=0xbfc60594) at doprnt.c:249
#6  0x080ec919 in format1 (
    string1=0x81407f8 "Buffer %s modified; kill anyway? ") at editfns.c:3536
#7  0x080b6b58 in Fkill_buffer (buffer=973129580) at buffer.c:1213
#8  0x080f6df4 in Ffuncall (nargs=2, args=0xbfc60720) at eval.c:2659
#9  0x080f45a3 in Fcall_interactively (function=405216116,
    record_flag=405074988, keys=1210440104) at callint.c:797
#10 0x0809dbf7 in Fcommand_execute (cmd=405216116, record_flag=405074988,
    keys=405074988, special=405074988) at keyboard.c:9255
#11 0x080a68b6 in command_loop_1 () at keyboard.c:1661
#12 0x080f56fd in internal_condition_case (bfun=0x80a6540 <command_loop_1>,
    handlers=405172732, hfun=0x80a0740 <cmd_error>) at eval.c:1267
#13 0x080a0333 in command_loop_2 () at keyboard.c:1245
#14 0x080f57b2 in internal_catch (tag=405132772,
    func=0x80a0310 <command_loop_2>, arg=405074988) at eval.c:1030
#15 0x080a0467 in command_loop () at keyboard.c:1224
#16 0x080a0505 in recursive_edit_1 () at keyboard.c:950
#17 0x080a0603 in Frecursive_edit () at keyboard.c:1006
#18 0x0809a7f0 in main (argc=1, argv=0xbfc61044, envp=Cannot access memory at address 0x8
) at emacs.c:1547
#19 0x0067cdec in __libc_start_main () from /lib/libc.so.6
#20 0x0804ac71 in _start ()
(gdb)



Recent input:
ESC x r e p o TAB e DEL r TAB RET

Recent messages:
(emacs-nox -q --no-site-file)
Loading disp-table...done
For information about the GNU Project and its goals, type C-h C-p.
Making completion list...
Loading view...done
Loading emacsbug...done








Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1382; Package emacs. Full text and rfc822 format available.

Message #8 received at 1382 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: "Ben Walton" <t-walton <at> cquest.utoronto.ca>
Cc: 1382 <at> debbugs.gnu.org
Subject: Re: bug#1382: segfault when killing unsaved buffer
Date: Wed, 19 Nov 2008 21:55:58 -0500
reassign 1382 emacs21
stop

"Ben Walton (student)" wrote:

> In GNU Emacs 21.4.1 (i686-redhat-linux-gnu)
>  of 2007-12-10 on hs20-bc2-3.build.redhat.com

Unfortunately, Emacs 21 is rather old and not supported any more. I
would recommend you use the latest release, Emacs 22.3 instead. But if
you can't do that and your 21.4 is a Red Hat package (it seems it
might be), you should report this problem to them.




bug reassigned from package `emacs' to `emacs21'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 20 Nov 2008 03:05:07 GMT) Full text and rfc822 format available.

Information stored:
bug#1382; Package emacs21. Full text and rfc822 format available.

Message #13 received at 1382-quiet <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Ben Walton <bwalton <at> artsci.utoronto.ca>
To: Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#1382: segfault when killing unsaved buffer
Date: Thu, 20 Nov 2008 09:13:49 -0500
[Message part 1 (text/plain, inline)]
Excerpts from Glenn Morris's message of Wed Nov 19 21:55:58 -0500 2008:
> > In GNU Emacs 21.4.1 (i686-redhat-linux-gnu)
> >  of 2007-12-10 on hs20-bc2-3.build.redhat.com
> 
> Unfortunately, Emacs 21 is rather old and not supported any more. I
> would recommend you use the latest release, Emacs 22.3 instead. But if
> you can't do that and your 21.4 is a Red Hat package (it seems it
> might be), you should report this problem to them.

OK.  Thanks for the response anyway.  I may dig into that back trace
and the code a little more, but I'll definitely kick it over to redhat
also.

My personal ubuntu boxes run a more recent version and I don't have
this issue there.

[This is my first foray into emacs after using vim for ~10 years.  So
far, I'm quite happy! :) ]

Thanks!
-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
[signature.asc (application/pgp-signature, attachment)]

bug closed, send any further explanations to "Ben Walton (student)" <t-walton <at> cquest.utoronto.ca> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Thu, 24 Jun 2010 18:24:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 Jul 2010 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 23 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.