Java crash with icedtea plugin and Firefox 10+

Bug #927282 reported by Ukmeterman
80
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Iced Tea
Fix Released
Medium
Mozilla Firefox
Invalid
Critical
icedtea-web (Ubuntu)
Fix Released
High
Unassigned
Lucid
Fix Released
Undecided
Unassigned
Maverick
Invalid
Undecided
Unassigned
Natty
Fix Released
Undecided
Unassigned
Oneiric
Fix Released
Undecided
Unassigned
Precise
Fix Released
High
Unassigned
openjdk-6 (Ubuntu)
Invalid
Undecided
Unassigned
Lucid
Won't Fix
Undecided
Unassigned
Maverick
Won't Fix
Undecided
Unassigned
Natty
Invalid
Undecided
Unassigned
Oneiric
Invalid
Undecided
Unassigned
Precise
Invalid
Undecided
Unassigned

Bug Description

When I try to view http://www.highways.gov.uk/traffic/traffic.aspx and then click on Southampton on the righthand graphic Mozilla quits after a few seconds.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: firefox 10.0+build1-0ubuntu0.11.10.1
ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
Uname: Linux 3.0.0-15-generic i686
AddonCompatCheckDisabled: False
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: james 1759 F.... pulseaudio
BuildID: 20120129141551
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xff63c000 irq 43'
   Mixer name : 'Analog Devices AD1986A'
   Components : 'HDA:11d41986,1179ff40,00100500 HDA:11c11040,11790001,00100200'
   Controls : 37
   Simple ctrls : 21
Channel: release
Date: Sun Feb 5 19:38:08 2012
ForcedLayersAccel: False
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
IpRoute:
 default via 192.168.1.1 dev eth0 proto static
 169.254.0.0/16 dev eth0 scope link metric 1000
 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.101 metric 1
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
Profiles: Profile0 (Default) - LastVersion=10.0/20120129141551 (Running)
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
RunningIncompatibleAddons: False
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/23/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: V2.10
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: Equium L40
dmi.board.vendor: TOSHIBA
dmi.board.version: 1.0
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrV2.10:bd06/23/2007:svnTOSHIBA:pnEquiumL40:pvrPSL41E-004004AV:rvnTOSHIBA:rnEquiumL40:rvr1.0:cvnTOSHIBA:ct10:cvr:
dmi.product.name: Equium L40
dmi.product.version: PSL41E-004004AV
dmi.sys.vendor: TOSHIBA

Revision history for this message
In , Alex Mayorga (alex-mayorga) wrote :

Created attachment 607
ICEDTEAPLUGIN_DEBUG=true firefox-trunk 2>&1 | tee crash.log

IcedTea-Web 1.1.3 (1.1.3-1ubuntu1.1)

Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:11.0a1) Gecko/20111121 Firefox/11.0a1 ID:20111121035245

Linux VPCCW1FFXL 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Loading Citrix XenApp on Firefox trunk causes a crash that's not logged on about:crashes

Attached find the output of:
  ICEDTEAPLUGIN_DEBUG=true firefox-trunk 2>&1 | tee crash.log

Let me know if there's anything else you need me to provide.

Revision history for this message
In , Alex Mayorga (alex-mayorga) wrote :

Created attachment 575943
ICEDTEAPLUGIN_DEBUG=true firefox-trunk 2>&1 | tee crash.log

IcedTea-Web 1.1.3 (1.1.3-1ubuntu1.1)

Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:11.0a1) Gecko/20111121
Firefox/11.0a1 ID:20111121035245

Linux VPCCW1FFXL 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux

Loading Citrix XenApp on Firefox trunk causes a crash that's not logged on
about:crashes

Attached find the output of:
  ICEDTEAPLUGIN_DEBUG=true firefox-trunk 2>&1 | tee crash.log

Let me know if there's anything else you need me to provide.

Revision history for this message
In , Dbhole (dbhole) wrote :

Bug in Mozilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=704249

Thanks for re-filing Alex!

Revision history for this message
In , Alex Mayorga (alex-mayorga) wrote :

Wandering around Ubuntu's bug tracker, found https://bugs.launchpad.net/ubuntu/+source/icedtea-web/+bug/858827 that has a public applet that crashes Nightly on queue for me (click carefully below)

http://www.dailyfx.com/charts/netdaniachart?symbol=USD/CAD

Revision history for this message
In , Alex Mayorga (alex-mayorga) wrote :

Created attachment 575947
ICEDTEAPLUGIN_DEBUG=true firefox-trunk 2>&1 | tee crash2.log

Revision history for this message
In , R-luke-h (r-luke-h) wrote :

This abort is caused by using a JSRuntime (via _getstringidentifier) from off the main thread and was added by bug 650411. Incidentally, it looks like this was already an error (see the NS_IsMainThread check in http://mxr.mozilla.org/mozilla-central/source/dom/plugins/base/nsNPAPIPlugin.cpp#1407), it just wasn't causing failures. With JSRuntime being made single-threaded (announced a few months ago: http://groups.google.com/group/mozilla.dev.tech.js-engine/msg/ae5f22f39e4fd150), this will definitely cause unsafe race-conditions.

The callstack for the crash is:

#3 JS_AbortIfWrongThread
#4 js_NewContext
#5 JS_NewContext
#6 XPCJSContextStack::GetSafeJSContext
#7 nsXPConnect::GetSafeJSContext
#8 mozilla::plugins::parent::_getstringidentifier
#9 PluginRequestProcessor::sendMember
   from /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
#10 queue_processor
   from /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/IcedTeaPlugin.so
#11 start_thread

Looking at PluginRequestProcessor::sendMember in icedtea-web-1.1.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc, I see the comment:

 * This is a static function, called in another thread. Since certain data
 * can only be requested from the main thread in Mozilla, this function
 * does whatever it can seperately, and then makes an internal request that
 * causes _sendMember to do the rest of the work.

so perhaps the fix is to just move the get*identifier calls to the part that gets executed on the main thread.

Does anyone know who to contact about getting this fixed on the IcedTea side? Thus far, IcedTea seems to be the only plugin/addon hitting this and only for some applets (I tested quite a few before landing), so I do not want to back out the whole single-threaded check for this one case.

Revision history for this message
In , Sphink (sphink) wrote :

The filer said on IRC that he first filed http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=820 "but IRC peeps on #openjdk say it's FF fault".

Revision history for this message
In , Omajid (omajid) wrote :

Mozilla devs are saying that this issue should be addressed on icedtea-web side:
https://bugzilla.mozilla.org/show_bug.cgi?id=704249#c3

Revision history for this message
In , R-luke-h (r-luke-h) wrote :

Update: I mentioned this on #openjdk; the icedtea bug has been reopened.

Revision history for this message
In , R-luke-h (r-luke-h) wrote :

A bit more info: this single-threaded abort is on the FF aurora channel at the moment. It will move to beta on Dec 20 and to FF release (as FF 10) 6 weeks after that.

Revision history for this message
In , Bclary (bclary) wrote :

dupe of bug 640908 ?

Revision history for this message
In , R-luke-h (r-luke-h) wrote :

(In reply to Bob Clary [:bc:] from comment #6)
> dupe of bug 640908 ?

Nope, it looks like that was early in the year, this still hits. Also different (but similarly named) assert.

Revision history for this message
In , Dmandelin (dmandelin) wrote :

Luke, is this a JS engine bug, or is it a plugins bug?

Revision history for this message
In , R-luke-h (r-luke-h) wrote :

It's a (pre-existing) icedtea bug. It makes sense to keep a b.m.o bug open to track the issue; I'm not sure whether it is more useful to have it be in the JS engine component or plugin component.

Revision history for this message
Ukmeterman (ukmeterman) wrote :
Revision history for this message
Ukmeterman (ukmeterman) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

This is actually a bug in the icedtea plugin

affects: firefox (Ubuntu) → icedtea-web (Ubuntu)
Revision history for this message
Chris Coulson (chrisccoulson) wrote :
Changed in icedtea:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in firefox:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Chris Coulson (chrisccoulson) wrote :

This is number 5 top-crasher on Linux for 10.0 now :(

I've pretty much got a patch for this which I will submit to the icedtea tracker once I've verified a few more of the links in the crash comments

Revision history for this message
In , Chris Coulson (chrisccoulson) wrote :

Created attachment 647
Only access JSRuntime on the plugin thread

This is currently the number 5 top crasher for Firefox 10 on Linux.

Here is a patch which seems to fix the problem

Revision history for this message
Chris Coulson (chrisccoulson) wrote : Re: Mozilla quits when viewing UK Gov traffic information

Patch for this submitted upstream

Changed in icedtea-web (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
In , Thomas Meyer (shokah) wrote :
Revision history for this message
In , R-luke-h (r-luke-h) wrote :

*** Bug 725117 has been marked as a duplicate of this bug. ***

Revision history for this message
In , R-luke-h (r-luke-h) wrote :

XPConnect has added slightly earlier/more-extenstive main-thread-only asserts that are hitting the same issue.

Changed in firefox:
importance: Medium → Critical
Revision history for this message
In , Scoobidiver (scoobidiver) wrote :

*** Bug 726302 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Khuey (khuey) wrote :

Why doesn't the plugin code just bail out when this happens? It already logs when it gets called on the wrong thread.

Micah Gersten (micahg)
summary: - Mozilla quits when viewing UK Gov traffic information
+ Java crash with icedtea plugin and Firefox 10+
Revision history for this message
In , R-luke-h (r-luke-h) wrote :

*** Bug 678989 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dbhole (dbhole) wrote :

*** Bug 884 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Scoobidiver (scoobidiver) wrote :

It's #1 top crasher on Linux in 10.0.2.

Revision history for this message
In , Alex Mayorga (alex-mayorga) wrote :

This no longer crashes with the following configuration.

IcedTea-Web 1.2pre (1.2~pre2-1ubuntu3)

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20120229 Firefox/13.0a1 ID:20120229052709

Linux VPCCW1FFXL 3.2.0-17-generic #27-Ubuntu SMP Fri Feb 24 15:37:36 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
In , Stransky (stransky) wrote :

Set dom.ipc.plugins.java.enabled to true is a workaround here (https://bugzilla.redhat.com/show_bug.cgi?id=789959)

Micah Gersten (micahg)
Changed in openjdk-6 (Ubuntu Precise):
status: New → Invalid
Changed in openjdk-6 (Ubuntu Oneiric):
status: New → Invalid
Changed in icedtea-web (Ubuntu Lucid):
status: New → Invalid
Changed in icedtea-web (Ubuntu Maverick):
status: New → Invalid
Changed in openjdk-6 (Ubuntu Natty):
status: New → Invalid
Changed in icedtea:
status: Confirmed → Fix Released
Changed in firefox:
status: Confirmed → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in icedtea-web (Ubuntu Natty):
status: New → Confirmed
Changed in icedtea-web (Ubuntu Oneiric):
status: New → Confirmed
Changed in openjdk-6 (Ubuntu Lucid):
status: New → Confirmed
Changed in openjdk-6 (Ubuntu Maverick):
status: New → Confirmed
tags: added: precise rls-mgr-p-tracking
Revision history for this message
Micah Gersten (micahg) wrote :

This should be fixed in precise already.

Changed in icedtea-web (Ubuntu Precise):
status: Triaged → Fix Released
Micah Gersten (micahg)
Changed in openjdk-6 (Ubuntu Maverick):
status: Confirmed → Won't Fix
Revision history for this message
Micah Gersten (micahg) wrote :

fixed in 1.2-2ubuntu0.10.04.1 thanks to Steve Beattie

Changed in icedtea-web (Ubuntu Lucid):
status: Invalid → Fix Released
Revision history for this message
Micah Gersten (micahg) wrote :

fixed in 1.2-2ubuntu0.11.04.1 thanks to Steve Beattie

Changed in icedtea-web (Ubuntu Natty):
status: Confirmed → Fix Released
Revision history for this message
Micah Gersten (micahg) wrote :

fixed in 1.2-2ubuntu0.11.10.1 thanks to Steve Beattie

Changed in icedtea-web (Ubuntu Oneiric):
status: Confirmed → Fix Released
Revision history for this message
Micah Gersten (micahg) wrote :

Lucid was updated with the openjdk-6/icedtea-web source split that was done in future releases and this was fixed in icedtea-web in lucid now.

Changed in openjdk-6 (Ubuntu Lucid):
status: Confirmed → Won't Fix
Revision history for this message
Carl-Georg Madelung (cgmadelung) wrote : Re: [Bug 927282] Re: Java crash with icedtea plugin and Firefox 10+
Download full text (4.7 KiB)

Hey Micah Gersten

Thank you for the mails you have sent me.
I can tell that as of today, July 14. I again tried FireFox and Iced Tea
worked like it used to and I used my homebanking system and it all vent
well. I have not done any thing special since I earlier this spring tried
to update Iced Tea which did not work. I think a new version must be put in
the common update system. At least now it works perfectly, on one of my to
Linux mashines. Later I will try the other, and if it runs perfectly I will
not do anything more about it. If, however it does not work I will get back
to launchpad.

Thank you very much,
Carl-Georg Madelung.
-------------------------------------------

2012/7/12 Micah Gersten <email address hidden>

> fixed in 1.2-2ubuntu0.10.04.1 thanks to Steve Beattie
>
> ** Changed in: icedtea-web (Ubuntu Lucid)
> Status: Invalid => Fix Released
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (987668).
> https://bugs.launchpad.net/bugs/927282
>
> Title:
> Java crash with icedtea plugin and Firefox 10+
>
> Status in The Mozilla Firefox Browser:
> Invalid
> Status in Iced Tea:
> Fix Released
> Status in “icedtea-web” package in Ubuntu:
> Fix Released
> Status in “openjdk-6” package in Ubuntu:
> Invalid
> Status in “icedtea-web” source package in Lucid:
> Fix Released
> Status in “openjdk-6” source package in Lucid:
> Won't Fix
> Status in “icedtea-web” source package in Maverick:
> Invalid
> Status in “openjdk-6” source package in Maverick:
> Won't Fix
> Status in “icedtea-web” source package in Natty:
> Fix Released
> Status in “openjdk-6” source package in Natty:
> Invalid
> Status in “icedtea-web” source package in Oneiric:
> Fix Released
> Status in “openjdk-6” source package in Oneiric:
> Invalid
> Status in “icedtea-web” source package in Precise:
> Fix Released
> Status in “openjdk-6” source package in Precise:
> Invalid
>
> Bug description:
> When I try to view http://www.highways.gov.uk/traffic/traffic.aspx and
> then click on Southampton on the righthand graphic Mozilla quits after
> a few seconds.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.10
> Package: firefox 10.0+build1-0ubuntu0.11.10.1
> ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
> Uname: Linux 3.0.0-15-generic i686
> AddonCompatCheckDisabled: False
> AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
> ApportVersion: 1.23-0ubuntu4
> Architecture: i386
> ArecordDevices:
> **** List of CAPTURE Hardware Devices ****
> card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: james 1759 F.... pulseaudio
> BuildID: 20120129141551
> CRDA: Error: [Errno 2] No such file or directory
> Card0.Amixer.info:
> Card hw:0 'Intel'/'HDA Intel at 0xff63c000 irq 43'
> Mixer name : 'Analog Devices AD1986A'
> Components : 'HDA:11d41986,1179ff40,00100500
> HDA:11c11040,11790001,00100200'
> Controls : 37
> Simple ctrls : 21
> Channel: rel...

Read more...

Revision history for this message
In , Alex Mayorga (alex-mayorga) wrote :

*** Bug 682426 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Carl-Georg Madelung (cgmadelung) wrote : Re: [Bug 927282]
Download full text (4.1 KiB)

It works now, thank you very mucho. I am so happy again that FireFox work
and still is way better than any other browser.
Greetings from

C-G. Madelung
Klostervej 29
8680 Ry
Sendt fra talephøn.
Den 22/08/2012 09.51 skrev "Alex Mayorga Adame" <email address hidden>:

> *** Bug 682426 has been marked as a duplicate of this bug. ***
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (987668).
> https://bugs.launchpad.net/bugs/927282
>
> Title:
> Java crash with icedtea plugin and Firefox 10+
>
> Status in The Mozilla Firefox Browser:
> Invalid
> Status in Iced Tea:
> Fix Released
> Status in “icedtea-web” package in Ubuntu:
> Fix Released
> Status in “openjdk-6” package in Ubuntu:
> Invalid
> Status in “icedtea-web” source package in Lucid:
> Fix Released
> Status in “openjdk-6” source package in Lucid:
> Won't Fix
> Status in “icedtea-web” source package in Maverick:
> Invalid
> Status in “openjdk-6” source package in Maverick:
> Won't Fix
> Status in “icedtea-web” source package in Natty:
> Fix Released
> Status in “openjdk-6” source package in Natty:
> Invalid
> Status in “icedtea-web” source package in Oneiric:
> Fix Released
> Status in “openjdk-6” source package in Oneiric:
> Invalid
> Status in “icedtea-web” source package in Precise:
> Fix Released
> Status in “openjdk-6” source package in Precise:
> Invalid
>
> Bug description:
> When I try to view http://www.highways.gov.uk/traffic/traffic.aspx and
> then click on Southampton on the righthand graphic Mozilla quits after
> a few seconds.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 11.10
> Package: firefox 10.0+build1-0ubuntu0.11.10.1
> ProcVersionSignature: Ubuntu 3.0.0-15.26-generic 3.0.13
> Uname: Linux 3.0.0-15-generic i686
> AddonCompatCheckDisabled: False
> AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
> ApportVersion: 1.23-0ubuntu4
> Architecture: i386
> ArecordDevices:
> **** List of CAPTURE Hardware Devices ****
> card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: james 1759 F.... pulseaudio
> BuildID: 20120129141551
> CRDA: Error: [Errno 2] No such file or directory
> Card0.Amixer.info:
> Card hw:0 'Intel'/'HDA Intel at 0xff63c000 irq 43'
> Mixer name : 'Analog Devices AD1986A'
> Components : 'HDA:11d41986,1179ff40,00100500
> HDA:11c11040,11790001,00100200'
> Controls : 37
> Simple ctrls : 21
> Channel: release
> Date: Sun Feb 5 19:38:08 2012
> ForcedLayersAccel: False
> IfupdownConfig:
> auto lo
> iface lo inet loopback
> InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386
> (20111012)
> IpRoute:
> default via 192.168.1.1 dev eth0 proto static
> 169.254.0.0/16 dev eth0 scope link metric 1000
> 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.101
> metric 1
> ProcEnviron:
> LANGUAGE=en_GB:en
> PATH=(custom, no user)
> LANG=en_GB.UTF-8
> SHELL=/bin/bash
> Profiles: Profile...

Read more...

Changed in icedtea-web (Ubuntu Precise):
assignee: nobody → Thea Kristensen (kristensen1234)
Micah Gersten (micahg)
Changed in icedtea-web (Ubuntu Precise):
assignee: Thea Kristensen (kristensen1234) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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