From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28430: 26.0.50; Segfault on unexpected connection loss Date: Fri, 15 Sep 2017 16:20:11 +0300 Message-ID: <8360ckm73o.fsf@gnu.org> References: <87h8w8qxrz.fsf@matrix> <83d16wq7vl.fsf@gnu.org> <87h8w7hsi9.fsf@matrix> <83tw06ocm1.fsf@gnu.org> <87a81ygglf.fsf@matrix> <83a81yngit.fsf@gnu.org> <87377p514h.fsf@matrix> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505481971 11472 195.159.176.226 (15 Sep 2017 13:26:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Sep 2017 13:26:11 +0000 (UTC) Cc: 28430@debbugs.gnu.org To: Daniel Kraus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 15 15:26:03 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsqd8-0002fz-49 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Sep 2017 15:26:02 +0200 Original-Received: from localhost ([::1]:53406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsqdE-0002xj-0J for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Sep 2017 09:26:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsqZK-0008A3-TE for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2017 09:22:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsqZG-0007BG-Uj for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2017 09:22:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsqZG-0007B6-Qx for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2017 09:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dsqZG-0002qq-HT for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2017 09:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Sep 2017 13:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28430 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28430-submit@debbugs.gnu.org id=B28430.150548166410892 (code B ref 28430); Fri, 15 Sep 2017 13:22:02 +0000 Original-Received: (at 28430) by debbugs.gnu.org; 15 Sep 2017 13:21:04 +0000 Original-Received: from localhost ([127.0.0.1]:41991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsqYK-0002pc-Hu for submit@debbugs.gnu.org; Fri, 15 Sep 2017 09:21:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsqYJ-0002op-CA for 28430@debbugs.gnu.org; Fri, 15 Sep 2017 09:21:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsqYA-0006V2-Ob for 28430@debbugs.gnu.org; Fri, 15 Sep 2017 09:20:58 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsqYA-0006Uo-Jv; Fri, 15 Sep 2017 09:20:54 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3373 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dsqY7-0007pQ-Qn; Fri, 15 Sep 2017 09:20:54 -0400 In-reply-to: <87377p514h.fsf@matrix> (message from Daniel Kraus on Thu, 14 Sep 2017 12:56:46 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136991 Archived-At: > From: Daniel Kraus > Cc: 28430@debbugs.gnu.org > Date: Thu, 14 Sep 2017 12:56:46 +0800 > > >> > (gdb) frame 4 > >> > (gdb) pp error_val > >> > > >> > After "frame 4", you should be in this function: > >> > > >> > #4 0x00000000006c5edd in exec_sentinel_error_handler (error_val=...) at process.c:7105 > >> > > >> > If not, adjust the argument 4 as needed. > > > > Sorry, you need to source .gdbinit file for "pp" to work. > > Ups, sorry. Thought emacs would do that for me. > > Here (with backtrace again just to be sure since error_val seems empty): > > --cut-- > > (gdb) r > Starting program: /home/daniel/repos/emacs-git/src/emacs-git/src/bootstrap-emacs -Q > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/usr/lib/libthread_db.so.1". > [New Thread 0x7fffe5693700 (LWP 13037)] > [New Thread 0x7fffdffff700 (LWP 13038)] > [New Thread 0x7fffdf670700 (LWP 13039)] > [New Thread 0x7fffdea4ca40 (LWP 13395)] > [Thread 0x7fffdea4ca40 (LWP 13395) exited] > > Thread 1 "bootstrap-emacs" received signal SIGABRT, Aborted. > 0x00007ffff017ac40 in raise () from /usr/lib/libpthread.so.0 > (gdb) source .gdbinit > SIGINT is used by the debugger. > Are you sure you want to change it? (y or n) [answered Y; input not from terminal] > DISPLAY = :0 > TERM = dumb > Breakpoint 1 at 0x5979ca: file emacs.c, line 363. > Temporary breakpoint 2 at 0x5c3fe7: file sysdep.c, line 1025. > (gdb) frame 4 > #4 0x00000000006c5edd in exec_sentinel_error_handler (error_val=XIL(0)) at process.c:7105 > 7105 cmd_error_internal (error_val, "error in process sentinel: "); > (gdb) pp error_val > (gdb) bt > #0 0x00007ffff017ac40 in raise () at /usr/lib/libpthread.so.0 > #1 0x0000000000597ab9 in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:394 > #2 0x0000000000632a74 in die (msg=0x778761 "CONSP (data)", file=0x7786d1 "keyboard.c", line=999) at alloc.c:7419 > #3 0x000000000059c3e1 in cmd_error_internal (data=XIL(0), context=0x798c6c "error in process sentinel: ") at keyboard.c:999 > #4 0x00000000006c5edd in exec_sentinel_error_handler (error_val=XIL(0)) at process.c:7105 Thanks. I think I fixed this, please try the current master.