RFR (XS) JDK-8010389 - After fix for 7107135 a failed dlopen() call results in a VM crash
Christian Tornqvist
christian.tornqvist at oracle.com
Thu Mar 21 05:55:35 PDT 2013
Hi Ioi,
Adding ’-Djava.library.path=.’ to the @run tag seems to work.
Thanks,
Christian
From: Ioi Lam [mailto:ioi.lam at oracle.com]
Sent: den 21 mars 2013 05:22
To: hotspot-runtime-dev at openjdk.java.net; Christian Törnqvist
Subject: RFR (XS) JDK-8010389 - After fix for 7107135 a failed dlopen() call
results in a VM crash
Please review:
http://cr.openjdk.java.net/~iklam/8010389/dlopen_crash_001/
<http://cr.openjdk.java.net/%7Eiklam/8010389/dlopen_crash_001/>
Bug: After fix for 7107135 a failed dlopen() call results in a VM crash
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8010389
https://jbs.oracle.com/bugs/browse/JDK-8010389
(The bugs.sun.com page may be unavailable for a couple of days)
Summary of fix:
Previously, if dlopen() fails inside the VM Thread, the Java thread
would
call dlerror() to try to find out what happened, but would get a NULL
return
instead. Attempts to use this NULL value causes the JVM to crash.
The fix is to read dlerror() in the VM Thread when necessary.
To Christian:
I integrated your test into jtreg, but I needed to write a shell test to
set
the LD_LIBRARY_PATH. Is there a way to avoid the shell test?
Tests executed:
* JPRT (linux only)
* UTE (vm.quick.testlist)
* JTREG
Thanks,
Ioi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20130321/da03e612/attachment.html
More information about the hotspot-runtime-dev
mailing list