[ https://issues.apache.org/jira/browse/HARMONY-4509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514898
]
Andrey Pavlenko commented on HARMONY-4509:
------------------------------------------
BTW, I was not able to reproduce VM crash until I've updated the classlib and vm sources.
Now I can reproduce similar crash only on Linux ia32, but my stack is a little bit different:
[junit] Running java.awt.color.ICC_TransformRTest
[junit] SIGSEGV in VM code.
[junit] Stack trace:
[junit] 0: Registers::get_ip() (/work/harmony/svn/drlvm/vm/vmcore/include/vm_core_types.h:124)
[junit] 1: vm_get_ip_from_regs (/work/harmony/svn/drlvm/vm/vmcore/include/vm_threads.h:62)
[junit] 2: general_signal_handler(int, siginfo*, void*) (/work/harmony/svn/drlvm/vm/vmcore/src/util/linux/signals_ia32.cpp:766)
[junit] addr2line: '[vdso]': No such file
[junit] 3: ?? (eneral_signal_handler(int, siginfo*, void*):-1)
[junit] 4: Java_org_apache_harmony_awt_gl_color_NativeCMM_cmmOpenProfile (../shared/NativeCMM.c:55)
[junit] 5: 0xA0BFFB13 <Generated stub>
[junit] 6: java/awt/color/ICC_Profile.<init>([B)V (ICC_Profile.java:326)
[junit] 7: java/awt/color/ICC_Profile.getInstance([B)Ljava/awt/color/ICC_Profile; (ICC_Profile.java:663)
[junit] 8: java/awt/color/ICC_Profile.getInstance(Ljava/io/InputStream;)Ljava/awt/color/ICC_Profile;
(ICC_Profile.java:656)
[junit] 9: java/awt/color/ICC_Profile.getInstance(Ljava/lang/String;)Ljava/awt/color/ICC_Profile;
(ICC_Profile.java:618)
[junit] 10: java/awt/color/ICC_Profile.getInstance(I)Ljava/awt/color/ICC_Profile; (ICC_Profile.java:700)
[junit] 11: java/awt/color/ICC_TransformRTest.testHarmony_4509()V (ICC_TransformRTest.java:27)
[junit] 12: vm_invoke_native_array_stub (/work/harmony/svn/drlvm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
[junit] 13: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (/work/harmony/svn/drlvm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199)
[junit] 14: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/work/harmony/svn/drlvm/vm/em/src/DrlEMImpl.cpp:509)
[junit] 15: ExecuteMethod (/work/harmony/svn/drlvm/vm/em/src/em_intf.cpp:43)
[junit] 16: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (/work/harmony/svn/drlvm/vm/vmcore/src/jit/ini.cpp:62)
[junit] 17: call_method_no_ref_result (/work/harmony/svn/drlvm/vm/vmcore/src/jni/jni_method.cpp:187)
[junit] 18: CallVoidMethodA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*) (/work/harmony/svn/drlvm/vm/vmcore/src/jni/jni_method.cpp:225)
[junit] 19: invoke_primitive_method (/work/harmony/svn/drlvm/vm/vmcore/src/kernel_classes/native/java_lang_reflect_VMReflection.cpp:186)
[junit] 20: Java_java_lang_reflect_VMReflection_invokeMethod (/work/harmony/svn/drlvm/vm/vmcore/src/kernel_classes/native/java_lang_reflect_VMReflection.cpp:222)
[junit] 21: 0xA0BFAB80 <Generated stub>
[junit] 22: java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
(Method.java:317)
[junit] 23: junit/framework/TestCase.runTest()V (TestCase.java:164)
[junit] 24: junit/framework/TestCase.runBare()V (TestCase.java:130)
[junit] 25: junit/framework/TestResult$1.protect()V (TestResult.java:106)
[junit] 26: junit/framework/TestResult.runProtected(Ljunit/framework/Test;Ljunit/framework/Protectable;)V
(TestResult.java:124)
[junit] 27: junit/framework/TestResult.run(Ljunit/framework/TestCase;)V (TestResult.java:109)
[junit] 28: junit/framework/TestCase.run(Ljunit/framework/TestResult;)V (TestCase.java:120)
[junit] 29: junit/framework/TestSuite.runTest(Ljunit/framework/Test;Ljunit/framework/TestResult;)V
(TestSuite.java:230)
[junit] 30: junit/framework/TestSuite.run(Ljunit/framework/TestResult;)V (TestSuite.java:225)
[junit] 31: org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.run()V (JUnitTestRunner.java:421)
[junit] 32: org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.launch(Lorg/apache/tools/ant/taskdefs/optional/junit/JUnitTest;ZZZZZZLjava/util/Properties;)I
(JUnitTestRunner.java:912)
[junit] 33: org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.main([Ljava/lang/String;)V
(JUnitTestRunner.java:766)
[junit] 34: vm_invoke_native_array_stub (/work/harmony/svn/drlvm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41)
[junit] 35: JIT_execute_method_default(void*, _jmethodID*, jvalue*, jvalue*) (/work/harmony/svn/drlvm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199)
[junit] 36: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) (/work/harmony/svn/drlvm/vm/em/src/DrlEMImpl.cpp:509)
[junit] 37: ExecuteMethod (/work/harmony/svn/drlvm/vm/em/src/em_intf.cpp:43)
[junit] 38: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) (/work/harmony/svn/drlvm/vm/vmcore/src/jit/ini.cpp:62)
[junit] 39: call_static_method_no_ref_result (/work/harmony/svn/drlvm/vm/vmcore/src/jni/jni_method.cpp:1154)
[junit] 40: CallStaticVoidMethodA(JNIEnv_External*, _jobject*, _jmethodID*, jvalue*)
(/work/harmony/svn/drlvm/vm/vmcore/src/jni/jni_method.cpp:1562)
[junit] 41: CallStaticVoidMethodV(JNIEnv_External*, _jobject*, _jmethodID*, char*) (/work/harmony/svn/drlvm/vm/vmcore/src/jni/jni_method.cpp:1546)
[junit] 42: CallStaticVoidMethod(JNIEnv_External*, _jobject*, _jmethodID*, ...) (/work/harmony/svn/drlvm/vm/vmcore/src/jni/jni_method.cpp:1536)
[junit] 43: main_runJavaMain (../shared/main.c:1324)
[junit] 44: invocation (../shared/main.c:740)
[junit] 45: gpProtectedMain (../shared/main.c:389)
[junit] 46: main (../shared/cmain.c:146)
[junit] 47: __libc_start_main (??:-1)
[junit] 48: _start (../sysdeps/i386/elf/start.S:105)
[junit] <end of stack trace>
[junit] Running java.awt.color.ICC_TransformRTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Test java.awt.color.ICC_TransformRTest FAILED (crashed)
> [classlib][awt] ICC color transformation does not work
> ------------------------------------------------------
>
> Key: HARMONY-4509
> URL: https://issues.apache.org/jira/browse/HARMONY-4509
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Andrey Pavlenko
> Assignee: Alexei Zakharov
> Attachments: HARMONY-4509-cmmio.patch, HARMONY-4509-ICC_TransformRTest.patch
>
>
> The following test case fails with java.awt.color.CMMException: Can't create ICC transform:
> public void test() {
> new ICC_Transform(new ICC_Profile[] {
> ICC_Profile.getInstance(ColorSpace.CS_sRGB),
> ICC_Profile.getInstance(ColorSpace.CS_GRAY) });
> }
> Stack: java.awt.color.CMMException: Can't create ICC transform
> at org.apache.harmony.awt.gl.color.NativeCMM.cmmCreateMultiprofileTransform(NativeCMM.java)
> at org.apache.harmony.awt.gl.color.ICC_Transform.<init>(ICC_Transform.java:131)
> Note: to reproduce this issue the system property "java.iccprofile.path" should point
to a directory with sRGB and GRAY profiles. See HARMONY-4381.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|