From owner-freebsd-threads@FreeBSD.ORG Thu Jun 26 13:36:29 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 86C9B37B401 for ; Thu, 26 Jun 2003 13:36:29 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F4D543F3F for ; Thu, 26 Jun 2003 13:36:28 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h5QKaSDZ019414; Thu, 26 Jun 2003 13:36:28 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h5QKaShn037359; Thu, 26 Jun 2003 13:36:28 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h5QKaOde037358; Thu, 26 Jun 2003 13:36:24 -0700 (PDT) (envelope-from marcel) Date: Thu, 26 Jun 2003 13:36:24 -0700 From: Marcel Moolenaar To: Alex Boisvert Message-ID: <20030626203624.GA37317@dhcp01.pn.xcllnt.net> References: <3EFB2E12.3080504@intalio.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EFB2E12.3080504@intalio.com> User-Agent: Mutt/1.5.4i 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: Thu, 26 Jun 2003 20:36:29 -0000 On Thu, Jun 26, 2003 at 10:32:02AM -0700, Alex Boisvert wrote: > > I written a small test case (see source below), which I've run against > both libkse and libthr. I'm using -CURRENT as of last Tuesday and > running on a Dual Athlon MP 1.2 GHz (Tyan Thunder K7 motherboard). On ia64 I get the following with libthr (libkse is not completely ported yet): % ./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) The same happens with 100 threads. And the failure is one out of 5 runs or something less predictable. The 'F' you see comes from "Fatal error" AFAICT. Note that I don't have any of David's signal code patches applied. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net