From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Olivier Blin Newsgroups: gmane.emacs.bugs Subject: bug#9754: emacs -nv fails on glib 2.31 Date: Fri, 11 Nov 2011 13:32:08 +0100 Message-ID: References: <1318609098.30586.7.camel@moonpix.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1321031480 8628 80.91.229.12 (11 Nov 2011 17:11:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 17:11:20 +0000 (UTC) To: 9754@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 11 18:11:16 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ROudI-0005Gk-9R for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 18:11:16 +0100 Original-Received: from localhost ([::1]:35484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROudH-0007i9-L5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 12:11:15 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROuco-0007ev-5v for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2011 12:10:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROucn-0004St-6t for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2011 12:10:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROucn-0004Sj-5M for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2011 12:10:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ROud3-00084v-NO for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2011 12:11:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <1318609098.30586.7.camel@moonpix.lan> Resent-From: Olivier Blin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Nov 2011 17:11:01 +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.132103140730939 (code B ref 9754); Fri, 11 Nov 2011 17:11:01 +0000 Original-Received: (at 9754) by debbugs.gnu.org; 11 Nov 2011 17:10:07 +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 1ROucA-00082w-Ks for submit@debbugs.gnu.org; Fri, 11 Nov 2011 12:10:07 -0500 Original-Received: from smtp1-g21.free.fr ([212.27.42.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROqHX-0001YA-B0 for 9754@debbugs.gnu.org; Fri, 11 Nov 2011 07:32:32 -0500 Original-Received: from euphor.blino.org (unknown [IPv6:2a01:e35:8a0b:8670:211:d8ff:fe95:6468]) by smtp1-g21.free.fr (Postfix) with ESMTP id 307E79401DE for <9754@debbugs.gnu.org>; Fri, 11 Nov 2011 13:32:09 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Mailman-Approved-At: Fri, 11 Nov 2011 12:10:05 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 11 Nov 2011 12:11:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Fri, 11 Nov 2011 12:11:14 -0500 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:53811 Archived-At: --=-=-= Attached is the patch I added in Mageia to fix this bug. Something similar should be done in the emacs-23 branch. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=emacs-23.3-xgselect_init.patch Content-Description: fix infinite loop in text mode select() when built with gtk support (emacs #9754, mga #3259) diff -up emacs-23.3/src/xgselect.c.xgselect_init emacs-23.3/src/xgselect.c --- emacs-23.3/src/xgselect.c.xgselect_init 2011-01-08 18:45:14.000000000 +0100 +++ emacs-23.3/src/xgselect.c 2011-11-11 13:00:53.211765255 +0100 @@ -55,6 +55,9 @@ xg_select (max_fds, rfds, wfds, efds, ti do { if (n_gfds > gfds_size) { + if (gfds_size == 0) + xgselect_initialize (); + while (n_gfds > gfds_size) gfds_size *= 2; xfree (gfds); --=-=-= -- Olivier Blin - blino --=-=-=--