Subject: bug#7949: 24.0.50; GNU Emacs with Xaw3d does not launch as X client

From: Jan Djärv <[email-masked]>
Date: Tue, 01 Feb 2011 08:20:51 +0100

2011-02-01 00:49, Peter Dyballa skrev:
>
> Am 31.01.2011 um 23:07 schrieb Jan Djärv:
>
>> Does commenting out the XSync in the error handler fix things?
>
> Which line is it? The first one?
>

On Emacs checked out now, it is xterm.c:7566, in function x_catch_errors.
Does Emacs emit any error message when it quits or does it just die?

You could start gdb on emacs (with or without XSync removed):

% gdb emacs
(gdb) b x_connection_closed
(gdb) r -xrm '*synchronous: true'
  // error occurs
(gdb) p error_message
(gdb) bt

This is supposing the error handler is invoked.  Anyway, if emacs dies when 
running in gdb, you will get a gdb prompt.  Do
(gdb) bt
if that happens.

	Jan D.