Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 428372

Summary: Eclipse crashes on hovering over the Variables ('this' variable) on odd times debugging
Product: [Eclipse Project] Platform Reporter: Jay Kumar <jayhacker>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, Michael_Rennie, sarika.sinha
Version: 4.3.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
image
none
Buggy source file
none
referenced library
none
eclipse error log
none
eclipse error log 2 none

Description Jay Kumar CLA 2014-02-17 13:42:07 EST
Created attachment 240041 [details]
image

While debugging the file RandomizedQueues.java with the Referenced library 'stdlib.jar' with the -ea option (enable assertions) enabled, eclipse breaks at an assertion at line 39 in the function 'resize'.  When I open the 'this' variable in the Variables window, it works fine the first time, and at all the odd times, but when I just hover over the 'this' variable at all the even times, Eclipse crashes.  I am unable to attach more than one file at a time, so I will create Parts 2 and 3 to attach RandomizedQueues.java and stdlib.jar too.
Comment 1 Jay Kumar CLA 2014-02-17 13:42:47 EST
Created attachment 240042 [details]
Buggy source file
Comment 2 Jay Kumar CLA 2014-02-17 13:43:13 EST
Created attachment 240043 [details]
referenced library
Comment 3 Jay Kumar CLA 2014-02-17 13:44:42 EST
I found out how to attach all the files in this same bug, so will do so without creating Parts 2 and 3 of this bug.
Comment 4 Jay Kumar CLA 2014-02-17 13:46:34 EST
Created attachment 240044 [details]
eclipse error log
Comment 5 Sarika Sinha CLA 2014-02-18 02:09:43 EST
(In reply to Jay Kumar from comment #0)
> Created attachment 240041 [details]
> image
> 
> While debugging the file RandomizedQueues.java with the Referenced library
> 'stdlib.jar' with the -ea option (enable assertions) enabled, eclipse breaks
> at an assertion at line 39 in the function 'resize'.  When I open the 'this'
> variable in the Variables window, it works fine the first time, and at all
> the odd times, but when I just hover over the 'this' variable at all the
> even times, Eclipse crashes.  I am unable to attach more than one file at a
> time, so I will create Parts 2 and 3 to attach RandomizedQueues.java and
> stdlib.jar too.

Please explain -> when I just hover over the 'this' variable at all the
> even times, Eclipse crashes

You are trying to hover on "this" variable in Variables window ? What happens after Eclipse crashes ? It exits the program ? How are you able to test it after that ? How do you test odd and even time ?
Comment 6 Jay Kumar CLA 2014-02-18 04:39:22 EST
Hi, yes, I was trying to hover over the 'this' variable in the variables window, and I was about to click on the arrow to the left of the variable to expand it.  But just before I can click on it, Eclipse disappears.  The whole program just disappears and the error log file, 'hs_err_pidxxxxx.log' appears in my home directory.  So I have to restart Eclipse again and start the debugging process again.

And about the odd and even times: the first time I start debugging by clicking on the Debug insect button and the debugger breaks at the assert, I am able to click on the 'this' variable and expand it and view its contents.  I then click 'Resume(F8) (the green right arrow with a yellow bar to its left)' and the program completes execution.  Then again, I hit the Debug insect button to start debugging, and now when the debugger breaks and I try to expand the 'this' variable in the Variables window, the program just exits.
Comment 7 Jay Kumar CLA 2014-02-18 05:23:59 EST
Created attachment 240054 [details]
eclipse error log 2
Comment 8 Michael Rennie CLA 2014-02-18 08:50:54 EST
(In reply to Jay Kumar from comment #7)
> Created attachment 240054 [details]
> eclipse error log 2

The logs indicate the VM is crashing with a segmentation fault, in particular the frame:

C  [libgtk-x11-2.0.so.0+0x2202aa]  gtk_tree_view_get_background_area+0x8a

is mentioned as the problematic frame.

Sending to SWT for comment.
Comment 9 Eric Williams CLA 2018-05-16 17:01:58 EDT
I cannot reproduce this issue on Fedora 28, GTK3.22, and 4.8 M7. Please re-open this ticket if the bug reoccurs.