Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jun 2003 14:02:06 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        deischen@gdeb.com
Cc:        freebsd-threads@freebsd.org
Subject:   Re: libkse / libthr bugs?
Message-ID:  <Pine.BSF.4.21.0306261400400.12070-100000@InterJet.elischer.org>
In-Reply-To: <Pine.GSO.4.10.10306261424040.17056-100000@pcnet5.pcnet.com>

index | next in thread | previous in thread | raw e-mail



On Thu, 26 Jun 2003, Daniel Eischen wrote:

> On Thu, 26 Jun 2003, Alex Boisvert wrote:
> > Hi,
> > 
> > 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).
> > 
> > With libkse, the program runs most of the time (say, about 9 times out 
> > of 10) but sometimes hang and, interestingly, prints an "F" character to 
> > the console -- but that "F" character is never printed by the 
> > application itself! (see source)
> > 
> > Here are two examples of when it hangs:
> > 
> > bipolar:boisvert:~/prog/pthread:48 gcc -g -lkse -o foo2 foo2.c
> > bipolar:boisvert:~/prog/pthread:49 ./foo2 1000
> > Using 1000 threads (parameter)
> > bar 0
> > bar 1
> > bar 2
> > Fbar 3
> > ^C
> > bipolar:boisvert:~/prog/pthread:50
> > 
> > (Notice the "F" on  the last line, before I had to use CTRL-C to 
> > terminate the application).
> > 
> > Also, sometimes I get:
> > 
> > bipolar:boisvert:~/prog/pthread:65 ./foo2 1000
> > Using 1000 threads (parameter)
> > F
> > ^C
> > bipolar:boisvert:~/prog/pthread:66
> 
> I don't really see anything wrong with your test program.  There
> would seem to be a bug in libkse or perhaps even in libc (stdio
> not being thread-safe or something).
> 
> We've got some changes in the works.  I'll check them out
> with your test program.  Thanks!

There is sonething slightly wrong in the KSE system as eventeh kse test
program doesn't start up correctly occasionally.



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0306261400400.12070-100000>