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#17975: 24.3.92; assertion failure deleting frames with varying names for the same display (and, using multiple X11 connections in that case too) Date: Sun, 13 Jul 2014 09:43:32 +0400 Message-ID: <53C21C84.6030207@yandex.ru> References: <6ea98jsjtd.fsf@just-testing.permabit.com> <53BCD52D.6090700@yandex.ru> <6eoawv616e.fsf@just-testing.permabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080108050300020002010707" X-Trace: ger.gmane.org 1405230265 11793 80.91.229.3 (13 Jul 2014 05:44:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jul 2014 05:44:25 +0000 (UTC) Cc: 17975@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 13 07:44:19 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 1X6CaA-00052h-Fv for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jul 2014 07:44:18 +0200 Original-Received: from localhost ([::1]:51233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6Ca9-00046u-Gd for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jul 2014 01:44:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6Ca1-00045u-2q for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 01:44:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6CZu-0004Ty-Cj for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 01:44:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6CZu-0004TV-6u for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 01:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X6CZt-0004ag-Ow for bug-gnu-emacs@gnu.org; Sun, 13 Jul 2014 01:44: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: Sun, 13 Jul 2014 05:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17975-submit@debbugs.gnu.org id=B17975.140523022817619 (code B ref 17975); Sun, 13 Jul 2014 05:44:01 +0000 Original-Received: (at 17975) by debbugs.gnu.org; 13 Jul 2014 05:43:48 +0000 Original-Received: from localhost ([127.0.0.1]:53421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6CZf-0004a6-Tu for submit@debbugs.gnu.org; Sun, 13 Jul 2014 01:43:48 -0400 Original-Received: from forward5o.mail.yandex.net ([37.140.190.34]:34297) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6CZc-0004Zs-6j for 17975@debbugs.gnu.org; Sun, 13 Jul 2014 01:43:46 -0400 Original-Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [37.140.190.28]) by forward5o.mail.yandex.net (Yandex) with ESMTP id 4E3231700F14; Sun, 13 Jul 2014 09:43:37 +0400 (MSK) Original-Received: from smtp3o.mail.yandex.net (localhost [127.0.0.1]) by smtp3o.mail.yandex.net (Yandex) with ESMTP id 002E71E26DC; Sun, 13 Jul 2014 09:43:36 +0400 (MSK) Original-Received: from 143.gprs.mts.ru (143.gprs.mts.ru [213.87.128.143]) by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xNGU6btnil-has0rM5O; Sun, 13 Jul 2014 09:43:36 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 2eca0501-2ea5-480c-9fdf-c64e9b01e80f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1405230216; bh=gitp/DsCM3HeKEIdI9q+l00MrHHg51HtBdzKYKMArlE=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=agHA0ujKvrmcKJJ081fwbWB2ficu6jX3EVfJxt71Jxi+/+A+Uv09zsqAecnA4vN4V 5TEAUbSTlnn+3SJ19oHzqPvn4Q57PmzN/SFjjyqnY3Lw/YXGXP7dkwGjU3VztyNW4R KXTVYEVFgke46JgxAISdUMpVQLcOWkVU+YvRgMM0= Authentication-Results: smtp3o.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.6.0 In-Reply-To: <6eoawv616e.fsf@just-testing.permabit.com> 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:91491 Archived-At: This is a multi-part message in MIME format. --------------080108050300020002010707 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 07/12/2014 01:22 AM, Ken Raeburn wrote: > It works for me too. Of course, my saved .emacs.desktop already has a > mix of display names in it; I'll have to get them in sync. I think this won't help if you're really using multiple displays, for example, :0.0 and :1.0. > But of course it isn't going to address some reasonable uses of > make-frame-on-display (including perhaps old scripts some of us may have > lying around that invoke make-frame-on-display by way of emacsclient > --eval). Perhaps a similar change can be made within the main Emacs > code? I'm afraid that we can't do anything useful on Emacs side because of libX11 bug. If you can rebuild libX11 from git, you can try this patch; I think we should create bug report at http://bugs.freedesktop.org... Dmitry --------------080108050300020002010707 Content-Type: text/x-patch; name="lcd-core-modifiers.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lcd-core-modifiers.patch" diff --git a/modules/im/ximcp/imInsClbk.c b/modules/im/ximcp/imInsClbk.c index d5527e0..97ed616 100644 --- a/modules/im/ximcp/imInsClbk.c +++ b/modules/im/ximcp/imInsClbk.c @@ -175,7 +175,14 @@ _XimRegisterIMInstantiateCallback( icb->display = display; icb->lcd = lcd; MakeLocale( lcd, icb->name ); - icb->modifiers = lcd->core->modifiers; /* XXXXX */ + if ( lcd->core->modifiers ) { + icb->modifiers = strdup( lcd->core->modifiers ); /* XXXXX */ + if ( icb->modifiers == NULL ) { + Xfree( icb ); + return( False ); + } + } else + icb->modifiers = NULL; icb->rdb = rdb; icb->res_name = res_name; icb->res_class = res_class; @@ -258,6 +265,8 @@ _XimUnRegisterIMInstantiateCallback( else picb->next = icb->next; _XCloseLC( icb->lcd ); + if( icb->modifiers ) + free( icb->modifiers ); XFree( icb ); } return( True ); --------------080108050300020002010707--