Firefox segfaults when calling window.print (javascript)

Bug #296837 reported by Frantique
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Invalid
Undecided
Unassigned
firefox-3.0 (Ubuntu)
Invalid
Undecided
Unassigned
firefox-3.5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox-3.0

To reproduce:
1. go to a webpage where window.print is used.
2. when print dialog pops up, cancel the printing.
3. try to print again.

Result: Firefox will crash.

See attached the output from strace -f -eopen firefox &> /tmp/ffox.log.txt

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: firefox-3.0 3.0.3+nobinonly-0ubuntu2
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=hu_HU.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.27-7-generic i686

Tags: apport-bug
Revision history for this message
Frantique (undernetangel) wrote :
Revision history for this message
Michael Rooney (mrooney) wrote :

Thanks for your bug report Frantique! Could you provide a basic example website URL so this can be more easily reproduced?

Changed in firefox-3.0:
status: New → Incomplete
Revision history for this message
Frantique (undernetangel) wrote :

The problem can be reproduced if the page tries to print automatically. It does not appear if the window.print is attached to an onclick event.
As example:

<html>
<head>
</head>
<body>
<div>Some content.</div>
<script language="JavaScript1.2">
window.print();
</script>
</body>
</html>

Revision history for this message
Frantique (undernetangel) wrote :

Here is the backtrace... I hope that it will help too...

Revision history for this message
Michael Rooney (mrooney) wrote :

Frantique, I can't confirm this with a clean Firefox profile. I can open a page with the HTML contents you specified, cancel the printing, and print again successfully.

Are you using any extensions besides ubufox? If so please disable them, restart, and try again as it may not be a problem with an Ubuntu package but instead a third-party extension.

Revision history for this message
Frantique (undernetangel) wrote :

Strange... I have deleted and readded the printer, and I cannot reproduce the error anymore. The funny part is that I had the same problem on 3 different computers. Now I have here just 2, in a few hours I will reinstall the printer on the third as well. I will announce the communitiy if this helped.

Revision history for this message
Frantique (undernetangel) wrote :

Confirmed. The reinstall of the printer solved the problem. Anyway, the crash should not happen. It would be better a warning message about the problem.

Revision history for this message
Michael Rooney (mrooney) wrote : Re: [Bug 296837] Re: Firefox segfaults when calling window.print (javascript)

Okay, do you have any reason to believe it is limited to Firefox? I wonder
if other applications exhibit the same behavior when it occurs. In that case
it might not be Firefox.

Revision history for this message
Frantique (undernetangel) wrote :

Well, it does not appear in other cases. Today I had 2 more Firefox crashes in the same case, but at least it does not appear all the time. I am trying to collect more info... It seems that the problem didn't went away totally.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Revision history for this message
Mark Wilding (marktwilding) wrote :

I can't find any other report of this happening in Fedora, but I'm getting the same thing using Fedora 10.
I'm using Firefox 3.0.7.
I find Firefox crashes a high proportion of times window.print() is called, but not all.

Architecture: x86_64
Uname: 2.6.27.19-170.2.35.fc10.x86_64
Firefox package version: 3.0.7-1

Revision history for this message
Frantique (undernetangel) wrote :

Developers, how can we help you? What else info you need?

Revision history for this message
Michael Rooney (mrooney) wrote :

Frantique / Mark, to really help this needs to be filed upstream. Launchpad helps in this process, you can just click the "Also affects project" link towards the top, and that will guide you to filing a new report and linking it back here. That way mozilla developers will actually see it and can analyze it.

Revision history for this message
Michael Rooney (mrooney) wrote : Re: [Bug 296837] Re: Firefox segfaults when calling window.print (javascript)

Okay, I've added a blank task so you'll need to file it this way now:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&format=guided
. If you do so, make sure to mention this is a downstream Ubuntu bug
and add a link to this bug.

Revision history for this message
dino99 (9d9) wrote :

This is no more a supported version

Changed in firefox-3.0 (Ubuntu):
status: Incomplete → Invalid
affects: firefox-3.0 (Fedora) → firefox-3.5 (Ubuntu)
Changed in firefox-3.5 (Ubuntu):
status: New → Invalid
Changed in firefox:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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