problems when running the test program on win95

Tim Wilkinson tim at transvirtual.com
Fri Jun 26 03:53:57 PDT 1998


It's probably the SP_OFFSET macro (i386/win32/cygnus/md.h) with an
incorrect value - if should point at the stack pointer offset in the
setjmp buffer.

Tim

wowow wrote:

> We have compiled kaffe on win95 successfully by modifying  a few code
> such as
>     #include XXXX, typedef struct YYYY.
>
> When we execute "kaffe HelloWorldApp", we get the error message:
> (C:\KAFFE\BIN\KAFFE.EXE 1044) Exception: STATUS_ACCESS_VIOLATION.
>
> We use 'gdb' to debug kaffe.exe, and we have found there may be some
> problems in the following codes (
> kaffe-0.10.0/kaffe/kaffevm/systems/unix-internal/internal.c:
> reschedule()) :
>
>       if (setjmp(TCTX(lastThread)->env) == 0) {
>               TCTX(lastThread)->restorePoint =
> GET_SP(TCTX(lastThread)->env);
>               longjmp(TCTX(currentThread)->env, 1);
>       }
>
> the 'gdb' gets SIGSEGV (segmentation fault) at the line
> "longjmp(TCTX(currentThread)->env, 1);"
>
> Could you give us any comment ?
>
> Thank you for your help.



--
  Tim Wilkinson                         Tel:     +1 510 704 1660
  Transvirtual Technologies, Inc.,      Fax:     +1 510 704 1893
  Berkeley, CA, USA.                    Email:   tim at transvirtual.com





More information about the kaffe mailing list