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#29789: 25.1; Emacs blocks user input when using visual-fill-column in wide terminals Date: Thu, 21 Dec 2017 07:01:39 +0200 Message-ID: <926C5E01-36F9-48EC-ADC3-6A443A6D8D3B@gnu.org> References: <20171220213530.g2xxrh7egjcliwqu@odonien.localdomain> <838tdwoiop.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1513832419 7885 195.159.176.226 (21 Dec 2017 05:00:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 05:00:19 +0000 (UTC) User-Agent: K-9 Mail for Android Cc: 29789@debbugs.gnu.org To: Vasilij Schneidermann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 21 06:00:15 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 1eRsxo-0001Wr-28 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 06:00:12 +0100 Original-Received: from localhost ([::1]:59761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRszm-000427-Ac for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Dec 2017 00:02:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRszf-00041Y-Tj for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 00:02:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRsza-0002a4-W5 for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 00:02:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36404) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRsza-0002Zy-RF for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 00:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eRsza-0007kf-JJ for bug-gnu-emacs@gnu.org; Thu, 21 Dec 2017 00:02: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: Thu, 21 Dec 2017 05:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29789 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29789-submit@debbugs.gnu.org id=B29789.151383251929788 (code B ref 29789); Thu, 21 Dec 2017 05:02:02 +0000 Original-Received: (at 29789) by debbugs.gnu.org; 21 Dec 2017 05:01:59 +0000 Original-Received: from localhost ([127.0.0.1]:45085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRszW-0007kO-Lr for submit@debbugs.gnu.org; Thu, 21 Dec 2017 00:01:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRszV-0007kB-1G for 29789@debbugs.gnu.org; Thu, 21 Dec 2017 00:01:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRszO-0002M1-KX for 29789@debbugs.gnu.org; Thu, 21 Dec 2017 00:01:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRszI-0002I9-O1; Thu, 21 Dec 2017 00:01:44 -0500 Original-Received: from [176.12.177.221] (port=40832 helo=[10.213.2.34]) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eRszH-0000Yy-EN; Thu, 21 Dec 2017 00:01:44 -0500 In-Reply-To: <838tdwoiop.fsf@gnu.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:141322 Archived-At: On December 21, 2017 5:37:10 AM GMT+02:00, Eli Zaretskii w= rote: > > Date: Wed, 20 Dec 2017 22:35:30 +0100 > > From: Vasilij Schneidermann > >=20 > > I can reproduce this on Arch Linux, with Emacs master and Termite=2E= =20 > I've > > tried making a full backtrace in gdb, let me know if there's > anything > > else I can do to help debugging this issue=2E >=20 > Thanks=2E >=20 > > Thread 1 "emacs" received signal SIGTSTP, Stopped (user)=2E > > 0x00007f5ccb9f9b47 in kill () from /usr/lib/libc=2Eso=2E6 > > Continuing=2E > >=20 > > Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=3D6,= =20 > > backtrace_limit=3D40) at emacs=2Ec:364 > > 364 { > > #0 0x0000000000569e7a in terminate_due_to_signal (sig=3D6, > backtrace_limit=3D40) > > at emacs=2Ec:364 > > #1 0x00000000005919c8 in emacs_abort () at sysdep=2Ec:2426 > > #2 0x00000000005829d2 in handle_interrupt (in_signal_handler=3Dtrue) > > at keyboard=2Ec:10501 > > #3 0x0000000000582795 in handle_interrupt_signal (sig=3D2) at > keyboard=2Ec:10371 > > #4 0x0000000000590f88 in deliver_process_signal (sig=3D2, > handler=3D0x582743 ) at sysdep=2Ec:1709 > > #5 0x00000000005827b4 in deliver_interrupt_signal (sig=3D2) at > keyboard=2Ec:10378 > > #6 0x00007f5ccc8a9da0 in () at > /usr/lib/libpthread=2Eso=2E0 > > #7 0x00000000005083c0 in append_glyph (it=3D0x7ffcb39bc150) at > term=2Ec:1476 > > #8 0x00000000005087d5 in produce_glyphs (it=3D0x7ffcb39bc150) at > term=2Ec:1584 > > #9 0x00000000004722e7 in extend_face_to_end_of_line > (it=3D0x7ffcb39bc150) > > at xdisp=2Ec:20318 > > #10 0x00000000004773eb in display_line (it=3D0x7ffcb39bc150, > cursor_vpos=3D3) > > at xdisp=2Ec:21740 > > #11 0x0000000000469edf in try_window (window=3DXIL(0xd7f9a5), pos=3D= =2E=2E=2E, > flags=3D1) > > at xdisp=2Ec:17610 > > #12 0x000000000046799c in redisplay_window (window=3DXIL(0xd7f9a5), > just_this_one_p=3Dfalse) at xdisp=2Ec:17057 > > #13 0x0000000000460734 in redisplay_window_0 (window=3DXIL(0xd7f9a5)) > > at xdisp=2Ec:14814 > > #14 0x000000000061975f in internal_condition_case_1 (bfun=3D0x4606f2 > , arg=3DXIL(0xd7f9a5), handlers=3DXIL(0xd6bf13), > hfun=3D0x4606ba ) at eval=2Ec:1356 > > #15 0x000000000046068c in redisplay_windows (window=3DXIL(0xd7f9a5)) > at xdisp=2Ec:14794 > > #16 0x000000000045f4b8 in redisplay_internal () at xdisp=2Ec:14283 > > #17 0x000000000045ff5e in redisplay_preserve_echo_area > (from_where=3D2) > > at xdisp=2Ec:14613 > > #18 0x0000000000426d03 in Fredisplay (force=3DXIL(0)) at > dispnew=2Ec:5828 > > #19 0x000000000061d47a in funcall_subr (subr=3D0x951720 , > numargs=3D0, args=3DQuit > > #0 0x0000000000569e7a in terminate_due_to_signal (sig=3D6, > backtrace_limit=3D40) > > at emacs=2Ec:364 > > #1 0x00000000005919c8 in emacs_abort () at sysdep=2Ec:2426 > > #2 0x00000000005829d2 in handle_interrupt (in_signal_handler=3Dtrue) > > at keyboard=2Ec:10501 > > c =3D 121 'y' > > #3 0x0000000000582795 in handle_interrupt_signal (sig=3D2) at > keyboard=2Ec:10371 > > terminal =3D 0x12cfe40 > > #4 0x0000000000590f88 in deliver_process_signal (sig=3D2, > handler=3D0x582743 ) at sysdep=2Ec:1709 > > old_errno =3D 22 > > on_main_thread =3D true > > #5 0x00000000005827b4 in deliver_interrupt_signal (sig=3D2) at > keyboard=2Ec:10378 > > #6 0x00007f5ccc8a9da0 in () at > /usr/lib/libpthread=2Eso=2E0 > > #7 0x00000000005083c0 in append_glyph (it=3D0x7ffcb39bc150) at > term=2Ec:1476 > > glyph =3D 0x7f5cd4622fd0 > > end =3D 0x7f5cd4622fd0 > > i =3D 0 >=20 > This says Emacs got SIGINT and then aborted=2E Did you type C-g more > then once and then answered YES to the question whether to abort and > dump core? >=20 > > #8 0x00000000005087d5 in produce_glyphs (it=3D0x7ffcb39bc150) at > term=2Ec:1584 > > #9 0x00000000004722e7 in extend_face_to_end_of_line > (it=3D0x7ffcb39bc150) > > at xdisp=2Ec:20318 >=20 > The "hang" sounds like some infloop in redisplay=2E It will be helpful > if instead of trying to interrupt Emacs with C-g, you could attach the > debugger, produce a backtrace from the place where Emacs was caught, > and then use the technique described in etc/DEBUG under "If the > symptom of the bug is that Emacs fails to respond", starting at "If > Emacs is in an infinite loop", to find out where it loops=2E >=20 > Also, I need to know what version of Emacs is that, to match line > numbers in the backtrace to the sources=2E Forget it, I've succeeded in reproducing this=2E The reason I couldn't be= fore is because most themes do nothing if the terminal supports less than 8= 9 colors (looks like their authors are just copying that condition from one= another for no good reason), so I needed to find a theme which does work w= ith fewer colors=2E