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

Bug 423488

Summary: A fatal error has been detected by the Java Runtime Environment
Product: [Eclipse Project] Platform Reporter: La Min Ko <lminko.lmk>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: david_williams, ericwill
Version: 4.2.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
A fatal error has been detected by the Java Runtime Environment
none
Configuration
none
hs_err_pid16312.log
none
fresh eclipse crash log hs_err_pid24705.log none

Description La Min Ko CLA 2013-12-06 18:57:13 EST
Created attachment 238134 [details]
A fatal error has been detected by the Java Runtime Environment

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fb3b4cb0910, pid=31022, tid=140410524280576
#
# JRE version: 7.0_21-b02
# Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgobject-2.0.so.0+0x1b910]  g_object_get_qdata+0x20
#
# Core dump written. Default location: /home/lmk/Android/eclipse/core or core.31022
#
# An error report file with more information is saved as:
# /home/lmk/Android/eclipse/hs_err_pid31022.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Comment 1 David Williams CLA 2013-12-06 20:25:13 EST
Can you attach your "configuration"?

That is copy/paste to a file the information from 
About Box --> Installation Details button --> Configuration tab

Thanks
Comment 2 David Williams CLA 2013-12-06 21:25:00 EST
I was asking about your "configuration", in part, to see if it contained a "xulrunner" fragment ... 

While I don't see "xulrunner" mentioned in this attached dump, I do see "worklight" and "rhino" mentioned (which implies the code is trying to use xulrunner) ... and at the same time, I see the "libwebkitgtk" library is (trying) to be used ... all of which makes me think this is similar to bug 423393. 

If so, should help to put 

-Dorg.eclipse.swt.browser.DefaultType=mozilla

on your command line (or, eclipse.ini) 

See 
http://www.eclipse.org/swt/faq.php#browserspecifydefault
Comment 3 La Min Ko CLA 2013-12-06 22:06:43 EST
Thanks, I will attach the "configuration".

(In reply to David Williams from comment #1)
> Can you attach your "configuration"?
> 
> That is copy/paste to a file the information from 
> About Box --> Installation Details button --> Configuration tab
> 
> Thanks
Comment 4 La Min Ko CLA 2013-12-06 22:11:52 EST
Created attachment 238135 [details]
Configuration
Comment 5 La Min Ko CLA 2013-12-06 22:32:07 EST
i tried with -Dorg.eclipse.swt.browser.DefaultType=mozilla, not ok.

when i open Project properties or Run Configuration, and apply or cancel or close, then eclipse crashed.

Compiled method (nm)   39787 1391     n       org.eclipse.swt.internal.gtk.OS::_g_object_get_qdata (native)
 total in heap  [0x00007f3361550ed0,0x00007f3361551250] = 896
 relocation     [0x00007f3361550ff0,0x00007f3361551050] = 96
 main code      [0x00007f3361551060,0x00007f3361551250] = 496


(In reply to David Williams from comment #2)
> I was asking about your "configuration", in part, to see if it contained a
> "xulrunner" fragment ... 
> 
> While I don't see "xulrunner" mentioned in this attached dump, I do see
> "worklight" and "rhino" mentioned (which implies the code is trying to use
> xulrunner) ... and at the same time, I see the "libwebkitgtk" library is
> (trying) to be used ... all of which makes me think this is similar to bug
> 423393. 
> 
> If so, should help to put 
> 
> -Dorg.eclipse.swt.browser.DefaultType=mozilla
> 
> on your command line (or, eclipse.ini) 
> 
> See 
> http://www.eclipse.org/swt/faq.php#browserspecifydefault
Comment 6 La Min Ko CLA 2013-12-06 22:33:07 EST
Created attachment 238136 [details]
hs_err_pid16312.log
Comment 7 David Williams CLA 2013-12-06 22:53:28 EST
Yes ... I see from your configuration attachment you really are trying to use webkit. 

Which would mean it _might_ help to put 

-Dorg.eclipse.swt.browser.DefaultType=webkit

in your eclipse.ini ... but not sure this is such a clear case of the rhino/xulrunner libraries and webkit libraries getting "mixed up" as it was in bug 423393 ... as the FAQ discusses. (but, worth a try).  

Also, it's pretty obvious you have a very complicated install ... Aptana Studio stuff, Google Android stuff ... you may need to report the bug to them ... or, give some step-by-step way to reproduce the problem using more of an "Eclipse only" setup, ideally. But, I'll let SWT team make that call ... maybe they know how to read dump files well enough to know if this is an "Eclipse problem" or comes from some "foreign" contribution.   

Thanks for the report.
Comment 8 La Min Ko CLA 2013-12-07 06:01:09 EST
Thanks, I will try step-by-step way.

(In reply to David Williams from comment #7)
> Yes ... I see from your configuration attachment you really are trying to
> use webkit. 
> 
> Which would mean it _might_ help to put 
> 
> -Dorg.eclipse.swt.browser.DefaultType=webkit
> 
> in your eclipse.ini ... but not sure this is such a clear case of the
> rhino/xulrunner libraries and webkit libraries getting "mixed up" as it was
> in bug 423393 ... as the FAQ discusses. (but, worth a try).  
> 
> Also, it's pretty obvious you have a very complicated install ... Aptana
> Studio stuff, Google Android stuff ... you may need to report the bug to
> them ... or, give some step-by-step way to reproduce the problem using more
> of an "Eclipse only" setup, ideally. But, I'll let SWT team make that call
> ... maybe they know how to read dump files well enough to know if this is an
> "Eclipse problem" or comes from some "foreign" contribution.   
> 
> Thanks for the report.
Comment 9 La Min Ko CLA 2013-12-07 06:46:01 EST
I had a downloaded eclipse juno 4.2 and unzipped it. then, I run with its default config. And, I opened the Project Properties or Run Configuration, after that, eclipse crashed. 

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f7a4c0e9910, pid=24705, tid=140163451909888
#
# JRE version: OpenJDK Runtime Environment (7.0_45-b31) (build 1.7.0_45-b31)
# Java VM: OpenJDK 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libgobject-2.0.so.0+0x1b910]  g_object_get_qdata+0x20
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/lmk/Android/eclipse/hs_err_pid24705.log
Compiled method (nm)   16125  780     n       org.eclipse.swt.internal.gtk.OS::_g_object_get_qdata (native)
 total in heap  [0x00007f7a4d270d90,0x00007f7a4d271110] = 896
 relocation     [0x00007f7a4d270eb0,0x00007f7a4d270f10] = 96
 main code      [0x00007f7a4d270f20,0x00007f7a4d271110] = 496
Compiled method (nm)   16125  780     n       org.eclipse.swt.internal.gtk.OS::_g_object_get_qdata (native)
 total in heap  [0x00007f7a4d270d90,0x00007f7a4d271110] = 896
 relocation     [0x00007f7a4d270eb0,0x00007f7a4d270f10] = 96
 main code      [0x00007f7a4d270f20,0x00007f7a4d271110] = 496
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

*** The above log is generated from fresh unzipped eclipse crash.

(In reply to La Min Ko from comment #8)
> Thanks, I will try step-by-step way.
> 
> (In reply to David Williams from comment #7)
> > Yes ... I see from your configuration attachment you really are trying to
> > use webkit. 
> > 
> > Which would mean it _might_ help to put 
> > 
> > -Dorg.eclipse.swt.browser.DefaultType=webkit
> > 
> > in your eclipse.ini ... but not sure this is such a clear case of the
> > rhino/xulrunner libraries and webkit libraries getting "mixed up" as it was
> > in bug 423393 ... as the FAQ discusses. (but, worth a try).  
> > 
> > Also, it's pretty obvious you have a very complicated install ... Aptana
> > Studio stuff, Google Android stuff ... you may need to report the bug to
> > them ... or, give some step-by-step way to reproduce the problem using more
> > of an "Eclipse only" setup, ideally. But, I'll let SWT team make that call
> > ... maybe they know how to read dump files well enough to know if this is an
> > "Eclipse problem" or comes from some "foreign" contribution.   
> > 
> > Thanks for the report.
Comment 10 La Min Ko CLA 2013-12-07 06:49:37 EST
Created attachment 238140 [details]
fresh eclipse crash log hs_err_pid24705.log
Comment 11 La Min Ko CLA 2013-12-07 07:04:20 EST
I also reported to icedtea: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1616
Comment 12 Alexander Kurtakov CLA 2016-12-21 18:43:35 EST
Is this bug reproducible with 4.6? I remember some such bug being fixed but can't find the bz now.
Comment 13 Eric Williams CLA 2018-07-06 14:37:18 EDT
(In reply to Alexander Kurtakov from comment #12)
> Is this bug reproducible with 4.6? I remember some such bug being fixed but
> can't find the bz now.

No response, closing this ticket now.