delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding; q=dns; s= | |
default; b=Rz0ExbYYwkXW+iP8hwOX3Oo0Tgpy1LYRtF8lcqiiUEibX4J4nzFU3 | |
ZI7jt7dH0APXEr7yYQ7ZGXMs5PuabdP3G005SKu51b8FSNwlw9stTZPUGNDnGnW9 | |
82jBikhl/fY9eEiAcLYPkcTCvPhyI4f9Zh0cB8VZySIR7/UwIVzvOw= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding; s=default; | |
bh=97X/iUaLfvieTPUMXTJZHkN4o04=; b=TOvh28XhokJp3Rd0s74Wdh5qWoTn | |
7qAqS/UtzrtV5M04qKnikVMeAZMojRgPvfil0jnJ9nbCyheVO2b2m3lGEufYhD6v | |
B9lxW7aYRl8k2PzpXSvGnit5rAy5O0tnmnUh6HmOm7tl4N+4RCyDtUYvfRufNg0K | |
rxev6YvQH60jKTM= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-3.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | plane.gmane.org |
To: | cygwin AT cygwin DOT com |
From: | Jean-Pierre Flori <jpflori AT gmail DOT com> |
Subject: | Re: Problem with multiprocessing module from Python |
Date: | Thu, 31 Oct 2013 18:27:39 +0000 (UTC) |
Lines: | 59 |
Message-ID: | <l4u7er$2vj$1@ger.gmane.org> |
References: | <CAHhGz88t8H_xQ6h-a6-aQrMf+wTOVT6gMnx42tMpjs=3=qGVTQ AT mail DOT gmail DOT com> <l4ei86$cos$2 AT ger DOT gmane DOT org> <l4p2uq$ps8$1 AT ger DOT gmane DOT org> <l4p6h3$801$1 AT ger DOT gmane DOT org> <20131029205935 DOT GC392 AT ednor DOT casa DOT cgf DOT cx> <l4p8oi$24u$1 AT ger DOT gmane DOT org> <l4p8vj$24u$3 AT ger DOT gmane DOT org> <20131030093313 DOT GA28558 AT calimero DOT vinschen DOT de> |
Mime-Version: | 1.0 |
User-Agent: | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
X-IsSubscribed: | yes |
Le Wed, 30 Oct 2013 10:33:13 +0100, Corinna Vinschen a écrit : > On Oct 29 21:22, Jean-Pierre Flori wrote: >> Le Tue, 29 Oct 2013 21:19:14 +0000, Jean-Pierre Flori a écrit : >> >> > Le Tue, 29 Oct 2013 16:59:35 -0400, Christopher Faylor a écrit : >> >> If you want this fixed, the easiest way to get that to happen is to >> >> post a simple test case which reproduces the problem. That is not >> >> the code snippet that you sent. A real working example would be >> >> required. >> > Sorry about that. >> > >> > Here you go: >> > """ >> > from multiprocessing import Pool >> > >> > def f(x): return x >> > >> > p = pool(2) >> > >> > p.map(f, [1, 2]) >> > """ >> And I managed to introduce a typo. The third line should read Pool, so >> it is: >> """ >> from multiprocessing import Pool >> >> def f(x): return x >> >> p = Pool(2) >> >> p.map(f, [1, 2]) >> """ > > Works for me. I guess. At least, if I run the script, nothing happens: > > $ python x.py $ > > Same on 32 and 64 bit Cygwin. > > > Corinna I think I got to the bottom of this. It seems the new implem of sem_getvalue in cgwin1.dll is the cause, see: http://cygwin.com/ml/cygwin-patches/2013-q3/msg00006.html It may also explain the random reproducibility if sval stays uninitialized or something like that (I did not check it is the case though). Reverting to 1.7.20 solved the issue on the install I tested. I guess my previous attempts to downgrade cygwin1.dll were just badly done: I just decompressed the cygwin tarball which only overwrote the dll in / usr/bin but not in /bin. Is there a canonical way to do that in a proper way? Putting it in a local directory and pointing setup.exe ot it? Best, JP -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |