[kaffe] java.lang.StackOverflowError on many ppc regression tests ...

Guilhem Lavaux guilhem at kaffe.org
Sat Nov 20 10:08:09 PST 2004

Djordje Nikolic wrote:
> Hi,
> There are 12 failed regression tests currently on ppc with cvs HEAD.
> I think Riccardo reported something similar.
> Most noticeable is that this doesn't work:
> try { ((Object)null).toString(); } catch(NullPointerException e) { }
> It gets java.lang.StackOverflowError, 
> and it's a reason for many regress failures.  
> Apparently when nullExceptions() handler is called but ctx pointer
> points to something that's not struct sigcontext and so test:
> if (current_thread != NULL && stackptr <= current_thread->stackMin)
> works, because stackptr is wrong, and stackOverflowHandler is called...
> When using this patch, on ppc/linux/intrp/pthreads, I'm down to 3
> regression failures.
> Don't know if this patch is all that is to it, but it kinda works... :)

Thank you very much Djordje. Actually SIGINFO should not be defined on 
all architectures we use the real sigcontext structure. So your patch 
should be fine (we are already doing this for ix86 ...). I'll apply now.



More information about the kaffe mailing list