From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matan Ninio Newsgroups: gmane.emacs.devel Subject: Re: emacs crashs when remote x-windows closes after make-frame-on-display even when other frame was closed due to assertion in xcd_xlib.c (!c->xlib.lock) Date: Mon, 24 Dec 2007 05:02:48 -0800 (PST) Message-ID: <14487449.post@talk.nabble.com> References: <471847F6.1000406@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1198501427 30255 80.91.229.12 (24 Dec 2007 13:03:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2007 13:03:47 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 24 14:04:01 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J6myN-0007AQ-6U for ged-emacs-devel@m.gmane.org; Mon, 24 Dec 2007 14:03:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6my2-0001oZ-Jn for ged-emacs-devel@m.gmane.org; Mon, 24 Dec 2007 08:03:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6mxI-0000rp-7K for emacs-devel@gnu.org; Mon, 24 Dec 2007 08:02:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6mxG-0000pn-QG for Emacs-devel@gnu.org; Mon, 24 Dec 2007 08:02:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6mxG-0000pN-CZ for Emacs-devel@gnu.org; Mon, 24 Dec 2007 08:02:50 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J6mxF-00080J-Im for Emacs-devel@gnu.org; Mon, 24 Dec 2007 08:02:49 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1J6mxE-0005fT-Mo for Emacs-devel@gnu.org; Mon, 24 Dec 2007 05:02:48 -0800 In-Reply-To: <471847F6.1000406@swipnet.se> X-Nabble-From: emacs@debug.nabblecom.gnu.ninio.org X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85429 Archived-At: emacs: xcb_xlib.c:41: xcb_xlib_lock: Assertion `!c->xlib.lock' failed. Program received signal SIGABRT, Aborted. 0xb7a547d6 in raise () from /lib/libc.so.6 (gdb) backtrace #0 0xb7a547d6 in raise () from /lib/libc.so.6 #1 0xb7a560f1 in abort () from /lib/libc.so.6 #2 0xb7a4db50 in __assert_fail () from /lib/libc.so.6 #3 0xb7a256f4 in xcb_xlib_lock () from /usr/lib/libxcb-xlib.so.0 #4 0xb7cbc6cc in _XCBInitDisplayLock () from /usr/lib/libX11.so.6 #5 0xb7cb12f5 in XSync () from /usr/lib/libX11.so.6 #6 0x080c58e9 in x_catch_errors (dpy=3D0x8a25f40) at xterm.c:7572 #7 0x080c7187 in x_connection_closed (dpy=3D0x8a25f40, error_message=3D0xbfac7550 "Connection lost to X server `:1.0'") at xterm.c:7726 #8 0x080c747b in x_io_error_quitter (display=3D0x8a25f40) at xterm.c:7888 #9 0xb7cb59dd in _XIOError () from /usr/lib/libX11.so.6 #10 0xb7cbd1ba in _XReadPad () from /usr/lib/libX11.so.6 #11 0xb7cbd918 in _XEventsQueued () from /usr/lib/libX11.so.6 #12 0xb7ca69a3 in XPending () from /usr/lib/libX11.so.6 #13 0x080cb141 in XTread_socket (sd=3D0, expected=3D1, hold_quit=3D0xbfac8a= 70) at xterm.c:7070 #14 0x080f3b50 in read_avail_input (expected=3D1) at keyboard.c:6843 #15 0x080f3d9a in handle_async_input () at keyboard.c:6989 #16 0x080f3f51 in input_available_signal (signo=3D29) at keyboard.c:7031 #17 #18 0xb7af5ff8 in ___newselect_nocancel () from /lib/libc.so.6 #19 0x08181f55 in select_wrapper (n=3D1, rfd=3D0x0, wfd=3D0xbfac8ff8, xfd= =3D0x0, tmo=3D0xbfac9128) at process.c:4225 #20 0x08184e23 in wait_reading_process_output (time_limit=3D30, microsecs= =3D0, read_kbd=3D-1, do_display=3D1, wait_for_cell=3D137472201, wait_proc=3D0x0, just_wait_proc=3D0) at process.c:4594 #21 0x08053fe6 in sit_for (timeout=3D240, reading=3D1, do_display=3D1) at dispnew.c:6579 #22 0x080f8fdb in read_char (commandflag=3D1, nmaps=3D2, maps=3D0xbfac93f0, prev_event=3D137472201, used_mouse_menu=3D0xbfac9488, end_time=3D0x0) at keyboard.c:2904 #23 0x080fabe5 in read_key_sequence (keybuf=3D0xbfac9534, bufsize=3D30, prompt=3D137472201, dont_downcase_last=3D0, can_return_switch_frame=3D1, fix_current_buffer=3D1) at keyboard.c:9135 #24 0x080fc6f3 in command_loop_1 () at keyboard.c:1618 #25 0x08152e20 in internal_condition_case (bfun=3D0x80fc560 , handlers=3D137517657, hfun=3D0x80f7020 ) at eval.c:1481 #26 0x080f6473 in command_loop_2 () at keyboard.c:1329 #27 0x08152efa in internal_catch (tag=3D137510841, func=3D0x80f6450 , arg=3D137472201) at eval.c:1222 #28 0x080f6e5c in command_loop () at keyboard.c:1308 #29 0x080f71fa in recursive_edit_1 () at keyboard.c:1006 #30 0x080f72e6 in Frecursive_edit () at keyboard.c:1067 #31 0x080ed160 in main (argc=3D3, argv=3D0xbfac9bb4) at emacs.c:1762 (gdb)=20 Jan Dj=C3=A4rv wrote: >=20 >=20 > Can you put a break at the assertion position and get a backtrace when th= e=20 > assertion is hit? >=20 > =09Jan D. >=20 > Richard Stallman skrev: >> Would someone please fix this, then ack? >>=20 >> To: bug-gnu-emacs@gnu.org >> From: Matan Ninio >> Date: Mon, 15 Oct 2007 09:10:05 +0200 >> MIME-Version: 1.0 >> Content-Type: text/plain; charset=3Dus-ascii >> Subject: emacs crashs when remote x-windows closes after >> =09make-frame-on-display even when other frame was closed due to >> =09assertion in xcd_xlib.c (!c->xlib.lock)=20 >>=20 >>=20 >> Please write in English if possible, because the Emacs maintainers >> usually do not have translators to read other languages for them. >>=20 >> Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list= , >> and to the gnu.emacs.bug news group. >>=20 >> Please describe exactly what actions triggered the bug >> and the precise symptoms of the bug: >>=20 >> open emacs in X, make frame on display to some other display (either >> directly or via ssh -X -Y) with "make-frame-on-display". Close the >> other frame. all still OK. close the other display (logout, kill X or >> kill ssh link), and emacs will crash with: >> emacs: xcb_xlib.c:41: xcb_xlib_lock: Assertion `!c->xlib.lock' failed. >>=20 >> Similar problems happened with other applications when the system moved >> from xlib to xcb-xlib. This is probably due to strict checking of >> actions that had been left unchecked in past versions of the library, >> and therefor should be considered an Emacs bug rather then a library >> bug. >> =20 >>=20 >> If Emacs crashed, and you have the Emacs process in the gdb debugger, >> please include the output from the following gdb commands: >> `bt full' and `xbacktrace'. >> If you would like to further debug the crash, please read the file >> /usr/share/emacs/22.1/etc/DEBUG for instructions. >>=20 >>=20 >> In GNU Emacs 22.1.1 (i486-pc-linux-gnu, GTK+ Version 2.10.13) >> of 2007-08-22 on raven, modified by Debian >> Windowing system distributor `The X.Org Foundation', version >> 11.0.10300000 >> configured using `configure '--build=3Di486-linux-gnu' >> '--host=3Di486-linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib= ' >> '--libexecdir=3D/usr/lib' '--localstatedir=3D/var/lib' >> '--infodir=3D/usr/share/info' '--mandir=3D/usr/share/man' '--with-pop=3D= yes' >> '--enable-locallisppath=3D/etc/emacs22:/etc/emacs:/usr/local/share/emacs= /22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site= -lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' >> '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-toolkit-scroll-bars' >> 'build_alias=3Di486-linux-gnu' 'host_alias=3Di486-linux-gnu' 'CFLAGS=3D-= DDEBIAN >> -g -O2'' >>=20 >> Important settings: >> value of $LC_ALL: nil >> value of $LC_COLLATE: nil >> value of $LC_CTYPE: nil >> value of $LC_MESSAGES: nil >> value of $LC_MONETARY: nil >> value of $LC_NUMERIC: nil >> value of $LC_TIME: nil >> value of $LANG: en_US.UTF-8 >> locale-coding-system: utf-8 >> default-enable-multibyte-characters: t >>=20 >> Major mode: Shell >>=20 >> Minor modes in effect: >> shell-dirtrack-mode: t >> display-time-mode: t >> icomplete-mode: t >> show-paren-mode: t >> tooltip-mode: t >> mouse-wheel-mode: t >> menu-bar-mode: t >> file-name-shadow-mode: t >> global-font-lock-mode: t >> font-lock-mode: t >> unify-8859-on-encoding-mode: t >> utf-translate-cjk-mode: t >> auto-compression-mode: t >> column-number-mode: t >> line-number-mode: t >>=20 >> Recent input: >> M-x r e p o r t SPC b e m > n> >>=20 >> Recent messages: >> Loading monk-fn-handler...done >> Loading desktop...done >> Loading edmacro...done >> `pmwiki-multi-source': mmm-mode is not installed >> Loading semantic-el...done >> Customized for CSE-HUJI >> Loading shell...done >> Customized for CSE-HUJI >> Loading ansi-color...done >> Loading emacsbug...done >>=20 >=20 >=20 > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel >=20 >=20 --=20 View this message in context: http://www.nabble.com/emacs-crashs-when-remot= e-x-windows-closes-after-make-frame-on-display-even-when-other-frame-was-cl= osed-due-to-assertion-in-xcd_xlib.c-%28%21c-%3Exlib.lock%29-tp13282726p1448= 7449.html Sent from the Emacs - Dev mailing list archive at Nabble.com.