RFR: JDK-8317920: JDWP-agent sends broken exception event with onthrow option [v5]

Chris Plummer cjplummer at openjdk.org
Tue Oct 17 01:42:24 UTC 2023


On Mon, 16 Oct 2023 21:05:58 GMT, Johannes Bechberger <jbechberger at 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.plummer at oracle.com>

I think I know the problem with virtual threads. It has to do with the fact that the debug agent tracks and registers virtual threads differently than platform threads, and the event handling code that normally does this is not executed when processing an event in this manner. I'll work on a fix. Shouldn't be too hard but probably has to wait until tomorrow.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16145#issuecomment-1765518955


More information about the serviceability-dev mailing list