From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: X protocol error Date: Wed, 17 Aug 2022 16:31:25 +0200 Message-ID: <871qtf7xhe.fsf@gmail.com> References: <87wnb79nu7.fsf@yandex.com> <87mtc3oy8d.fsf@yahoo.com> <87sflvt130.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18709"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , emacs-devel@gnu.org To: Colin Baxter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 17 16:33:45 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oOK76-0004ek-7g for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Aug 2022 16:33:44 +0200 Original-Received: from localhost ([::1]:56892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOK74-0004Fj-UB for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Aug 2022 10:33:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOK4y-0003Ld-04 for emacs-devel@gnu.org; Wed, 17 Aug 2022 10:31:32 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:45703) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOK4v-0006q8-CY for emacs-devel@gnu.org; Wed, 17 Aug 2022 10:31:31 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id z16so16402394wrh.12 for ; Wed, 17 Aug 2022 07:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:from:to:cc; bh=Hwx6+AfJ7h9/deEKV07dCmDnhR7eOzzMaWxvww/ReVw=; b=NjF5Rld29Yh0bsGPCJBsEhamLgXjcwIp6ZTvhmYyxIJNg8FTVwErt24F99XtKapzEX +Vsc3/ZtTknscJt58u3hhAXSdt0qhnkCPqn+RLj47j738nSQRKMA9xBBQptFtw4dcLAV 7DKqU9FwnxkJk9WWH82tcpH5bnJoZAMDmNp8wTsB6l7g1oIu2ml9QduJcjT6MIZGljLd D9ouWyxuzC83VfKfh6uZjsRs6oIYrc9sRwQyfBJDL/xBLkxy9UHn6ba5qdepsidhzIgF ijOz4JmjB5JqLlO34HortH9h5wmPrJ+hU0rLxQMdJmXAPSPDCYTpoyIm4lX+gJS7PCw+ kSPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Hwx6+AfJ7h9/deEKV07dCmDnhR7eOzzMaWxvww/ReVw=; b=zTqryN9FDhywEv+r3sETLM4qz3xN/qUB6+dGc+DBFRKmMRD/pL3Ipnr6I7tZI3InBn 0GRkMGt4mj9n9zmbxB1QRfnE0E9kdnGNVqITO1kpifzeP8N3QdNf42wu1zJU2koMaZih WWvd2I3DohTgBsgXTodTGuf7iP6cOr2Zb3uaYv0HzsHMd4vqX9lFFfnw4Kipsis6YHNM HF+KFB3aHPhKp5+QNiiNdbG1JvvXLey6kFTiJ/UPn5q1028C9lJPrldau2Ql32HXG32/ YFOBu6viI9fL2yPhQx6ldU3VxhDwcRmZJ4QduVGR0zZEyk47Dla8T+I/4jTCBOFPF1Vl DBRQ== X-Gm-Message-State: ACgBeo2IMO3sBzcH3SE9nDCeJX+TRxy1jmcVJ0Dj/LLXC5i1q57aKNL1 ycx53NyQbU72XbejbPCoaWnVzK7DQNw= X-Google-Smtp-Source: AA6agR4Hr8oy2VIbFYp3Ub/fGsvR1LvrhqFVJ7saSKmNUcMDKZmGbrn0llLxSI3udfy+BFXVK463sQ== X-Received: by 2002:a5d:5848:0:b0:222:c8cd:288 with SMTP id i8-20020a5d5848000000b00222c8cd0288mr14512070wrf.34.1660746687133; Wed, 17 Aug 2022 07:31:27 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:6581:bb76:89c4:49f0]) by smtp.gmail.com with ESMTPSA id c3-20020adffb03000000b002206236ab3dsm12991824wrr.3.2022.08.17.07.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 07:31:26 -0700 (PDT) In-Reply-To: <87sflvt130.fsf@yandex.com> (Colin Baxter's message of "Wed, 17 Aug 2022 15:08:03 +0100") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=rpluim@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293566 Archived-At: >>>>> On Wed, 17 Aug 2022 15:08:03 +0100, Colin Baxter said: Colin> Dear Po, Colin> Thanks for your reply. I have narrowed the problem to the configure option Colin> "./configure --with-x-toolkit=lucid ". If I run only "./configure Colin> ", effectively using the gtk3 default setting then emacs builds Colin> successfully. Colin> gdb$ run -q -xrm "Emacs.synchronous: true" Colin> Starting program: -q -xrm "Emacs.synchronous: true" Colin> No executable file specified. Colin> Use the "file" or "exec-file" command. I think Po Lu meant: $ cd src $ gdb emacs gdb$ run -q -xrm "Emacs.synchronous: true" I can reproduce this with a lucid build (with XI2 enabled): Thread 1 "emacs" hit Breakpoint 2, x_error_quitter (display=0x555555f79210, event=0x7fffffffc1c0) at xterm.c:24762 24762 if (event->error_code == BadName) (gdb) bt #0 x_error_quitter (display=0x555555f79210, event=0x7fffffffc1c0) at xterm.c:24762 #1 0x00005555556e5f2c in x_error_handler (display=0x555555f79210, event=0x7fffffffc1c0) at xterm.c:24743 #2 0x00007ffff7992864 in _XError () at /lib/x86_64-linux-gnu/libX11.so.6 #3 0x00007ffff798f327 in () at /lib/x86_64-linux-gnu/libX11.so.6 #4 0x00007ffff798f3c5 in () at /lib/x86_64-linux-gnu/libX11.so.6 #5 0x00007ffff799062d in _XReply () at /lib/x86_64-linux-gnu/libX11.so.6 #6 0x00007ffff798be2b in XSync () at /lib/x86_64-linux-gnu/libX11.so.6 #7 0x00007ffff798becb in () at /lib/x86_64-linux-gnu/libX11.so.6 #8 0x00007ffff5b8dac1 in XISelectEvents () at /lib/x86_64-linux-gnu/libXi.so.6 #9 0x00005555556ebc0d in xi_select_hierarchy_events (dpyinfo=0x555555f8bce0) at xterm.c:27661 #10 0x00005555556ecbf1 in x_term_init (display_name=XIL(0x555555f65944), xrm_option=0x555555f0af88 "Emacs.synchronous: true", resource_name=0x555555f636f0 "emacs") at xterm.c:28299 #11 0x000055555570082e in Fx_open_connection (display=XIL(0x555555f65944), xrm_string=XIL(0x555555f499b4), must_succeed=XIL(0x30)) at xfns.c:7260 #12 0x00005555557e3b05 in funcall_subr (subr=0x555555dd7a00 , numargs=3, args=0x7ffff18a31d0) at eval.c:3056 #13 0x00005555558331e1 in exec_byte_code (fun=XIL(0x7ffff1ff945d), args_template=513, nargs=2, args=0x7ffff18a3348) at bytecode.c:809 #14 0x00005555557e3dbd in fetch_and_exec_byte_code (fun=XIL(0x7ffff22ec765), args_template=256, nargs=0, args=0x7ffff18a3150) at eval.c:3101 #15 0x00005555557e4131 in funcall_lambda (fun=XIL(0x7ffff22ec765), nargs=0, arg_vector=0x7ffff18a3150) at eval.c:3173 #16 0x00005555557e36a6 in funcall_general (fun=XIL(0x7ffff22ec765), numargs=0, args=0x7ffff18a3150) at eval.c:2964 #17 0x00005555557e3902 in Ffuncall (nargs=1, args=0x7ffff18a3148) at eval.c:3014 #18 0x00005555557e2a58 in Fapply (nargs=2, args=0x7ffff18a3148) at eval.c:2638 #19 0x00005555557e3ce9 in funcall_subr (subr=0x555555de0600 , numargs=2, args=0x7ffff18a3148) at eval.c:3079 #20 0x00005555558331e1 in exec_byte_code (fun=XIL(0x7ffff23d5bed), args_template=770, nargs=3, args=0x7ffff18a33c0) at bytecode.c:809 #21 0x00005555557e3dbd in fetch_and_exec_byte_code (fun=XIL(0x7ffff22ea715), args_template=0, nargs=0, args=0x7fffffffdb40) at eval.c:3101 #22 0x00005555557e4131 in funcall_lambda (fun=XIL(0x7ffff22ea715), nargs=0, arg_vector=0x7fffffffdb40) at eval.c:3173 #23 0x00005555557e3f4f in apply_lambda (fun=XIL(0x7ffff22ea715), args=XIL(0), count=...) at eval.c:3123 #24 0x00005555557e2651 in eval_sub (form=XIL(0x7ffff2730653)) at eval.c:2564 #25 0x00005555557e1c39 in Feval (form=XIL(0x7ffff2730653), lexical=XIL(0)) at eval.c:2375 #26 0x0000555555720edc in top_level_2 () at keyboard.c:1141 #27 0x00005555557dfb8a in internal_condition_case (bfun=0x555555720eb9 , handlers=XIL(0x90), hfun=0x555555720807 ) at eval.c:1497 #28 0x0000555555720f24 in top_level_1 (ignore=XIL(0)) at keyboard.c:1149 #29 0x00005555557df252 in internal_catch (tag=XIL(0xf7e0), func=0x555555720ede , arg=XIL(0)) at eval.c:1220 #30 0x0000555555720dfd in command_loop () at keyboard.c:1109 #31 0x00005555557203b2 in recursive_edit_1 () at keyboard.c:719 #32 0x000055555572055b in Frecursive_edit () at keyboard.c:802 #33 0x000055555571ca50 in main (argc=4, argv=0x7fffffffe0f8) at emacs.c:2517 Lisp Backtrace: "x-open-connection" (0xf18a31d0) 0xf22ec760 PVEC_COMPILED "apply" (0xf18a3148) "window-system-initialization" (0xf18a30b8) "command-line" (0xf18a3040) "normal-top-level" (0xffffdb40) Robert --