eclipse/JVM crashes in libmozjs.so

Bug #563647 reported by ceciacd
62
This bug affects 11 people
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
Incomplete
Undecided
Unassigned
openjdk-6 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Eclipse crashes (including the whole VM) when hovering over a method or class name (that displays a tooltip) making developement very difficult because one hovers over methods sooner or later unintentionally.
This happens with Sun JRE and OpenJDK.
Problem seems to be a bug in libmozjs.so .

Sun JRE crash output:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x023b6cee, pid=18414, tid=2990533488
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing linux-x86 )
# Problematic frame:
# C [libmozjs.so+0x1acee] js_NextActiveContext+0x16
#
# An error report file with more information is saved as:
# /home/jakob/Jakob/web-tech/Caretec Oracle vs TYPO3/sourcecode-git-repo/hs_err_pid18414.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

OpenJDK crash output:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0584fe32, pid=2388, tid=2996824944
#
# JRE version: 6.0_18-b18
# Java VM: OpenJDK Client VM (16.0-b13 mixed mode, sharing linux-x86 )
# Derivative: IcedTea6 1.8
# Distribution: Ubuntu lucid (development branch), package 6b18~pre4-1ubuntu1
# Problematic frame:
# C [libmozjs.so+0x1ae32] js_NextActiveContext+0x16
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#

Revision history for this message
Søren Bredlund Caspersen (soeren-b-c) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in openjdk-6.
(With many applications, you can report a future bug directly on the appropriate package by opening the application's "Help" menu and choosing "Report a Problem". https://wiki.ubuntu.com/ReportingBugs)

affects: ubuntu → openjdk-6 (Ubuntu)
Revision history for this message
MJ (mjjaa) wrote :

I get this bug under eclipse every time hovering the mouse cursor over a method in the editor. Thats pretty disgusting!!
Please fix this fast :D

Matthias Klose (doko)
affects: openjdk-6 (Ubuntu) → eclipse (Ubuntu)
Changed in eclipse (Ubuntu):
status: New → Confirmed
summary: - eclipse crashes ubuntu 10.04 sun-java-bin
+ eclipse/JVM crashes in libmozjs.so
description: updated
Revision history for this message
Jakob Unterwurzacher (jakobunt) wrote :

(from attached crash log: libmozjs.so seems to belong to XUL)

Stack: [0xb04fe000,0xb0cff000], sp=0xb0cfe300, free space=2000b0cfdc90k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libmozjs.so+0x1acee] js_NextActiveContext+0x16
C [libxul.so+0x1c33b3]
C [libnspr4.so+0x28267]
C [libpthread.so.0+0x596e]

Revision history for this message
Jakob Unterwurzacher (jakobunt) wrote :

Removing xulrunner-1.9.1 (seems to be left over after the upgrade to 10.04) solves this.

Revision history for this message
John Vivirito (gnomefreak) wrote :

As i recall this is due to the Java plug-in being broken. If you enable the partner repos can you please test with sun-java6-* package

affects: xulrunner-1.9.1 (Ubuntu) → openjdk-6 (Ubuntu)
Changed in openjdk-6 (Ubuntu):
status: New → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

crashes in libmozjs.so don't have anything to do with the plugin itself.

Changed in openjdk-6 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
gorkma (gorkmave128) wrote :

I had the same problem and I solved it Removing xulrunner-1.9.1 and leaving installed xulrunner-1.9.2.

Revision history for this message
grok (wayne-fuchs) wrote :

I have upgraded to 10.04 and this affected me. I'll echo what everyone else has said, removing the old xulrunner solved the problem.

Revision history for this message
Alloc (christian-illy) wrote :

I got the same problem though completely removing anything related to XUL did not help here (no xul* in either version 1.9.1 or 1.9.2 installed).
Any fix for this?

Revision history for this message
Niels Thykier (niels-thykier) wrote :

Alloc: Perhaps old SWT binaries have been extracted to your ~/.eclipse, try running:
  find ~/.eclipse -name '*.so'

If it lists any swt libraries, then your ~/.eclipse is tainted. The crashes are then likely to be caused by these libraries being outdated and the only known solution is to remove your ~/.eclipse.

If this is not the case (or removing your ~/.eclipse does not help), please run:
   apport-collect 563647

Thank you in advance,
~Niels

Changed in eclipse (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Alloc (christian-illy) wrote :

And removing those libraries will definitely not cause any other problems? Do I have to remove the whole .eclipse or is removing those libraries enough?

Files found:
./org.eclipse.platform_3.5.0_1473617060/configuration/org.eclipse.osgi/bundles/189/1/.cp/libswt-pi-gtk-3557.so
./org.eclipse.platform_3.5.0_1473617060/configuration/org.eclipse.osgi/bundles/189/1/.cp/libswt-gtk-3557.so
./org.eclipse.platform_3.5.0_1473617060/configuration/org.eclipse.osgi/bundles/189/1/.cp/libswt-gnome-gtk-3557.so
./org.eclipse.platform_3.5.0_1473617060/configuration/org.eclipse.osgi/bundles/189/1/.cp/libswt-xulrunner-gtk-3557.so
./org.eclipse.platform_3.5.0_1473617060/configuration/org.eclipse.osgi/bundles/189/1/.cp/libswt-cairo-gtk-3557.so
./org.eclipse.platform_3.5.0_1473617060/configuration/org.eclipse.osgi/bundles/189/1/.cp/libswt-xpcominit-gtk-3557.so
./org.eclipse.platform_3.5.0_1473617060/configuration/org.eclipse.osgi/bundles/189/1/.cp/libswt-atk-gtk-3557.so
./org.eclipse.platform_3.5.0_1473617060/configuration/org.eclipse.osgi/bundles/34/1/.cp/os/linux/x86/liblocalfile_1_0_0.so

Regards,
Chris

Revision history for this message
Niels Thykier (niels-thykier) wrote :

Hi

I am not 100% certain it is enough just to remove those libraries, but you are certainly welcome to try. You can do it by using:
  find ~/.eclipse -name '*.so' -delete

Though, if the crashes persist or it adds the libraries again next time you run eclipse, then rename or remove your ~/.eclipse.

~Niels

Revision history for this message
Alloc (christian-illy) wrote :

Weird, I completely removed (aka renamed) the .eclipse directory. Didn't change anything but what I wonder about more is that Eclipse did neither ask for a workspace on next startup nor recreated that directory. Does it really use it at all?

Chris

Revision history for this message
Niels Thykier (niels-thykier) wrote :

Yes, it uses ~/.eclipse, else it would not be there in the first place. It is used for storing generic things that are not "workspace" specific and it also stores locally installed plugins there.

Also, if you still experience the crashes with the Ubuntu installed eclipse after removing libraries in ~/.eclipse, then make sure you do not have old xulrunner installations on your system (e.g. xulrunner-1.9.1)

~Niels

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.