From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.bugs Subject: bug#34051: "X protocol error: BadMatch" on current master Date: Wed, 16 Jan 2019 22:22:30 +0100 Message-ID: <87zhs0s3ft.fsf@wavexx.thregr.org> References: <87o98jz384.fsf@wavexx.thregr.org> <83fttvdxqx.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547674281 25762 195.159.176.226 (16 Jan 2019 21:31:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2019 21:31:21 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 To: 34051@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 16 22:31:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjsmJ-0006Wd-3I for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2019 22:31:15 +0100 Original-Received: from localhost ([127.0.0.1]:55808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjsoP-0004XP-6F for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jan 2019 16:33:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjso1-0004IQ-22 for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 16:33:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjseM-0004g5-NI for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 16:23:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjseM-0004fC-JE for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 16:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gjseM-0006K8-B0 for bug-gnu-emacs@gnu.org; Wed, 16 Jan 2019 16:23:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87r2dhyj2q.fsf@frege.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Yuri D'Elia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jan 2019 21:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 34051-submit@debbugs.gnu.org id=B34051.154767376224281 (code B ref 34051); Wed, 16 Jan 2019 21:23:02 +0000 Original-Received: (at 34051) by debbugs.gnu.org; 16 Jan 2019 21:22:42 +0000 Original-Received: from localhost ([127.0.0.1]:33945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjse1-0006JY-Rc for submit@debbugs.gnu.org; Wed, 16 Jan 2019 16:22:42 -0500 Original-Received: from erc.thregr.org ([46.43.2.63]:52184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjsdy-0006JM-OB for 34051@debbugs.gnu.org; Wed, 16 Jan 2019 16:22:40 -0500 Original-Received: from [37.162.0.186] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1gjsds-0006yB-EF (envelope-from ); Wed, 16 Jan 2019 22:22:32 +0100 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: 209.51.188.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:154497 Archived-At: On Mon, Jan 14 2019, Eli Zaretskii wrote: >> From: Yuri D'Elia >> Date: Mon, 14 Jan 2019 16:08:27 +0100 >> >> Testing the master today I had some issues with emacs quitting with the >> following error: >> >> X protocol error: BadMatch (invalid parameter attributes) on protocol request 139 >> >> This happens during a minor mode setup, so I'm unsure exactly what is >> going on (didn't have time to dig deeper). >> >> However, last good commit is c342b26371480316024e1e5d63cd8b3f035dda69, > > Seems like bug#34051. > > If you run this under GDB with x-synchronize set to t, then post the > full backtrace from the crash, it would be very helpful. (If you do, > please post that to 34051@debbugs.gnu.org.) So I rebuilt emacs @ a1b7a3f2a3957a399d6c3c7bcffa07ac67da82fc (first bad version). Running under gdb, (x-synchronize t), and then trigger the issue I get to the following point: #12 0x0000000000529716 in x_error_handler (display=0x2b83430, event=0x7fffffff5840) at xterm.c:9930 #13 0x00007ffff680511a in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #14 0x00007ffff6802077 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #15 0x00007ffff680211d in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #16 0x00007ffff6803050 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #17 0x00007ffff67fe99d in XSync () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #18 0x00007ffff67fea3b in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #19 0x00007ffff6374b45 in XRenderCreatePicture () from /usr/lib/x86_64-linux-gnu/libXrender.so.1 #20 0x00000000006a6e4c in x_create_x_image_and_pixmap (f=0x1333c30 , width=15, height=33, depth=1, ximg=0x7fffffff5c10, pixmap=0x2e79eb8, picture=0x2e79ed8) at image.c:2192 #21 0x00000000006a6fea in image_create_x_image_and_pixmap (f=0x1333c30 , img=0x2e79ea0, width=15, height=33, depth=1, ximg=0x7fffffff5c10, mask_p=true) at image.c:2370 #22 0x00000000006ab32f in x_build_heuristic_mask (f=0x1333c30 , img=0x2e79ea0, how=XIL(0xc7e0)) at image.c:5285 #23 0x00000000006a5b74 in postprocess_image (f=0x1333c30 , img=0x2e79ea0) at image.c:1728 #24 0x00000000006a67ec in lookup_image (f=0x1333c30 , spec=XIL(0x4133413)) at image.c:2002 #25 0x000000000044424a in handle_single_display_spec (it=0x7fffffff75f0, spec=XIL(0x4133413), object=XIL(0x41af004), overlay=XIL(0), position=0x7fffffff7740, bufpos=84, display_replaced=0, frame_window_p=true, enable_eval_p=true) at xdisp.c:5359 #26 0x0000000000442760 in handle_display_spec (it=0x7fffffff75f0, spec=XIL(0x4132f33), object=XIL(0x41af004), overlay=XIL(0), position=0x7fffffff7740, bufpos=84, frame_window_p=true) at xdisp.c:4821 #27 0x00000000004424ef in handle_display_prop (it=0x7fffffff75f0) at xdisp.c:4764 #28 0x000000000043f2ec in handle_stop (it=0x7fffffff75f0) at xdisp.c:3470 #29 0x000000000044b7b0 in next_element_from_string (it=0x7fffffff75f0) at xdisp.c:8072 #30 0x0000000000448c98 in get_next_display_element (it=0x7fffffff75f0) at xdisp.c:7051 #31 0x0000000000471d52 in display_line (it=0x7fffffff75f0, cursor_vpos=1) at xdisp.c:21605 #32 0x0000000000467269 in try_window (window=XIL(0x1334c35), pos=..., flags=1) at xdisp.c:17808 #33 0x0000000000464d8d in redisplay_window (window=XIL(0x1334c35), just_this_one_p=false) at xdisp.c:17255 #34 0x000000000045e170 in redisplay_window_0 (window=XIL(0x1334c35)) at xdisp.c:14983 #35 0x00000000005fb710 in internal_condition_case_1 (bfun=0x45e12e #, arg=XIL(0x1334c35), handlers=XIL(0xb84fd3), Let me know if that's enough or if I should also get those darn debugging symbols for X11...