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#29843: 25.3; Emacs crash when running emacsclient Date: Mon, 25 Dec 2017 18:03:41 +0200 Message-ID: <83vaguiyle.fsf@gnu.org> References: <11278.1514147346@alto> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514217737 20034 195.159.176.226 (25 Dec 2017 16:02:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Dec 2017 16:02:17 +0000 (UTC) Cc: 29843@debbugs.gnu.org To: Mike Kupfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 25 17:02:12 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 1eTVCc-0004fe-Uq for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 17:02:11 +0100 Original-Received: from localhost ([::1]:52892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTVEZ-0005jy-Un for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Dec 2017 11:04:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTVET-0005jp-RI for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 11:04:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTVEQ-0002V5-Nm for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 11:04:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43289) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTVEQ-0002Uk-K0 for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 11:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eTVEP-0005NK-JJ for bug-gnu-emacs@gnu.org; Mon, 25 Dec 2017 11:04: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: Mon, 25 Dec 2017 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29843-submit@debbugs.gnu.org id=B29843.151421782320637 (code B ref 29843); Mon, 25 Dec 2017 16:04:01 +0000 Original-Received: (at 29843) by debbugs.gnu.org; 25 Dec 2017 16:03:43 +0000 Original-Received: from localhost ([127.0.0.1]:51970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTVE7-0005Mn-GN for submit@debbugs.gnu.org; Mon, 25 Dec 2017 11:03:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34279) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTVE6-0005MW-3Y for 29843@debbugs.gnu.org; Mon, 25 Dec 2017 11:03:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTVDx-00029F-UT for 29843@debbugs.gnu.org; Mon, 25 Dec 2017 11:03:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTVDx-00029A-Qx; Mon, 25 Dec 2017 11:03:33 -0500 Original-Received: from [176.228.60.248] (port=2556 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eTVDx-00060Y-80; Mon, 25 Dec 2017 11:03:33 -0500 In-reply-to: <11278.1514147346@alto> (message from Mike Kupfer on Sun, 24 Dec 2017 12:29:06 -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:141485 Archived-At: > From: Mike Kupfer > Date: Sun, 24 Dec 2017 12:29:06 -0800 > > I ran "emacsclient -c" to get a new Emacs frame on a system running MATE > on Debian 9. IIRC, a new frame appeared for a split second and then > disappeared. (I'm afraid the crash happened a few days ago and I'm just > now getting to filing the bug report.) I found a core file; gdb says > there was a segmentation fault. This is the first and only time I've > seen such a crash. > > I'll hold onto the core file for a couple weeks in case there is > additional information to extract from it. > > (gdb) bt full > #0 0x00007f0441b83f9f in raise () from /lib/x86_64-linux-gnu/libpthread.so.0 > No symbol table info available. > #1 0x00000000004d99d1 in terminate_due_to_signal (sig=sig@entry=11, > backtrace_limit=backtrace_limit@entry=40) at emacs.c:381 > No locals. > #2 0x00000000004f14ce in handle_fatal_signal (sig=sig@entry=11) > at sysdep.c:1601 > No locals. > #3 0x00000000004f16d9 in deliver_thread_signal (sig=sig@entry=11, > handler=0x4f14c0 ) at sysdep.c:1575 > No locals. > #4 0x00000000004f173f in deliver_fatal_thread_signal (sig=11) at sysdep.c:1613 > No locals. > #5 handle_sigsegv (sig=11, siginfo=, arg=) > at sysdep.c:1695 > fatal = > #6 > No symbol table info available. > #7 reconsider_clip_changes (w=w@entry=0x3764378) at xdisp.c:13452 This segfault is here: static void reconsider_clip_changes (struct window *w) { struct buffer *b = XBUFFER (w->contents); if (b->clip_changed && w->window_end_valid && w->current_matrix->buffer == b && w->current_matrix->zv == BUF_ZV (b) && w->current_matrix->begv == BUF_BEGV (b)) <<<<<<<<<<<<<<<<<< b->clip_changed = false; So either w or b is a NULL or garbled pointer. Can you tell which one? (Let me know if you need help with GDB commands to do that.) Thanks.