On Mon, 16 Oct 2023 21:05:58 GMT, Johannes Bechberger <jbechber...@openjdk.org> wrote:
>> Fix `onthrow` issue by passing the event info to the `initialize` method. >> >> This prevents `jdb` from receiving a broken exception event and throwing an >> internal NullPointerException, upon attaching to the JDWP-agent. > > Johannes Bechberger has updated the pull request incrementally with one > additional commit since the last revision: > > Update test/jdk/com/sun/jdi/JdwpOnThrowTest.java > > Co-authored-by: Chris Plummer <chris.plum...@oracle.com> When running with `JTREG_TEST_THREAD_FACTORY=Virtual`, I see the following fatal error: `[debuggee] FATAL ERROR in native method: JDWP getting thread invoke request, jvmtiError=AGENT_ERROR_INVALID_THREAD(203)` This happens while attaching. The debuggee then core dumps (on purpose) and the debugger side of the test throws an exception because it fails to attach. I'm not yet sure why this is happening. The main debuggee thread is being run as a virtual thread, so that seems to have something to do with it, but I'm not sure what. ------------- PR Comment: https://git.openjdk.org/jdk/pull/16145#issuecomment-1765368352