bugs in stackTrace.c

Stefan Burstroem f94sbu at efd.lth.se
Thu Aug 27 10:53:02 PDT 1998

In article <199808271556.JAA07038 at 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

>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 at omnipresence.com <<

More information about the kaffe mailing list