RFR: 8320959: jdk/jfr/event/runtime/TestShutdownEvent.java crash with CONF=fastdebug -Xcomp
Run `make test CONF=fastdebug TEST=jdk/jfr/event/runtime/TestShutdownEvent.java JTREG="VM_OPTIONS=-Xcomp"`, can occur SIGSEGV. <pre> # Internal Error (/home/sunguoyun/jdk-ls/src/hotspot/share/jfr/support/jfrNativeLibraryLoadEvent.cpp:107), pid=13214, tid=13215 # assert(jt->thread_state() == _thread_in_native) failed: invariant # # JRE version: OpenJDK Runtime Environment (22.0) (fastdebug build 22-internal-adhoc.sunguoyun.jdk-ls) # Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-internal-adhoc.sunguoyun.jdk-ls, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0xe9404a] NativeLibraryLoadEvent::~NativeLibraryLoadEvent()+0xd1a # # CreateCoredumpOnCrash turned off, no core file dumped # </pre> Because current thread state is '_thread_in_Java'. I had make a fix, please review it , thanks. Testing: GHA testing tier1-3 for loongarch64 ------------- Commit messages: - 8320959: jdk/jfr/event/runtime/TestShutdownEvent.java crash with CONF=fastdebug -Xcomp Changes: https://git.openjdk.org/jdk/pull/16894/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16894&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8320959 Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/16894.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/16894/head:pull/16894 PR: https://git.openjdk.org/jdk/pull/16894
On Thu, 30 Nov 2023 01:40:26 GMT, SUN Guoyun <duke@openjdk.org> wrote:
Run `make test CONF=fastdebug TEST=jdk/jfr/event/runtime/TestShutdownEvent.java JTREG="VM_OPTIONS=-Xcomp"`, can occur SIGSEGV.
<pre> # Internal Error (/home/sunguoyun/jdk-ls/src/hotspot/share/jfr/support/jfrNativeLibraryLoadEvent.cpp:107), pid=13214, tid=13215 # assert(jt->thread_state() == _thread_in_native) failed: invariant # # JRE version: OpenJDK Runtime Environment (22.0) (fastdebug build 22-internal-adhoc.sunguoyun.jdk-ls) # Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-internal-adhoc.sunguoyun.jdk-ls, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0xe9404a] NativeLibraryLoadEvent::~NativeLibraryLoadEvent()+0xd1a # # CreateCoredumpOnCrash turned off, no core file dumped # </pre>
Because current thread state is '_thread_in_Java'. I had make a fix, please review it , thanks.
Testing: GHA testing tier1-3 for loongarch64
Hi @sunny868 , please see my analysis and suggestion of what we should do in this situation, as updated in the bug, [JDK-8320959](https://bugs.openjdk.org/browse/JDK-8320959). Thanks ------------- PR Comment: https://git.openjdk.org/jdk/pull/16894#issuecomment-1841668588
Run `make test CONF=fastdebug TEST=jdk/jfr/event/runtime/TestShutdownEvent.java JTREG="VM_OPTIONS=-Xcomp"`, can occur SIGSEGV.
<pre> # Internal Error (/home/sunguoyun/jdk-ls/src/hotspot/share/jfr/support/jfrNativeLibraryLoadEvent.cpp:107), pid=13214, tid=13215 # assert(jt->thread_state() == _thread_in_native) failed: invariant # # JRE version: OpenJDK Runtime Environment (22.0) (fastdebug build 22-internal-adhoc.sunguoyun.jdk-ls) # Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-internal-adhoc.sunguoyun.jdk-ls, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0xe9404a] NativeLibraryLoadEvent::~NativeLibraryLoadEvent()+0xd1a # # CreateCoredumpOnCrash turned off, no core file dumped # </pre>
Because current thread state is '_thread_in_Java'. I had make a fix, please review it , thanks.
Testing: GHA testing tier1-3 for loongarch64
SUN Guoyun has updated the pull request incrementally with one additional commit since the last revision: 8320959: jdk/jfr/event/runtime/TestShutdownEvent.java crash with CONF=fastdebug -Xcomp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/16894/files - new: https://git.openjdk.org/jdk/pull/16894/files/e56943df..7882e95d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=16894&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16894&range=00-01 Stats: 9 lines in 1 file changed: 3 ins; 5 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/16894.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/16894/head:pull/16894 PR: https://git.openjdk.org/jdk/pull/16894
On Thu, 7 Dec 2023 03:05:46 GMT, SUN Guoyun <duke@openjdk.org> wrote:
Run `make test CONF=fastdebug TEST=jdk/jfr/event/runtime/TestShutdownEvent.java JTREG="VM_OPTIONS=-Xcomp"`, can occur SIGSEGV.
<pre> # Internal Error (/home/sunguoyun/jdk-ls/src/hotspot/share/jfr/support/jfrNativeLibraryLoadEvent.cpp:107), pid=13214, tid=13215 # assert(jt->thread_state() == _thread_in_native) failed: invariant # # JRE version: OpenJDK Runtime Environment (22.0) (fastdebug build 22-internal-adhoc.sunguoyun.jdk-ls) # Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-internal-adhoc.sunguoyun.jdk-ls, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0xe9404a] NativeLibraryLoadEvent::~NativeLibraryLoadEvent()+0xd1a # # CreateCoredumpOnCrash turned off, no core file dumped # </pre>
Because current thread state is '_thread_in_Java'. I had make a fix, please review it , thanks.
Testing: GHA testing tier1-3 for loongarch64
SUN Guoyun has updated the pull request incrementally with one additional commit since the last revision:
8320959: jdk/jfr/event/runtime/TestShutdownEvent.java crash with CONF=fastdebug -Xcomp
Marked as reviewed by mgronlun (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/16894#pullrequestreview-1770748813
On Thu, 30 Nov 2023 01:40:26 GMT, SUN Guoyun <duke@openjdk.org> wrote:
Run `make test CONF=fastdebug TEST=jdk/jfr/event/runtime/TestShutdownEvent.java JTREG="VM_OPTIONS=-Xcomp"`, can occur SIGSEGV.
<pre> # Internal Error (/home/sunguoyun/jdk-ls/src/hotspot/share/jfr/support/jfrNativeLibraryLoadEvent.cpp:107), pid=13214, tid=13215 # assert(jt->thread_state() == _thread_in_native) failed: invariant # # JRE version: OpenJDK Runtime Environment (22.0) (fastdebug build 22-internal-adhoc.sunguoyun.jdk-ls) # Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-internal-adhoc.sunguoyun.jdk-ls, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0xe9404a] NativeLibraryLoadEvent::~NativeLibraryLoadEvent()+0xd1a # # CreateCoredumpOnCrash turned off, no core file dumped # </pre>
Because current thread state is '_thread_in_Java'. I had make a fix, please review it , thanks.
Testing: GHA testing tier1-3 for loongarch64
This pull request has now been integrated. Changeset: bad5edf1 Author: sunguoyun <sunguoyun@loongson.cn> Committer: Markus Grönlund <mgronlun@openjdk.org> URL: https://git.openjdk.org/jdk/commit/bad5edf1468eb27c0c2f6f53e212de758c726395 Stats: 5 lines in 1 file changed: 3 ins; 1 del; 1 mod 8320959: jdk/jfr/event/runtime/TestShutdownEvent.java crash with CONF=fastdebug -Xcomp Co-authored-by: Markus Grönlund <mgronlun@openjdk.org> Reviewed-by: mgronlun ------------- PR: https://git.openjdk.org/jdk/pull/16894
participants (2)
-
Markus Grönlund
-
SUN Guoyun