From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22174: 24.4; emacs --daemon crashes when ssh is disconnected. I am using lucid x toolkit. Date: Wed, 16 Dec 2015 21:36:32 +0200 Message-ID: <83r3imyym7.fsf@gnu.org> References: <83k2of3e82.fsf@gnu.org> <834mfi1fn7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1450294647 1619 80.91.229.3 (16 Dec 2015 19:37:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2015 19:37:27 +0000 (UTC) Cc: 22174@debbugs.gnu.org To: Cody Addison Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 16 20:37:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a9Hst-0001Ue-MP for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 20:37:11 +0100 Original-Received: from localhost ([::1]:49003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Hst-0005dJ-3j for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Dec 2015 14:37:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Hsp-0005dE-LC for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 14:37:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Hsk-0004ib-K4 for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 14:37:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Hsk-0004iQ-G7 for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 14:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a9Hsk-00053M-1r for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2015 14:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Dec 2015 19:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22174 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22174-submit@debbugs.gnu.org id=B22174.145029458519377 (code B ref 22174); Wed, 16 Dec 2015 19:37:01 +0000 Original-Received: (at 22174) by debbugs.gnu.org; 16 Dec 2015 19:36:25 +0000 Original-Received: from localhost ([127.0.0.1]:53849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9Hs9-00052T-HM for submit@debbugs.gnu.org; Wed, 16 Dec 2015 14:36:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33483) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a9Hs8-00052D-AL for 22174@debbugs.gnu.org; Wed, 16 Dec 2015 14:36:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Hs0-0004YC-0L for 22174@debbugs.gnu.org; Wed, 16 Dec 2015 14:36:19 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Hrz-0004Y8-T4; Wed, 16 Dec 2015 14:36:15 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4997 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a9Hry-00028o-LJ; Wed, 16 Dec 2015 14:36:15 -0500 In-reply-to: (message from Cody Addison on Wed, 16 Dec 2015 12:59:49 -0600) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110063 Archived-At: [Please keep the bug address on the CC list.] > Date: Wed, 16 Dec 2015 12:59:49 -0600 > From: Cody Addison > > Here is the result. I am including the backtrace of all 3 threads. The SIGTERM > comes when I Ctrl-C the ssh command. I didn't expect that to pass through to > the emacs daemon. > > (gdb) continue > Continuing. > [New Thread 0x7f789b17d700 (LWP 52670)] > [New Thread 0x7f789a97c700 (LWP 52765)] > > Program received signal SIGTERM, Terminated. > [Switching to Thread 0x7f789b17d700 (LWP 52670)] > > backtrace thread 1: > > (gdb) thread 1 > [Switching to thread 1 (Thread 0x7f78a10fa880 (LWP 26190))] > #0 0x00007f789e045e79 in __pselect (nfds=6, readfds=0x7fff4c537f40, > writefds=0x7fff4c537fc0, exceptfds=0x0, timeout=, > sigmask=) at ../sysdeps/unix/sysv/linux/pselect.c:77 > 77 ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory. > (gdb) backtrace > #0 0x00007f789e045e79 in __pselect (nfds=6, readfds=0x7fff4c537f40, > writefds=0x7fff4c537fc0, exceptfds=0x0, timeout=, > sigmask=) at ../sysdeps/unix/sysv/linux/pselect.c:77 > #1 0x000000000065505b in xg_select (fds_lim=6, rfds=0x7fff4c538550, > wfds=0x7fff4c5385d0, efds=0x0, timeout=0x7fff4c538530, sigmask=0x0) > at ../../emacs-24.4/src/xgselect.c:105 > #2 0x000000000061b0c7 in wait_reading_process_output (time_limit=0, nsecs=0, > read_kbd=-1, do_display=true, wait_for_cell=12752882, wait_proc=0x0, > just_wait_proc=0) at ../../emacs-24.4/src/process.c:4606 > #3 0x000000000053c869 in kbd_buffer_get_event (kbp=0x7fff4c5388b8, > used_mouse_menu=0x7fff4c538de9, end_time=0x0) > at ../../emacs-24.4/src/keyboard.c:3906 > #4 0x00000000005390da in read_event_from_main_queue (end_time=0x0, > local_getcjmp=0x7fff4c538bf0, used_mouse_menu=0x7fff4c538de9) > at ../../emacs-24.4/src/keyboard.c:2246 > #5 0x000000000053933e in read_decoded_event_from_main_queue (end_time=0x0, > local_getcjmp=0x7fff4c538bf0, prev_event=12752882, > used_mouse_menu=0x7fff4c538de9) at ../../emacs-24.4/src/keyboard.c:2309 > #6 0x000000000053a835 in read_char (commandflag=1, map=36984518, > prev_event=12752882, used_mouse_menu=0x7fff4c538de9, end_time=0x0) > at ../../emacs-24.4/src/keyboard.c:2895 > #7 0x0000000000546170 in read_key_sequence (keybuf=0x7fff4c538fd0, > bufsize=30, prompt=12752882, dont_downcase_last=false, > can_return_switch_frame=true, fix_current_buffer=true, > prevent_redisplay=false) at ../../emacs-24.4/src/keyboard.c:9088 > #8 0x00000000005375c1 in command_loop_1 () > at ../../emacs-24.4/src/keyboard.c:1452 > #9 0x00000000005c970b in internal_condition_case ( > bfun=0x5371f9 , handlers=12804482, > hfun=0x536ae8 ) at ../../emacs-24.4/src/eval.c:1348 > #10 0x0000000000536f53 in command_loop_2 (ignore=12752882) > at ../../emacs-24.4/src/keyboard.c:1177 > #11 0x00000000005c8f1d in internal_catch (tag=12800418, > func=0x536f2d , arg=12752882) > at ../../emacs-24.4/src/eval.c:1112 > #12 0x0000000000536f01 in command_loop () > at ../../emacs-24.4/src/keyboard.c:1156 > #13 0x00000000005366e3 in recursive_edit_1 () > at ../../emacs-24.4/src/keyboard.c:777 > #14 0x0000000000536850 in Frecursive_edit () > at ../../emacs-24.4/src/keyboard.c:848 > #15 0x0000000000534867 in main (argc=2, argv=0x7fff4c5393d8) > at ../../emacs-24.4/src/emacs.c:1646 > > backtrace thread 2: > > (gdb) thread 2 > [Switching to thread 2 (Thread 0x7f789c1a5700 (LWP 26191))] > #0 0x00007f789e04112d in poll () at ../sysdeps/unix/syscall-template.S:81 > 81 ../sysdeps/unix/syscall-template.S: No such file or directory. > (gdb) backtrace > #0 0x00007f789e04112d in poll () at ../sysdeps/unix/syscall-template.S:81 > #1 0x00007f789e57ffe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #2 0x00007f789e5800ec in g_main_context_iteration () > from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #3 0x00007f789e580129 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #4 0x00007f789e5a4f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #5 0x00007f789e321182 in start_thread (arg=0x7f789c1a5700) > at pthread_create.c:312 > #6 0x00007f789e04e47d in clone () > at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 > > backtrace thread 3: > > 0x00007f789e32920b in raise (sig=15) > at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37 > 37 ../nptl/sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory. > (gdb) backtrace > #0 0x00007f789e32920b in raise (sig=15) > at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37 > #1 0x00007f789ced5adc in ffi_call_unix64 () > from /usr/lib/x86_64-linux-gnu/libffi.so.6 > #2 0x00007f789ced540c in ffi_call () > from /usr/lib/x86_64-linux-gnu/libffi.so.6 > #3 0x00007f789e850055 in g_cclosure_marshal_generic_va () > from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 > #4 0x00007f789e84f5e7 in ?? () > from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 > #5 0x00007f789e868088 in g_signal_emit_valist () > from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 > #6 0x00007f789e868ce2 in g_signal_emit () > from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 > #7 0x00007f789eb539d5 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 > #8 0x00007f789e57fce5 in g_main_context_dispatch () > from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #9 0x00007f789e580048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #10 0x00007f789e5800ec in g_main_context_iteration () > from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #11 0x00007f789b1851ad in ?? () > from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so > #12 0x00007f789e5a4f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 > #13 0x00007f789e321182 in start_thread (arg=0x7f789b17d700) > at pthread_create.c:312 > #14 0x00007f789e04e47d in clone () > at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 Looks like thread 3, which runs some Glib code, deliberately killed the entire process by raising SIGTERM.