From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#27668: 26.0.50; Crash with display-line-numbers t Date: Thu, 13 Jul 2017 18:42:49 +0200 Organization: not if I can help it Message-ID: <87r2xkl246.fsf@gmail.com> References: <87k23d7ovv.fsf@gmail.com> <83inixiv0m.fsf@gnu.org> <877ezd7luq.fsf@gmail.com> <83bmopitky.fsf@gnu.org> <87vamx65x0.fsf@gmail.com> <837ezdiq3z.fsf@gnu.org> <871spl5x5h.fsf@gmail.com> <834luhiinr.fsf@gnu.org> <8760ewviyt.fsf@gmail.com> <83pod4gv0i.fsf@gnu.org> Reply-To: bug-gnu-emacs@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499965502 7591 195.159.176.226 (13 Jul 2017 17:05:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Jul 2017 17:05:02 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 27668@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 13 19:04:53 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 1dVhXl-0001Qv-0C for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jul 2017 19:04:49 +0200 Original-Received: from localhost ([::1]:33124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVhXq-00070x-HF for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jul 2017 13:04:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVhDh-0005V4-7N for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 12:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVhDe-0005Rd-2n for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 12:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVhDd-0005RZ-Vr for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 12:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dVhDd-0006mW-QP for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 12:44:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87k23d7ovv.fsf@gmail.com> Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jul 2017 16:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27668 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149996419125977 (code B ref -1); Thu, 13 Jul 2017 16:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jul 2017 16:43:11 +0000 Original-Received: from localhost ([127.0.0.1]:37290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVhCo-0006kv-Iz for submit@debbugs.gnu.org; Thu, 13 Jul 2017 12:43:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVhCn-0006ki-3y for submit@debbugs.gnu.org; Thu, 13 Jul 2017 12:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVhCg-00051G-QX for submit@debbugs.gnu.org; Thu, 13 Jul 2017 12:43:03 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52148) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVhCg-000511-Mk for submit@debbugs.gnu.org; Thu, 13 Jul 2017 12:43:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVhCf-0004Iw-EQ for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 12:43:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVhCc-0004yh-7l for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 12:43:01 -0400 Original-Received: from [195.159.176.226] (port=51268 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVhCc-0004yN-0l for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 12:42:58 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dVhCU-0003Hr-HB for bug-gnu-emacs@gnu.org; Thu, 13 Jul 2017 18:42:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org Original-Lines: 52 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:NsTfAn2hNcpM5ARnQB1SRtLIAl4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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: 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:134512 Archived-At: Eli Zaretskii writes: >> From: Robert Pluim >> Date: Thu, 13 Jul 2017 10:28:42 +0200 >> >> It's always approximately twice the correct one. In the two cases I >> have so far it's 67:138 and 47:98. That's a ratio of n:(2n + 4) in >> both cases. > > A few more questions about your Emacs use patterns: > > . do you use modes that put stuff in the display margins? if so, > could it be that these crashes happen shortly after you switch > away from a window with margins to one without margins, or delete > a window with margins? Apart from display-line-numbers, I don't think so. Of course I don't have that switched on in all my buffers. > . do you use truncate-lines or split windows with "C-x 3", and if > so, do these crashes happen shortly after you use those > features? I do use C-x 3, but that doesn't seem correlated. > . do you have any optional display-related features turned on in > your sessions, like show-trailing-whitespace etc.? In buffers with line-numbers I tend to have whitespace-mode enabled, but I don't use show-trailing-whitespace directly. However, your second gdb suggestion just got me: (gdb) break xdisp.c:21010 if it->glyph_row != 0 && it->glyph_row->used[1] > 0 Breakpoint 4 at 0x45baaf: file xdisp.c, line 21010. (gdb) run Starting program: /home/rpluim/repos/emacs-master/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe4de5700 (LWP 19567)] [New Thread 0x7fffdffff700 (LWP 19568)] [New Thread 0x7fffdf5f1700 (LWP 19569)] Thread 1 "emacs" hit Breakpoint 4, maybe_produce_line_number (it=it@entry=0x7fffffff8130) at xdisp.c:21010 21010 short *u = it->glyph_row ? &it->glyph_row->used[TEXT_AREA] : NULL; I was in the process of switching from a non-line-number to a line-number buffer when that hit. Regards Robert