bugs in stackTrace.c

Stefan Burstroem kaffe@rufus.w3.org
27 Aug 98 18:53:02 +0100


In article <199808271556.JAA07038@sal.cs.utah.edu> you wrote:

> You're right.  I just tried starting kaffe with a non-existing
>class and it said ClassNotFoundException, just like it should, so I wondered.
>I think that's because the seg violation is caught, handled, and ignored
>somehow.  One can see the failure by running the interpreter with
>-vmdebug EXCEPTION or under gdb.

Ah, I see. The 1 access is probably causing a NULL ptr exception and
everything is handled nicely. The only problem is when this is run on
machines that doesn't have an mmu (or machines that handles bad addresses
differently)

>I assume you mean STACKTRACEMETH(trace)!=1 in the code below?

Yes. (hm, I am so used using -1 for special values :)
IMHO, the best fix would probably be to put this into
the STACKTRACEINIT macro since god knows where this code is reused and a
guess that it won't be happy about that (*)1 there either.

regards, Stefan Burstroem

-----------------------------------------------------------------------
>> Irl: Stefan Burstroem <<  >> Omnipresence Intl. <<  >> Irc: Yabba <<
 >> Phone: +46 (0)46-211 40 84 << >> EMail: stefan@omnipresence.com <<
-----------------------------------------------------------------------