About 1916,
This is a Widows debugheap overrun issue in the awt code( don't know when
this was introduced ). The debug heap marks all allocations with a FD FD FD
FD before and after the allocation. During free() it checks to see is that
guardarea has been trampled on. If so, it complains with a DAMAGE dialog box
that 1916 and some other testsareshowing. The awt code via the array
accesors somehow tramples this guard area.

Here is the stack trace from 1916...
harmonyvm.dll!_free_dbg(void * pUserData=0x03bd79b8, int nBlockUse=1)
Line 1062 C
 harmonyvm.dll!free(void * pUserData=0x03bd79b8)  Line 1025 + 0xb C
 harmonyvm.dll!ReleaseByteArrayElements(JNIEnv_External * env=0x01225290,
_jobject * array=0x0013e140, char * elems=0x03bd79b8, int mode=0)  Line 915
+ 0x9 C++

accessors.dll!Java_org_apache_harmony_misc_accessors_ArrayAccessor_staticUnpinByteArray(const
JNINativeInterface_ * * env=0x0013e158, _jobject * clss=0x00593116, _jobject
* array=0x0013e160, __int64 addr=16286619071997772)  Line 78 + 0x19 C
 harmonyvm.dll!class_is_subtype(Class * s=0x01020000, Class *
t=0x03bd7a78)  Line 2730 + 0xa C++

This is going to be quite messy to debug.
I looked at 1483 ( it basically changes the int16 to int32 pointers ). We
need this. We should commit this and test 1916 with it. If 1916 is still
broken, I will debug tomorrow :-)

Rana



On 10/19/06, Ilya Okomin <[EMAIL PROTECTED]> wrote:
>
> Hi all!
>
> I was trying to run junit.awtui.TestRunner on the latest classlib+drlvm
> and
> had got "Debug Error!" window with next message:
> "DAMAGE: after Normal block (#108135) at 0x04263008.". If all these
> messages
> (they are the same with changed #... and 0x... values) ignored
> TestRunner
> application appears and it works.
>
> Steps to reproduce:
> 1. Copy junit.jar to deploy/jdk/jre/bin
> 2. Call "java -cp junit.jar junit.awtui.TestRunner" in the
> deploy/jdk/jre/bin.
>
> I want to note that junit.awtui.TestRunner works fine with J9.
> I found opened issue HARMONY-1916 [1] with the same dialog window
> occured.
>
> Does anyone know the reason of these errors?
>
> [1] http://issues.apache.org/jira/browse/HARMONY-1916
> --
> --
> Ilya Okomin
> Intel Middleware Products Division
>
>

Reply via email to