From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#35003: 27.0.50; SIGTERM in dconf worker Date: Tue, 26 Mar 2019 10:39:29 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="259942"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 35003@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 26 15:40:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8nFP-0015Vk-30 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2019 15:40:15 +0100 Original-Received: from localhost ([127.0.0.1]:32954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8nFO-0002fA-1m for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2019 10:40:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8nFE-0002el-HR for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 10:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8nFD-0001y5-06 for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 10:40:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46816) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8nFC-0001xx-Pm for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 10:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h8nFC-0005DV-Io for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Mar 2019 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35003 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155361118620025 (code B ref -1); Tue, 26 Mar 2019 14:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Mar 2019 14:39:46 +0000 Original-Received: from localhost ([127.0.0.1]:60360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8nEv-0005Cv-Jn for submit@debbugs.gnu.org; Tue, 26 Mar 2019 10:39:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8nEt-0005CW-Nw for submit@debbugs.gnu.org; Tue, 26 Mar 2019 10:39:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8nEo-0001s1-AH for submit@debbugs.gnu.org; Tue, 26 Mar 2019 10:39:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8nEm-0002cm-JK for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 10:39:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8nEl-0001r2-37 for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 10:39:36 -0400 Original-Received: from taper.sei.cmu.edu ([147.72.252.16]:49464) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8nEk-0001qN-Oc for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 10:39:35 -0400 Original-Received: from korb.sei.cmu.edu (korb.sei.cmu.edu [10.64.21.30]) by taper.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id x2QEdXGe019652 for ; Tue, 26 Mar 2019 10:39:33 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 taper.sei.cmu.edu x2QEdXGe019652 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1553611173; bh=5fNeaFp/wBMrec1ld2suO3YgmqMdpFLVtehP68Sn3yM=; h=From:To:Subject:Date:From; b=R58R2oK6YFl3eNBQ0fEAAxmHGxk7fC5xW4hUt5OclkK69X8XroULtpCk9JPpePZpR +KP3gU9YL+3+niCTgxeaYgw0BXhStcnU05MvTYUXAQxEpeac+CXpK2ucD3u/9sjQE6 NnEZbnmxgSq3QgUlblZNbl4JKJLxxPZCfZGoAhOs= Original-Received: from lx-chumsalmon.ad.sei.cmu.edu (lx-chumsalmon.ad.sei.cmu.edu [10.64.51.248]) by korb.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id x2QEdT7V027369 for ; Tue, 26 Mar 2019 10:39:29 -0400 Original-Received: from lx-chumsalmon.ad.sei.cmu.edu (localhost [127.0.0.1]) by lx-chumsalmon.ad.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id x2QEdTFr024251 for ; Tue, 26 Mar 2019 10:39:29 -0400 Original-Received: (from mwd@localhost) by lx-chumsalmon.ad.sei.cmu.edu (8.14.7/8.14.7) id x2QEdTbf024248; Tue, 26 Mar 2019 10:39:29 -0400 X-Authentication-Warning: lx-chumsalmon.ad.sei.cmu.edu: mwd set sender to mwd@cert.org using -f X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 209.51.188.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:156810 Archived-At: I work on a system that runs for months that I reach though a system that reboots regularly. On the long-running system, I run emacs --daemon, which I then connect to with emacsclient. When the system in between my box and the long-running box reboots, I just reconnect and re-attach to my session. But at some point that stopped working, as the emacs daemon dies at some point during the involuntary detachment in the dconf worker thread. I finally managed to catch this in a gdb session running in tmux running emacs with --fg-daemon. Thread 3 "dconf worker" received signal SIGTERM, Terminated. [Switching to Thread 0x7fffea131700 (LWP 42577)] 0x00007ffff454854b in raise () from /lib64/libpthread.so.0 (gdb) show args Argument list to give program being debugged when it is started is "--fg-daemon" . (gdb) info thread Id Target Id Frame 1 Thread 0x7ffff7fca880 (LWP 42490) "emacs-27.0.50" 0x00007ffff38cdcd9 in p select () from /lib64/libc.so.6 2 Thread 0x7fffead4a700 (LWP 42492) "gmain" 0x00007ffff38cbe9d in p oll () from /lib64/libc.so.6 * 3 Thread 0x7fffea131700 (LWP 42577) "dconf worker" 0x00007ffff454854b in r aise () from /lib64/libpthread.so.0 4 Thread 0x7fffe9930700 (LWP 42583) "gdbus" 0x00007ffff38cbe9d in p oll () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff454854b in raise () at /lib64/libpthread.so.0 #1 0x00007ffff2da2dcc in ffi_call_unix64 () at /lib64/libffi.so.6 #2 0x00007ffff2da26f5 in ffi_call () at /lib64/libffi.so.6 #3 0x00007ffff5183675 in g_cclosure_marshal_generic_va () at /lib64/libgobject-2.0.so.0 #4 0x00007ffff5182c07 in _g_closure_invoke_va () at /lib64/libgobject-2.0.so.0 #5 0x00007ffff519c757 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0 #6 0x00007ffff519d3df in g_signal_emit () at /lib64/libgobject-2.0.so.0 #7 0x00007ffff547d075 in emit_closed_in_idle () at /lib64/libgio-2.0.so.0 #8 0x00007ffff4ea64e7 in g_idle_dispatch () at /lib64/libglib-2.0.so.0 #9 0x00007ffff4ea98f9 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0 #10 0x00007ffff4ea9c58 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0 #11 0x00007ffff4ea9d0c in g_main_context_iteration () at /lib64/libglib-2.0.so.0 #12 0x00007fffea13948d in dconf_gdbus_worker_thread () at /usr/lib64/gio/modules/libdconfsettings.so #13 0x00007ffff4ed0900 in g_thread_proxy () at /lib64/libglib-2.0.so.0 #14 0x00007ffff4540dd5 in start_thread () at /lib64/libpthread.so.0 #15 0x00007ffff38d6b3d in clone () at /lib64/libc.so.6 Unfortunately, xbacktrace doesn't seem to be working very well in this state: (gdb) xbacktrace (gdb) thread 1 [Switching to thread 1 (Thread 0x7ffff7fca880 (LWP 42490))] #0 0x00007ffff38cdcd9 in pselect () from /lib64/libc.so.6 (gdb) xbacktrace Thread 1 "emacs-27.0.50" received signal SIGTERM, Terminated. backtrace_p (pdl=0xd7acc0) at ../../src/src/eval.c:182 182 { return specpdl ? pdl >= specpdl : false; } The program being debugged was signaled while in a function called from GDB. GDB remains in the frame where the signal was received. To change this behavior use "set unwindonsignal on". Evaluation of the expression containing the function (backtrace_p) will be abandoned. When the function is done executing, GDB will silently stop. The information below was saved into a draft at the beginning of the emacs session. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2019-03-21 built on pd2.mallab.cert.org Repository revision: 1fc6afbdf1ce0f8b23780bd4d2630ed49f365013 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12001000 System Description: Red Hat Enterprise Linux Server 7.5 (Maipo) Configured using: 'configure --without-toolkit-scroll-bars --with-wide-int --prefix=/home/mwd/ --with-jpeg=no --with-gif=no --with-tiff=no --with-gnutls=no --without-gconf PKG_CONFIG_PATH=/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig' Configured features: XAW3D XPM PNG SOUND GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX LIBXML2 FREETYPE XFT ZLIB LUCID X11 XDBE XIM THREADS PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Load-path shadows: None found. Features: (shadow sort flyspell ispell mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime mailcap gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win emacsbug sendmail elec-pair woman man view time smime dig server python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat ucs-normalize shell pcomplete parse-time advice prolog smie align comint ansi-color ring whitespace ps-print ps-print-loaddefs ps-def lpr picture message rmc puny format-spec rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums time-date mail-utils mm-util mail-prsvr wid-edit generic-x dired-x dired dired-loaddefs cmake-mode thingatpt rx cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs edmacro kmacro finder-inf mule-util info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads inotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) -- Michael Welsh Duggan (mwd@cert.org)