Subject: Re: libpthread/sem.c rev 1.8 breaks python
To: Juan RP <juan@xtrarom.org>
From: Quentin Garnier <cube@cubidou.net>
List: current-users
Date: 10/18/2005 11:38:58
--PLOb/g6AMdJ1vPHZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 18, 2005 at 11:32:46AM +0200, Juan RP wrote:
> On Tue, 18 Oct 2005 10:55:26 +0200
> Juan RP <juan@xtrarom.org> wrote:
>=20
> >=20
> > Hi,=20
> >=20
> > Looks like after your change to libpthread/sem.c, python2[34]
> > core dumps when starting xend (required for NetBSD/Xen).
> >=20
> > backtraces for python23 and python24 from pkgsrc:
> >=20
> > http://www.xtrarom.org/pthread_python2.3.txt
> > http://www.xtrarom.org/pthread_python2.4.txt
> >=20
> > Reverting to 1.7 seems to work again.
>=20
> kdump (ktrace -i) output available at:
>=20
> ftp://ftp.netbsd.org/pub/NetBSD/misc/xtraeme/python_kdump.out.bz2

What happens in process 1481 (the first one to abort()) is a failed
pthread initialisation.  It really looks like rrtimer_created is set
to 1 in pthread__setrrtimer when the program gets there from
pthread__sa_start:  the timer is not created, and timer_settime(2)
returns EINVAL because the referenced timer doesn't exist.

Could it be tied to the fact that process 2293 performs a pthread
initialisation, and then forks child 1481?

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--PLOb/g6AMdJ1vPHZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQ1TCstgoQloHrPnoAQLargf/RGbEWIOPsItBZMuSidev0ND5hCSiUw20
P8HEjSyj3nuhjn77ExPh0SlYO6NZoVlggJdokdHNuAJZ1Q4ar0wiEwBGQ1PoxYw7
AuDMwgl8wf6VXPI5S/4Oc297f7bbIds83zpIUwNOL2HtSdR9yizaCio2aoEOzVZk
EPb7u321kdOh6B0/BLbFjzl63rmwq4iSMloWrLvkCJKLL0KsAvRedpqACOwlqvSQ
PavABW3kDgSt930tQ49SFKps638gyjTaNOsT67ePZApmVc+/cTrpJKzgMCliZkd1
EjiAs80FS2fF/IRQaDZAbf5q/oSHAdosU99p8q3nIKBz7GKfzXse0g==
=CL45
-----END PGP SIGNATURE-----

--PLOb/g6AMdJ1vPHZ--