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#30320: 26.0.91; Crash when using lsp-ui-doc-mode Date: Fri, 02 Feb 2018 10:21:49 +0200 Message-ID: <83a7wrer8i.fsf@gnu.org> References: <83po5oeil8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1517588597 12729 195.159.176.226 (2 Feb 2018 16:23:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Feb 2018 16:23:17 +0000 (UTC) Cc: 30320@debbugs.gnu.org To: Jake Goulding Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 02 17:23:13 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 1ehe7G-0002Zq-HT for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Feb 2018 17:23:06 +0100 Original-Received: from localhost ([::1]:38827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehe9H-0005Dp-6v for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Feb 2018 11:25:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehdLy-00037l-DW for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2018 10:35:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehdD5-0003JJ-EM for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2018 10:29:14 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehdD5-0003Hy-15 for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2018 10:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ehdC7-0006C0-RL for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2018 10:24:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2018 15:24:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30320 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30320-submit@debbugs.gnu.org id=B30320.151758503823760 (code B ref 30320); Fri, 02 Feb 2018 15:24:03 +0000 Original-Received: (at 30320) by debbugs.gnu.org; 2 Feb 2018 15:23:58 +0000 Original-Received: from localhost ([127.0.0.1]:54154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehdC2-0006B8-1f for submit@debbugs.gnu.org; Fri, 02 Feb 2018 10:23:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehdC0-0006AT-Ut for 30320@debbugs.gnu.org; Fri, 02 Feb 2018 10:23:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehdAr-0000VI-Qz for 30320@debbugs.gnu.org; Fri, 02 Feb 2018 10:23:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehdAr-0000Pg-Ho; Fri, 02 Feb 2018 10:22:45 -0500 Original-Received: from [176.228.60.248] (port=3454 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ehWbk-0002XU-Rn; Fri, 02 Feb 2018 03:22:05 -0500 In-reply-to: (message from Jake Goulding on Thu, 1 Feb 2018 14:52:59 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -5.0 (-----) 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:142801 Archived-At: > From: Jake Goulding > Date: Thu, 1 Feb 2018 14:52:59 -0500 > Cc: 30320@debbugs.gnu.org > > It looks like `curY (tty) >= FrameRows (tty) - 1`: > > (lldb) > frame #9: 0x0000000100173380 Emacs`cmcheckmagic(tty=0x000000010180d000) at cm.c:118 > 115 if (curX (tty) == FrameCols (tty)) > 116 { > 117 if (!MagicWrap (tty) || curY (tty) >= FrameRows (tty) - 1) > -> 118 emacs_abort (); > 119 if (tty->termscript) > 120 putc_unlocked ('\r', tty->termscript); > 121 putc_unlocked ('\r', tty->output); > (lldb) p (tty)->Wcm->cm_magicwrap > (bool_bf) $0 = true > (lldb) p (tty)->Wcm->cm_curY > (int) $1 = 2 > (lldb) p (tty)->Wcm->cm_rows > (int) $2 = 3 Hmm... is it reasonable that the TTY frame has only 3 rows? That's an awfully small frame, and maybe Emacs is unable to work correctly with such small frames. It doesn't justify a crash, but I'm trying to establish whether this is the root cause of the problem, or maybe Emacs became confused wrt the frame size.