Bug 170558 - Debugging stack overflow causes hang
Summary: Debugging stack overflow causes hang
Status: REOPENED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows 2000
: P3 critical with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 188072 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-15 17:47 EST by John Arthorne CLA
Modified: 2024-03-18 20:40 EDT (History)
3 users (show)

See Also:


Attachments
Stack trace (35.03 KB, text/plain)
2007-01-15 17:47 EST, John Arthorne CLA
no flags Details
Stack while copying clipboard (14.21 KB, text/plain)
2007-01-18 11:54 EST, John Arthorne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2007-01-15 17:47:28 EST
Build: 3.3 M4

I set a Java exception breakpoing on StackOverflowError, and then debugged an application that had a stack overflow.  The debug session froze, and I left it for about ten minutes at 100% CPU usage but no response in the debug view.  Note Eclipse itself was not hung, but the debug view was unresponsive and I was unable to see any of the stack frames in the suspended thread.  I will attach a stack trace that shows 20+ threads, which was taken after several minutes of waiting.
Comment 1 John Arthorne CLA 2007-01-15 17:47:45 EST
Created attachment 56939 [details]
Stack trace
Comment 2 Darin Wright CLA 2007-01-16 09:25:40 EST
There is an entry in the 'readme' regarding stack overflows:

"Unable to debug stack overflows:
If a debug session suspends on a java.lang.StackOverflowError exception (due to an exception breakpoint), the debugger may not be able to retrieve any debug information from the target JVM. As well, the debugger may not be able to reliably interact with the target JVM past this point. (bug 19217)"


Comment 3 John Arthorne CLA 2007-01-16 10:20:48 EST
Interesting... the symptoms appear to have changed. I don't get any errors in the log file - it just pins at 100% CPU for a long time.  I'm sure this worked at some time in the past... I now have a reproducible bug that causes a stack overflow and I can't find any way to see the stack to know where the problem is!
Comment 4 John Arthorne CLA 2007-01-18 11:54:53 EST
Created attachment 57092 [details]
Stack while copying clipboard

In my ongoing efforts to find the cause of my stack overflow (bug 169943), I tried setting a StackOverflowError breakpoint, but *not* expanding the thread in the debug view. Then, I selected "Copy Stack" from the process context menu.  This showed progress for awhile, and after a minute I clicked cancel.  I then went to work on another machine, and twenty minutes later the "Copy Stack" operation was still going. This attachment shows the VM state at this point after the copy stack has been working for twenty minutes.  It seems debug at least needs to fail more gracefully when faced with a stack overflow.
Comment 5 John Arthorne CLA 2007-01-18 13:43:27 EST
After two hours the "copy stack" dialog was still blocking me, so I had to kill the process.
Comment 6 Darin Wright CLA 2007-05-30 10:44:14 EDT
*** Bug 188072 has been marked as a duplicate of this bug. ***
Comment 7 Darin Wright CLA 2007-05-31 10:01:01 EDT
Nothing planned for 3.3
Comment 8 Michael Rennie CLA 2012-07-11 09:38:10 EDT
This is a dupe of 19217, but I will leave it open in case we want to investigate Darin's suggestion to not try and retrieve so many frames - bug 258416 comment #4
Comment 9 Ed Willink CLA 2016-01-28 12:04:51 EST
(In reply to Michael Rennie from comment #8)
> This is a dupe of 19217

No it isn't. Bug 17217 is WONTFIX. This is an ongoing (Neon M4) problem.

Handling a StackOverflow is clearly challenging but locking up Eclipse is a CRITICAL no-brainer.

Why is there no magic key sequence (ESC or CTRL+\ or ...) that causes Eclipse to suspend troublesome worker threads and give the user back some control?
Comment 10 Eclipse Genie CLA 2020-03-27 08:47:55 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 11 Ed Willink CLA 2020-03-27 15:40:11 EDT
This is a long standing problem affecting most JDT Debug users from time to time.
Comment 12 Eclipse Genie CLA 2022-03-18 11:48:32 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 13 Eclipse Genie CLA 2024-03-18 20:40:32 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.