Subject: bug#69762: X11 versions of Emacs 29 on sparc fail at startup

From: Ali Bahrami <[email-masked]>
Date: Thu, 14 Mar 2024 19:48:43 -0600

On 3/14/24 12:16 AM, Po Lu wrote:
> Ali Bahrami <[email-masked]> writes:
> 
>> On 3/13/24 6:17 PM, Po Lu wrote:
>>> Please run Emacs under gdb (or some other suitable debugger, e.g. dbx)
>>> with the command-line options:
>>>     -q -xrm 'Emacs.synchronous: True'
>>> exactly as written above, break on xterm.c:x_error_quitter, and
>>> reply
>>> with the backtrace generated after this breakpoint is hit.
>>
>> The gdb output follows. Thanks.
> 
> Thanks.  Does this resolve the problem?
> 
> diff --git a/src/xterm.c b/src/xterm.c
> index c8a43785564..55aba5b8604 100644
> --- a/src/xterm.c
> +++ b/src/xterm.c
> @@ -7297,11 +7297,11 @@ x_sync_init_fences (struct frame *f)
>   			/* The drawable given below is only used to
>   			   determine the screen on which the fence is
>   			   created.  */
> -			FRAME_X_WINDOW (f),
> +			FRAME_OUTER_WINDOW (f),
>   			False);
>     output->sync_fences[1]
>       = XSyncCreateFence (FRAME_X_DISPLAY (f),
> -			FRAME_X_WINDOW (f),
> +			FRAME_OUTER_WINDOW (f),
>   			False);
>   
>     XChangeProperty (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),

I'm afraid not. I get the same result as before:

     % src/emacs
     X protocol error: BadDrawable (invalid Pixmap or Window parameter) on protocol request 134
     Serial no: 1318

- Ali