From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Kraus Newsgroups: gmane.emacs.bugs Subject: bug#28430: 26.0.50; Segfault on unexpected connection loss Date: Wed, 13 Sep 2017 17:12:14 +0800 Message-ID: <87h8w7hsi9.fsf@matrix> References: <87h8w8qxrz.fsf@matrix> <83d16wq7vl.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1505294272 32349 195.159.176.226 (13 Sep 2017 09:17:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2017 09:17:52 +0000 (UTC) Cc: 28430@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 13 11:17:48 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 1ds3nn-0008HK-1i for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Sep 2017 11:17:47 +0200 Original-Received: from localhost ([::1]:41117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ds3nu-0005iK-8a for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Sep 2017 05:17:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ds3kF-0002Tk-6T for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 05:14:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ds3kA-0006QX-6l for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 05:14:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56686) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ds3kA-0006QF-3w for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 05:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ds3k9-0005jX-QD for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2017 05:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Kraus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2017 09:14:01 +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.150529398821972 (code B ref 28430); Wed, 13 Sep 2017 09:14:01 +0000 Original-Received: (at 28430) by debbugs.gnu.org; 13 Sep 2017 09:13:08 +0000 Original-Received: from localhost ([127.0.0.1]:37132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ds3jH-0005iK-5L for submit@debbugs.gnu.org; Wed, 13 Sep 2017 05:13:07 -0400 Original-Received: from mx2.mailbox.org ([80.241.60.215]:42298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ds3jF-0005hm-6M for 28430@debbugs.gnu.org; Wed, 13 Sep 2017 05:13:05 -0400 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 1E8A948754; Wed, 13 Sep 2017 11:12:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id I7RtoLITDMij; Wed, 13 Sep 2017 11:12:53 +0200 (CEST) In-reply-to: <83d16wq7vl.fsf@gnu.org> 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:136861 Archived-At: --=-=-= Content-Type: text/plain Hi! Eli Zaretskii writes: >> 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? --cut-- #0 0x00007ffff017bc40 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=..., context=0x798c6c "error in process sentinel: ") at keyboard.c:999 #4 0x00000000006c5edd in exec_sentinel_error_handler (error_val=...) at process.c:7105 #5 0x0000000000657d51 in internal_condition_case_1 (bfun=0x6c2b0d , arg=..., handlers=..., hfun=0x6c5ebe ) at eval.c:1352 #6 0x00000000006c609c in exec_sentinel (proc=..., reason=...) at process.c:7158 #7 0x00000000006c6303 in status_notify (deleting_process=0x0, wait_proc=0x0) at process.c:7260 #8 0x00000000006c1353 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=..., wait_proc=0x0, just_wait_proc=0) at process.c:5199 #9 0x00000000004285e6 in sit_for (timeout=..., reading=true, display_option=1) at dispnew.c:5763 #10 0x00000000005a1080 in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffe2a1, end_time=0x0) at keyboard.c:2724 #11 0x00000000005b0ffd in read_key_sequence (keybuf=0x7fffffffe440, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9151 #12 0x000000000059d045 in command_loop_1 () at keyboard.c:1372 #13 0x0000000000657c85 in internal_condition_case (bfun=0x59cbe3 , handlers=..., hfun=0x59c1c7 ) at eval.c:1332 #14 0x000000000059c7bd in command_loop_2 (ignore=...) at keyboard.c:1114 #15 0x000000000065712e in internal_catch (tag=..., func=0x59c790 , arg=...) at eval.c:1097 #16 0x000000000059c75b in command_loop () at keyboard.c:1093 #17 0x000000000059bcb1 in recursive_edit_1 () at keyboard.c:699 #18 0x000000000059bea6 in Frecursive_edit () at keyboard.c:770 #19 0x000000000059988d in main (argc=2, argv=0x7fffffffe898) at emacs.c:1709 --cut-- Let me know if you need more info or I can do something else to help. Thanks, Daniel --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEcQ53mjqaZIoGsbLHwcjWP4hO+ckFAlm49m4ACgkQwcjWP4hO +cm0qwf/SCAaVa6TfBWzhRsfSzdOXavSNWhjmfNz03ZcLYJtNf0+Xu6kdQTo5WhZ FhwW9LiEngOvnC9/xkdKDuLFV9Cg+dabIw33sC2g9in9tfYtdc5HfBgaQ/zFyQcT 5nhnmQ2tjM1eZhSlm+RGXB096GuBVQLu40ytPG7tmoahpQckH/KlIzZHUBOM4p+n i8E+uPRvsuv9320QyJl8L6c7ZR/7zI/ivUSV3Xot10Yoc+ZphWoScvTxEI/6TSLL b1dwC3mvjT4MVSg8mtuekmtNjt4hrSEYzmf6fqn7TYjKnAnuuMASluXicBCuJl7R s3H21ofe4IiqRvl9roNK4DuoJ3ZXhQ== =Q/zX -----END PGP SIGNATURE----- --=-=-=--