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: Tue, 12 Sep 2017 18:00:46 +0300 Message-ID: <83d16wq7vl.fsf@gnu.org> References: <87h8w8qxrz.fsf@matrix> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505228581 24382 195.159.176.226 (12 Sep 2017 15:03:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2017 15:03:01 +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 Tue Sep 12 17:02:44 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 1drmhO-000487-Dw for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Sep 2017 17:02:02 +0200 Original-Received: from localhost ([::1]:36417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drmhV-0002vo-Su for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Sep 2017 11:02:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drmgW-0000fy-8Q for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2017 11:01:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drmgQ-0002P8-PL for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2017 11:01:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1drmgQ-0002P1-N8 for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2017 11:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1drmgQ-0002lh-Fu for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2017 11:01: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: Tue, 12 Sep 2017 15:01: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.150522846010626 (code B ref 28430); Tue, 12 Sep 2017 15:01:02 +0000 Original-Received: (at 28430) by debbugs.gnu.org; 12 Sep 2017 15:01:00 +0000 Original-Received: from localhost ([127.0.0.1]:35992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drmgN-0002lK-OZ for submit@debbugs.gnu.org; Tue, 12 Sep 2017 11:00:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drmgJ-0002l4-9P for 28430@debbugs.gnu.org; Tue, 12 Sep 2017 11:00:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drmgB-0002EW-LI for 28430@debbugs.gnu.org; Tue, 12 Sep 2017 11:00:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drmgB-0002EM-Il; Tue, 12 Sep 2017 11:00:47 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1993 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1drmgB-0004ci-35; Tue, 12 Sep 2017 11:00:47 -0400 In-reply-to: <87h8w8qxrz.fsf@matrix> (message from Daniel Kraus on Tue, 12 Sep 2017 13:41:20 +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:136837 Archived-At: > From: Daniel Kraus > Date: Tue, 12 Sep 2017 13:41:20 +0800 > > This bug happens with restclient mode but I suspect it happens > for other packages as well?! > > To reproduce: > > Start in a process to listen on a port, e.g. > #+BEGIN_SRC sh > nc -l -p 6543 > #+END_SRC > > Start emacs: `emacs --debug-init -Q` > > Load restclient: > #+BEGIN_SRC emacs-lisp > (add-to-list 'load-path "/home/daniel/.emacs.d/elpa/restclient-20170727.825") > (require 'restclient) > #+END_SRC > Open new buffer (e.g. 'test.rest') and `M-x restclient-mode`. > Type: > `GET http://127.0.0.1:6543/` > and then press `C-c C-c` > > Switch to the netcat window and Ctrl-C to break up the connection. > Emacs segfaults: > #+BEGIN_QUOTE > Fatal error 11: Segmentation fault Can you please run this under GDB, and when Emacs segfaults, produce the C backtrace and post it here? Thanks.