[kaffe] weird GC error with bad class format

Dalibor Topic robilad@yahoo.com
Mon Feb 3 13:37:01 2003


--- Timothy Stack <stack@cs.utah.edu> wrote:

> 
> Could you post it anyways?  Itd be nice to take a
> look at it.

I agree.
 

> So, I'm not seeing this, could you use gdb and give
> us a back trace?  I am
> seeing another error though,
> libraries/clib/native/SystemClassLoader.c has
> a broken conditional:
> 
> 	if (!strcmp(info.classname,
> "java.lang.NoClassDefFoundError")) {
> 	...
> 	}
> 	else if ((info.type & KERR_EXCEPTION)
> 		&& !strcmp(info.classname,
> "java.lang.NoClassDefFoundError"))
> 	{
> 
> 	}
> 
> It looks like patch just messed up, the second 'if'
> is the correct
> conditional, but its block is empty.  So, the block
> should be deleted and
> the conditional moved up:
> 
> 	if ((info.type & KERR_EXCEPTION)
>                 && !strcmp(info.classname,
> "java.lang.NoClassDefFoundError"))
>         {
> 	...
> 	}
> 

Could you post a small patch?

cheers,
dalibor topic

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com