harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Archie Cobbs <arc...@dellroad.org>
Subject Re: compiling JCHEVM with GCC/Cygwin
Date Sun, 22 Jan 2006 22:46:48 GMT
Enrico Migliore wrote:
> pread() problem
> -----------------
> In the zip.c file, I temporarily substituted the pread() call
> with the following two calls:
> 
> lseek(fd,offset,SEEK_SET);
> read(fd,buf,len);
> 
> Those are perfectly equivalent to pread() except that
> they are not atomic

That is a reasonable workaround; it's not thread safe however.
In practice is probably won't matter though. You'd have to be
loading the same class at the same time from two different
class loaders for that to matter (highly unlikely).

> problems
> ----------
> jc.exe enters the main function and crashes at the first call,
> which is _jc_invoke();
> 
> In order to investigate the problem I did the following thngs:
> 
> 1. Commented _jc_invoke() and added a dummy poptGetContext() call.
>     It crashes
> 
> 2. Commented _jc_invoke() and added a printf("Hello World!");
>     It doesn't crash and print the message to the stdandard output
> 
> It seems to me that the problem is the calling convention.

I don't know enough about Windows or Cygwin to help here.
Can you run it under GDB?

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

Mime
View raw message