Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 442223 - [GTK3] Eclipse crashes in cairo_surface_set_user_data while refactoring (renaming class or variable)
Summary: [GTK3] Eclipse crashes in cairo_surface_set_user_data while refactoring (rena...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 467041 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-21 02:32 EDT by Jeremy F. Odenze CLA
Modified: 2017-01-03 14:57 EST (History)
6 users (show)

See Also:


Attachments
hs_err file (79.72 KB, application/octet-stream)
2014-08-21 02:32 EDT, Jeremy F. Odenze CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy F. Odenze CLA 2014-08-21 02:32:46 EDT
Created attachment 246176 [details]
hs_err file

When renaming a class and often, but not always, when renaming a variable, Eclipse crashes. I am using Luna Release (4.4.0), build 20140612-0600 on Crunch Bang (Debian 7 wheezy). I have attached the hs_err file after a crash when renaming a class.
Comment 1 Alexander Kurtakov CLA 2014-08-21 03:36:26 EDT
What is the GTK/cairo version in use? Can you provide an swt only reproducer to ease reproducing problem?
Comment 2 Jeremy F. Odenze CLA 2014-08-21 05:39:11 EDT
(In reply to Alexander Kurtakov from comment #1)

> What is the GTK/cairo version in use? 

libcairo2 is version 1.12.2-3, libgtk2.0-0 is 2.24.10-2, libgtk-3-0 is 3.4.2-7.

> Can you provide an swt only reproducer to ease reproducing problem?

Do you mean to create some java code using the appropriate swt classes and see if that crashes after compilation and running?
Comment 3 Alexander Kurtakov CLA 2014-08-21 06:08:17 EDT
(In reply to Jeremy F. Odenze from comment #2)
> (In reply to Alexander Kurtakov from comment #1)
> 
> > What is the GTK/cairo version in use? 
> 
> libcairo2 is version 1.12.2-3, libgtk2.0-0 is 2.24.10-2, libgtk-3-0 is
> 3.4.2-7.
> 
> > Can you provide an swt only reproducer to ease reproducing problem?
> 
> Do you mean to create some java code using the appropriate swt classes and
> see if that crashes after compilation and running?

Yes, exactly.
Comment 4 Jeremy F. Odenze CLA 2014-08-21 17:34:26 EDT
(In reply to Alexander Kurtakov from comment #3)

> > Do you mean to create some java code using the appropriate swt classes and
> > see if that crashes after compilation and running?
> 
> Yes, exactly.

I will look into this, but don't know when to be able to report back.
Comment 5 Maurizio Bilotta CLA 2015-02-04 10:14:33 EST
I think I've found at least a workaround. I was suffering from the same problem running Eclipe Luna SR1a on a CrunchBang Linux (Waldorf) system. I noticed Eclipse was crashing sistematically whenever I tried to rename a method argument.

Specifically, I could reproduce the bug this way:
1) Place the cursor above the name of an argument in the signature of some method.
2) Hit Alt+Shift+R
3) Type new name inside the textbox.
4) Hit Enter.
5) Eclipse crashes.

I added this two lines in the eclipse.ini file and the problem seems disappeared:
--launcher.GTK_version
2

I found this solution here:
http://forums.debian.net/viewtopic.php?f=8&t=115477#p545781
This post addresses bug 430736 so I guess it could be related to this one.
Moreover, the workaround seems to solve also bug 401717, which was affecting me too.
Comment 6 Dani Megert CLA 2015-05-12 04:32:12 EDT
*** Bug 467041 has been marked as a duplicate of this bug. ***
Comment 7 Arun Thondapu CLA 2015-05-12 06:11:11 EDT
This indeed seems to be related to bug 430736 which basically happens because Debian Wheezy does not have the minimum necessary version of glibc (2.14) for the GTK3 port to work, the crash log indicates presence of glic 2.13 which is outdated...

If possible, please update the glibc version to 2.14 or above (see bug 430736 comment 28 for a way to do it) and run with GTK3 again.
Comment 8 Arun Thondapu CLA 2015-05-12 08:30:28 EDT
Actually, I might have been wrong, this seems like a different crash altogether, I find only GTK3 libraries are loaded here and there is no mixup with GTK2 libraries at all. Also, the crash log from bug 467041 indicates presence of glibc 2.17.
Comment 9 Arun Thondapu CLA 2015-05-12 16:19:56 EDT
Is this reproducible with Mars? Can you test using one of the recent Mars builds? The latest milestone build M7 can be downloaded from [1].

I investigated a bit and AFAICS this crash doesn't seem to be caused by SWT and it also doesn't seem like we can introduce a workaround in SWT for the underlying problem. The crash seems to be somewhere deeper inside GTK+ and is most probably caused by the surface that is passed to cairo_surface_set_user_data() being empty. If possible, please attach a gdb backtrace of the crash dump which might contain more details regarding how that could happen.

I would also suggest reporting this bug to GTK+ at [2].

[1] http://download.eclipse.org/eclipse/downloads/drops4/S-4.5M7-201504301445/
[2] https://bugzilla.gnome.org/
Comment 10 Alexander Kurtakov CLA 2017-01-03 14:57:37 EST
Almost two years passed without reply . Closing