GetLastError() (with and without debugger)
Radosław Smogura
mail at smogura.eu
Fri Aug 12 15:00:20 UTC 2022
Hi,
I would check this as follow, trying to see if error is reset if breakpoint is set just before GetLastError, and if breakpoint is set after GetLastError(). This way it could be narrowed to interactions with debugger which happens between I/O and GetLastError().
Kind regards,
Rado Smogura
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
From: Pedro Lamarão<mailto:pedro.lamarao at prodist.com.br>
Sent: Friday, August 12, 2022 4:57 PM
To: Maurizio Cimadamore<mailto:maurizio.cimadamore at oracle.com>
Cc: Radosław Smogura<mailto:mail at smogura.eu>; Manuel Bleichenbacher<mailto:manuel.bleichenbacher at gmail.com>; panama-dev at openjdk.org<mailto:panama-dev at openjdk.org>
Subject: Re: GetLastError() (with and without debugger)
Em sex., 12 de ago. de 2022 às 11:55, Maurizio Cimadamore <maurizio.cimadamore at oracle.com<mailto:maurizio.cimadamore at oracle.com>> escreveu:
On 12/08/2022 15:53, Radosław Smogura wrote:
Hi all,
I could guess that debugger uses network and uses low level API to send and receive packets, which can cause error to be reset. But this is only my guess.
I tend to agree with your (educated) guess.
Would a debugger for the JVM do network operations from inside the program's thread?
If it does them from some other thread, that would not disturb the effectively thread local "last error".
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20220812/93b1e368/attachment-0001.htm>
More information about the panama-dev
mailing list