You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Pavlenko (JIRA)" <ji...@apache.org> on 2007/05/03 16:39:15 UTC
[jira] Commented: (HARMONY-3664) [classlib][awt] Crash in awt tests
[ https://issues.apache.org/jira/browse/HARMONY-3664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493386 ]
Andrey Pavlenko commented on HARMONY-3664:
------------------------------------------
Right, many of AWT tests which create/destroy windows cause the VM crash. This is caused by the XFree() function called several times with the same data. The patch attached to HARMONY-3541 fixes the issue.
> [classlib][awt] Crash in awt tests
> ----------------------------------
>
> Key: HARMONY-3664
> URL: https://issues.apache.org/jira/browse/HARMONY-3664
> Project: Harmony
> Issue Type: Bug
> Components: Classlib, DRLVM
> Environment: Linux@ia32
> Reporter: Alexey Varlamov
>
> AWT unit tests segfault quite often when run on DRLVM. Usually VM fails to print stackstrace (Just says "SIGSEGV in VM code."), but once I got the following trace:
> [junit] SIGSEGV in VM code.
> [junit] Stack trace:
> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.011 sec
> [junit] 0: free (??:-1)
> [junit] 1: XFree (??:-1)
> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.011 sec
> [junit] 2: Java_org_apache_harmony_awt_nativebridge_linux_X11_XFree (/export/users/avarlamo/linux.ia32/svn-repo/classlib/modules/awt/src/main/native/x11wrapper/unix/org_apache_harmony_awt_nativebridge_linux_X11.cpp:199)
> [junit] 3: 0x54A115B1 <Generated stub>
> [junit] 4: org/apache/harmony/awt/nativebridge/linux/X11.XFree(Lorg/apache/harmony/awt/nativebridge/VoidPointer;)I (X11.java:918)
> [junit] 5: org/apache/harmony/awt/wtk/linux/LinuxWindow.getParentID(J)J (LinuxWindow.java:642)
> [junit] 6: org/apache/harmony/awt/wtk/linux/LinuxWindow.getParentID()J (LinuxWindow.java:618)
> [junit] 7: org/apache/harmony/awt/wtk/linux/LinuxWindow.getBounds()Ljava/awt/Rectangle; (LinuxWindow.java:347)
> [junit] 8: org/apache/harmony/awt/wtk/linux/LinuxWindow.setInsets(Ljava/awt/Insets;)V (LinuxWindow.java:847)
> [junit] 9: org/apache/harmony/awt/wtk/linux/LinuxWindow.updateInsets()Ljava/awt/Insets; (LinuxWindow.java:390)
> [junit] 10: org/apache/harmony/awt/wtk/linux/LinuxEvent.processInsetsChange(Ljava/awt/Insets;)V (LinuxEvent.java:452)
> [junit] 11: org/apache/harmony/awt/wtk/linux/LinuxEvent.processReparentEvent(Lorg/apache/harmony/awt/nativebridge/linux/X11$XReparentEvent;)V (LinuxEvent.java:247)
> [junit] 12: org/apache/harmony/awt/wtk/linux/LinuxEvent.setEvent(Lorg/apache/harmony/awt/nativebridge/linux/X11$XEvent;)V (LinuxEvent.java:166)
> [junit] 13: org/apache/harmony/awt/wtk/linux/LinuxEvent.<init>(Lorg/apache/harmony/awt/wtk/linux/LinuxWindowFactory;Lorg/apache/harmony/awt/wtk/linux/LinuxEventQueue;Lorg/apache/harmony/awt/nativebridge/linux/X11$XEvent;)V (LinuxEvent.java:80)
> [junit] 14: org/apache/harmony/awt/wtk/linux/LinuxEventQueue.enqueue(Lorg/apache/harmony/awt/nativebridge/linux/X11$XEvent;)V (LinuxEventQueue.java:94)
> [junit] 15: org/apache/harmony/awt/wtk/linux/LinuxEventQueue.dispatchEvent()V (LinuxEventQueue.java:86)
> [junit] 16: org/apache/harmony/awt/wtk/NativeEventThread.runModalLoop()V (NativeEventThread.java:59)
> [junit] 17: org/apache/harmony/awt/wtk/NativeEventThread.run()V (NativeEventThread.java:54)
> [junit] 18: java/lang/Thread.runImpl()V (Thread.java:672)
> [junit] 19: vm_invoke_native_array_stub (/export/users/avarlamo/linux.ia32/svn-repo/drlvm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
> [junit] 20: .L59 (??:-1)
> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.011 sec
> [junit] 21: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (??:-1)
> [junit] 22: ExecuteMethod (??:-1)
> [junit] 23: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (??:-1)
> [junit] 24: call_method_no_ref_result(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*, jvalue*, int) (??:-1)
> [junit] 25: wrapper_proc (??:-1)
> [junit] 26: thread_start_proc (??:-1)
> [junit] 27: start_thread (??:-1)
> [junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 0.044 sec
> [junit] 28: clone (??:-1)
> [junit] <end of stack trace>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.