From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs Subject: bug#7949: 24.0.50; GNU Emacs with Xaw3d does not launch as X client Date: Tue, 1 Feb 2011 19:02:31 +0100 Message-ID: <22A23445-32DE-4EFE-91B0-9656289F1DC0@Freenet.DE> References: <6C0C7E46-03D6-4C82-A17F-F9FCA44BC260@Freenet.DE> <4D473297.8030706@swipnet.se> <4D47B453.3010408@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296585278 16795 80.91.229.12 (1 Feb 2011 18:34:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2011 18:34:38 +0000 (UTC) Cc: 7949@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 01 19:34:34 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PkL3e-0007IQ-GX for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Feb 2011 19:34:31 +0100 Original-Received: from localhost ([127.0.0.1]:52117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkKd7-0007xr-CM for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Feb 2011 13:07:05 -0500 Original-Received: from [140.186.70.92] (port=55602 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkKcp-0007br-9F for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2011 13:06:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkKbl-0001wi-5H for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2011 13:05:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkKbl-0001we-2E for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2011 13:05:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PkKRS-0003Us-3g; Tue, 01 Feb 2011 12:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Peter Dyballa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Feb 2011 17:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7949-submit@debbugs.gnu.org id=B7949.129658285513387 (code B ref 7949); Tue, 01 Feb 2011 17:55:02 +0000 Original-Received: (at 7949) by debbugs.gnu.org; 1 Feb 2011 17:54:15 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PkKQh-0003Tr-02 for submit@debbugs.gnu.org; Tue, 01 Feb 2011 12:54:15 -0500 Original-Received: from mout7.freenet.de ([195.4.92.97]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PkKQe-0003Tf-OJ for 7949@debbugs.gnu.org; Tue, 01 Feb 2011 12:54:14 -0500 Original-Received: from [195.4.92.13] (helo=3.mx.freenet.de) by mout7.freenet.de with esmtpa (ID peter_dyballa@freenet.de) (port 25) (Exim 4.72 #3) id 1PkKYk-0001O5-VQ; Tue, 01 Feb 2011 19:02:35 +0100 Original-Received: from p5b23e8dc.dip.t-dialin.net ([91.35.232.220]:53600 helo=[192.168.1.2]) by 3.mx.freenet.de with esmtpsa (ID peter_dyballa@freenet.de) (TLSv1:AES128-SHA:128) (port 587) (Exim 4.72 #3) id 1PkKYk-00052J-Av; Tue, 01 Feb 2011 19:02:34 +0100 In-Reply-To: <4D47B453.3010408@swipnet.se> X-Mailer: Apple Mail (2.936) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 01 Feb 2011 12:55:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43814 Archived-At: Am 01.02.2011 um 08:20 schrieb Jan Dj=E4rv: > % gdb emacs > (gdb) b x_connection_closed > (gdb) r -xrm '*synchronous: true' > // error occurs > (gdb) p error_message > (gdb) bt In xterm.c I moved " */" by few lines from #7568 to #7571: /* The display may have been closed before this function is called. Check if it is still open before calling XSync. */ if (x_display_info_for_display (x_error_message->dpy) !=3D 0) XSync (x_error_message->dpy, False); =3D> /* The display may have been closed before this function is called. Check if it is still open before calling XSync. if (x_display_info_for_display (x_error_message->dpy) !=3D 0) XSync (x_error_message->dpy, False); */ Just commenting the XSync would produce an error. Then I reconfigured =20= to compile with -O0. This binary now shows this behaviour: Current directory is .../emacs-24.0.50/src/ GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:15:14 =20 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and =20 you are welcome to change it and/or distribute copies of it under certain =20 conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for =20 details. This GDB was configured as "powerpc-apple-darwin"...Reading symbols =20 for shared libraries ........................... done DISPLAY =3D :0 TERM =3D dumb Breakpoint 1 at 0x7a58bc0 Breakpoint 2 at 0x19e468: file sysdep.c, line 836. (gdb) b x_connection_closed Breakpoint 3 at 0x12a198: file xterm.c, line 7688. (gdb) r -xrm '*synchronous: true' Starting program: .../emacs-24.0.50/src/emacs -xrm '*synchronous: true' Reading symbols for shared libraries +++++++++++++++++++++++++=20 +=20 = ..........................................................................= .....................warning=20 : Could not find object file [for some bzr related things] .. done Breakpoint 1 at 0x9134abc0 Breakpoint 3, x_connection_closed (dpy=3D0x3034a00, =20 error_message=3D0xbfffb258 "X protocol error: BadValue (integer =20 parameter out of range for operation) on protocol request 45") at =20 xterm.c:7689 (gdb) p error_message $1 =3D 0xbfffb258 "X protocol error: BadValue (integer parameter out of =20= range for operation) on protocol request 45" (gdb) bt #0 x_connection_closed (dpy=3D0x3034a00, error_message=3D0xbfffb258 "X =20= protocol error: BadValue (integer parameter out of range for =20 operation) on protocol request 45") at xterm.c:7689 #1 0x0012a780 in x_error_quitter (display=3D0x3034a00, =20 error=3D0xbfffb468) at xterm.c:7862 #2 0x0012a6c0 in x_error_handler (display=3D0x3034a00, =20 error=3D0xbfffb468) at xterm.c:7832 #3 0x00780b38 in _XError () #4 0x0077d2f8 in handle_error () #5 0x0077d5e4 in handle_response () #6 0x0077e0c0 in _XReply () #7 0x0075ab74 in _XQueryFont () #8 0x0075bdd8 in XLoadQueryFont () #9 0x0060e92c in XtCvtStringToFontStruct () #10 0x0060b958 in CallConverter () #11 0x0060bf2c in _XtConvert () #12 0x0062aa60 in GetResources () #13 0x0062b124 in _XtGetResources () #14 0x00611b14 in xtCreate () #15 0x006121cc in _XtCreateWidget () #16 0x00612288 in XtCreateWidget () #17 0x00309164 in xlw_create_menubar (instance=3D0x187fd00) at lwlib-=20 Xlw.c:151 #18 0x003079d4 in instantiate_widget_instance (instance=3D0x187fd00) =20 at .../emacs-24.0.50/lwlib/lwlib.c:814 #19 0x00306494 in allocate_widget_instance (info=3D0x186cfd0, =20 parent=3D0x18568b0, pop_up_p=3D0 '\0') at = .../emacs-24.0.50/lwlib/lwlib.c:=20 308 #20 0x00307ba8 in lw_make_widget (id=3D1, parent=3D0x18568b0, pop_up_p=3D0= =20 '\0') at .../emacs-24.0.50/lwlib/lwlib.c:858 #21 0x00307c68 in lw_create_widget (type=3D0x316e70 "menubar", =20 name=3D0x316e70 "menubar", id=3D1, val=3D0x185c960, parent=3D0x18568b0, =20= pop_up_p=3D0 '\0', pre_activate_cb=3D0x7fd38 , =20= selection_cb=3D0x7ff1c , =20 post_activate_cb=3D0x7fd90 , =20 highlight_cb=3D0x7fe7c ) at .../emacs-24.0.50/=20= lwlib/lwlib.c:874 #22 0x00080fac in set_frame_menubar (f=3D0x184af10, first_time=3D1, =20 deep_p=3D1) at xmenu.c:1213 #23 0x000811b4 in initialize_frame_menubar (f=3D0x184af10) at = xmenu.c:1280 #24 0x0013b910 in Fx_create_frame (parms=3D21723694) at xfns.c:3415 #25 0x0024777c in Ffuncall (nargs=3D2, args=3D0xbfffdb00) at eval.c:2842 #26 0x002b3e94 in Fbyte_code (bytestr=3D3579993, vector=3D3580013, =20 maxdepth=3D20) at bytecode.c:676 #27 0x00248464 in funcall_lambda (fun=3D3579957, nargs=3D1, =20 arg_vector=3D0xbfffde84) at eval.c:3028 #28 0x00247b04 in Ffuncall (nargs=3D2, args=3D0xbfffde80) at eval.c:2891 #29 0x002b3e94 in Fbyte_code (bytestr=3D3917681, vector=3D3917701, =20 maxdepth=3D24) at bytecode.c:676 #30 0x00248464 in funcall_lambda (fun=3D3917653, nargs=3D1, =20 arg_vector=3D0xbfffe204) at eval.c:3028 #31 0x00247b04 in Ffuncall (nargs=3D2, args=3D0xbfffe200) at eval.c:2891 #32 0x002b3e94 in Fbyte_code (bytestr=3D3915017, vector=3D3915037, =20 maxdepth=3D24) at bytecode.c:676 #33 0x00248464 in funcall_lambda (fun=3D3914989, nargs=3D0, =20 arg_vector=3D0xbfffe584) at eval.c:3028 #34 0x00247b04 in Ffuncall (nargs=3D1, args=3D0xbfffe580) at eval.c:2891 #35 0x002b3e94 in Fbyte_code (bytestr=3D3617089, vector=3D3617109, =20 maxdepth=3D28) at bytecode.c:676 #36 0x00248464 in funcall_lambda (fun=3D3617069, nargs=3D0, =20 arg_vector=3D0xbfffe904) at eval.c:3028 #37 0x00247b04 in Ffuncall (nargs=3D1, args=3D0xbfffe900) at eval.c:2891 #38 0x002b3e94 in Fbyte_code (bytestr=3D3614513, vector=3D3614533, =20 maxdepth=3D24) at bytecode.c:676 #39 0x00248464 in funcall_lambda (fun=3D3614493, nargs=3D0, =20 arg_vector=3D0xbfffebf0) at eval.c:3028 #40 0x00247efc in apply_lambda (fun=3D3614493, args=3D41949218, =20 eval_flag=3D1) at eval.c:2954 #41 0x00245ef4 in Feval (form=3D21720750) at eval.c:2296 #42 0x0017236c in top_level_2 () at keyboard.c:1138 #43 0x002435f8 in internal_condition_case (bfun=3D0x172338 =20 , handlers=3D41977714, hfun=3D0x171c98 ) at = eval.c:=20 1408 #44 0x001723f4 in top_level_1 (ignore=3D41949218) at keyboard.c:1146 #45 0x00242d40 in internal_catch (tag=3D41975810, func=3D0x17238c =20 , arg=3D41949218) at eval.c:1152 #46 0x00172224 in command_loop () at keyboard.c:1101 #47 0x0017144c in recursive_edit_1 () at keyboard.c:731 #48 0x00171740 in Frecursive_edit () at keyboard.c:793 #49 0x0016ed48 in main (argc=3D3, argv=3D0xbffff7bc) at emacs.c:1682 Lisp Backtrace: "x-create-frame" (0xbfffdb04) "x-create-frame-with-faces" (0xbfffde84) "make-frame" (0xbfffe204) "frame-initialize" (0xbfffe584) "command-line" (0xbfffe904) "normal-top-level" (0xbfffebf0) (gdb) Line #7689 in xterm.c is the dpyinfo declaration: static SIGTYPE x_connection_closed (Display *dpy, const char *error_message) { struct x_display_info *dpyinfo =3D x_display_info_for_display (dpy); Lisp_Object frame, tail; int index =3D SPECPDL_INDEX (); error_msg =3D (char *) alloca (strlen (error_message) + 1); strcpy (error_msg, error_message); handling_signal =3D 0; /* Prevent being called recursively because of an error condition below. Otherwise, we might end up with printing ``can't find per display information'' in the recursive call instead of printing the original message here. */ x_catch_errors (dpy); -- Greetings Pete Reisen bildet - vor allem Staus auf Autobahnen. (Michael Schiff)