From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ali Bahrami Newsgroups: gmane.emacs.bugs Subject: bug#69762: X11 versions of Emacs 29 on sparc fail at startup Date: Fri, 15 Mar 2024 10:37:13 -0600 Message-ID: <8790adce-e863-46f8-bbaf-25660a917e04@emvision.com> References: <1e95c2c8-f7fc-456c-a8aa-d2ada44b7d13@emvision.com> <87a5n3vujp.fsf@yahoo.com> <244fddd2-2de4-4e16-945e-4927fab4af12@emvision.com> <87jzm5vf8y.fsf@yahoo.com> <2de8afe1-6410-4729-abc1-cfd541b1b4d1@emvision.com> <87frwtuymr.fsf@yahoo.com> <877ci4us9b.fsf@yahoo.com> <8e8a39c6-1272-4f2b-b749-56722bd394d7@emvision.com> <87wmq4t2rp.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8582"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 69762@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 15 17:38:41 2024 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 1rlAZr-00020P-Pj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Mar 2024 17:38:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlAZh-0007nc-D4; Fri, 15 Mar 2024 12:38:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlAZf-0007nS-41 for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 12:38:27 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rlAZe-0006Tv-Dg for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 12:38:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlAaE-0000qm-G3 for bug-gnu-emacs@gnu.org; Fri, 15 Mar 2024 12:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ali Bahrami Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Mar 2024 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69762 X-GNU-PR-Package: emacs Original-Received: via spool by 69762-submit@debbugs.gnu.org id=B69762.17105206823187 (code B ref 69762); Fri, 15 Mar 2024 16:39:02 +0000 Original-Received: (at 69762) by debbugs.gnu.org; 15 Mar 2024 16:38:02 +0000 Original-Received: from localhost ([127.0.0.1]:53633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlAZF-0000pB-Lx for submit@debbugs.gnu.org; Fri, 15 Mar 2024 12:38:02 -0400 Original-Received: from fout2-smtp.messagingengine.com ([103.168.172.145]:55517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlAZA-0000or-M9 for 69762@debbugs.gnu.org; Fri, 15 Mar 2024 12:37:59 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id EB84513800F3; Fri, 15 Mar 2024 12:37:14 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 15 Mar 2024 12:37:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emvision.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1710520634; x=1710607034; bh=Z1DrsbgCtxg5mBP/id2PFMI4g14McD/taAtbE1tknEI=; b= bPSL7wbWw8RvFuWI4xYGschdx/NMrkA9lksIcMLg8kP5pBUQP+EVU23m0yWf5nwR XF5BVccaooJ7FPdHfp1vreEnoUyArWfnthAFISC3dgfhRZMK42osj3bcT1mJfT4T myNxIXAVxnQfHVhUWSr20gJ4w8gP0U4b88mjI07HPz773VoxLQs3FB03hHc7M9LD pWA0ayUrgvz1plM+FnsXzioC3gha8EtNv56MMX8cCf9NOmtw4LJjjtRH+OsngQwK 9J4wn98JHI2iuYsfD/+JZ3VOijLkf61CVFwIlTQd8wDLbj/yNmSCnYMU9CqlbvgO hzUaZDzzH2LJwMCEhasMlg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1710520634; x= 1710607034; bh=Z1DrsbgCtxg5mBP/id2PFMI4g14McD/taAtbE1tknEI=; b=X jD0Lg6ykCs+8WMZh2QNm9a0XRvJW/0NA+xpaj2QTrnXMh042jGMsE159AnE876c9 xOFYxAbyC+zUJIUhg7rLNEXbvWyUk2WIgv7lset+7s76X3XOy3EWNVvMZn7dM09z 7mZHvYnfJafYHDJS7yuQZ37u8iGh4FoXJqp/7LoDBryVriKpnR4MoGsm8AK1NaxC g4OAKeXNjnieQGX9pBsBFdUm5GNF9nnwTmyucvmtRG9VUf2Js29QGnhVrjZQTj3T wM4q6P4SFbKeJa+hnDWXfOG2t1feursf8lCsNGYGwm9sayYNGNlPYkwNE5NoRDr+ yUwYJttrhJqnPEJ8AEuIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeelgdeltdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtje ertddtvdejnecuhfhrohhmpeetlhhiuceurghhrhgrmhhiuceorghlihgpghhnuhdvsegv mhhvihhsihhonhdrtghomheqnecuggftrfgrthhtvghrnhepveetfedvveekieehteekud euledvtdeiieetleeuheevkedttdeiieeghfetuedvnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheprghlihgpghhnuhdvsegvmhhvihhsihhonh drtghomh X-ME-Proxy: Feedback-ID: ie0614658:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Mar 2024 12:37:14 -0400 (EDT) Content-Language: en-US In-Reply-To: <87wmq4t2rp.fsf@yahoo.com> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281687 Archived-At: On 3/15/24 12:42 AM, Po Lu wrote: > Ali Bahrami writes: > >> I'm running it as 'src/emacs', out of the workspace >> that I built with the patch applied, as well as configured >> with --without-xinput2. Did I miss a step, or should I be >> running it differently? > > Nevermind, the code to print this information wasn't installed in the > Emacs 29 branch, being written awfully close to the time of the release. > > Please apply this patch and respond with the error message the patched > Emacs generates: > > diff --git a/src/xterm.c b/src/xterm.c > index acb008475c7..9f6d5196720 100644 > --- a/src/xterm.c > +++ b/src/xterm.c > @@ -26300,8 +26300,10 @@ x_error_handler (Display *display, XErrorEvent *event) > static void NO_INLINE > x_error_quitter (Display *display, XErrorEvent *event) > { > - char buf[256], buf1[400 + INT_STRLEN_BOUND (int) > - + INT_STRLEN_BOUND (unsigned long)]; > + char buf[256], buf1[800 + INT_STRLEN_BOUND (int) > + + INT_STRLEN_BOUND (unsigned long) > + + INT_STRLEN_BOUND (XID) > + + INT_STRLEN_BOUND (int)]; > > /* Ignore BadName errors. They can happen because of fonts > or colors that are not defined. */ > @@ -26314,8 +26316,12 @@ x_error_quitter (Display *display, XErrorEvent *event) > > XGetErrorText (display, event->error_code, buf, sizeof (buf)); > sprintf (buf1, "X protocol error: %s on protocol request %d\n" > - "Serial no: %lu\n", buf, event->request_code, > - event->serial); > + "Serial no: %lu\n" > + "Failing resource ID (if any): 0x%lx\n" > + "This is a bug! Please report this to bug-gnu-emacs@gnu.org!\n" > + buf, event->request_code, event->serial, event->resourceid, > + event->minor_code); > x_connection_closed (display, buf1, false); > } This output is from emacs-x with both patches applied: % src/emacs X protocol error: BadDrawable (invalid Pixmap or Window parameter) on protocol request 134 Serial no: 1318 Failing resource ID (if any): 0x5901a002 Minor code: 14 This is a bug! Please report this to bug-gnu-emacs@gnu.org! Note that I had to move the comma at the end of > + "Minor code: %d\n", to the end of the following line. I only mention it in case it's a sign that something else was intended. Standing by for the next iteration. Thank you! - Ali