RFR: JDK-8317920: JDWP-agent sends broken exception event with onthrow option
Johannes Bechberger
jbechberger at openjdk.org
Mon Oct 16 07:17:12 UTC 2023
On Wed, 11 Oct 2023 10:44:53 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.
After the fix (see https://mostlynerdless.de/blog/2023/10/11/jdwp-onthrow-and-a-mysterious-error/):
➜ jdb -attach 5005
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
>
Exception occurred: Ex (to be caught at: OnThrowAndJCmd.main(), line=7 bci=18)"thread=main", OnThrowAndJCmd.main(), line=6 bci=17
main[1]
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16145#issuecomment-1763866646
More information about the serviceability-dev
mailing list