From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 5 12:03:06 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 277061065672; Sun, 5 Feb 2012 12:03:06 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id CE8A58FC13; Sun, 5 Feb 2012 12:03:05 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so8357863obc.13 for ; Sun, 05 Feb 2012 04:03:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=0k2a+ByiI2e1RH6ywR0wa7kewUN/z6lL0QUyY26IwqI=; b=aueavf0N5Cg4ph8UEv7dEf2Saok+Kb8k3jz4D+PV757BAQc8J8aSLwv8By5kj7O32g l5iweg7IRKEe7dBdbxaV1tIU3Hk1tAtUYBDcA2G3MqPlAaapAur3hA8LTrs0MeyESdFQ rsPvtfpcSAmQQH/gWIO6e1MTvYlAX+g0juJo8= Received: by 10.182.132.105 with SMTP id ot9mr13158584obb.34.1328443385220; Sun, 05 Feb 2012 04:03:05 -0800 (PST) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.182.1.66 with HTTP; Sun, 5 Feb 2012 04:02:25 -0800 (PST) In-Reply-To: References: <201201110806.30620.jhb@freebsd.org> <5D37298B-9D68-4F0F-8AAB-E8F2DBB9D9C3@transactionware.com> From: Ivan Voras Date: Sun, 5 Feb 2012 13:02:25 +0100 X-Google-Sender-Auth: 58t-trazw2H4r5essy1gE812ez8 Message-ID: To: Garrett Cooper Content-Type: multipart/mixed; boundary=14dae93b58c8148ec504b83654c2 Cc: freebsd-hackers@freebsd.org, Xin LI , davidxu@freebsd.org, Jan Mikkelsen Subject: Re: sem(4) lockup in python? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2012 12:03:06 -0000 --14dae93b58c8148ec504b83654c2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 5 February 2012 11:44, Garrett Cooper wrote: > > =C2=A0 =C2=A0'make MAKE_JOBS_NUMBER=3D1' is the workground used right now= .. David Xu suggested that it is a bug in Python - it doesn't set process-shared attribute when it calls sem_init(), but i've tried patching it (replacing the port patchfile file the one I've attached) and I still get the hang. --14dae93b58c8148ec504b83654c2 Content-Type: application/octet-stream; name="patch-Python_thread__pthread.h.new" Content-Disposition: attachment; filename="patch-Python_thread__pthread.h.new" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gya0jz5g0 LS0tIFB5dGhvbi90aHJlYWRfcHRocmVhZC5oLm9yaWcJMjAxMi0wMi0wNSAxMjo0NjowNy4wMDAw MDAwMDAgKzAxMDAKKysrIFB5dGhvbi90aHJlYWRfcHRocmVhZC5oCTIwMTItMDItMDUgMTI6NDQ6 NTguMDAwMDAwMDAwICswMTAwCkBAIC0zOCwxMyArMzgsMTggQEAKICNlbmRpZgogI2VuZGlmCiAK KyNpZmRlZiBfX0ZyZWVCU0RfXworI2luY2x1ZGUgPG9zcmVsZGF0ZS5oPgorI2VuZGlmCisKIC8q IFRoZSBQT1NJWCBzcGVjIHNheXMgdGhhdCBpbXBsZW1lbnRhdGlvbnMgc3VwcG9ydGluZyB0aGUg c2VtXyoKICAgIGZhbWlseSBvZiBmdW5jdGlvbnMgbXVzdCBpbmRpY2F0ZSB0aGlzIGJ5IGRlZmlu aW5nCiAgICBfUE9TSVhfU0VNQVBIT1JFUy4gKi8KICNpZmRlZiBfUE9TSVhfU0VNQVBIT1JFUwog LyogT24gRnJl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