bug in finalizer?
archie at whistle.com
Mon Oct 12 10:27:01 PDT 1998
Godmar Back writes:
> > >> The attached program will stop running the finalizer after collecting
> > >> some objects, for some reason I couldn't find out :-(
> > >> This is on Kaffe 1.0.b2, tested on Solaris/Sparc and Linux/x86.
> > > Work for me on NCR MP-RAS/x86 (jit)
> > > kaffe FinalizeBug >log 2>err &
> > Actually, it seems to work if you redirect stdout to a file. If it
> > writes to a tty, it will *wait for input* before the finalizer
> > proceeds every now and then. Incredible!!!
> Doesn't sound so incredible to me...
> I don't know what's causing it though... could you run it with
> -vmdebug DETECTDEADLOCK? Also, does it occur under gdb and if so,
> can you get backtraces of the threads involved. I'll try to
> reproduce it.
Another (weird) datapoint. The problem occurs for me under FreeBSD,
but if I run it under ktrace, it doesn't! Hmm.. a Heisenbug.. :-)
It's probably some confusion at the select() system call, perhaps
some file descriptors are getting mixed up and/or signals being
blocked at the wrong time.
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
More information about the kaffe