This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

stack overflows by java.lang.reflect.Array.newInstance(Class,int)


I have a problem with Sun's/Apple's java AND gij. In my code I'm using java.lang.reflect.Array.newInstance(Class,int). But from a point on, I can't continue because Array.newInstance and

Bla[] x=new Bla[size];

are producing a StackOverflowError on java and a bus error with gij. The point is that I'm NOT in a recursion, because I can see the output on the console. gdb shows for gij:

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x02c243cc in _Jv_InterpMethod::run(void*, ffi_raw*) (this=0x60640, retp=0x0, args=0xbf800140) at ../../../gcc-3.4.2/libjava/interpret.cc:786
786 {


Does somebody know how the stack size can be increased, or if this is a bug? Array.newInstance is a native method. Giving more memory by -Xmx and -Xss doesn't help.

gcj -v
Reading specs from /usr/local/lib/gcc/powerpc-apple-darwin7.5.0/3.4.2/specs
Reading specs from /usr/local/lib/gcc/powerpc-apple-darwin7.5.0/3.4.2/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../gcc-3.4.2/configure --program-suffix=-3.4.2 --enable-languages=c,c++,objc,java
Thread model: posix
gcc version 3.4.2


uname -a
Darwin Bojan-Antonovics-Computer.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power Macintosh powerpc


My development has stalled because of this problem! And workarounds have shown new problems with gij and gcj, like it can be seen in the other postings !

Bojan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]