From owner-freebsd-threads@FreeBSD.ORG Thu Jun 26 18:24:58 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2603537B401 for ; Thu, 26 Jun 2003 18:24:58 -0700 (PDT) Received: from pop017.verizon.net (pop017pub.verizon.net [206.46.170.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54F5C43F93 for ; Thu, 26 Jun 2003 18:24:57 -0700 (PDT) (envelope-from mtm@identd.net) Received: from kokeb.ambesa.net ([138.88.140.205]) by pop017.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030627012456.YLSF27254.pop017.verizon.net@kokeb.ambesa.net>; Thu, 26 Jun 2003 20:24:56 -0500 Date: Thu, 26 Jun 2003 21:24:55 -0400 From: Mike Makonnen To: Marcel Moolenaar In-Reply-To: <20030627003922.GA38103@dhcp01.pn.xcllnt.net> References: <3EFB2E12.3080504@intalio.com> <20030626203624.GA37317@dhcp01.pn.xcllnt.net> <20030627002155.UEBC11703.pop018.verizon.net@kokeb.ambesa.net> <20030627003922.GA38103@dhcp01.pn.xcllnt.net> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at pop017.verizon.net from [138.88.140.205] at Thu, 26 Jun 2003 20:24:56 -0500 Message-Id: <20030627012456.YLSF27254.pop017.verizon.net@kokeb.ambesa.net> cc: freebsd-threads@FreeBSD.org Subject: Re: libkse / libthr bugs? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 01:24:58 -0000 On Thu, 26 Jun 2003 17:39:22 -0700 Marcel Moolenaar wrote: > On Thu, Jun 26, 2003 at 08:21:54PM -0400, Mike Makonnen wrote: > > > > > > % ./foo2 1000 > > > [very long list of random "bar #" > > > : > > > bar 999 > > > bar 226 > > > bar 244 > > > Thread (_thread_initial:0) already on mutexq > > > Fatal error 'Illegal call from signal handler' at line 1347 in file > > > /nfs/freebsd/5.x/src/lib/libthr/thread/thr_mutex.c (errno = 0) > > > > Great! I've been waiting for this message to appear for some time. Do you > > have a backtrace by any chance? > > gdb(1) hasn't been ported yet, so no. > BTW: The thread is not always _thread_initial... hmm.. ok if it's not always thread initial, that's gonna make it a bit harder. Can you try this quick hack: http://people.freebsd.org/~mtm/patches/libthr.sigblock.diff It simply blocks all signals while libthr holds a lock. I'd be interested in knowing whether you still get the same errors. > > > Note that I don't have any of David's signal code patches applied. > > > > Any unbreaking of signals in the kernel would definitely help libthr. > > If it's expected to make a difference, I can grab them and try again. > Just say the word... If you have the time/inclination. I'll grab them as well and see what happens. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 mtm@FreeBSD.Org| FreeBSD - The Power To Serve