Subject: Re: pthread assertion "next != 0"
To: Arto Huusko <arto.huusko@utu.fi>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: current-users
Date: 02/13/2003 18:52:53
Arto Huusko <arto.huusko@utu.fi> writes:

> The slight problem still remains with NetBSD's pthread library: after I get
> the assertion, only kill -9 whacks the process. From the stack trace I sent
> it can be seen that abort() has been called, but the process doesn't actually
> end.

This is a problem between the pthread library and abort(); abort()
tries to clean up stdio and deadlocks in libc after masking all
signals except SIGABRT. I think you'll find that kill -ABRT also kills
the process and produces a core dump.

I'll look into making the assertions in libpthread die a bit more
forcefully.

        - Nathan