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#33091: 27.0.50; Daily+ crashes in auto-save-hook Date: Thu, 18 Oct 2018 23:09:04 +0300 Message-ID: <838t2vqaov.fsf@gnu.org> References: <871s8n84n8.fsf@everybody.org> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1539896696 3271 195.159.176.226 (18 Oct 2018 21:04:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Oct 2018 21:04:56 +0000 (UTC) Cc: 33091@debbugs.gnu.org To: "Mark A. Hershberger" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 18 23:04:52 2018 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 1gDFTM-0000fY-2j for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Oct 2018 23:04:48 +0200 Original-Received: from localhost ([::1]:44698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDFVS-0003Yj-CD for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Oct 2018 17:06:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDEcR-00046m-Ip for bug-gnu-emacs@gnu.org; Thu, 18 Oct 2018 16:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDEcM-0004Ut-Ir for bug-gnu-emacs@gnu.org; Thu, 18 Oct 2018 16:10:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDEcM-0004Ug-Cz for bug-gnu-emacs@gnu.org; Thu, 18 Oct 2018 16:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gDEcM-0005dF-2R for bug-gnu-emacs@gnu.org; Thu, 18 Oct 2018 16:10: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: Thu, 18 Oct 2018 20:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33091 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33091-submit@debbugs.gnu.org id=B33091.153989338921622 (code B ref 33091); Thu, 18 Oct 2018 20:10:01 +0000 Original-Received: (at 33091) by debbugs.gnu.org; 18 Oct 2018 20:09:49 +0000 Original-Received: from localhost ([127.0.0.1]:57438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDEc8-0005cg-KK for submit@debbugs.gnu.org; Thu, 18 Oct 2018 16:09:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDEc5-0005cR-7L for 33091@debbugs.gnu.org; Thu, 18 Oct 2018 16:09:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDEbr-00046j-8T for 33091@debbugs.gnu.org; Thu, 18 Oct 2018 16:09:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDEbp-00044u-7a; Thu, 18 Oct 2018 16:09:29 -0400 Original-Received: from [176.228.60.248] (port=2225 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gDEbn-0005km-EE; Thu, 18 Oct 2018 16:09:29 -0400 In-reply-to: <871s8n84n8.fsf@everybody.org> (mah@everybody.org) 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:151404 Archived-At: > From: "Mark A. Hershberger" > Date: Thu, 18 Oct 2018 14:56:59 -0400 > > > The backtraces happen while working on a file, apparently when auto-save > is invoked No, this isn't a crash in auto-save-hook, it's a segfault in GC: > #0 raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:51 > set = {__val = {18446744067266838239, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 268435456, 56701040, 1, 6051501, 18446744067266838271}} > pid = > tid = > #1 0x0000000000597dfa in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:400 > No locals. > #2 0x0000000000630fa5 in die (msg=0x77c143 "0 <= nchars", file=0x77c060 "lisp.h", line=1488) at alloc.c:7096 > No locals. > #3 0x0000000000591e2b in SCHARS (string=...) at lisp.h:1488 > nchars = -9223372036854775794 > #4 0x0000000000695e03 in oblookup (obarray=..., ptr=0x78a2be "auto-save-hook", size=14, size_byte=14) at lread.c:4333 > hash = 14424 > obsize = 15121 > tail = {i = 0x51df70 } > bucket = {i = 0x5252eb0} > tem = {i = 0xe59f60 } > #5 0x0000000000695618 in intern_1 (str=0x78a2be "auto-save-hook", len=14) at lread.c:4141 > obarray = {i = 0xec7015 } > tem = {i = 0x0} > #6 0x0000000000594833 in intern (str=0x78a2be "auto-save-hook") at lisp.h:3855 > No locals. > #7 0x00000000005f8cec in Fdo_auto_save (no_message=..., current_only=...) at fileio.c:5642 > old = 0x7d3c820 > b = 0x0 > tail = {i = 0xe42bc0 } > buf = {i = 0x9c30} > hook = {i = 0x9c30} > auto_saved = false > do_handled_files = 5838245 > oquit = {i = 0x0} > stream = 0x0 > count = 43 > orig_minibuffer_auto_raise = false > old_message_p = false > auto_save_unwind = {stream = 0x592160 , auto_raise = 18} > #8 0x000000000059a6ff in shut_down_emacs (sig=11, stuff=...) at emacs.c:2122 > No locals. > #9 0x0000000000597da1 in terminate_due_to_signal (sig=11, backtrace_limit=40) at emacs.c:383 > No locals. > #10 0x00000000005c568e in handle_fatal_signal (sig=11) at sysdep.c:1772 > No locals. > #11 0x00000000005c565f in deliver_thread_signal (sig=11, handler=0x5c5674 ) at sysdep.c:1746 > old_errno = 22 > #12 0x00000000005c56c9 in deliver_fatal_thread_signal (sig=11) at sysdep.c:1784 > No locals. > #13 0x00000000005c5885 in handle_sigsegv (sig=11, siginfo=0xe42f30 , arg=0xe42e00 ) at sysdep.c:1869 > fatal = true > #14 > No locals. > #15 0x000000000059173a in make_lisp_ptr (ptr=, > type=) at lisp.h:1168 > a = {i = 0x0} > #16 0x000000000062b7fa in live_cons_holding (m=0x840e8d0, p=0x843a330) at alloc.c:4442 > s = 0x843a330 > b = 0x843a000 > cp = 0x843a330 "C\243C\b" > offset = 816 > #17 0x000000000062b82c in live_cons_p (m=0x840e8d0, p=0x843a330) at alloc.c:4451 > No locals. > #18 0x000000000062fb6c in mark_object (arg=...) at alloc.c:6468 > ptr = 0x843a330 > obj = {i = 0x843a333} > po = 0x843a330 > m = 0x840e8d0 > cdr_count = 0 IOW, GC segfaults, and then Emacs tries to auto-save the session, which fails. Is it possible that GC hits a stack overflow? Can you try manually establishing whether that is the case by doing what stack_overflow in sysdep.c does?