From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#44930: I can reproduce it Date: Sat, 05 Dec 2020 17:08:15 +0100 Message-ID: References: <83pn3timo4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26958"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44930@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 19:34:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klcNt-0006qc-LZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 19:34:17 +0100 Original-Received: from localhost ([::1]:50582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klcNs-00051i-Mf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 13:34:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klcNf-00050q-5s for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 13:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klcNe-0004BO-L5 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 13:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klcNe-0000r4-Ij for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 13:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Dec 2020 18:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44930 X-GNU-PR-Package: emacs Original-Received: via spool by 44930-submit@debbugs.gnu.org id=B44930.16071932333254 (code B ref 44930); Sat, 05 Dec 2020 18:34:02 +0000 Original-Received: (at 44930) by debbugs.gnu.org; 5 Dec 2020 18:33:53 +0000 Original-Received: from localhost ([127.0.0.1]:48230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klcNT-0000qI-AV for submit@debbugs.gnu.org; Sat, 05 Dec 2020 13:33:53 -0500 Original-Received: from smtp-clients1.isti.cnr.it ([146.48.28.36]:52498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kla6c-0003ZI-Tt for 44930@debbugs.gnu.org; Sat, 05 Dec 2020 11:08:20 -0500 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) (Authenticated sender: pot) by smtp-clients1.isti.cnr.it (Postfix) with ESMTPSA id 9D4BAAF4C1; Sat, 5 Dec 2020 17:08:16 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.4 at smtp-out.isti.cnr.it Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.94) (envelope-from ) id 1kla6a-002Iqq-A3; Sat, 05 Dec 2020 17:08:16 +0100 In-Reply-To: ("pot@gnu.org"'s message of Tue, 01 Dec 2020 18:19:54 +0100) X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-Mailman-Approved-At: Sat, 05 Dec 2020 13:33:49 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195044 Archived-At: >>> In this moment I have a *w3m* buffer on a live Emacs. If I switch to it >>> on a text frame, everything is well. If I switch to it on an X display, >>> the frame dies (but Emacs survives). The error is >>> >>> X protocol error: BadMatch (invalid parameter attributes) on protocol request 73 I managed to find the time to compile emacs with symbols. The previous instance of Emacs crashed, so apparently there is a serious problem somewhere. On the plus side, now apparently every instance of a *w3m* buffer exhibits the problem, which is now easy to reproduce for me. The error is: redisplay: X protocol error: BadMatch (invalid parameter attributes) on protocol request 73 which points to an XGetImage call where the pixmap or window to be returned does not satisfy certain geometric criteria, according to https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#requests:GetImage Setting debug-on-error to t tells me that this happens inside redisplay_internal(). I evaluated (x-synchronize t) and then switched to the *w3b* buffer. Here is the backtrace. If you help me I can try and continue debugging. Current directory is ~/gnu/emacs-27.1+1/src/ GNU gdb (Debian 10.1-1+b1) 10.1 ... Reading symbols from ../debian/emacs-lucid/usr/bin/emacs-lucid... Attaching to program: /home/pot/gnu/emacs-27.1+1/debian/emacs-lucid/usr/bin/emacs-lucid, process 95547 [New LWP 95548] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0x00007fc663663926 in __pselect (nfds=9, readfds=0x7ffcc787bb40, writefds=0x7ffcc787bbc0, exceptfds=0x0, timeout=, sigmask=0x7ffcc787b950) at ../sysdeps/unix/sysv/linux/pselect.c:48 48 ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = localhost:10.0 TERM = dumb Breakpoint 2 at 0x5596a186fa29: file ./debian/build-src/src/xterm.c, line 10131. (gdb) (gdb) c Continuing. Thread 1 "emacs" hit Breakpoint 2, x_error_quitter (display=0x5596a89b0990, event=0x7ffcc7879e90) at ./debian/build-src/src/xterm.c:10131 10131 { (gdb) bt #0 x_error_quitter (display=0x5596a89b0990, event=0x7ffcc7879e90) at ./debian/build-src/src/xterm.c:10131 #1 0x00005596a186fae1 in x_error_handler (display=, event=) at ./debian/build-src/src/xterm.c:10119 #2 0x00007fc6655fd36b in _XError () at /usr/lib/x86_64-linux-gnu/libX11.so.6 #3 0x00007fc6655fa197 in () at /usr/lib/x86_64-linux-gnu/libX11.so.6 #4 0x00007fc6655fb373 in _XReply () at /usr/lib/x86_64-linux-gnu/libX11.so.6 #5 0x00007fc6655e033a in XGetImage () at /usr/lib/x86_64-linux-gnu/libX11.so.6 #6 0x00005596a19c3788 in image_get_x_image (f=, img=img@entry=0x5596a57dccd0, mask_p=mask_p@entry=false) at ./debian/build-src/src/image.c:2934 #7 0x00005596a19c938e in image_background (img=0x5596a57dccd0, f=, pimg=pimg@entry=0x0) at ./debian/build-src/src/image.c:1376 #8 0x00005596a1870fed in x_setup_relief_colors (s=s@entry=0x7ffcc787a4b0) at ./debian/build-src/src/xterm.c:2735 #9 0x00005596a18733eb in x_draw_glyph_string_box (s=s@entry=0x7ffcc787a4b0) at ./debian/build-src/src/xterm.c:3025 #10 0x00005596a1873d14 in x_draw_glyph_string (s=0x7ffcc787a4b0) at ./debian/build-src/src/xterm.c:3966 #11 0x00005596a17e7bc4 in draw_glyphs (w=w@entry=0x5596a345c320, x=506, row=row@entry=0x5596a5fc8980, area=area@entry=TEXT_AREA, start=, start@entry=0, end=, end@entry=14, hl=, overlaps=) at ./debian/build-src/src/xdisp.c:28675 #12 0x00005596a17ea3c2 in gui_write_glyphs (w=0x5596a345c320, updated_row=0x5596a5fc8980, start=, updated_area=TEXT_AREA, len=14) at ./debian/build-src/src/xdisp.c:30702 #13 0x00005596a1790ca7 in update_text_area (w=w@entry=0x5596a345c320, updated_row=updated_row@entry=0x5596a5fc8980, vpos=vpos@entry=0) at ./debian/build-src/src/dispnew.c:3843 #14 0x00005596a17917a6 in update_window_line (w=w@entry=0x5596a345c320, vpos=vpos@entry=0, mouse_face_overwritten_p=mouse_face_overwritten_p@entry=0x7ffcc787b277) at ./debian/build-src/src/dispnew.c:4086 #15 0x00005596a1794231 in update_window (w=w@entry=0x5596a345c320, force_p=force_p@entry=true) at ./debian/build-src/src/dispnew.c:3612 #16 0x00005596a1794708 in update_frame (f=f@entry=0x5596a3767da0, force_p=true, force_p@entry=false, inhibit_hairy_id_p=inhibit_hairy_id_p@entry=false) at ./debian/build-src/src/dispnew.c:3214 #17 0x00005596a17e21ad in redisplay_internal () at ./debian/build-src/src/xdisp.c:15842 #18 0x00005596a17e364a in redisplay () at ./debian/build-src/src/xdisp.c:14989 Python Exception value has been optimized out: #19 0x00005596a18ab1c4 in read_char (commandflag=1, map=, map@entry=XIL(0x5596a4254f73), prev_event=XIL(0x7ffcc787caa0), used_mouse_menu=used_mouse_menu@entry=0x7ffcc787c9cb, end_time=end_time@entry=0x0) at ./debian/build-src/src/keyboard.c:2493 #20 0x00005596a18ada5f in read_key_sequence (keybuf=keybuf@entry=0x7ffcc787caa0, prompt=XIL(0x15), dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at ./debian/build-src/src/keyboard.c:9553 #21 0x00005596a18ae5ce in command_loop_1 () at ./debian/build-src/src/keyboard.c:1350 Python Exception value has been optimized out: #22 0x00005596a193096c in internal_condition_case (bfun=bfun@entry=0x5596a18ae34a , handlers=, hfun=hfun@entry=0x5596a18a26a9 ) at ./debian/build-src/src/eval.c:1356 Python Exception value has been optimized out: #23 0x00005596a189c485 in command_loop_2 (ignore=, ignore@entry=XIL(0)) at ./debian/build-src/src/keyboard.c:1091 Python Exception value has been optimized out: Python Exception value has been optimized out: #24 0x00005596a19308b0 in internal_catch (tag=, func=func@entry=0x5596a189c461 , arg=, arg@entry=XIL(0)) at ./debian/build-src/src/eval.c:1117 #25 0x00005596a189c435 in command_loop () at ./debian/build-src/src/keyboard.c:1070 #26 0x00005596a18a22df in recursive_edit_1 () at ./debian/build-src/src/keyboard.c:714 #27 0x00005596a18a25cd in Frecursive_edit () at ./debian/build-src/src/keyboard.c:786 #28 0x00005596a189b050 in main (argc=3, argv=) at ./debian/build-src/src/emacs.c:2062 Lisp Backtrace: "redisplay_internal (C function)" (0x0) (gdb) c Continuing.