From unknown Thu Sep 11 06:31:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14428 <14428@debbugs.gnu.org> To: bug#14428 <14428@debbugs.gnu.org> Subject: Status: 24.3; Emacs crashes in c-mode if I yank certain text then undo with M-/. Reply-To: bug#14428 <14428@debbugs.gnu.org> Date: Thu, 11 Sep 2025 13:31:34 +0000 retitle 14428 24.3; Emacs crashes in c-mode if I yank certain text then und= o with M-/. reassign 14428 emacs submitter 14428 Jesse severity 14428 important tag 14428 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 20 19:25:02 2013 Received: (at submit) by debbugs.gnu.org; 20 May 2013 23:25:02 +0000 Received: from localhost ([127.0.0.1]:53573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeZRt-0005K4-Av for submit@debbugs.gnu.org; Mon, 20 May 2013 19:25:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47358) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UeZ3E-0004RK-EP for submit@debbugs.gnu.org; Mon, 20 May 2013 18:59:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeZ2S-0007Tv-Kn for submit@debbugs.gnu.org; Mon, 20 May 2013 18:58:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_20, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:46232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeZ2S-0007Tm-Gy for submit@debbugs.gnu.org; Mon, 20 May 2013 18:58:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeZ2L-0004PI-4R for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 18:58:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeZ2E-0007MN-JG for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 18:58:37 -0400 Received: from mail-ie0-x22e.google.com ([2607:f8b0:4001:c03::22e]:55717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeZ2E-0007Lw-Bl for bug-gnu-emacs@gnu.org; Mon, 20 May 2013 18:58:30 -0400 Received: by mail-ie0-f174.google.com with SMTP id 10so14627318ied.5 for ; Mon, 20 May 2013 15:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=eVREaIjg52w1jw7r2irBtUKPJ6uiQSykt0zi7iJDRIw=; b=vRde1Tv2VT6nk8l/oTzfu1/3GC+4hcaPZzf5mRT0zgNfx7W5GzsnxfVV/+cGIh3Di7 vtRFv6cBcLi+pRPQAzDLAHzxvN21Ii3lOouXsy4MggM5R7i40icltewceVzu0p4tJDsv nAigZjQ/zOrOGZE8n632O123mPKZcuLAK9eEPWYgM6bcG7NC9VuS6UZtsBbQiWG1p9Td AgEGdtZOlaV87+k/4HjhZAmA/zSjy4qoeliq+2upHeKaAgvbQNX+iz4q2Hzz6CBz+J6m AkCSO0aMYFRosngzjLv/JKANN8djAm6ESimFkUdeJDYuKva8Lm1SswzjdSkkxTE+no+z aYVw== X-Received: by 10.50.120.66 with SMTP id la2mr6716141igb.9.1369090709142; Mon, 20 May 2013 15:58:29 -0700 (PDT) Received: from [192.168.2.6] (c-68-42-33-87.hsd1.nm.comcast.net. [68.42.33.87]) by mx.google.com with ESMTPSA id ct8sm13801729igb.7.2013.05.20.15.58.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 15:58:27 -0700 (PDT) Message-ID: <519AAA8A.3090100@gmail.com> Date: Mon, 20 May 2013 16:58:18 -0600 From: Jesse User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3; Emacs crashes in c-mode if I yank certain text then undo with M-/. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 20 May 2013 19:24:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Starting from emacs -Q: M-x c-mode C-x h Type the text "#include " 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 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: ... 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 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) From debbugs-submit-bounces@debbugs.gnu.org Mon May 20 22:13:15 2013 Received: (at 14428) by debbugs.gnu.org; 21 May 2013 02:13:15 +0000 Received: from localhost ([127.0.0.1]:53698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uec4d-00037y-4i for submit@debbugs.gnu.org; Mon, 20 May 2013 22:13:14 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:33017 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uec4Z-00037Z-7i for 14428@debbugs.gnu.org; Mon, 20 May 2013 22:13:08 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Uec3x-0004Ew-SH; Mon, 20 May 2013 22:12:29 -0400 From: Glenn Morris To: Jesse Subject: Re: bug#14428: 24.3; Emacs crashes in c-mode if I yank certain text then undo with M-/. References: <519AAA8A.3090100@gmail.com> X-Spook: Osama Etacs Mafia FIPS140 Comirex Rand Corporation X-Ran: G+dHi",sI9+:V(iC<{@x11[l~*H8k&-fuI(Ao6LZV?nMMqf*TLjr~sG9F)N X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 20 May 2013 22:12:29 -0400 In-Reply-To: <519AAA8A.3090100@gmail.com> (Jesse's message of "Mon, 20 May 2013 16:58:18 -0600") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: 14428 Cc: 14428@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -8.0 (--------) 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? From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 19 13:27:04 2013 Received: (at control) by debbugs.gnu.org; 19 Jun 2013 17:27:04 +0000 Received: from localhost ([127.0.0.1]:56111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpM9w-0006UC-1F for submit@debbugs.gnu.org; Wed, 19 Jun 2013 13:27:04 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:56492 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpM9v-0006U6-4L for control@debbugs.gnu.org; Wed, 19 Jun 2013 13:27:03 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UpM9u-0005RO-Hj for control@debbugs.gnu.org; Wed, 19 Jun 2013 13:27:02 -0400 Date: Wed, 19 Jun 2013 13:27:02 -0400 Message-Id: Subject: control message for bug 14428 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) close 14428 24.4 From unknown Thu Sep 11 06:31:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 18 Jul 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator