From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#17691: 24.3.91; crash closing remote frame Date: Thu, 05 Jun 2014 09:56:34 +0400 Message-ID: <53900692.2010900@yandex.ru> References: <6ey4xca9g0.fsf@just-testing.permabit.com> <538F59EE.5020003@yandex.ru> <6evbsg1hkr.fsf@just-testing.permabit.com> <6er4341h15.fsf@just-testing.permabit.com> <538FF7BC.8020203@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1401947849 31455 80.91.229.3 (5 Jun 2014 05:57:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2014 05:57:29 +0000 (UTC) Cc: 17691@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 05 07:57:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WsQfy-0000lg-1G for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 07:57:22 +0200 Original-Received: from localhost ([::1]:38556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsQfx-00064N-N7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 01:57:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsQfl-00062H-Ed for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 01:57:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsQfe-00012T-AL for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 01:57:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsQfe-00012N-4R for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 01:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WsQfd-0004lj-MX for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2014 01:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jun 2014 05:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17691-submit@debbugs.gnu.org id=B17691.140194781118309 (code B ref 17691); Thu, 05 Jun 2014 05:57:01 +0000 Original-Received: (at 17691) by debbugs.gnu.org; 5 Jun 2014 05:56:51 +0000 Original-Received: from localhost ([127.0.0.1]:44613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsQfS-0004lC-VP for submit@debbugs.gnu.org; Thu, 05 Jun 2014 01:56:51 -0400 Original-Received: from forward5o.mail.yandex.net ([37.140.190.34]:38826) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsQfO-0004ko-Kx for 17691@debbugs.gnu.org; Thu, 05 Jun 2014 01:56:48 -0400 Original-Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [37.140.190.29]) by forward5o.mail.yandex.net (Yandex) with ESMTP id 34106170233A; Thu, 5 Jun 2014 09:56:35 +0400 (MSK) Original-Received: from smtp4o.mail.yandex.net (localhost [127.0.0.1]) by smtp4o.mail.yandex.net (Yandex) with ESMTP id E2F112321B34; Thu, 5 Jun 2014 09:56:34 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id VoO0sH4CJB-uYoeDwDb; Thu, 5 Jun 2014 09:56:34 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 952043ab-48bc-40d0-b2f5-e9f860bce0d5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1401947794; bh=koMf3aetRwIPWKO2filXCxCj0iBdBA22dE0W0nx3C4s=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Gk8DPiTdy/xL1suvD2a06x7azxiVJuTBYxLn7WOt8iShD8hCAMigEaVPpGRGFMHjP jiTATqdvlg9uoPlcsTWHTS5VXcuayZE/LqGpBJUjZjS0r5jDDAmQ0SEJMQJw3Usbgi Z0Qn3p+6qaTppstybjefgx0ap7p0lolC2xV5L5qk= Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <538FF7BC.8020203@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90017 Archived-At: On 06/05/2014 08:53 AM, Dmitry Antipov wrote: > Please try this against emacs-24 branch or 24.3.91 (this is a backported > hybrid of trunk commits 116927 and 117126). If that works for you, this > should be incorporated into emacs-24 and included into the next pretest. BTW, could you please check one more thing for any of emacs-24, 24.3.91 or trunk and --with-x-toolkit=lucid: gdb emacs b XUnloadFont r -Q --eval '(let ((f (make-frame-on-display ":0" '"'"'((font . "7x14"))))) (delete-frame f))' When you hit the breakpoint, try to print data pointed by 'font'. I'm seeing an invalid pointers, e.g.: Breakpoint 1, XUnloadFont (dpy=0xb71180, font=25165832) at UnldFont.c:36 36 { (gdb) bt 10 #0 XUnloadFont (dpy=0xb71180, font=25165832) at UnldFont.c:36 #1 0x0000003e79015689 in FreeCacheRec (app=app@entry=0x1276370, p=0x12f6ca8, prev=prev@entry=0x3e79265770 ) at Convert.c:449 #2 0x0000003e790168fb in _XtCacheFlushTag (app=0x1276370, tag=tag@entry=0x11ba4b0) at Convert.c:491 #3 0x0000003e7901e3ae in CloseDisplay (dpy=dpy@entry=0xb71180) at Display.c:638 #4 0x0000003e7901f09c in XtCloseDisplay (dpy=0xb71180) at Display.c:680 #5 0x000000000052fc25 in x_delete_terminal (terminal=0x1133030) at ../../emacs-24.3.91/src/xterm.c:10414 #6 0x000000000050b73f in Fdelete_terminal (terminal=18034741, force=11533218) at ../../emacs-24.3.91/src/terminal.c:348 #7 0x000000000041f036 in delete_frame (frame=18107005, force=11533170) at ../../emacs-24.3.91/src/frame.c:1399 #8 0x000000000041f564 in Fdelete_frame (frame=18107005, force=11533170) at ../../emacs-24.3.91/src/frame.c:1509 #9 0x00000000005f1789 in eval_sub (form=18902422) at ../../emacs-24.3.91/src/eval.c:2188 (More stack frames follow...) (gdb) p *font Cannot access memory at address 0x1800008 (gdb) c Continuing. Breakpoint 1, XUnloadFont (dpy=dpy@entry=0xb71180, font=25165825) at UnldFont.c:36 36 { (gdb) bt 10 #0 XUnloadFont (dpy=dpy@entry=0xb71180, font=25165825) at UnldFont.c:36 #1 0x000000379461fd78 in XCloseDisplay (dpy=dpy@entry=0xb71180) at ClDisplay.c:59 #2 0x0000003e7901e4b5 in CloseDisplay (dpy=dpy@entry=0xb71180) at Display.c:664 #3 0x0000003e7901f09c in XtCloseDisplay (dpy=0xb71180) at Display.c:680 #4 0x000000000052fc25 in x_delete_terminal (terminal=0x1133030) at ../../emacs-24.3.91/src/xterm.c:10414 #5 0x000000000050b73f in Fdelete_terminal (terminal=18034741, force=11533218) at ../../emacs-24.3.91/src/terminal.c:348 #6 0x000000000041f036 in delete_frame (frame=18107005, force=11533170) at ../../emacs-24.3.91/src/frame.c:1399 #7 0x000000000041f564 in Fdelete_frame (frame=18107005, force=11533170) at ../../emacs-24.3.91/src/frame.c:1509 #8 0x00000000005f1789 in eval_sub (form=18902422) at ../../emacs-24.3.91/src/eval.c:2188 #9 0x00000000005ecb68 in Fprogn (body=18902454) at ../../emacs-24.3.91/src/eval.c:468 (More stack frames follow...) (gdb) p *font Cannot access memory at address 0x1800001 etc. Dmitry