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

Bug 489345

Summary: Eclipse SIGSEGV (gtk_tree_view_get_background_area) when debugging and hovering an item in the "Variables" view.
Product: [Eclipse Project] Platform Reporter: Matthias Wienand <matthias.wienand>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: blocker    
Priority: P3 CC: akurtakov, alexanderkerner24, ericwill
Version: 4.5Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Matthias Wienand CLA 2016-03-10 07:04:04 EST
When I am debugging a Java program, sometimes Eclipse terminates with a SIGSEGV as soon as I hover an item in the "Variables" view. The corresponding information is as follows:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2e2b3b736a, pid=10993, tid=139837698836224
#
# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgtk-x11-2.0.so.0+0x22036a]  gtk_tree_view_get_background_area+0x8a
#
Comment 1 Matthias Wienand CLA 2016-03-10 07:06:19 EST
I should add that I am starting Eclipse with the environment variable SWT_GTK3 set to 0, i.e. I am using SWT with GTK2.
Comment 2 Matthias Wienand CLA 2016-03-10 09:04:06 EST
I increased the severity to "blocker", because Eclipse is terminating nearly every Debug session, which is very frustrating.
Comment 3 Eric Williams CLA 2016-03-10 11:22:02 EST
What version of GTK2, and what operating system are you using?

Also if possible, please provide a stack trace. GTK2 bugs are very rare.
Comment 4 Matthias Wienand CLA 2016-03-10 11:44:55 EST
GTK2 version: 2.24.23 (taken from pkg-config --modversion gtk+-2.0)
OS: Linux Mint 17 Qiana (3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64)

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libgtk-x11-2.0.so.0+0x22036a]  gtk_tree_view_get_background_area+0x8a
C  0xffffffffffffffff

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 7658  org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(J)V (0 bytes) @ 0x00007faf5d904641 [0x00007faf5d904600+0x41]
J 20193 C2 org.eclipse.swt.widgets.Display.eventProc(JJ)J (173 bytes) @ 0x00007faf5fb31048 [0x00007faf5fb30ce0+0x368]
v  ~StubRoutines::call_stub
J 7666  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(JZ)Z (0 bytes) @ 0x00007faf5d905b44 [0x00007faf5d905b00+0x44]
J 19925 C2 org.eclipse.swt.widgets.Display.readAndDispatch()Z (71 bytes) @ 0x00007faf5f35eb54 [0x00007faf5f35e920+0x234]
J 34072% C2 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run()V (765 bytes) @ 0x00007faf5e5bd5c0 [0x00007faf5e5bd380+0x240]
j  org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j  org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(Lorg/eclipse/e4/ui/model/application/MApplicationElement;Lorg/eclipse/e4/core/contexts/IEclipseContext;)Ljava/lang/Object;+57
j  org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(Lorg/eclipse/e4/ui/model/application/MApplicationElement;)V+20
j  org.eclipse.ui.internal.Workbench$5.run()V+310
j  org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+18
j  org.eclipse.ui.PlatformUI.createAndRunWorkbench(Lorg/eclipse/swt/widgets/Display;Lorg/eclipse/ui/application/WorkbenchAdvisor;)I+2
j  org.eclipse.ui.internal.ide.application.IDEApplication.start(Lorg/eclipse/equinox/app/IApplicationContext;)Ljava/lang/Object;+111
j  org.eclipse.equinox.internal.app.EclipseAppHandle.run(Ljava/lang/Object;)Ljava/lang/Object;+135
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ljava/lang/Object;)Ljava/lang/Object;+85
j  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ljava/lang/Object;)Ljava/lang/Object;+82
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run(Ljava/lang/Object;)Ljava/lang/Object;+109
j  org.eclipse.core.runtime.adaptor.EclipseStarter.run([Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object;+132
v  ~StubRoutines::call_stub
j  sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0
j  sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100
j  sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6
j  java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+56
j  org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+265
j  org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+160
j  org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4
j  org.eclipse.equinox.launcher.Main.main([Ljava/lang/String;)V+10
v  ~StubRoutines::call_stub

Let me know if you need further information, or if I should run some test code so you can isolate/track down the error.
Comment 5 Matthias Wienand CLA 2016-03-17 10:50:18 EDT
FWIW, I found out that the error most often occurs when hovering the small arrow in front of an object in the "Variables" view that can be used to view the attributes of said object. Double clicking on the object (and avoiding to hover the arrow) can be used as a workaround as long as this is unresolved. However, I am not sure if the error only occurs when hovering the arrow, or also in other situations.
Comment 6 Alexander Kurtakov CLA 2017-12-14 18:33:19 EST
Is this bug still reproducible with Oxygen?
Comment 7 Eric Williams CLA 2018-07-06 14:13:05 EDT
*** Bug 436220 has been marked as a duplicate of this bug. ***
Comment 8 Eric Williams CLA 2019-01-08 17:06:40 EST
GTK2 is no longer supported.