Subject: Re: pthread assertion "next != 0"
To: Arto Huusko <arto.huusko@utu.fi>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: current-users
Date: 02/12/2003 13:01:43
On Wed, Feb 12, 2003 at 10:17:00PM +0200, Arto Huusko wrote:
> - The app is a GTK+ 2 program (yes, all packages have been rebuilt, the
> issue is not mismatch with old thread libs)
> - When the assert fires, the process contains only one thread (and has
> never contained any other threads)
> - The general context here is this:
> * gdk_threads_enter()
> * gtk_main()
> * gtk signal handler ->
> * code which calls gdk_threads_enter()
> (I'm not sure if I'm supposed to call gdk_threads_enter() while I
> already have the GTK+ lock, but this is another issue).
Correct. You are allowed to do VERY LITTLE inside a signal handler. This
includes acquiring any mutexes.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>