From unknown Wed Jun 18 23:12:22 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#12175 <12175@debbugs.gnu.org> To: bug#12175 <12175@debbugs.gnu.org> Subject: Status: 24.1; segv in -batch delete-windows-on Reply-To: bug#12175 <12175@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:12:22 +0000 retitle 12175 24.1; segv in -batch delete-windows-on reassign 12175 emacs submitter 12175 Kevin Ryde severity 12175 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 19:05:15 2012 Received: (at submit) by debbugs.gnu.org; 10 Aug 2012 23:05:15 +0000 Received: from localhost ([127.0.0.1]:47709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzyGZ-0003KU-6U for submit@debbugs.gnu.org; Fri, 10 Aug 2012 19:05:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59050) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzyGV-0003KK-VD for submit@debbugs.gnu.org; Fri, 10 Aug 2012 19:05:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Szy8S-0003so-Or for submit@debbugs.gnu.org; Fri, 10 Aug 2012 18:56:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:59680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szy8S-0003sk-Lk for submit@debbugs.gnu.org; Fri, 10 Aug 2012 18:56:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szy8Q-0005ZS-1e for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 18:56:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Szy8O-0003sM-C0 for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 18:56:49 -0400 Received: from mailout1-16.pacific.net.au ([125.255.80.135]:45958 helo=mailout3-syd3.pacific.net.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Szy8N-0003ri-Pu for bug-gnu-emacs@gnu.org; Fri, 10 Aug 2012 18:56:48 -0400 Received: from mailproxy4-syd3.pacific.net.au (mailproxy4-syd3.pacific.net.au [61.8.2.162]) by mailout3-syd3.pacific.net.au (Postfix) with ESMTP id E56F74CBA2D for ; Sat, 11 Aug 2012 08:56:07 +1000 (EST) Received: from blah.blah (unknown [203.26.175.158]) by mailproxy4-syd3.pacific.net.au (Postfix) with ESMTP id C16B22C073 for ; Sat, 11 Aug 2012 08:56:03 +1000 (EST) Received: from gg by blah.blah with local (Exim 4.72) (envelope-from ) id 1Szy7h-0006KB-RH for bug-gnu-emacs@gnu.org; Sat, 11 Aug 2012 08:56:05 +1000 From: Kevin Ryde To: bug-gnu-emacs@gnu.org Subject: 24.1; segv in -batch delete-windows-on Date: Sat, 11 Aug 2012 08:56:05 +1000 Message-ID: <87wr16s6ey.fsf@blah.blah> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit 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: -6.9 (------) --=-=-= Content-Type: text/plain With the foo.el below, running emacs -Q -batch -l foo.el gets a segv. Backtrace from a "-O0 -g" build below. I don't expect window handling stuff to actually show anything in -batch mode, but I hoped it wouldn't segfault. (Emacs 23 doesn't, didn't.) I see the backtrace says something "MOUSE_HL_INFO". The build is with gpm and with the gpm server when running, but I don't know if it ends up being used in -batch. --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=foo.el Content-Transfer-Encoding: quoted-printable (let ((buf (get-buffer-create "foo"))) (switch-to-buffer-other-window buf) (delete-windows-on buf)) --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=gdb.txt [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x080ad584 in Fdelete_window_internal (window=139620885) at window.c:3912 3912 hlinfo = MOUSE_HL_INFO (XFRAME (w->frame)); #0 0x080ad584 in Fdelete_window_internal (window=139620885) at window.c:3912 #1 0x081a91d0 in Ffuncall (nargs=2, args=0xbfffe150) at eval.c:3002 #2 0x081df575 in exec_byte_code (bytestr=, vector=136925605, maxdepth=32, args_template=138793194, nargs=0, args=) at bytecode.c:785 #3 0x081e0278 in Fbyte_code (bytestr=136925577, vector=136925605, maxdepth=32) at bytecode.c:423 #4 0x081a867c in eval_sub (form=136925566) at eval.c:2356 #5 0x081a74a9 in internal_catch (tag=139054378, func=0x81a81f0 , arg=136925566) at eval.c:1272 #6 0x081decd9 in exec_byte_code (bytestr=, vector=136925501, maxdepth=12, args_template=138793194, nargs=0, args=) at bytecode.c:966 #7 0x081a8cbf in funcall_lambda (fun=136925453, nargs=1, arg_vector=0xbfffe544) at eval.c:3233 #8 0x081a8feb in Ffuncall (nargs=2, args=0xbfffe540) at eval.c:3063 #9 0x081df575 in exec_byte_code (bytestr=, vector=136928861, maxdepth=20, args_template=138793194, nargs=0, args=) at bytecode.c:785 #10 0x081a8cbf in funcall_lambda (fun=136928797, nargs=1, arg_vector=0xbfffe650) at eval.c:3233 #11 0x081a8147 in apply_lambda (fun=136928797, args=) at eval.c:3110 #12 0x081a83e2 in eval_sub (form=142172510) at eval.c:2414 #13 0x081a8a55 in Fprogn (args=) at eval.c:364 #14 0x081aba98 in Flet (args=142172542) at eval.c:1120 #15 0x081a87ff in eval_sub (form=142172590) at eval.c:2298 #16 0x081cb6db in readevalloop (readcharfun=140458429, stream=0x0, sourcename=139973937, printflag=0, unibyte=138793194, readfun=138793194, start=138793194, end=138793194) at lread.c:1837 #17 0x081cbe6e in Feval_buffer (buffer=140458429, printflag=138793194, filename=139911689, unibyte=138793194, do_allow_print=138793218) at lread.c:1898 #18 0x081a9166 in Ffuncall (nargs=6, args=0xbfffe9d0) at eval.c:3018 #19 0x081df575 in exec_byte_code (bytestr=, vector=136860189, maxdepth=24, args_template=138793194, nargs=0, args=) at bytecode.c:785 #20 0x081a8cbf in funcall_lambda (fun=136860101, nargs=4, arg_vector=0xbfffeb70) at eval.c:3233 #21 0x081a8feb in Ffuncall (nargs=5, args=0xbfffeb6c) at eval.c:3063 #22 0x081a944f in call4 (fn=138960650, arg1=139911689, arg2=139911689, arg3=138793194, arg4=138793218) at eval.c:2820 #23 0x081cc704 in Fload (file=139909641, noerror=138793194, nomessage=138793218, nosuffix=138793194, must_suffix=138793194) at lread.c:1255 #24 0x081a9166 in Ffuncall (nargs=4, args=0xbfffedc0) at eval.c:3018 #25 0x081df575 in exec_byte_code (bytestr=, vector=137055485, maxdepth=88, args_template=1028, nargs=1, args=) at bytecode.c:785 #26 0x081a8d1c in funcall_lambda (fun=137055437, nargs=1, arg_vector=0xbfffef54) at eval.c:3167 #27 0x081a8feb in Ffuncall (nargs=2, args=0xbfffef50) at eval.c:3063 #28 0x081df575 in exec_byte_code (bytestr=, vector=137042893, maxdepth=72, args_template=0, nargs=0, args=) at bytecode.c:785 #29 0x081a8d1c in funcall_lambda (fun=137042845, nargs=0, arg_vector=0xbffff118) at eval.c:3167 #30 0x081a8feb in Ffuncall (nargs=1, args=0xbffff114) at eval.c:3063 #31 0x081df575 in exec_byte_code (bytestr=, vector=137040085, maxdepth=32, args_template=0, nargs=0, args=) at bytecode.c:785 #32 0x081a8d1c in funcall_lambda (fun=137040037, nargs=0, arg_vector=0xbffff220) at eval.c:3167 #33 0x081a8147 in apply_lambda (fun=137040037, args=) at eval.c:3110 #34 0x081a83e2 in eval_sub (form=138997174) at eval.c:2414 #35 0x081ab053 in Feval (form=138997174, lexical=138793194) at eval.c:2204 #36 0x0813a499 in top_level_2 () at keyboard.c:1169 #37 0x081a758d in internal_condition_case (bfun=0x813a480 , handlers=138824274, hfun=0x813bf00 ) at eval.c:1515 #38 0x0813ac95 in top_level_1 (ignore=138793194) at keyboard.c:1177 #39 0x081a74a9 in internal_catch (tag=138822226, func=0x813ac30 , arg=138793194) at eval.c:1272 #40 0x0813ba1c in command_loop () at keyboard.c:1132 #41 recursive_edit_1 () at keyboard.c:759 #42 0x0813bd2e in Frecursive_edit () at keyboard.c:823 #43 0x08057bb0 in main (argc=6, argv=0xd0ea0826) at emacs.c:1715 Lisp Backtrace: "delete-window-internal" (0xbfffe154) "byte-code" (0xbfffe264) "delete-window" (0xbfffe544) "delete-windows-on" (0xbfffe650) "let" (0xbfffe85c) "eval-buffer" (0xbfffe9d4) "load-with-code-conversion" (0xbfffeb70) "load" (0xbfffedc4) "command-line-1" (0xbfffef54) "command-line" (0xbffff118) "normal-top-level" (0xbffff220) --=-=-= Content-Type: text/plain In GNU Emacs 24.1.1 (i486-pc-linux-gnu, GTK+ Version 2.24.8) of 2012-08-07 on blah.blah, modified by Debian Configured using: `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' 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_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 10 19:12:10 2012 Received: (at 12175) by debbugs.gnu.org; 10 Aug 2012 23:12:10 +0000 Received: from localhost ([127.0.0.1]:47723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzyNG-0003Ua-A7 for submit@debbugs.gnu.org; Fri, 10 Aug 2012 19:12:10 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:34031) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SzyNE-0003UR-0E for 12175@debbugs.gnu.org; Fri, 10 Aug 2012 19:12:08 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SzyFB-0003MJ-4Y; Fri, 10 Aug 2012 19:03:49 -0400 From: Glenn Morris To: Kevin Ryde Subject: Re: bug#12175: 24.1; segv in -batch delete-windows-on References: <87wr16s6ey.fsf@blah.blah> X-Spook: pink noise TWA DRM terrorism AGT. AMME codes Fortezza X-Ran: /Uf{(\&7T$!.X)`i>e,$DOln1*D5FnRuxt=8X,Mflo(/BUVd(TQ'TO.a',V]9l_@+-afG: X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 10 Aug 2012 19:03:48 -0400 In-Reply-To: <87wr16s6ey.fsf@blah.blah> (Kevin Ryde's message of "Sat, 11 Aug 2012 08:56:05 +1000") Message-ID: <5lwr16wdrf.fsf@fencepost.gnu.org> 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.9 (------) X-Debbugs-Envelope-To: 12175 Cc: 12175@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: -6.9 (------) Kevin Ryde wrote: > In GNU Emacs 24.1.1 (i486-pc-linux-gnu, GTK+ Version 2.24.8) > of 2012-08-07 on blah.blah, modified by Debian Seems already fixed in current trunk. Maybe http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11984 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 12 22:02:42 2012 Received: (at control) by debbugs.gnu.org; 13 Aug 2012 02:02:42 +0000 Received: from localhost ([127.0.0.1]:52197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0jzO-0003Xp-BX for submit@debbugs.gnu.org; Sun, 12 Aug 2012 22:02:42 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:40892) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0jzM-0003Xh-NG for control@debbugs.gnu.org; Sun, 12 Aug 2012 22:02:40 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1T0jr9-0005ZV-3H for control@debbugs.gnu.org; Sun, 12 Aug 2012 21:54:11 -0400 Date: Sun, 12 Aug 2012 21:54:11 -0400 Message-Id: Subject: control message for bug 12175 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control 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: -6.9 (------) forcemerge 11984 12175 From unknown Wed Jun 18 23:12:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 11 Sep 2012 11:24:05 +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