From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#14569: 24.3.50; bootstrap fails on Cygwin Date: Wed, 12 Jun 2013 09:00:13 +0200 Message-ID: <2E06A322-530C-4AA2-9282-6D2E48B1D194@swipnet.se> References: <51B5DA82.4010703@alice.it> <3EC77598-24B8-42DD-8983-5069E64AAB60@swipnet.se> <51B62175.10307@alice.it> <06F80BBC-D7CD-4E6C-97AD-EB8E476E2FC0@swipnet.se> <83sj0olh38.fsf@gnu.org> <51B7717D.6060702@cs.ucla.edu> <51B77A00.2060908@cornell.edu> <83mwqwl903.fsf@gnu.org> <51B78346.3050600@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-896FE016-0F4C-4720-84BA-84A1F3B900F3 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1371020482 16932 80.91.229.3 (12 Jun 2013 07:01:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Jun 2013 07:01:22 +0000 (UTC) Cc: "eggert@cs.ucla.edu" , "angelo.graziosi@alice.it" To: "14569@debbugs.gnu.org" <14569@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 12 09:01:18 2013 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 1Umf3V-0003YG-Qh for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jun 2013 09:01:18 +0200 Original-Received: from localhost ([::1]:33821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umf3V-0003tq-G5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Jun 2013 03:01:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umf3L-0003rM-Ow for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2013 03:01:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Umf3I-0000Pj-Nk for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2013 03:01:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umf3I-0000Pf-KJ for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2013 03:01:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Umf3I-0001F6-1I for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2013 03:01:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jun 2013 07:01:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14569 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14569-submit@debbugs.gnu.org id=B14569.13710204264576 (code B ref 14569); Wed, 12 Jun 2013 07:01:03 +0000 Original-Received: (at 14569) by debbugs.gnu.org; 12 Jun 2013 07:00:26 +0000 Original-Received: from localhost ([127.0.0.1]:57877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Umf2g-0001Bf-0o for submit@debbugs.gnu.org; Wed, 12 Jun 2013 03:00:26 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:34415) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Umf2c-0001AN-1n for 14569@debbugs.gnu.org; Wed, 12 Jun 2013 03:00:23 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id E44C6CB31 for <14569@debbugs.gnu.org>; Wed, 12 Jun 2013 09:00:14 +0200 (CEST) Original-Received: (qmail 15607 invoked by uid 89); 12 Jun 2013 07:00:14 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.melmac.se with ESMTPA; 12 Jun 2013 07:00:14 -0000 Original-Received: from [172.16.2.149] (unknown [176.57.193.190]) by coolsville.localdomain (Postfix) with ESMTPSA id 69CAD1A1B8C; Wed, 12 Jun 2013 07:00:14 +0000 (UTC) In-Reply-To: X-Mailer: iPhone Mail (10B350) 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 2.6.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:75006 Archived-At: --Apple-Mail-896FE016-0F4C-4720-84BA-84A1F3B900F3 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi. Paul Eggert wrote: > I did notice one problem: the code previously invoked g_child_watch_source= _new (0), which is not safe if Emacs has already forked -- perhaps Cygwin wa= s doing that? So I changed it to g_child_watch_source_new (getpid ()) in tru= nk bzr 112929. It is crasches much less with this change, about one in three builds. Previ= ously it crasched on every build.=20 Some sort of race condition, perhaps? As for what the threads do, I don't know. There are five threads created whe= n Emacs byte-compiles one file. Jan D.=20= --Apple-Mail-896FE016-0F4C-4720-84BA-84A1F3B900F3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi.

Paul Eggert wrote:


I did notice one problem: the code previously invoked
g_child_watch_source_new (0), which is not safe if Emacs
has already forked -- perhaps Cygwin was doing that?
So I changed it to g_child_watch_source_new (getpid ())
in trunk bzr 112929.
It is crasches much less with th=
is change, about one in three builds.  Previously it crasched on every b=
uild. 
Some sort of r= ace condition, perhaps?

As for what the t= hreads do, I don't know. There are five threads created when Emacs byte-comp= iles one file.

      Jan D.=  
= --Apple-Mail-896FE016-0F4C-4720-84BA-84A1F3B900F3--