You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vladimir Ivanov (JIRA)" <ji...@apache.org> on 2006/07/26 13:27:15 UTC
[jira] Created: (HARMONY-986) [classlib][drlvm] VM crashed on the
Compiler.compileClasses("zzzz") call
[classlib][drlvm] VM crashed on the Compiler.compileClasses("zzzz") call
------------------------------------------------------------------------
Key: HARMONY-986
URL: http://issues.apache.org/jira/browse/HARMONY-986
Project: Harmony
Issue Type: Bug
Components: DRLVM
Reporter: Vladimir Ivanov
The spec says for the method java.lang.Compiler.compileClasses(String)
"Returns: true if the compilation succeeded; false if the compilation failed or no compiler is available. "
but DRLVM crashed while implementation of this class in the luni-kernel module is correct.
=================== test.java ====================
public class test {
public static void main (String[] args) {
System.out.println("res = " + Compiler.compileClasses("zzzz"));
}
}
==============================================
Output:
C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized over throughput (initial strategy singleparpar))
res = false
C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -cp . -showversion test
java version 1.5 (subset)
(c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
res = false
C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, debug build
http://incubator.apache.org/harmony
ERROR: Destructive unwinding: C++ objects detected on stack!
droping 0x05D4F938
setting curr 0x05D4FA84
java.lang.OutOfMemoryError
<no stack trace available>
C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_release\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, release build
http://incubator.apache.org/harmony
ERROR: Destructive unwinding: C++ objects detected on stack!
droping 0x05C0FC34
setting curr 0x05C0FF68
java.lang.UnsatisfiedLinkError:
at test.main(test.java:3)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-986) [classlib][drlvm] VM crashed on the
Compiler.compileClasses("zzzz") call
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-986?page=all ]
Gregory Shimansky updated HARMONY-986:
--------------------------------------
Attachment: ULE.patch
The problem appears in reporting UnsatisfiedLinkError because Compiler.compileClasses native method cannot be found. The message construction for this error has a bug, instead of character strings memcpy accepts String * arguments which is definitely wrong. My patch fixes this and you should see the following output when running your test:
java.lang.UnsatisfiedLinkError: java/lang/Compiler.compileClasses(Ljava/lang/String;)Z
at CompTest.main(CompTest.java:3)
> [classlib][drlvm] VM crashed on the Compiler.compileClasses("zzzz") call
> ------------------------------------------------------------------------
>
> Key: HARMONY-986
> URL: http://issues.apache.org/jira/browse/HARMONY-986
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Vladimir Ivanov
> Attachments: ULE.patch
>
>
> The spec says for the method java.lang.Compiler.compileClasses(String)
> "Returns: true if the compilation succeeded; false if the compilation failed or no compiler is available. "
> but DRLVM crashed while implementation of this class in the luni-kernel module is correct.
> =================== test.java ====================
> public class test {
> public static void main (String[] args) {
> System.out.println("res = " + Compiler.compileClasses("zzzz"));
> }
> }
> ==============================================
> Output:
> C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized over throughput (initial strategy singleparpar))
> res = false
> C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -cp . -showversion test
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
> res = false
> C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, debug build
> http://incubator.apache.org/harmony
> ERROR: Destructive unwinding: C++ objects detected on stack!
> droping 0x05D4F938
> setting curr 0x05D4FA84
> java.lang.OutOfMemoryError
> <no stack trace available>
> C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_release\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, release build
> http://incubator.apache.org/harmony
> ERROR: Destructive unwinding: C++ objects detected on stack!
> droping 0x05C0FC34
> setting curr 0x05C0FF68
> java.lang.UnsatisfiedLinkError:
> at test.main(test.java:3)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-986) [classlib][drlvm] VM crashed on the
Compiler.compileClasses("zzzz") call
Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-986?page=comments#action_12424891 ]
Salikh Zakirov commented on HARMONY-986:
----------------------------------------
Heads up: the fix to the issue is also provided by HARMONY-856 (assorted bug fixes for DRLVM)
> [classlib][drlvm] VM crashed on the Compiler.compileClasses("zzzz") call
> ------------------------------------------------------------------------
>
> Key: HARMONY-986
> URL: http://issues.apache.org/jira/browse/HARMONY-986
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Vladimir Ivanov
> Attachments: ULE.patch
>
>
> The spec says for the method java.lang.Compiler.compileClasses(String)
> "Returns: true if the compilation succeeded; false if the compilation failed or no compiler is available. "
> but DRLVM crashed while implementation of this class in the luni-kernel module is correct.
> =================== test.java ====================
> public class test {
> public static void main (String[] args) {
> System.out.println("res = " + Compiler.compileClasses("zzzz"));
> }
> }
> ==============================================
> Output:
> C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized over throughput (initial strategy singleparpar))
> res = false
> C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -cp . -showversion test
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
> res = false
> C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, debug build
> http://incubator.apache.org/harmony
> ERROR: Destructive unwinding: C++ objects detected on stack!
> droping 0x05D4F938
> setting curr 0x05D4FA84
> java.lang.OutOfMemoryError
> <no stack trace available>
> C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_release\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, release build
> http://incubator.apache.org/harmony
> ERROR: Destructive unwinding: C++ objects detected on stack!
> droping 0x05C0FC34
> setting curr 0x05C0FF68
> java.lang.UnsatisfiedLinkError:
> at test.main(test.java:3)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-986) [classlib][drlvm] VM crashed on the
Compiler.compileClasses("zzzz") call
Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-986?page=all ]
Geir Magnusson Jr closed HARMONY-986.
-------------------------------------
Resolution: Fixed
Closing, as this was fixed in HARMONY-856
> [classlib][drlvm] VM crashed on the Compiler.compileClasses("zzzz") call
> ------------------------------------------------------------------------
>
> Key: HARMONY-986
> URL: http://issues.apache.org/jira/browse/HARMONY-986
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Vladimir Ivanov
> Attachments: ULE.patch
>
>
> The spec says for the method java.lang.Compiler.compileClasses(String)
> "Returns: true if the compilation succeeded; false if the compilation failed or no compiler is available. "
> but DRLVM crashed while implementation of this class in the luni-kernel module is correct.
> =================== test.java ====================
> public class test {
> public static void main (String[] args) {
> System.out.println("res = " + Compiler.compileClasses("zzzz"));
> }
> }
> ==============================================
> Output:
> C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
> BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized over throughput (initial strategy singleparpar))
> res = false
> C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -cp . -showversion test
> java version 1.5 (subset)
> (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
> res = false
> C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, debug build
> http://incubator.apache.org/harmony
> ERROR: Destructive unwinding: C++ objects detected on stack!
> droping 0x05D4F938
> setting curr 0x05D4FA84
> java.lang.OutOfMemoryError
> <no stack trace available>
> C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_release\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r425618, (Jul 26 2006), Windows/ia32/msvc 1310, release build
> http://incubator.apache.org/harmony
> ERROR: Destructive unwinding: C++ objects detected on stack!
> droping 0x05C0FC34
> setting curr 0x05C0FF68
> java.lang.UnsatisfiedLinkError:
> at test.main(test.java:3)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira