http://bugzilla.novell.com/show_bug.cgi?id=596157
http://bugzilla.novell.com/show_bug.cgi?id=596157#c2
--- Comment #2 from Michal Vyskocil 2010-07-13 06:38:43 UTC ---
So, I built gcc with -O0 and now have more usable stack trace. It's available
in BS - home:mvyskocil:branches:Java:packages/ant, so you can checkout and
build it locally
(gdb) bt
#0 memcpy () at ../sysdeps/x86_64/memcpy.S:267
#1 0x00007f29130a920c in java::nio::VMDirectByteBuffer::get
(address=0x7f2909e43000, index=0, dst=0x7f290c5ec000, offset=0, length=8192)
at ../../../libjava/java/nio/natVMDirectByteBufferImpl.cc:47
#2 0x00007f291345225e in
java.nio.MappedByteBufferImpl.get(java.nio.MappedByteBufferImpl, byte[], int,
int)java.nio.ByteBuffer (this=@7f290b665000, dst=<value optimized out>,
offset=0, length=<value optimized out>) at
/usr/src/debug/gcc-4.5.0-20100628/libjava/java/nio/MappedByteBufferImpl.java:102
(gdb) frame 1
#1 0x00007f29130a920c in java::nio::VMDirectByteBuffer::get
(address=0x7f2909e43000, index=0, dst=0x7f290c5ec000, offset=0, length=8192)
at ../../../libjava/java/nio/natVMDirectByteBufferImpl.cc:47
47 memcpy (elements (dst) + offset, src, length);
(gdb) list
42 void
43 java::nio::VMDirectByteBuffer::get (RawData* address, jint index,
44 jbyteArray dst, jint offset, jint
length)
45 {
46 jbyte* src = reinterpret_cast (address) + index;
47 memcpy (elements (dst) + offset, src, length);
48 }
49
50 void
51 java::nio::VMDirectByteBuffer::put (gnu::gcj::RawData* address,
(gdb) print address
$1 = (gnu::gcj::RawData *) 0x7f2909e43000
(gdb) print src
$2 = (jbyte *) 0x7f2909e43000
I did not find the elements function - it might be the
libjava/gcj/array.h: inline T* elements(JArray<T>* x) { return x->data; }
but there's no data member in dst. But the root of the problem is probably the
Address out of bounds after reinterpret_cast call.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.