openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #06047
[Bug 789123] Re: Eclipse crashes/quits without any error messages
Here's some analysis of source code for swt-gtk:
The source file that's at the top of the Java stack is:
org/eclipse/swt/widgets/MenuItem.java
The offending method is
public void setText(String string)
After a bunch of Java code, the call that fails is:
int /*long*/ oldPtr = OS.GTK_ACCEL_LABEL_GET_ACCEL_STRING (label); //THIS ONE
OS.GTK_ACCEL_LABEL_SET_ACCEL_STRING (label, ptr); // We don't reach this line
>From code a bit further up it looks like label is a label widget
(clearly, heh).
This macro is defined in the C files that interface with GTK, under a
section "Field accesors":
#define GTK_ACCEL_LABEL_GET_ACCEL_STRING(arg0) (arg0)->accel_string
Looks like what it does is fetch the accel_string member of the struct
passed as a parameter (a GtkWidget is essentially a struct). To someone
who knows a bit more about Java->C interfacing and/or GTK, it might be
clear under which circumstances the call GtkAccelLabel->accel_string
might segfault. GtkAccelLabel comes from os.c where
GTK_1ACCEL_1LABEL_1GET_1ACCEL_1STRING (familiar as it appears early in
the stack trace file as the name of the Problematic Frame) is defined as
follows:
JNIEXPORT jintLong JNICALL OS_NATIVE(GTK_1ACCEL_1LABEL_1GET_1ACCEL_1STRING)
(JNIEnv *env, jclass that, jintLong arg0)
{
jintLong rc = 0;
OS_NATIVE_ENTER(env, that, GTK_1ACCEL_1LABEL_1GET_1ACCEL_1STRING_FUNC);
rc = (jintLong)GTK_ACCEL_LABEL_GET_ACCEL_STRING((GtkAccelLabel *)arg0);
OS_NATIVE_EXIT(env, that, GTK_1ACCEL_1LABEL_1GET_1ACCEL_1STRING_FUNC);
return rc;
}
So, determining the value for which an attempt to access the
accel_string segfaults would yield more information.
I'll ask for some advice upstream on the Ubuntu package this stuff
should be associated to, for further investigation by people more
knowledgeable than me :)
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad
--
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/789123
Title:
Eclipse crashes/quits without any error messages
Status in “openjdk-6” package in Ubuntu:
Incomplete
Bug description:
Binary package hint: eclipse
Installed software:
CollabNet Merge Client 2.2.3 com.collabnet.subversion.merge.feature.feature.group
Eclipse IDE for Java Developers 1.3.2.20110301-1807 epp.package.java
Eclipse Web Developer Tools 3.2.3.v201102160541-7O7CFbWEMf84qYjGDyP3DNEwcgFU org.eclipse.wst.web_ui.feature.feature.group
ERMaster 1.0.0.v20101001-0024 org.insightech.er.feature.feature.group
Google App Engine Java SDK 1.4.0 1.4.0.v201012021502 com.google.appengine.eclipse.sdkbundle.e36.feature.1.4.0.feature.group
Google Plugin for Eclipse 3.6 2.3.0.r36v201104261928 com.google.gdt.eclipse.suite.e36.feature.feature.group
Google Web Toolkit SDK 2.1.1 2.1.1.v201012170127 com.google.gwt.eclipse.sdkbundle.e36.feature.2.1.1.feature.group
JNA Library 3.2.7 com.sun.jna.feature.group
Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 org.maven.ide.eclipse.feature.feature.group
Subversive Revision Graph (Optional) (Incubation) 0.7.9.I20110124-1700 org.eclipse.team.svn.revision.graph.feature.group
Subversive SVN Connectors 2.2.2.I20110124-1700 org.polarion.eclipse.team.svn.connector.feature.group
Subversive SVN Integration for the Mylyn Project (Optional) (Incubation) 0.7.9.I20110207-1700 org.eclipse.team.svn.mylyn.feature.group
Subversive SVN JDT Ignore Extensions (Optional) (Incubation) 0.7.9.I20101203-1700 org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group
Subversive SVN Team Provider (Incubation) 0.7.9.I20110207-1700 org.eclipse.team.svn.feature.group
SVNKit 1.3.5 Implementation (Optional) 2.2.2.I20110124-1700 org.polarion.eclipse.team.svn.connector.svnkit16.feature.group
Problem:
When working on Java-classes my Eclipse can suddenly decide to just quit. No "Saving workspace" or nothing, it just disappears just like that. This typically happens around twice per day. The latest crash today came when i was asking for code completion pop-up to appear for a class i was working on.
I have not found any logs or anything that gives any information about
these crashes, so please give me some tips for logs you want me to
check. (This is not serious enough to get in the syslog/dmesg)
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: eclipse (not installed)
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri May 27 14:59:00 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: eclipse
UpgradeStatus: Upgraded to natty on 2011-04-29 (28 days ago)
---
Architecture: amd64
DistroRelease: Ubuntu 11.04
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
NonfreeKernelModules: nvidia
Package: openjdk-6-jre-headless 6b22-1.10.1-0ubuntu1
PackageArchitecture: amd64
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Tags: natty
Uname: Linux 2.6.38-8-generic x86_64
UpgradeStatus: Upgraded to natty on 2011-04-29 (31 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/789123/+subscriptions