MASTER [@gtk_xtbin_new] [@nsPluginNativeWindowGtk2::CallSetWindow] [@nsObjectFrame::InstantiatePlugin]

Bug #86362 reported by Alex Zvoleff
18
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
High
firefox (Ubuntu)
Won't Fix
High
Mozilla Bugs

Bug Description

Binary package hint: firefox

Firefox crashed while browsing the launchpad page to report another bug.

ProblemType: Crash
Date: Mon Feb 19 12:33:05 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/lib/firefox/firefox-bin
Package: firefox 2.0.0.1+1-0ubuntu1
ProcCmdline: /usr/lib/firefox/firefox-bin https://launchpad.net/ubuntu/+source/vbetool/+filebug/YcsJdKT2RcUQgD3ZZysCXYsJYb?field.title=%5Bapport%5D+vbetool+crashed+with+signal+5 -a firefox
ProcCwd: /home/azvoleff
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
Signal: 11
SourcePackage: firefox
StacktraceTop:
 __kernel_vsyscall ()
 raise () from /lib/tls/i686/cmov/libpthread.so.0
 ?? ()
 ?? ()
 ?? ()
Uname: Linux azvoleff-laptop-feisty 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video

Revision history for this message
In , Olli-pettay (olli-pettay) wrote :

Should nsObjectFrame::nsObjectFrame() set mInstanceOwner to nsnull.

Revision history for this message
In , Olli-pettay (olli-pettay) wrote :

There are also crashes @ nsPluginInstanceOwner::Destroy.

> Should nsObjectFrame::nsObjectFrame() set mInstanceOwner to nsnull.
>
 nm that, I think

Revision history for this message
In , Bzbarsky (bzbarsky) wrote :

So.. the code in question basically looks like:

1328 mInstanceOwner->SetPluginHost(pluginHost);
1329
1330 rv = InstantiatePlugin(pluginHost, aMimeType, aURI);
1331
1332 // finish up
1333 if (NS_SUCCEEDED(rv)) {
1334 nsCOMPtr<nsIPluginInstance> inst;
1335 mInstanceOwner->GetInstance(*getter_AddRefs(inst));

With us crashing on line 1335(!) on Windows. But the Windows stacks look pretty bogus.

The stack in comment 0 looks like one of the Linux stacks, but doesn't have any line numbers....

It _could_ be that instantiating the plugin kills the frame or something, I suppose. Could always try handling that with an nsWeakFrame and see if it helps?

Revision history for this message
In , Olli-pettay (olli-pettay) wrote :

Created attachment 240143
a guess fix

Perhaps we could try something like this.
Trying to prevent crashes if frame somehow gets deleted when instantiating or stopping a plugin.
But this is just a guess fix.

Revision history for this message
In , Olli-pettay (olli-pettay) wrote :

Biesi, any comments on this?

Revision history for this message
Alex Zvoleff (azvoleff) wrote : [apport] firefox-bin crashed with SIGSEGV in __kernel_vsyscall()

Binary package hint: firefox

Firefox crashed while browsing the launchpad page to report another bug.

ProblemType: Crash
Date: Mon Feb 19 12:33:05 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/lib/firefox/firefox-bin
Package: firefox 2.0.0.1+1-0ubuntu1
ProcCmdline: /usr/lib/firefox/firefox-bin https://launchpad.net/ubuntu/+source/vbetool/+filebug/YcsJdKT2RcUQgD3ZZysCXYsJYb?field.title=%5Bapport%5D+vbetool+crashed+with+signal+5 -a firefox
ProcCwd: /home/azvoleff
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
Signal: 11
SourcePackage: firefox
StacktraceTop:
 __kernel_vsyscall ()
 raise () from /lib/tls/i686/cmov/libpthread.so.0
 ?? ()
 ?? ()
 ?? ()
Uname: Linux azvoleff-laptop-feisty 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev scanner video

Revision history for this message
Alex Zvoleff (azvoleff) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

Hi,

what did you do before you ran into this crash? Maybe you had another tab or windows open? You remember which ones?

Changed in firefox:
assignee: nobody → mozillateam
status: Unconfirmed → Needs Info
importance: Undecided → High
Revision history for this message
John Vivirito (gnomefreak) wrote :

taking for retrace

Changed in firefox:
assignee: mozillateam → gnomefreak
Revision history for this message
John Vivirito (gnomefreak) wrote :

Finished retrace.

Changed in firefox:
assignee: gnomefreak → mozillateam
Revision history for this message
John Vivirito (gnomefreak) wrote :
David Farning (dfarning)
Changed in firefox:
assignee: mozillateam → mozilla-bugs
Changed in firefox:
assignee: mozilla-bugs → asac
status: Needs Info → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

sorry ... have to find duplicates to extract a testcase in order to fix this

Changed in firefox:
status: Confirmed → Needs Info
Alexander Sack (asac)
Changed in firefox:
status: Needs Info → Confirmed
Revision history for this message
In , Mtschrep (mtschrep) wrote :

Biesi - ping ...

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

Can someone please post step by step instructions on how to reproduce this crash example:
open <link>
click something
it crashes.

Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
In , Olli-pettay (olli-pettay) wrote :

Comment on attachment 240143
a guess fix

Clearing the r-request, the code has changed now quite a bit.

Revision history for this message
Alexander Sack (asac) wrote :

upstream confirmed is in progress for ubuntu tracker.

Changed in firefox:
status: Confirmed → In Progress
assignee: asac → mozilla-bugs
Revision history for this message
In , Christian Biesinger (cbiesinger) wrote :

bug 393845 fixes at least parts of this, and in fact parts of that patch look very much like parts of this one... sorry for never getting to this review :/

Revision history for this message
In , Jonas-sicking (jonas-sicking) wrote :

Comment on attachment 240143
a guess fix

jst says this is not the right fix, and the problem it covers has been fixed elsewhere

Revision history for this message
In , Jonas-sicking (jonas-sicking) wrote :

Is this still showing up in breakbad a lot? Please add back the topcrash keyword if so. We would probably want to up the priority too then.

Revision history for this message
Alexander Sack (asac) wrote :

this is fixed for ffox 3. ffox 2 won't receive a fix most probably.

Changed in firefox:
status: In Progress → Won't Fix
Revision history for this message
In , Coce (coce) wrote :

Im running Windows XP Service Pack 3,
Firefox 3 RC1 (Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9)
Gecko/2008051206 Firefox/3.0)
and Java SE 6 Update 6.

When I do the Java test here
<http://www.java.com/en/download/help/testvm.xml?ff3> Firefox sometimes
crashes.
Here's the crash report:
<http://crash-stats.mozilla.com/report/index/8e72e005-28f4-11dd-ba47-001321b13766?p=1>

Revision history for this message
In , Tchung-mozilla (tchung-mozilla) wrote :

shows up as crash #87 on breakpad for RC1.

http://crash-stats.mozilla.com/topcrasher/byversion/Firefox/3.0

Revision history for this message
In , Jst (jst) wrote :

Created attachment 322287
Another guess fix.

Make sure we don't crash if the frame dies while we're initializing the plugin.

Revision history for this message
In , Jst (jst) wrote :

Test builds with the above patch applied available here:

https://build.mozilla.org/tryserver-builds/2008-05-23_12:<email address hidden>/

Please test if you're able to reproduce this crash!

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

I was hoping this patch would fix the crash with the testcase from bug 421833, but it doesn't. The stacktrace in that bug looks almost the same as this one, that's why.

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

Created attachment 322946
testcase

The tryserver build seems to fix the crash with this testcase, though.

With a normal trunk build, I get this breakpad stacktrace:
http://crash-stats.mozilla.com/report/index/66db8773-2d85-11dd-a85e-001cc45a2ce4?p=1
0 @0x0
1 xul.dll Create4xPlugin nsPluginHostImpl.cpp:4710
2 xul.dll nsPluginHostImpl::GetPluginFactory nsPluginHostImpl.cpp:4827
3 xul.dll nsPluginHostImpl::TrySetUpPluginInstance nsPluginHostImpl.cpp:4043
4 xul.dll nsPluginHostImpl::SetUpPluginInstance nsPluginHostImpl.cpp:3911

Revision history for this message
In , Dsicore (dsicore) wrote :

wanted1.9.0.1+
blocking1.9.0.1-
blocking1.9.1-
wanted1.9.1+ w/ P3.

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

Also crashing with the stacktrace from comment 16 on http://www.artoischampionships.com/1/news/video_2008.asp when trying to view a video.

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

The testcase, that I attached, https://bugzilla.mozilla.org/attachment.cgi?id=322946 , regressed between 2008-05-18 (not crashing) and 2008-05-28 (crashing).
Ria, do you have builds inbetween to find a more narrow regression range? Thanks.

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

Never mind, that regression range is probably incorrect. The crash seems to only happen on hg builds, not on branch.
So a regression range for hg builds might be useful, although I have no idea how to get a nice list of check-ins of a regression window on hg.mozilla.org.

Revision history for this message
In , Ria-klaassen (ria-klaassen) wrote :

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1a1pre) Gecko/2008061609 Minefield/3.1a1pre

I get no crash but only a sound fragment. Also with branch builds.

Revision history for this message
In , Ria-klaassen (ria-klaassen) wrote :

OK, I see, it is XP-only. Not on Vista. Vista has a plugin in its own Plugins folder and no problem (at least here). On XP the problem was there on a 1 April build, so probably from the beginning; when it should have started to work it didn't work.

Revision history for this message
In , Jst (jst) wrote :

Martijn, can you still reproduce this with a nightly from today or later?

Revision history for this message
In , Martijn-martijn (martijn-martijn) wrote :

Yeah, seems to be worksforme, now, using:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a1pre) Gecko/2008063003 Minefield/3.1a1pre

Revision history for this message
In , Jst (jst) wrote :

Awesome. I'm betting this was fixed by the patch that went in for bug 421833.

Changed in firefox:
status: Confirmed → Fix Released
Changed in firefox:
importance: Unknown → High
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.