Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Feb 2012 13:02:25 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Xin LI <delphij@delphij.net>, davidxu@freebsd.org, Jan Mikkelsen <janm-freebsd-hackers@transactionware.com>
Subject:   Re: sem(4) lockup in python?
Message-ID:  <CAF-QHFVADLkduLH1AG_hSZeDtDVCC=FkqZxbxrsMY3Y3%2BsMZ8A@mail.gmail.com>
In-Reply-To: <CAGH67wT3HuxPHUXeTib0qJNH%2BO5snn3Eiim1bfj8LewYoKdXdA@mail.gmail.com>
References:  <jejrbe$or8$1@dough.gmane.org> <201201110806.30620.jhb@freebsd.org> <CAF-QHFWFvYTPeM68Mk%2BOYVX--MNhKOJ2o1GF9ZOsBmtiC5fYFQ@mail.gmail.com> <CAGH67wRsek2-WY_ETW6QEER1r5dDXLXfDjbzpHMjtv059Y8cJw@mail.gmail.com> <5D37298B-9D68-4F0F-8AAB-E8F2DBB9D9C3@transactionware.com> <CAGH67wT3HuxPHUXeTib0qJNH%2BO5snn3Eiim1bfj8LewYoKdXdA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--14dae93b58c8148ec504b83654c2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 5 February 2012 11:44, Garrett Cooper <yanegomi@gmail.com> 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

LS0tIFB5dGhvbi90aHJlYWRfcHRocmVhZC5oLm9y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gJm9zZXQsIE5VTEwpOwogI2lmIGRlZmlu
ZWQoVEhSRUFEX1NUQUNLX1NJWkUpIHx8IGRlZmluZWQoUFRIUkVBRF9TWVNURU1fU0NIRURfU1VQ
UE9SVEVEKQogICAgIHB0aHJlYWRfYXR0cl9kZXN0cm95KCZhdHRycyk7CiAjZW5kaWYKQEAgLTI2
NSw3ICsyNzMsNyBAQAogICAgIGxvY2sgPSAoc2VtX3QgKiltYWxsb2Moc2l6ZW9mKHNlbV90KSk7
CiAKICAgICBpZiAobG9jaykgewotICAgICAgICBzdGF0dXMgPSBzZW1faW5pdChsb2NrLDAsMSk7
CisgICAgICAgIHN0YXR1cyA9IHNlbV9pbml0KGxvY2ssMSwxKTsKICAgICAgICAgQ0hFQ0tfU1RB
VFVTKCJzZW1faW5pdCIpOwogCiAgICAgICAgIGlmIChlcnJvcikgewo=
--14dae93b58c8148ec504b83654c2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF-QHFVADLkduLH1AG_hSZeDtDVCC=FkqZxbxrsMY3Y3%2BsMZ8A>