From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#9754: Issue with Emacs 23.4 Date: Fri, 18 May 2012 13:09:34 -0400 Message-ID: <4FB6824E.10804@cornell.edu> References: <4FAC34DA.7040606@cs.ucla.edu> <4FB2A9C7.3070604@cornell.edu> <4FB2CFF9.70309@cs.ucla.edu> <4FB2D8AB.7030401@cornell.edu> <878vgsrpoh.fsf@Rainer.invalid> <4FB4DB2D.7040100@cornell.edu> <4FB4F27B.40508@cornell.edu> <4FB542E2.7020304@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337361055 4924 80.91.229.3 (18 May 2012 17:10:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 May 2012 17:10:55 +0000 (UTC) Cc: 9754@debbugs.gnu.org, Achim Gratz , Paul Eggert To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 18 19:10:53 2012 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 1SVQhU-0000HX-Qj for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 May 2012 19:10:49 +0200 Original-Received: from localhost ([::1]:54415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVQhU-0007Fi-1o for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 May 2012 13:10:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVQhQ-0007FS-Nn for bug-gnu-emacs@gnu.org; Fri, 18 May 2012 13:10:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVQhO-0005JG-UB for bug-gnu-emacs@gnu.org; Fri, 18 May 2012 13:10:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVQhO-0005Ix-QI for bug-gnu-emacs@gnu.org; Fri, 18 May 2012 13:10:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SVQhi-0006qq-Ar for bug-gnu-emacs@gnu.org; Fri, 18 May 2012 13:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 May 2012 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9754 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 9754-submit@debbugs.gnu.org id=B9754.133736102826294 (code B ref 9754); Fri, 18 May 2012 17:11:02 +0000 Original-Received: (at 9754) by debbugs.gnu.org; 18 May 2012 17:10:28 +0000 Original-Received: from localhost ([127.0.0.1]:33007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SVQh7-0006q1-Gg for submit@debbugs.gnu.org; Fri, 18 May 2012 13:10:27 -0400 Original-Received: from limestone5.mail.cornell.edu ([128.253.83.165]:65119) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SVQh3-0006pn-Q9 for 9754@debbugs.gnu.org; Fri, 18 May 2012 13:10:23 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from soapstone1.mail.cornell.edu (soapstone1.mail.cornell.edu [128.253.83.143]) by limestone5.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id q4IH9pZU004044; Fri, 18 May 2012 13:09:52 -0400 (EDT) Original-Received: from authusersmtp.mail.cornell.edu (granite2.mail.cornell.edu [128.253.83.142]) by soapstone1.mail.cornell.edu (8.14.4/8.14.4) with ESMTP id q4IH9wpk023592; Fri, 18 May 2012 13:09:58 -0400 (EDT) Original-Received: from [192.168.1.4] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id q4IH9hD9007248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 18 May 2012 13:09:44 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 In-Reply-To: X-PMX-CORNELL-SPAM-CHECKED: Pawpaw X-PMX-Version: 5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.5.18.165728 X-Original-Sender: kbrown@cornell.edu - Fri May 18 13:09:45 2012 X-PMX-CORNELL-REASON: CU_White_List_Override X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:60188 Archived-At: On 5/18/2012 12:33 PM, Glenn Morris wrote: > Ken Brown wrote: > >> I understand, and I'm no longer proposing the patch for the emacs-24 >> branch. My question is about what should be done in the trunk. It >> seems to me that it would be better to use x_in_use, and I'm wondering >> if knowledgeable people agree. > > More knowledgeable people != me; but I just want to ask what the actual > issue is. You said: > > The call of g_main_context_query in xgselect.c:62 still uses the > variables gfds and gfds_size, which are not initialized by > xgselect_initialize if we're running emacs -nw. But, more > fundamentally, it doesn't make sense for emacs -nw to be interacting > with GLib at all. > > This sort of makes it sound like the last sentence is a cosmetic issue, > and it was the first bit (uninitialized variables; although they > supposedly are initialized) that stopped your Cygwin crashes. No, I shouldn't have made the last sentence sound like a cosmetic issue. Paul correctly pointed out that the variables actually are initialized, so I don't understand what caused the crashes. They only started after a recent GLib upgrade, and I wasn't able to figure out why. But in the course of debugging, I began to wonder why emacs -nw was calling GLib functions in the first place. So I applied my patch and found that the crashes stopped. > Is the crash reproducible on any other platform besides Cygwin? I don't know. It would be useful for someone to try it on a GNU/Linux system with glib >= 2.32. Prior to the patch to xgselect.c, I was able to reliably reproduce the crash by simply starting emacs -nw and then doing C-x C-f C-g. But the problem seemed to only occur when Cygwin was running on Windows XP or Windows Vista, not on Windows 7. This makes it seem likely that the issue is Cygwin specific. Ken