Bug 559940 - firefox crashes when trying to print any page
Summary: firefox crashes when trying to print any page
Keywords:
Status: CLOSED DUPLICATE of bug 553834
Alias: None
Product: Fedora
Classification: Fedora
Component: libgcrypt
Version: rawhide
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-29 12:04 UTC by Praveen Arimbrathodiyil
Modified: 2013-06-17 04:07 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-02 13:36:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
output of firefox -g with backtrace (57.06 KB, text/plain)
2010-02-01 12:08 UTC, Praveen Arimbrathodiyil
no flags Details
new backtrace with libgcrypt debuginfo installed (56.61 KB, text/plain)
2010-02-01 13:33 UTC, Praveen Arimbrathodiyil
no flags Details

Description Praveen Arimbrathodiyil 2010-01-29 12:04:31 UTC
Description of problem:

Firefox is crashing when trying to print any page.

Version-Release number of selected component (if applicable):


How reproducible:

always
Steps to Reproduce:
1. open firefox
2. select print under file menu
3.
  
Actual results:

firefox is crashed

pravi@savannah:~$ firefox
/usr/lib64/firefox-3.6/run-mozilla.sh: line 131:  5848 Segmentation fault      "
$prog" ${1+"$@"} 
ravi@savannah:~$

Expected results:

print the page

Additional info:

confirmed on another rawhide instance

Comment 1 Jonathan Corbet 2010-01-31 20:39:22 UTC
<metoo>

I disagree with the "low" priority designation; not being able to print is a problem.  Imagine your wife is saying "print me a map to this place IMMEDIATELY I'M LATE."  Imagine you pull up a map from your favorite map site.  Imagine the browser (with all of its tabs containing useful work) vanishing before your eyes.  Imagine having to explain, yet again, why you bother with this Linux thing.  This one is a pain.

Comment 2 Martin Stransky 2010-02-01 09:47:05 UTC
Do you have ABRT tool installed? It catches the crash and submits bug reports with appropriate info. Or you can create the info by hand, there is a glue here:

------------------------------------------------------------------------------
Thanks for the bug report.  We have reviewed the information you have provided
above, and there is some additional information we require that will be helpful
in our diagnosis of this issue.

First of all, could we get output of the command

 rpm -qa *xulrun* *firefox* *mozilla* *flash* *plugin*

Please also install firefox-debuginfo (debuginfo-install is from
yum-utils package).

 debuginfo-install firefox

Then run firefox with a parameter -g. That will start firefox running inside of
gdb debugger. Then use command run and do whatever you did to make firefox
crash. When it happens, you should go back to the gdb and run

 (gdb) thread apply all backtrace

This produces usually many screens of the text. Copy all of them into a text
editor and attach the file to the bug as an uncompressed attachment.

We will review this issue again once you've had a chance to attach this
information.

Thanks in advance.

Comment 3 Praveen Arimbrathodiyil 2010-02-01 12:07:14 UTC
pravi@savannah:~$ rpm -qa *xulrun* *firefox* *mozilla* *flash* *plugin*
totem-mozplugin-2.29.2-1.fc13.x86_64
gstreamer-plugins-flumpegdemux-0.10.15-8.fc13.x86_64
gnash-plugin-0.8.6-9.fc13.x86_64
xulrunner-devel-1.9.2.1-1.fc13.x86_64
nspluginwrapper-1.3.0-11.fc13.x86_64
anaconda-yum-plugins-1.0-5.fc12.noarch
xulrunner-1.9.2.1-1.fc13.x86_64
java-1.6.0-openjdk-plugin-1.6.0.0-33.b16.fc12.x86_64
alsa-plugins-pulseaudio-1.0.22-1.fc13.x86_64
gstreamer-plugins-good-0.10.17-5.fc13.x86_64
setroubleshoot-plugins-2.1.36-1.fc13.noarch
PackageKit-yum-plugin-0.6.0-1.fc13.x86_64
gdm-plugin-fingerprint-2.29.4-2.fc13.x86_64
plymouth-plugin-two-step-0.8.0-0.20100114.2.fc13.x86_64
PackageKit-gstreamer-plugin-0.6.0-1.fc13.x86_64
firefox-3.6.1-1.fc13.x86_64
mozilla-filesystem-1.9-5.fc12.x86_64
gstreamer-plugins-base-0.10.25.1-2.fc13.x86_64
plymouth-plugin-label-0.8.0-0.20100114.2.fc13.x86_64
pravi@savannah:~$

Comment 4 Praveen Arimbrathodiyil 2010-02-01 12:08:23 UTC
Created attachment 388018 [details]
output of firefox -g with backtrace

Comment 5 Martin Stransky 2010-02-01 13:21:49 UTC
Thanks. Looks like a crash in crypto:

Thread 1 (Thread 0x7ffff7fd9720 (LWP 6250)):
#0  0x00007fffddcd21d0 in ?? ()
#1  0x000000364ee0ffc8 in ?? () from /lib64/libgcrypt.so.11
#2  0x000000364ee1023a in ?? () from /lib64/libgcrypt.so.11
#3  0x000000364ee44b70 in ?? () from /lib64/libgcrypt.so.11
#4  0x000000364ee44cbe in ?? () from /lib64/libgcrypt.so.11
#5  0x000000364ee44e25 in ?? () from /lib64/libgcrypt.so.11
#6  0x00007fffdd632817 in ?? () from /usr/lib64/libgnutls.so.26
#7  0x00007fffdd630aac in ?? () from /usr/lib64/libgnutls.so.26

Please install respective debuginfo packages (by debuginfo-install libgcrypt gnutls) and attach the backtrace again.

Comment 6 Praveen Arimbrathodiyil 2010-02-01 13:33:44 UTC
Created attachment 388041 [details]
new backtrace with libgcrypt debuginfo installed

gnutls debuginfo package is not available

pravi@savannah:~$ sudo debuginfo-install  gnutls
Loaded plugins: presto, refresh-packagekit
enabling rawhide-debuginfo
Reading repository metadata in from local files
enabling rpmfusion-free-rawhide-debuginfo
Reading repository metadata in from local files
enabling rpmfusion-nonfree-rawhide-debuginfo
Reading repository metadata in from local files
Could not find debuginfo for main pkg: gnutls-2.8.5-1.fc13.x86_64
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.x86_64
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.x86_64
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.x86_64
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.x86_64
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.x86_64
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.2-20.fc13.x86_64
Could not find debuginfo pkg for dependency package libgcc-4.4.2-20.fc13.x86_64
Package libgcrypt-debuginfo-1.4.5-1.fc13.x86_64 already installed and latest version
Package libgcrypt-debuginfo-1.4.5-1.fc13.x86_64 already installed and latest version
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.x86_64
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.x86_64
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.x86_64
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.x86_64
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.x86_64
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.x86_64
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.x86_64
Could not find debuginfo pkg for dependency package libstdc++-4.4.2-20.fc13.x86_64
Could not find debuginfo pkg for dependency package libstdc++-4.4.2-20.fc13.x86_64
Could not find debuginfo pkg for dependency package libstdc++-4.4.2-20.fc13.x86_64
Could not find debuginfo pkg for dependency package libtasn1-2.3-2.fc13.x86_64
Could not find debuginfo pkg for dependency package libtasn1-2.3-2.fc13.x86_64
Package zlib-debuginfo-1.2.3-23.fc12.x86_64 already installed and latest version
Could not find debuginfo for main pkg: gnutls-2.8.5-1.fc13.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package libgcc-4.4.2-20.fc13.i686
Could not find debuginfo pkg for dependency package libgcc-4.4.2-20.fc13.i686
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.i686
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.i686
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.i686
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.i686
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.i686
Could not find debuginfo pkg for dependency package gnutls-2.8.5-1.fc13.i686
Could not find debuginfo pkg for dependency package glibc-2.11.90-8.i686
Could not find debuginfo pkg for dependency package libstdc++-4.4.2-20.fc13.i686
Could not find debuginfo pkg for dependency package libstdc++-4.4.2-20.fc13.i686
Could not find debuginfo pkg for dependency package libstdc++-4.4.2-20.fc13.i686
Could not find debuginfo pkg for dependency package libtasn1-2.3-2.fc13.i686
Could not find debuginfo pkg for dependency package libtasn1-2.3-2.fc13.i686
No debuginfo packages available to install
pravi@savannah:~$

Comment 7 Karsten Roch 2010-02-23 20:45:53 UTC
I'm having the same problem here, but on a 32bit Fedora Installation. 
It makes no difference, if i start firefox with option -p (new profile) or create a new user. Printing with other Applications work fine, Printing under Firefox 3.5.7
also worked. Problem started with upgrade to Firefox 3.6, iirc.

Kernel: 2.6.33-0.48.rc8.git1.fc14.i686
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2) Gecko/20100218 Fedora/3.6.1-1.fc13 Firefox/3.6

>>rpm -qa *xulrun* *firefox* *mozilla* *flash* *plugin*
alsa-plugins-pulseaudio-1.0.22-1.fc13.i686
gstreamer-plugins-base-0.10.26.2-1.fc13.i686
report-plugin-bugzilla-0.8-1.fc13.i686
yum-plugin-auto-update-debug-info-1.1.26-1.fc13.noarch
PackageKit-yum-plugin-0.6.2-0.1.20100219git.fc14.i686
gstreamer-plugins-bad-free-0.10.17.2-1.fc13.i686
abrt-plugin-bugzilla-1.0.6-1.fc13.i686
plymouth-plugin-space-flares-0.8.0-0.20100114.2.fc13.i686
anaconda-yum-plugins-1.0-5.fc12.noarch
mozilla-filesystem-1.9-5.fc12.i686
gutenprint-plugin-5.2.5-3.fc13.i686
flash-plugin-10.0.45.2-release.i386
gstreamer-plugins-bad-0.10.17-4.fc13.i686
setroubleshoot-plugins-2.1.40-1.fc13.noarch
plymouth-plugin-label-0.8.0-0.20100114.2.fc13.i686
plymouth-plugin-two-step-0.8.0-0.20100114.2.fc13.i686
xulrunner-1.9.2.1-3.fc14.i686
gstreamer-plugins-good-0.10.18.2-2.fc13.i686
firefox-3.6.1-1.fc13.i686
plymouth-plugin-throbgress-0.8.0-0.20100114.2.fc13.i686
gstreamer-plugins-base-debuginfo-0.10.26-3.fc13.i686
yum-plugin-fastestmirror-1.1.26-1.fc13.noarch

I enter a "strace firefox" with an output file at http://pastebin.com/cv932hGi

The output of firefox -g (with installed debuginfo firefox) shows an error message, and did not start firefox.

Reading symbols from /usr/lib/firefox-3.6/firefox...Missing separate debuginfo for /usr/lib/firefox-3.6/firefox
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/48/c7fc76f4dde2f5ce6ae069a9d62ec4d206cf1a.debug
(no debugging symbols found)...done.
(gdb) 

I tried the installation, but received the message 

No package /usr/lib/debug/.build-id/48/c7fc76f4dde2f5ce6ae069a9d62ec4d206cf1a.debug available.
Nothing to do


Regards
Karsten

Comment 8 Caolan McNamara 2010-03-02 11:02:16 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=553834#c43

As far as I can see it's currently hopeless to use GCRYCTL_SET_THREAD_CBS in a library that uses libgcrypt because that library can be dlclosed, destroying the locking functions that were installed into libgcrypt and there's no way to inform libgcrypt of that scenario by either resetting the locking methods or storing/restoring previous ones.

Comment 9 Caolan McNamara 2010-03-02 13:36:12 UTC

*** This bug has been marked as a duplicate of bug 553834 ***


Note You need to log in before you can comment on or make changes to this bug.