You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Vladimir Ivanov <iv...@gmail.com> on 2006/11/23 06:42:22 UTC

[classlib][drlvm][swing] test TEST-javax.swing.text.DefaultStyledDocumentRTest leads to VM crash

Could somebody look at the
TEST-javax.swing.text.DefaultStyledDocumentRTest.xml test crash (log below)?
Seems, it is intermittent failure.
My configuration is SUSE 9 on 1*P4@3GHz CPU, 1Gb RAM:
vivanov> uname -a
Linux nstdrlxl5 2.6.5-7.191-bigsmp #1 SMP Tue Jun 28 14:58:56 UTC 2005 i686
i686 i386 GNU/Linux
vivanov>
 Thanks, Vladimir

Log:
........................
     [exec]     [junit] Xlib: connection to "nstdrlxl5:4.0" refused by
server
     [exec]     [junit] Xlib: No protocol specified

     [exec]     [junit] Uncaught exception in AWT-NativeEventThread:
     [exec]     [junit] java.lang.InternalError: Cannot open display ''
     [exec]     [junit]  at
java.lang.reflect.VMReflection.newClassInstance(Native
Method)
     [exec]     [junit]  at java.lang.reflect.Constructor.newInstance(Unknown
Source)
     [exec]     [junit]  at java.lang.Class.newInstance(Unknown Source)
     [exec]     [junit]  at java.awt.Toolkit.createWTK(Toolkit.java:985)
     [exec]     [junit]  at java.awt.Toolkit.access$1(Toolkit.java)
     [exec]     [junit]  at java.awt.Toolkit$1.init(Toolkit.java)
     [exec]     [junit]  at org.apache.harmony.awt.wtk.NativeEventThread.run
(NativeEventThread.java:45)
     [exec]     [junit] Uncaught exception in AWT-EventDispatchThread:
     [exec]     [junit] java.lang.NullPointerException
     [exec]     [junit]  at java.awt.Toolkit.getNativeEventQueue(
Toolkit.java)
     [exec]     [junit]  at java.awt.EventDispatchThread.run(
EventDispatchThread.java)
     [exec]     [junit] java:
/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288:
void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()' failed.
     [exec]     [junit] SIGABRT in VM code.
     [exec]     [junit] Stack trace:
     [exec]     [junit]  1: ?? (??:-1)
     [exec]     [junit]  2: abort (??:-1)
     [exec]     [junit]  3: __assert_fail (??:-1)
     [exec]     [junit]  4: vm_gc_lock_enum
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288)
     [exec]     [junit]  5: gc_alloc
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:231)
     [exec]     [junit]  6: vm_alloc_and_report_ti(unsigned int, unsigned
int, void*, Class*)
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp:1208)
     [exec]     [junit]  7: string_create
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:247)
     [exec]     [junit]  8: string_create_from_utf8(char const*, unsigned
int)
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:295)
     [exec]     [junit]  9: prepare_exc_creating
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:132)
     [exec]     [junit]  10: prepare_exc_creating
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:162)
     [exec]     [junit]  11: exn_throw_by_class_internal(Class*, char
const*, _jobject*)
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:308)
     [exec]     [junit]  12: exn_rethrow()
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:358)
     [exec]     [junit] <end of stack trace>
     [exec]     [junit] Running javax.swing.text.DefaultStyledDocumentTest
     [exec]     [junit] Test javax.swing.text.DefaultStyledDocumentRTestFAILED
     [exec]     [junit] Xlib: connection to "nstdrlxl5:4.0" refused by
server
     [exec]     [junit] Xlib: No protocol specified

     [exec]     [junit] Uncaught exception in AWT-NativeEventThread:
     [exec]     [junit] java.lang.InternalError: Cannot open display ''
     [exec]     [junit]  at
java.lang.reflect.VMReflection.newClassInstance(Native
Method)
     [exec]     [junit]  at java.lang.reflect.Constructor.newInstance(Unknown
Source)
     [exec]     [junit]  at java.lang.Class.newInstance(Unknown Source)
     [exec]     [junit]  at java.awt.Toolkit.createWTK(Toolkit.java:985)
     [exec]     [junit]  at java.awt.Toolkit.access$1(Toolkit.java)
     [exec]     [junit]  at java.awt.Toolkit$1.init(Toolkit.java)
     [exec]     [junit]  at org.apache.harmony.awt.wtk.NativeEventThread.run
(NativeEventThread.java:45)
     [exec]     [junit] Uncaught exception in AWT-EventDispatchThread:
     [exec]     [junit] java.lang.NullPointerException
     [exec]     [junit]  at java.awt.Toolkit.getNativeEventQueue(
Toolkit.java)
     [exec]     [junit]  at java.awt.EventDispatchThread.run(
EventDispatchThread.java)
     [exec]     [junit] java:
/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288:
void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()' failed.
     [exec]     [junit] SIGABRT in VM code.
     [exec]     [junit] Stack trace:
     [exec]     [junit]  1: ?? (??:-1)
     [exec]     [junit]  2: abort (??:-1)
     [exec]     [junit]  3: __assert_fail (??:-1)
     [exec]     [junit]  4: vm_gc_lock_enum
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288)
     [exec]     [junit]  5: gc_alloc
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:231)
     [exec]     [junit]  6: vm_alloc_and_report_ti(unsigned int, unsigned
int, void*, Class*)
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp:1208)
     [exec]     [junit]  7: string_create
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:247)
     [exec]     [junit]  8: string_create_from_utf8(char const*, unsigned
int)
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:295)
     [exec]     [junit]  9: prepare_exc_creating
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:132)
     [exec]     [junit]  10: prepare_exc_creating
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:162)
     [exec]     [junit]  11: exn_throw_by_class_internal(Class*, char
const*, _jobject*)
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:308)
     [exec]     [junit]  12: exn_rethrow()
(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:358)
     [exec]     [junit] <end of stack trace>
     [exec]     [junit] Running
javax.swing.text.DefaultStyledDocument_AttributeUndoableEditTest
     [exec]     [junit] Test javax.swing.text.DefaultStyledDocumentTestFAILED
     [exec]     [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed:
0.486 sec

Re: [classlib][drlvm][swing] test TEST-javax.swing.text.DefaultStyledDocumentRTest leads to VM crash

Posted by Stefano Mazzocchi <st...@apache.org>.
Chris Gray wrote:
> On Thursday 23 November 2006 07:02, Vladimir Ivanov wrote:
>> No, it is time for lunch :)
> 
> Eh? I only just had breakfast ...

and I should probably go to bed :-)

-- 
Stefano.


Re: [classlib][drlvm][swing] test TEST-javax.swing.text.DefaultStyledDocumentRTest leads to VM crash

Posted by Chris Gray <ch...@kiffer.be>.
On Thursday 23 November 2006 07:02, Vladimir Ivanov wrote:
> No, it is time for lunch :)

Eh? I only just had breakfast ...


Re: [classlib][drlvm][swing] test TEST-javax.swing.text.DefaultStyledDocumentRTest leads to VM crash

Posted by Vladimir Ivanov <iv...@gmail.com>.
While output may depends on locale here is locale information for my linux
box:

vivanov> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
vivanov>

 Thanks, Vladimir


On 11/23/06, Vladimir Ivanov <iv...@gmail.com> wrote:
>
> No, it is time for lunch :)
>
>
> On 11/23/06, Geir Magnusson Jr. <ge...@pobox.com> wrote:
> >
> > <joke>
> > seems like the big problem is here :
> >
> >     [exec]     [junit]  1: ?? (??:-1)
> >
> >
> > you are passing ?? and -1 to the ?? function.  I think you need to pass
> > ?? and 0.
> > </joke>
> >
> > Time to go to bed, I think...
> >
> > geir
> >
> >
> >
> > Vladimir Ivanov wrote:
> > > Could somebody look at the
> > > TEST-javax.swing.text.DefaultStyledDocumentRTest.xml test crash (log
> > > below)?
> > > Seems, it is intermittent failure.
> > > My configuration is SUSE 9 on 1*P4@3GHz CPU, 1Gb RAM:
> > > vivanov> uname -a
> > > Linux nstdrlxl5 2.6.5-7.191-bigsmp #1 SMP Tue Jun 28 14:58:56 UTC 2005
> > i686
> > > i686 i386 GNU/Linux
> > > vivanov>
> > > Thanks, Vladimir
> > >
> > > Log:
> > > ........................
> > >     [exec]     [junit] Xlib: connection to "nstdrlxl5: 4.0" refused by
> > > server
> > >     [exec]     [junit] Xlib: No protocol specified
> > >
> > >     [exec]     [junit] Uncaught exception in AWT-NativeEventThread:
> > >     [exec]     [junit] java.lang.InternalError : Cannot open display
> > ''
> > >     [exec]     [junit]  at
> > > java.lang.reflect.VMReflection.newClassInstance(Native
> > > Method)
> > >     [exec]     [junit]  at
> > > java.lang.reflect.Constructor.newInstance (Unknown
> > > Source)
> > >     [exec]     [junit]  at java.lang.Class.newInstance(Unknown Source)
> > >     [exec]     [junit]  at java.awt.Toolkit.createWTK(Toolkit.java
> > :985)
> > >     [exec]     [junit]  at java.awt.Toolkit.access$1 (Toolkit.java)
> > >     [exec]     [junit]  at java.awt.Toolkit$1.init(Toolkit.java)
> > >     [exec]     [junit]  at
> > org.apache.harmony.awt.wtk.NativeEventThread.run
> > > (NativeEventThread.java:45)
> > >     [exec]     [junit] Uncaught exception in AWT-EventDispatchThread:
> > >     [exec]     [junit] java.lang.NullPointerException
> > >     [exec]     [junit]  at java.awt.Toolkit.getNativeEventQueue(
> > > Toolkit.java)
> > >     [exec]     [junit]  at java.awt.EventDispatchThread.run (
> > > EventDispatchThread.java)
> > >     [exec]     [junit] java:
> > >
> > /export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288:
> > >
> > > void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()'
> > failed.
> > >     [exec]     [junit] SIGABRT in VM code.
> > >     [exec]     [junit] Stack trace:
> > >     [exec]     [junit]  1: ?? (??:-1)
> > >     [exec]     [junit]  2: abort (??:-1)
> > >     [exec]     [junit]  3: __assert_fail (??:-1)
> > >     [exec]     [junit]  4: vm_gc_lock_enum
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288)
> > >
> > >     [exec]     [junit]  5: gc_alloc
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:231)
> > >     [exec]     [junit]  6: vm_alloc_and_report_ti(unsigned int,
> > unsigned
> > > int, void*, Class*)
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp:1208)
> > >
> > >     [exec]     [junit]  7: string_create
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:247)
> > >
> > >     [exec]     [junit]  8: string_create_from_utf8(char const*,
> > unsigned
> > > int)
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:295)
> >
> > >
> > >     [exec]     [junit]  9: prepare_exc_creating
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:132)
> > >
> > >     [exec]     [junit]  10: prepare_exc_creating
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:162)
> > >
> > >     [exec]     [junit]  11: exn_throw_by_class_internal(Class*, char
> > > const*, _jobject*)
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:308)
> >
> > >
> > >     [exec]     [junit]  12: exn_rethrow()
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:358)
> > >
> > >     [exec]     [junit] <end of stack trace>
> > >     [exec]     [junit] Running
> > javax.swing.text.DefaultStyledDocumentTest
> > >     [exec]     [junit] Test
> > > javax.swing.text.DefaultStyledDocumentRTestFAILED
> > >     [exec]     [junit] Xlib: connection to "nstdrlxl5: 4.0" refused by
> > > server
> > >     [exec]     [junit] Xlib: No protocol specified
> > >
> > >     [exec]     [junit] Uncaught exception in AWT-NativeEventThread:
> > >     [exec]     [junit] java.lang.InternalError : Cannot open display
> > ''
> > >     [exec]     [junit]  at
> > > java.lang.reflect.VMReflection.newClassInstance(Native
> > > Method)
> > >     [exec]     [junit]  at
> > > java.lang.reflect.Constructor.newInstance (Unknown
> > > Source)
> > >     [exec]     [junit]  at java.lang.Class.newInstance(Unknown Source)
> > >     [exec]     [junit]  at java.awt.Toolkit.createWTK(Toolkit.java
> > :985)
> > >     [exec]     [junit]  at java.awt.Toolkit.access$1 (Toolkit.java)
> > >     [exec]     [junit]  at java.awt.Toolkit$1.init(Toolkit.java)
> > >     [exec]     [junit]  at
> > org.apache.harmony.awt.wtk.NativeEventThread.run
> > > (NativeEventThread.java:45)
> > >     [exec]     [junit] Uncaught exception in AWT-EventDispatchThread:
> > >     [exec]     [junit] java.lang.NullPointerException
> > >     [exec]     [junit]  at java.awt.Toolkit.getNativeEventQueue(
> > > Toolkit.java)
> > >     [exec]     [junit]  at java.awt.EventDispatchThread.run (
> > > EventDispatchThread.java)
> > >     [exec]     [junit] java:
> > >
> > /export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288:
> > >
> > > void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()'
> > failed.
> > >     [exec]     [junit] SIGABRT in VM code.
> > >     [exec]     [junit] Stack trace:
> > >     [exec]     [junit]  1: ?? (??:-1)
> > >     [exec]     [junit]  2: abort (??:-1)
> > >     [exec]     [junit]  3: __assert_fail (??:-1)
> > >     [exec]     [junit]  4: vm_gc_lock_enum
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288)
> > >
> > >     [exec]     [junit]  5: gc_alloc
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:231)
> > >     [exec]     [junit]  6: vm_alloc_and_report_ti(unsigned int,
> > unsigned
> > > int, void*, Class*)
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp:1208)
> > >
> > >     [exec]     [junit]  7: string_create
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:247)
> > >
> > >     [exec]     [junit]  8: string_create_from_utf8(char const*,
> > unsigned
> > > int)
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:295)
> >
> > >
> > >     [exec]     [junit]  9: prepare_exc_creating
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:132)
> > >
> > >     [exec]     [junit]  10: prepare_exc_creating
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:162)
> > >
> > >     [exec]     [junit]  11: exn_throw_by_class_internal(Class*, char
> > > const*, _jobject*)
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:308)
> >
> > >
> > >     [exec]     [junit]  12: exn_rethrow()
> > >
> > (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:358)
> > >
> > >     [exec]     [junit] <end of stack trace>
> > >     [exec]     [junit] Running
> > > javax.swing.text.DefaultStyledDocument_AttributeUndoableEditTest
> > >     [exec]     [junit] Test
> > > javax.swing.text.DefaultStyledDocumentTestFAILED
> > >     [exec]     [junit] Tests run: 7, Failures: 0, Errors: 0, Time
> > elapsed:
> > > 0.486 sec
> > >
> >
>
>

Re: [classlib][drlvm][swing] test TEST-javax.swing.text.DefaultStyledDocumentRTest leads to VM crash

Posted by Vladimir Ivanov <iv...@gmail.com>.
No, it is time for lunch :)


On 11/23/06, Geir Magnusson Jr. <ge...@pobox.com> wrote:
>
> <joke>
> seems like the big problem is here :
>
>     [exec]     [junit]  1: ?? (??:-1)
>
>
> you are passing ?? and -1 to the ?? function.  I think you need to pass
> ?? and 0.
> </joke>
>
> Time to go to bed, I think...
>
> geir
>
>
>
> Vladimir Ivanov wrote:
> > Could somebody look at the
> > TEST-javax.swing.text.DefaultStyledDocumentRTest.xml test crash (log
> > below)?
> > Seems, it is intermittent failure.
> > My configuration is SUSE 9 on 1*P4@3GHz CPU, 1Gb RAM:
> > vivanov> uname -a
> > Linux nstdrlxl5 2.6.5-7.191-bigsmp #1 SMP Tue Jun 28 14:58:56 UTC 2005
> i686
> > i686 i386 GNU/Linux
> > vivanov>
> > Thanks, Vladimir
> >
> > Log:
> > ........................
> >     [exec]     [junit] Xlib: connection to "nstdrlxl5:4.0" refused by
> > server
> >     [exec]     [junit] Xlib: No protocol specified
> >
> >     [exec]     [junit] Uncaught exception in AWT-NativeEventThread:
> >     [exec]     [junit] java.lang.InternalError: Cannot open display ''
> >     [exec]     [junit]  at
> > java.lang.reflect.VMReflection.newClassInstance(Native
> > Method)
> >     [exec]     [junit]  at
> > java.lang.reflect.Constructor.newInstance(Unknown
> > Source)
> >     [exec]     [junit]  at java.lang.Class.newInstance(Unknown Source)
> >     [exec]     [junit]  at java.awt.Toolkit.createWTK(Toolkit.java:985)
> >     [exec]     [junit]  at java.awt.Toolkit.access$1(Toolkit.java)
> >     [exec]     [junit]  at java.awt.Toolkit$1.init(Toolkit.java)
> >     [exec]     [junit]  at
> org.apache.harmony.awt.wtk.NativeEventThread.run
> > (NativeEventThread.java:45)
> >     [exec]     [junit] Uncaught exception in AWT-EventDispatchThread:
> >     [exec]     [junit] java.lang.NullPointerException
> >     [exec]     [junit]  at java.awt.Toolkit.getNativeEventQueue(
> > Toolkit.java)
> >     [exec]     [junit]  at java.awt.EventDispatchThread.run(
> > EventDispatchThread.java)
> >     [exec]     [junit] java:
> >
> /export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288:
> >
> > void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()'
> failed.
> >     [exec]     [junit] SIGABRT in VM code.
> >     [exec]     [junit] Stack trace:
> >     [exec]     [junit]  1: ?? (??:-1)
> >     [exec]     [junit]  2: abort (??:-1)
> >     [exec]     [junit]  3: __assert_fail (??:-1)
> >     [exec]     [junit]  4: vm_gc_lock_enum
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288)
> >
> >     [exec]     [junit]  5: gc_alloc
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:231)
> >     [exec]     [junit]  6: vm_alloc_and_report_ti(unsigned int, unsigned
> > int, void*, Class*)
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp:1208)
> >
> >     [exec]     [junit]  7: string_create
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:247)
> >
> >     [exec]     [junit]  8: string_create_from_utf8(char const*, unsigned
> > int)
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:295)
> >
> >     [exec]     [junit]  9: prepare_exc_creating
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:132)
> >
> >     [exec]     [junit]  10: prepare_exc_creating
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:162)
> >
> >     [exec]     [junit]  11: exn_throw_by_class_internal(Class*, char
> > const*, _jobject*)
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:308)
> >
> >     [exec]     [junit]  12: exn_rethrow()
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:358)
> >
> >     [exec]     [junit] <end of stack trace>
> >     [exec]     [junit] Running
> javax.swing.text.DefaultStyledDocumentTest
> >     [exec]     [junit] Test
> > javax.swing.text.DefaultStyledDocumentRTestFAILED
> >     [exec]     [junit] Xlib: connection to "nstdrlxl5:4.0" refused by
> > server
> >     [exec]     [junit] Xlib: No protocol specified
> >
> >     [exec]     [junit] Uncaught exception in AWT-NativeEventThread:
> >     [exec]     [junit] java.lang.InternalError: Cannot open display ''
> >     [exec]     [junit]  at
> > java.lang.reflect.VMReflection.newClassInstance(Native
> > Method)
> >     [exec]     [junit]  at
> > java.lang.reflect.Constructor.newInstance(Unknown
> > Source)
> >     [exec]     [junit]  at java.lang.Class.newInstance(Unknown Source)
> >     [exec]     [junit]  at java.awt.Toolkit.createWTK(Toolkit.java:985)
> >     [exec]     [junit]  at java.awt.Toolkit.access$1(Toolkit.java)
> >     [exec]     [junit]  at java.awt.Toolkit$1.init(Toolkit.java)
> >     [exec]     [junit]  at
> org.apache.harmony.awt.wtk.NativeEventThread.run
> > (NativeEventThread.java:45)
> >     [exec]     [junit] Uncaught exception in AWT-EventDispatchThread:
> >     [exec]     [junit] java.lang.NullPointerException
> >     [exec]     [junit]  at java.awt.Toolkit.getNativeEventQueue(
> > Toolkit.java)
> >     [exec]     [junit]  at java.awt.EventDispatchThread.run(
> > EventDispatchThread.java)
> >     [exec]     [junit] java:
> >
> /export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288:
> >
> > void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()'
> failed.
> >     [exec]     [junit] SIGABRT in VM code.
> >     [exec]     [junit] Stack trace:
> >     [exec]     [junit]  1: ?? (??:-1)
> >     [exec]     [junit]  2: abort (??:-1)
> >     [exec]     [junit]  3: __assert_fail (??:-1)
> >     [exec]     [junit]  4: vm_gc_lock_enum
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288)
> >
> >     [exec]     [junit]  5: gc_alloc
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:231)
> >     [exec]     [junit]  6: vm_alloc_and_report_ti(unsigned int, unsigned
> > int, void*, Class*)
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp:1208)
> >
> >     [exec]     [junit]  7: string_create
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:247)
> >
> >     [exec]     [junit]  8: string_create_from_utf8(char const*, unsigned
> > int)
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:295)
> >
> >     [exec]     [junit]  9: prepare_exc_creating
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:132)
> >
> >     [exec]     [junit]  10: prepare_exc_creating
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:162)
> >
> >     [exec]     [junit]  11: exn_throw_by_class_internal(Class*, char
> > const*, _jobject*)
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:308)
> >
> >     [exec]     [junit]  12: exn_rethrow()
> >
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:358)
> >
> >     [exec]     [junit] <end of stack trace>
> >     [exec]     [junit] Running
> > javax.swing.text.DefaultStyledDocument_AttributeUndoableEditTest
> >     [exec]     [junit] Test
> > javax.swing.text.DefaultStyledDocumentTestFAILED
> >     [exec]     [junit] Tests run: 7, Failures: 0, Errors: 0, Time
> elapsed:
> > 0.486 sec
> >
>

Re: [classlib][drlvm][swing] test TEST-javax.swing.text.DefaultStyledDocumentRTest leads to VM crash

Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
<joke>
seems like the big problem is here :

     [exec]     [junit]  1: ?? (??:-1)


you are passing ?? and -1 to the ?? function.  I think you need to pass 
?? and 0.
</joke>

Time to go to bed, I think...

geir



Vladimir Ivanov wrote:
> Could somebody look at the
> TEST-javax.swing.text.DefaultStyledDocumentRTest.xml test crash (log 
> below)?
> Seems, it is intermittent failure.
> My configuration is SUSE 9 on 1*P4@3GHz CPU, 1Gb RAM:
> vivanov> uname -a
> Linux nstdrlxl5 2.6.5-7.191-bigsmp #1 SMP Tue Jun 28 14:58:56 UTC 2005 i686
> i686 i386 GNU/Linux
> vivanov>
> Thanks, Vladimir
> 
> Log:
> ........................
>     [exec]     [junit] Xlib: connection to "nstdrlxl5:4.0" refused by
> server
>     [exec]     [junit] Xlib: No protocol specified
> 
>     [exec]     [junit] Uncaught exception in AWT-NativeEventThread:
>     [exec]     [junit] java.lang.InternalError: Cannot open display ''
>     [exec]     [junit]  at
> java.lang.reflect.VMReflection.newClassInstance(Native
> Method)
>     [exec]     [junit]  at 
> java.lang.reflect.Constructor.newInstance(Unknown
> Source)
>     [exec]     [junit]  at java.lang.Class.newInstance(Unknown Source)
>     [exec]     [junit]  at java.awt.Toolkit.createWTK(Toolkit.java:985)
>     [exec]     [junit]  at java.awt.Toolkit.access$1(Toolkit.java)
>     [exec]     [junit]  at java.awt.Toolkit$1.init(Toolkit.java)
>     [exec]     [junit]  at org.apache.harmony.awt.wtk.NativeEventThread.run
> (NativeEventThread.java:45)
>     [exec]     [junit] Uncaught exception in AWT-EventDispatchThread:
>     [exec]     [junit] java.lang.NullPointerException
>     [exec]     [junit]  at java.awt.Toolkit.getNativeEventQueue(
> Toolkit.java)
>     [exec]     [junit]  at java.awt.EventDispatchThread.run(
> EventDispatchThread.java)
>     [exec]     [junit] java:
> /export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288: 
> 
> void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()' failed.
>     [exec]     [junit] SIGABRT in VM code.
>     [exec]     [junit] Stack trace:
>     [exec]     [junit]  1: ?? (??:-1)
>     [exec]     [junit]  2: abort (??:-1)
>     [exec]     [junit]  3: __assert_fail (??:-1)
>     [exec]     [junit]  4: vm_gc_lock_enum
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288) 
> 
>     [exec]     [junit]  5: gc_alloc
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:231)
>     [exec]     [junit]  6: vm_alloc_and_report_ti(unsigned int, unsigned
> int, void*, Class*)
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp:1208) 
> 
>     [exec]     [junit]  7: string_create
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:247) 
> 
>     [exec]     [junit]  8: string_create_from_utf8(char const*, unsigned
> int)
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:295) 
> 
>     [exec]     [junit]  9: prepare_exc_creating
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:132) 
> 
>     [exec]     [junit]  10: prepare_exc_creating
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:162) 
> 
>     [exec]     [junit]  11: exn_throw_by_class_internal(Class*, char
> const*, _jobject*)
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:308) 
> 
>     [exec]     [junit]  12: exn_rethrow()
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:358) 
> 
>     [exec]     [junit] <end of stack trace>
>     [exec]     [junit] Running javax.swing.text.DefaultStyledDocumentTest
>     [exec]     [junit] Test 
> javax.swing.text.DefaultStyledDocumentRTestFAILED
>     [exec]     [junit] Xlib: connection to "nstdrlxl5:4.0" refused by
> server
>     [exec]     [junit] Xlib: No protocol specified
> 
>     [exec]     [junit] Uncaught exception in AWT-NativeEventThread:
>     [exec]     [junit] java.lang.InternalError: Cannot open display ''
>     [exec]     [junit]  at
> java.lang.reflect.VMReflection.newClassInstance(Native
> Method)
>     [exec]     [junit]  at 
> java.lang.reflect.Constructor.newInstance(Unknown
> Source)
>     [exec]     [junit]  at java.lang.Class.newInstance(Unknown Source)
>     [exec]     [junit]  at java.awt.Toolkit.createWTK(Toolkit.java:985)
>     [exec]     [junit]  at java.awt.Toolkit.access$1(Toolkit.java)
>     [exec]     [junit]  at java.awt.Toolkit$1.init(Toolkit.java)
>     [exec]     [junit]  at org.apache.harmony.awt.wtk.NativeEventThread.run
> (NativeEventThread.java:45)
>     [exec]     [junit] Uncaught exception in AWT-EventDispatchThread:
>     [exec]     [junit] java.lang.NullPointerException
>     [exec]     [junit]  at java.awt.Toolkit.getNativeEventQueue(
> Toolkit.java)
>     [exec]     [junit]  at java.awt.EventDispatchThread.run(
> EventDispatchThread.java)
>     [exec]     [junit] java:
> /export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288: 
> 
> void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()' failed.
>     [exec]     [junit] SIGABRT in VM code.
>     [exec]     [junit] Stack trace:
>     [exec]     [junit]  1: ?? (??:-1)
>     [exec]     [junit]  2: abort (??:-1)
>     [exec]     [junit]  3: __assert_fail (??:-1)
>     [exec]     [junit]  4: vm_gc_lock_enum
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C_Interface.cpp:2288) 
> 
>     [exec]     [junit]  5: gc_alloc
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:231)
>     [exec]     [junit]  6: vm_alloc_and_report_ti(unsigned int, unsigned
> int, void*, Class*)
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_event.cpp:1208) 
> 
>     [exec]     [junit]  7: string_create
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:247) 
> 
>     [exec]     [junit]  8: string_create_from_utf8(char const*, unsigned
> int)
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_strings.cpp:295) 
> 
>     [exec]     [junit]  9: prepare_exc_creating
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:132) 
> 
>     [exec]     [junit]  10: prepare_exc_creating
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:162) 
> 
>     [exec]     [junit]  11: exn_throw_by_class_internal(Class*, char
> const*, _jobject*)
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions_impl.cpp:308) 
> 
>     [exec]     [junit]  12: exn_rethrow()
> (/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exceptions.cpp:358) 
> 
>     [exec]     [junit] <end of stack trace>
>     [exec]     [junit] Running
> javax.swing.text.DefaultStyledDocument_AttributeUndoableEditTest
>     [exec]     [junit] Test 
> javax.swing.text.DefaultStyledDocumentTestFAILED
>     [exec]     [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed:
> 0.486 sec
>