Bug 224059 - Adding a breakpoint while already debugging leads to crash
Summary: Adding a breakpoint while already debugging leads to crash
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 4.0.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 05:23 EDT by Davide Pippa CLA
Modified: 2020-09-04 15:20 EDT (History)
1 user (show)

See Also:


Attachments
error log type "BufferBlob" (13.66 KB, text/plain)
2008-03-28 04:16 EDT, Davide Pippa CLA
no flags Details
error log type "Spawner" (12.56 KB, text/plain)
2008-03-28 04:16 EDT, Davide Pippa CLA
no flags Details
error log type "Spawner" (another example, a bit different trace) (13.14 KB, application/octet-stream)
2008-03-28 04:17 EDT, Davide Pippa CLA
no flags Details
error log type "Spawner", jvm v1.5.0_15 (11.83 KB, application/octet-stream)
2008-04-10 10:42 EDT, Davide Pippa CLA
no flags Details
screenshot from windbg of the usual crash in eclipse debugging (233.69 KB, image/jpeg)
2008-04-11 08:31 EDT, Davide Pippa CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Pippa CLA 2008-03-26 05:23:19 EDT
Build ID: M20080221-1800

Steps To Reproduce:
1. While debugging (program may be in run mode or in stopped, bug seems not related to debugged program state), add a breakpoint, which leads to warning marker (yellow one) with "- Unresolved Breakpoint" tooltip text

Then, wait some seconds, eclipse crash. Or, continue execution of program, eclipse crash. Don't exactly understood when crash, seems somehow random and not connected with debugged program execution.

No log messages in .log file. Debugged program continues execution correctly, only eclipse crashes.
Crash is simply like eclipse closing all windows and disappearing, no error boxes or likely.


More information:
Windows XP Service pack 2.
Eclipse v3.3.2
Mingw 3.4.2
gdb 6.6

cdt 4.0.3
qt eclipse integration 1.0.1
subclipse 1.2.4
Comment 1 Elena Laskavaia CLA 2008-03-26 10:45:02 EDT
Can you run it from console and check what is printed there? Should be jvm crash dump. Can you reproduce it easily? If you disable subclipse plugin would it still crash?
Comment 2 Davide Pippa CLA 2008-03-27 03:50:47 EDT
I tried disabling subclipse, still crash.
To me seems reproducible, I just need to add a breakpoint that leads to the yellow sign "unresolved breakpoint" to have a crash. Don't exactly know how breakpoint can be resolved or unresolved, some lines in a func usually lead to unresolved.

How do I run eclipse from console? I mean without having it opening it's own console; if I run from command line all eclipse debug output does not go on the console where I launch it from, but on it's own console, which closes when crashes then cannot be read (I tried to arrange windows in a way to see both when crash, but it's really the same moment, no time to read anything).
Comment 3 Elena Laskavaia CLA 2008-03-27 10:46:29 EDT
windows version has eclipsec.exe executable or something like this... Run it with -consolelog option

We really need this crash log, because it native library crashing and without it is there is no way anybody can even identify which component it belongs (but it is not CDT for sure)
Comment 4 Davide Pippa CLA 2008-03-28 04:16:12 EDT
Created attachment 93944 [details]
error log type "BufferBlob"
Comment 5 Davide Pippa CLA 2008-03-28 04:16:56 EDT
Created attachment 93945 [details]
error log type "Spawner"
Comment 6 Davide Pippa CLA 2008-03-28 04:17:31 EDT
Created attachment 93946 [details]
error log type "Spawner" (another example, a bit different trace)
Comment 7 Davide Pippa CLA 2008-03-28 04:22:04 EDT
I found the "eclipsec.exe" thing, anyway in my eclipse directory there were many "hs_err_pidXXX.log" files.

I divided them mainly in 2 categories, those caused by class "BufferBlob" and those caused by class "org.eclipse.cdt.utils.spawner.Spawner". As a chronological note I see that new ones are mainly caused by "BufferBlob", the newest caused by "Spawner" is dated 14/03/2008 (I do not use eclipse daily anyway, then this date may be not too precise). 
I have many more, all quite similar anyway, if you wish I can send them too.
Comment 8 Davide Pippa CLA 2008-04-10 10:42:54 EDT
Created attachment 95535 [details]
error log type "Spawner", jvm v1.5.0_15
Comment 9 Davide Pippa CLA 2008-04-10 11:24:17 EDT
Hi!

I did some more test, with precedent jvm to see if problem was java6 usage.
The bug is still there with java5 update 15, backtrace is like other ones.
I've seen that the "BufferBlob" kind of traces begun when I installed java6 update 5; with java6 update 3 stack trace was of the "Spawner" kind.

Comment 10 Davide Pippa CLA 2008-04-11 08:30:46 EDT
screenshot from windbg debugger
Comment 11 Davide Pippa CLA 2008-04-11 08:31:41 EDT
Created attachment 95665 [details]
screenshot from windbg of the usual crash in eclipse debugging