From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69762: X11 versions of Emacs 29 on sparc fail at startup Date: Sat, 16 Mar 2024 14:32:07 +0800 Message-ID: <87il1msn4o.fsf@yahoo.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> <8790adce-e863-46f8-bbaf-25660a917e04@emvision.com> <871q8bt4au.fsf@yahoo.com> <344699e3-8dad-4cde-adcd-35ebec4900e7@emvision.com> <87plvusnbc.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23376"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 69762@debbugs.gnu.org To: Ali Bahrami Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 16 07:33: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 1rlNbw-0005ot-Kk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Mar 2024 07:33:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlNbj-0000nt-Dx; Sat, 16 Mar 2024 02:33:27 -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 1rlNbi-0000nj-A6 for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 02:33:26 -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 1rlNbi-0007Dy-1Y for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 02:33:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlNcI-0007e9-HI for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 02:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Mar 2024 06:34: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.171057078529330 (code B ref 69762); Sat, 16 Mar 2024 06:34:02 +0000 Original-Received: (at 69762) by debbugs.gnu.org; 16 Mar 2024 06:33:05 +0000 Original-Received: from localhost ([127.0.0.1]:54749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlNbM-0007cz-T0 for submit@debbugs.gnu.org; Sat, 16 Mar 2024 02:33:05 -0400 Original-Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]:41447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlNbH-0007cS-L9 for 69762@debbugs.gnu.org; Sat, 16 Mar 2024 02:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710570736; bh=XRN5tBqluS9owHLHQVIdCFMnjRBZfc6lJHWUgSGRu8I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=CD93MjL9S93m5Fm8tQZ2R32QyCvBmo9LNeuU+9v7UAcEA+iEu05wYOy77tVIXgRl24if1fR5YkQBM0sDaRMVdlrm/aUyPfgW5yIo67NrFjHVj68eWBN2ujdaoUiGKF3go9fmB7O2Aqak/703TQv/2rRZdP8sgK6b8NaiAH0bn4t5iXlovnwkVXOrMY6vsPoGspwg432sCvMoXGKh/E73JWbqGTUXU33GmHf/U69TmdaXzNlC7ImCZ/ZuCmk+duoYvVhVvYfj3f+CuDBFN2/z+5BI18CE1CIX9SHEUhgNRbWIF/VEO1vxEVPgp8HWkHFWOzV/nf9RO4T4Q+kI/70BkQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710570736; bh=xAR4XVG1csYEwQGRx6Z91iINLpaCXEHiKkzOGYb79Bt=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=XGl+2dJW0AN/W7GXwQLwGRFhOEanC/2s5NoS3kAHckMd/Pdvdtvh0Braf7RdEWyPtFHJntHkZ6iz83bpNn5BqLUqxVdp1mrqiZqvO8uQvt3meOsAvZGg+tL+clx7jGu/bqzfC4tODWCNH5cBeJ0cMrX0YIv1bVh0xLZziFnaYHDYqaCzO+4FvyWb4jEnt+UaGAKbKXJCChmxtm53qDS+Fy/Kqzw8mI0ImB5Ohp59T6GrlXOug0lg85iEMOQQiPL5JrGQYGPhxTy8cohqyZym2P++HdcSSoUYuIPK6TTxaq65gKPw2d0eoABphmDS86PnH2abuF5vcq54dHvn1xd6gA== X-YMail-OSG: NSBZvGoVM1nLJH5gAQJf9pHjpdVoaz8xWfmRnt_ubVD6uwiKoUknJmdadAcfhPm Bslp8clw1ApF5vSzZq3Phn_WSU4GOPyHUusfBsqYlFLynqLqdOglYlB.VOJO7PrJrY0rWzZGuaPx KfEVVaa7ZdaUWKbidc9aFLb3nt.dOER6Dv7gtMROwdWthOZnQZZVEB2TBo56U128ApHxc77t9fyA CRhISZHNidBRHaeuwJKNYJ.PmaVrFSRCbCRWjgAXYTooBkj7BlxHy4mmRo4mVp2Ba0S5gk6_R3yE 1fVPUUNmsR75.IcJG0VCbuPlxkr1YTZTX0tCTJweCeZnSV03x1KWXVAaRhWq7L8bl5SRrv3LHv4l n1VGjkS5MtmlxMINRw6t0fXYkkyRAUnbT.ZbQmyxPOv3Has_AYSWEMg3w4x54.uGyXNB64xrBv_y 0AZq468Ojn3TryQfyiw3rbKeH.LcNvIG3vm3VLNCRsgSYHqzMizezKoF2vANzDmxmCj.5vWDju9C sK3zthFYgQMzXGlzkA_iY54Bk_il4jbWJm8Zg5p1UNB7QSIFWNDVyhZj89YAgvCRJRWQXnUS1pJ4 A2juLRfkztysPyiqOBWLwKqbAjY.GUNuq.KcNAUWwFWJLwt35bQ9nemOgaEeaUetqTLX2T7FpEHK qRx2OXqp1.JebMV9wag_JCRu7OuNM9mj00nLFvMO6FZBTqz07Es_kKL4Y1kHUjEj_jbAX8Uy3ZLG WxQaiceAy0nDSuP0GfR.gHbPvL.fCAtOtZM9J9FdoOcqFIu8JL4wa09vR6z23lJACz9q0z98S1IY Sbg.W8O4h0LYTmaDV8_NsW75iYNq1sS4D0nioPfPXB X-Sonic-MF: X-Sonic-ID: a29aee20-d697-4ee4-bc87-d5b266c353ed Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Sat, 16 Mar 2024 06:32:16 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-bcm5n (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c436761e8eff8a8d9b5b1e36ee359f9a; Sat, 16 Mar 2024 06:32:13 +0000 (UTC) In-Reply-To: <87plvusnbc.fsf@yahoo.com> (Po Lu's message of "Sat, 16 Mar 2024 14:28:07 +0800") X-Mailer: WebService/1.1.22129 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:281707 Archived-At: Po Lu writes: > I don't think such a drastic measure is necessary under the > circumstances. We should (please test) put this down as a bug in the > X.Org server and install an error trap around SyncCreateFence requests, > thus: > > diff --git a/src/xterm.c b/src/xterm.c > index c8a43785564..26926bc4faa 100644 > --- a/src/xterm.c > +++ b/src/xterm.c > @@ -7292,6 +7292,7 @@ x_sync_init_fences (struct frame *f) > && dpyinfo->xsync_minor < 1)) > return; > > + x_ignore_errors_for_next_request (dpyinfo, 0); > output->sync_fences[0] > = XSyncCreateFence (FRAME_X_DISPLAY (f), > /* The drawable given below is only used to > @@ -7303,6 +7304,7 @@ x_sync_init_fences (struct frame *f) > = XSyncCreateFence (FRAME_X_DISPLAY (f), > FRAME_X_WINDOW (f), > False); > + x_stop_ignoring_errors (dpyinfo, 0); > > XChangeProperty (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), > dpyinfo->Xatom_net_wm_sync_fences, XA_CARDINAL, Scratch that, diff --git a/src/xterm.c b/src/xterm.c index c8a43785564..2358918ac5b 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7292,6 +7292,7 @@ x_sync_init_fences (struct frame *f) && dpyinfo->xsync_minor < 1)) return; + x_ignore_errors_for_next_request (dpyinfo, 0); output->sync_fences[0] = XSyncCreateFence (FRAME_X_DISPLAY (f), /* The drawable given below is only used to @@ -7303,6 +7304,7 @@ x_sync_init_fences (struct frame *f) = XSyncCreateFence (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), False); + x_stop_ignoring_errors (dpyinfo); XChangeProperty (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), dpyinfo->Xatom_net_wm_sync_fences, XA_CARDINAL,