unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14428: 24.3; Emacs crashes in c-mode if I yank certain text then undo with M-/.
@ 2013-05-20 22:58 Jesse
  2013-05-21  2:12 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse @ 2013-05-20 22:58 UTC (permalink / raw)
  To: 14428

Starting from emacs -Q:

M-x c-mode <RET>
C-x h <BACKSPACE>
Type the text "#include <stdio.h>"
C-Space
C-a
C-w
C-y
C-y
M-/

This causes a segmentation fault, I can't even imagine why. I've found
that any last line of text beginning with the '#' character, cannot be
yanked, and then have that yank undone, without emacs crashing. It's
very specific, but also very detrimental.

$ gdb 'emacs'
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/emacs-24.3...(no debugging symbols 
found)...done.
(gdb) run -Q
Starting program: /usr/bin/emacs-24.3 -Q
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

** (emacs-24-3:11678): WARNING **: Couldn't register with accessibility 
bus: Did not receive a reply. Possible causes include: the remote 
application did not send a reply, the message bus security policy 
blocked the reply, the reply timeout expired, or the network connection 
was broken.

(emacs-24-3:11678): GConf-WARNING **: Client failed to connect to the 
D-BUS daemon:
Failed to connect to socket /tmp/dbus-Atw3nvy7Lw: Connection refused

(emacs-24-3:11678): GConf-WARNING **: Client failed to connect to the 
D-BUS daemon:
Failed to connect to socket /tmp/dbus-Atw3nvy7Lw: Connection refused

(emacs-24-3:11678): GConf-WARNING **: Client failed to connect to the 
D-BUS daemon:
Failed to connect to socket /tmp/dbus-Atw3nvy7Lw: Connection refused

(emacs-24-3:11678): GConf-WARNING **: Client failed to connect to the 
D-BUS daemon:
Failed to connect to socket /tmp/dbus-Atw3nvy7Lw: Connection refused

(emacs-24-3:11678): GConf-WARNING **: Client failed to connect to the 
D-BUS daemon:
Failed to connect to socket /tmp/dbus-Atw3nvy7Lw: Connection refused

(emacs-24-3:11678): GConf-WARNING **: Client failed to connect to the 
D-BUS daemon:
Failed to connect to socket /tmp/dbus-Atw3nvy7Lw: Connection refused
[New Thread 0xb42dfb40 (LWP 11682)]

Program received signal SIGSEGV, Segmentation fault.
0x081d2433 in ?? ()
(gdb) bt full
#0 0x081d2433 in ?? ()
No symbol table info available.
#1 0x081d3bfd in ?? ()
No symbol table info available.
#2 0x081d3ec8 in ?? ()
No symbol table info available.
#3 0x0816b09d in ?? ()
No symbol table info available.
#4 0x081870c3 in ?? ()
No symbol table info available.
#5 0x081ba72b in ?? ()
No symbol table info available.
#6 0x08186c4d in ?? ()
No symbol table info available.
#7 0x08186f0a in ?? ()
No symbol table info available.
#8 0x081ba72b in ?? ()
No symbol table info available.
#9 0x08186c4d in ?? ()
No symbol table info available.
#10 0x08186f0a in ?? ()
No symbol table info available.
#11 0x08183901 in ?? ()
No symbol table info available.
#12 0x081870af in ?? ()
No symbol table info available.
#13 0x08188a17 in ?? ()
No symbol table info available.
#14 0x08125c41 in ?? ()
No symbol table info available.
#15 0x081857ae in ?? ()
No symbol table info available.
#16 0x08117ff5 in ?? ()
No symbol table info available.
#17 0x081856c3 in ?? ()
No symbol table info available.
#18 0x0811c492 in ?? ()
No symbol table info available.
#19 0x0811c76d in ?? ()
No symbol table info available.
#20 0x08058b98 in ?? ()
No symbol table info available.
#21 0xb67ae7c3 in __libc_start_main () from /usr/lib/libc.so.6
No symbol table info available.
#22 0x08059845 in ?? ()
No symbol table info available.
(gdb) xbacktrace
Undefined command: "xbacktrace". Try "help".
(gdb) quit
A debugging session is active.

Inferior 1 [process 11678] will be killed.

Quit anyway? (y or n) y


In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.8.1)
of 2013-04-29 on eric
Windowing system distributor `The X.Org Foundation', version 11.0.11401000
System Description: Arch Linux

Configured using:
`configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib'
'--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft'
'CFLAGS=-march=i686 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4'
'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'
'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
M-x r e p o r t SPC b u g <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#14428: 24.3; Emacs crashes in c-mode if I yank certain text then undo with M-/.
  2013-05-20 22:58 bug#14428: 24.3; Emacs crashes in c-mode if I yank certain text then undo with M-/ Jesse
@ 2013-05-21  2:12 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-05-21  2:12 UTC (permalink / raw)
  To: Jesse; +Cc: 14428


Thanks for the report. I can reproduce this in 24.3, but not current
trunk, so it seems to already be fixed. Can you check trunk and confirm?





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-21  2:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-20 22:58 bug#14428: 24.3; Emacs crashes in c-mode if I yank certain text then undo with M-/ Jesse
2013-05-21  2:12 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).