<div dir="ltr">will do! thank you so much</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 18, 2023 at 5:16 PM Chris Plummer <<a href="mailto:chris.plummer@oracle.com">chris.plummer@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">

  
  <div>
    <p>I'll need thorough step-by-step instructions for Vlad's test
      case, including installation of all needed components.</p>
    <p>Can you at least verify if you are still seeing the following,
      and if so can you send me the output that includes the line number
      in threadControl.c?</p>
    <p>
      > JDWP exit error AGENT_ERROR_INVALID_THREAD(203): missing
      entry in <br>
      > running thread table <br>
      >
      [src/jdk.jdwp.agent/share/native/libjdwp/threadControl.c:1109]</p>
    <p>thanks,</p>
    <p>Chris<br>
    </p>
    <div>On 9/18/23 4:50 PM, Ben Berman wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Thanks for replying to this. I am not sophisticated enough
          to answer these questions. Since this bug is real, the best
          thing would be if someone who is more sophisticated tries the
          reproduction that is simpler and shared by Vlad here: <a href="https://urldefense.com/v3/__https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction*focus=Comments-27-7821461.0-0__;Iw!!ACWV5N9M2RV99hQ!JMtWDF29MAzj0ca7Bz1ZM1-F2-PbLDIsjzRCv0Fonmp9-ytTR5QAIKPtP1jK8etz8-IMCRjuMdAzMGXEP07X0OgkDqdYcA$" target="_blank">https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction#focus=Comments-27-7821461.0-0</a>
          . It reproduces in:<br>
          <br>
          openjdk version "21" 2023-09-19<br>
          OpenJDK Runtime Environment (build 21+35-2513)<br>
          OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode,
          sharing)<br>
          <br>
        </div>
        on Windows.<br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, Jul 10, 2023 at
          6:52 PM Chris Plummer <<a href="mailto:chris.plummer@oracle.com" target="_blank">chris.plummer@oracle.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">One
          other thing to add. When you see a "JDWP exit error" like you
          <br>
          mentioned, that should result in the debuggee exiting. I'm not
          sure how <br>
          you are seeing the println() also being executed, unless the
          "JDWP exit <br>
          error" is happening afterwards, such as when the debuggee
          exits on its <br>
          own, and the debug agent is shutting down.<br>
          <br>
          Chris<br>
          <br>
          On 7/10/23 3:27 PM, Chris Plummer wrote:<br>
          > Hi Ben,<br>
          ><br>
          > The first time I read this I didn't notice the link you
          provided to <br>
          > the jetbrains issue you filed. I see about halfway down
          the page you <br>
          > show the following exception:<br>
          ><br>
          > JDWP exit error AGENT_ERROR_INVALID_THREAD(203): missing
          entry in <br>
          > running thread table <br>
          >
          [src/jdk.jdwp.agent/share/native/libjdwp/threadControl.c:1109]<br>
          ><br>
          > As is pointed out later in this issue page, this looks
          like <br>
          > JDK-8305209 <<a href="https://bugs.openjdk.org/browse/JDK-8305209" rel="noreferrer" target="_blank">https://bugs.openjdk.org/browse/JDK-8305209</a>>,
          which was <br>
          > fixed a few months ago. You were ask to try a recent
          version of JDK <br>
          > 21, and you replied back that it still reproduced, but
          the error you <br>
          > show later indicates that it is still happening at line
          1109. It <br>
          > should be line 1116 if you are using a fixed version.
          Just wanted to <br>
          > double check that line 1116 is the line number you are
          seeing the <br>
          > error at when you use JDK 21.<br>
          ><br>
          > Also, when this error happens, it should cause the
          debuggee to exit <br>
          > with a core file and hs_err file. Are either of these
          present? The <br>
          > hs_err file would be very useful since it will contain a
          stack trace <br>
          > at the point of the error.<br>
          ><br>
          > thanks,<br>
          ><br>
          > Chris<br>
          ><br>
          > On 6/29/23 2:23 PM, Ben Berman wrote:<br>
          >> Investigating an issue in both IntelliJ and Eclipse
          debuggers led to <br>
          >> this bug: I can't break inside an anonymous class
          method of the form<br>
          >><br>
          >> ```<br>
          >> new Object() {<br>
          >>   void test() {<br>
          >>     System.out.println("breakpoint here does not
          work");<br>
          >>   }<br>
          >> }.test();<br>
          >> ```<br>
          >><br>
          >> due to a buggy interaction between JDWP and virtual
          threads. The <br>
          >> console statement in the example above does indeed
          print, i.e. it is <br>
          >> executed.<br>
          >><br>
          >> What would the next steps be to help with
          investigating and resolving <br>
          >> this issue?<br>
          >><br>
          >> <a href="https://urldefense.com/v3/__https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=*0A*0AIU-231.9161.38,*20JRE*2017.0.7*2B10-b829.16x64*20JetBrains*20s.r.o__;JSUlJSUlJQ!!ACWV5N9M2RV99hQ!JMtWDF29MAzj0ca7Bz1ZM1-F2-PbLDIsjzRCv0Fonmp9-ytTR5QAIKPtP1jK8etz8-IMCRjuMdAzMGXEP07X0Oh4JstG1A$" rel="noreferrer" target="_blank">https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=%0A%0AIU-231.9161.38,%20JRE%2017.0.7%2B10-b829.16x64%20JetBrains%20s.r.o</a>
          <br>
          >> <<a href="https://urldefense.com/v3/__https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=*0A*0AIU-231.9161.38,*20JRE*2017.0.7*2B10-b829.16x64*20JetBrains*20s.r.o__;JSUlJSUlJQ!!ACWV5N9M2RV99hQ!JMtWDF29MAzj0ca7Bz1ZM1-F2-PbLDIsjzRCv0Fonmp9-ytTR5QAIKPtP1jK8etz8-IMCRjuMdAzMGXEP07X0Oh4JstG1A$" rel="noreferrer" target="_blank">https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=%0A%0AIU-231.9161.38,%20JRE%2017.0.7%2B10-b829.16x64%20JetBrains%20s.r.o</a>>.,%20OS%20Mac%20OS%20X(aarch64)%20v13.4,%20screens%203456.0x2234.0;%20Retina
          <br>
          >><br>
        </blockquote>
      </div>
    </blockquote>
  </div>

</blockquote></div>