This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Debugger deadlocks if breakpoint configured to Suspend All Threads | ||
---|---|---|---|
Product: | debugger | Reporter: | _ gtzabari <gtzabari> |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | VERIFIED FIXED | ||
Severity: | normal | Keywords: | REGRESSION |
Priority: | P1 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Windows 10 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ gtzabari
2016-01-05 09:24:17 UTC
Reproduced, investigating... Fixed by changeset: 294734:29cbc327d229 http://hg.netbeans.org/core-main/rev/29cbc327d229 There were several associated subtle problems, I've hopefully addressed all of them. The main obstacle is caused by many other threads hitting breakpoints during stepping. Even when the whole VM is suspended and we do step in just one thread, newly created threads are waken up and they can hit breakpoints. This is a behavior of debugger backend. I've tested the fix with your test case thoroughly and hopefully it behaves well now. I propose to include the fix into the 8.1 patch. Can you please verify it in trunk? Thanks. Gili, if you help us verify Martin's fix in the next development build, there is a chance this bug fix could be included in the upcoming 8.1 update. Thanks for your cooperation! Integrated into 'main-silver', will be available in build *201601090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/29cbc327d229 User: mentlicher@netbeans.org Log: #257412: Solving various subtle inconsistenties that emerge especially when breakpoints suspend all threads. Track which threads performing steps were suspended by what event threads and mark threads suspended on an event. Verified as fixed in Build 201601130002. Thank you for the quick turnaround! Thanks for the quick verification, I've transplanted the fix into release81 branch: http://hg.netbeans.org/releases/rev/83f4307649d6 http://hg.netbeans.org/releases/rev/76b2449b9e24 |