Subject: Re: "parked" processes hell: debug available..
To: George Michaelson <ggm@apnic.net>
From: Nick Hudson <nick.hudson@dsl.pipex.com>
List: current-users
Date: 09/17/2007 16:28:01
On Saturday 15 September 2007 02:56, George Michaelson wrote:
> On Fri, 14 Sep 2007 17:45:58 +0200
>
> Tobias Nygren <tnn@NetBSD.org> wrote:
> > > >   http://mail-index.netbsd.org/current-users/2007/09/10/0018.html
> > > >
[...]
> > > I've been speaking with Nick and the problem is understood,
> > > basically gcc is generating assembly which breaks the restartable
> > > sequences in libpthread. Stay tuned.
> >
> > Ah, that does sound like it could be the problem. I "fixed" this
> > problem on my server by compiling libpthread with COPTS="-O0" for the
> > time being.
>
> Many thanks! this worked for me too (thus far).
>
> I hacked my libpthread/Makefile to add -O0 for now.

Most arches are fixed with pthread_lock.c:1.28. I'm working on making this 
more robust.

Nick