exception.c:250: dispatchException: Assertion...

Godmar Back kaffe@rufus.w3.org
Wed, 14 Jun 2000 14:43:56 -0600 (MDT)


> 
> 
> Kevin Gamiel wrote:
> > Absolutely.  I just found one problem where I am using a Debug object
> > that writes debugging messages to a single file from a few hundred
> > different threads.  I was using a PrintWriter but not explicitly closing
> > the stream after each message was written.  Kaffe is the only vm that
> > has complained about "too many open files".  
> 
> We should remember this bug, at least.  If the bug database is working 
> (http://cgi.kaffe.org/cgi-bin/kaffe) could you file a report on this?

The fix for this is of course to trigger a gc/finalization cycle if 
an open() fails because of EMFILE.

But closing fds explicitly is a good thing in any event, I think.

	- Godmar