StackWalker can crash the JVM
Aleksey Shipilev
shade at redhat.com
Tue Apr 30 08:42:06 UTC 2019
On 4/30/19 10:25 AM, Luke Hutchison wrote:
> I received a bug report that my library ClassGraph crashes the JVM:
>
> https://github.com/classgraph/classgraph/issues/341
>
> The top few stack frames are
>
> V [libjvm.dylib+0x65ca9b] ResolvedMethodTable::add_method(Handle)+0x61
> V [libjvm.dylib+0x4eabf5] CallInfo::set_resolved_method_name(Thread*)+0x5d
> V [libjvm.dylib+0x4eaaf7] CallInfo::CallInfo(Method*, Klass*, Thread*)+0x1c5
> V [libjvm.dylib+0x3a95e5]
This looks suspiciously like:
https://bugs.openjdk.java.net/browse/JDK-8210457
That fix is already backported to 11.0.4.
Further diagnostics can be helped with running with fastdebug build, and running on latest JDK too.
You can have the binaries here:
https://builds.shipilev.net/openjdk-jdk11-dev/ (bleeding edge 11.0.4+)
https://builds.shipilev.net/openjdk-jdk/ (bleeding edge 13+)
-Aleksey
More information about the jdk-dev
mailing list