Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72902 - Firefox and Thunderbird Crash On Print
Summary: Firefox and Thunderbird Crash On Print
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-30 03:29 UTC by Kathy Wills
Modified: 2007-07-31 03:27 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Strace when printing (strace.txt,20.22 KB, text/plain)
2004-11-30 18:49 UTC, neetocin
Details
strace of firefox crash (stracefirefox,20.22 KB, application/octet-stream)
2004-12-03 05:24 UTC, Kathy Wills
Details
strace of thunderbird crash (stracethunderbird,23.61 KB, application/octet-stream)
2004-12-03 05:29 UTC, Kathy Wills
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Wills 2004-11-30 03:29:46 UTC
As a user, firefox-1.0-r3 and thunderbird-0.9 crash when sending to the printer. Root can send files to the printer and it works just fine.

Reproducible: Always
Steps to Reproduce:
1.choose to send a webpage or an email to the printer
2.printer box opens
3.

Actual Results:  
The box opens showing the file is going to the printer and the firefox or 
thunderbird will just shutdown. Opening firefox or thunderbird using a 
terminal, gives this message about a segmentation fault: 
 
line 88: 10603 Segmentation fault      $mozbin "$@" 
 
The same steps as root result in printing being successful. 

Expected Results:  
The pages should have printed with no problem same as for root. User is listed 
in group lp. 

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, 
glibc-2.3.4.20041102-r0, 2.6.9-nitro4 i686) 
================================================================= 
System uname: 2.6.9-nitro4 i686 Pentium III (Coppermine) 
Gentoo Base System version 1.6.6 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.10 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -mtune=i686 -O2 -funroll-loops -pipe 
-fno-unit-at-a-time" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium3 -mtune=i686 -O2 -funroll-loops -pipe 
-fno-unit-at-a-time" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo/ 
http://mirror.clarkson.edu/pub/distributions/gentoo/ 
http://gentoo.chem.wisc.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ 
http://mirror.datapipe.net/gentoo http://mirror.uni-c.dk/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" 
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups doc encodeesd f77 
fam flac foomaticdb fortran gdbm gif gimp gimp-print gphoto2 gstreamer gtk gtk2 
imagemagick imap imlib java jpeg kde ldap libg++ libwww mad maildir mikmod 
motif mpeg ncurses nls nptl nptlonly oav oggvorbis opengl oss pam pdflib perl 
png python qt quicktime readline samba sdlslang spell ssl svga tcltk tcpd tetex 
tiff truetype x86 xfs xml xml2 xmms xprint xv zlib"
Comment 1 neetocin 2004-11-30 18:42:29 UTC
This bug also applies for me. Just like he said, when I "su" and run "firefox" there were no problems printing.

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-ck3 i686)
=================================================================
System uname: 2.6.9-ck3 i686 Celeron (Coppermine)
Gentoo Base System version 1.6.6
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /opt/openjms/config /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://ftp.ntua.gr/pub/linux/gentoo/ http://mirror.tucdemonic.org/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="S3TC X X509 aac aalib acl acpi acpi4linux activefilter adns aim alsa apm arts artswrappersuid artworkextra asterisk atlas audiofile avantgo avi bash-completion bcmath bdf beepmp berkdb bidi bigger-fonts bitmap-fonts blas blender-game bmp bzlib cap cddb cdinstall cdparanoia cdr cdrom cgi chroot cjk client codecs cpdflib crypt css ctype cups curl curlwrappers dba dedicated devfs dga dhcp dio distribution divx4linux djbfft dmx dnd droproot dv dvb dvd dvdr dvdread editor edl emoticon encode erandom escreen esd exif extensions f77 faac faad fam fastcgi festival ffmpeg flac flash flood fluidsynth fmod font-server foomaticdb fortran fpx freetts freetype freewnn ftp gb gcl gd gdbm geoip gif gimp gimpprint ginac glade glgd glut gmp gmtfull gnomedb gnuplot gnutls gphoto2 gpm graphviz gs gsl gstreamer gtk gtk2 gtkhtml hal hardenedphp hbci hdf hdf5 i8x0 iconv icq ide idea idl ieee1394 image imagemagick imap imlib imlib2 ipv6 irda irmc j2ee jabber jack java javacomm javadoc javascript jbig jboss jce jms joystick jp2 jpeg jpeg2k jta junit jython kadu-modules kadu-voice kakasi latex lcms libcaca libdsk libg++ libgd libsamplerate libwww lirc live lm_sensors lua lufsusermount lzo lzw lzw-tiff m17n-lib mad maildir mailwrapper maps matroska mbox mbrola mcal md5sum mdb memlimit mhash migemo mikmod mime ming mixer mmap mmx mng monkey mono motif mozaccess mozcalendar mozilla mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msdav msn mule music nagios-dns nagios-ntp nagios-ping nagios-ssh native ncurses net network nls nocd nptl ntlm nviz oav objc ocaml offensive ofx oggvorbis openal opengl opie oscar ospfapi oss pam parse-clocks pcap pcntl pcre pdf pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php physfs pic plotutils png portaudio posix postgresql ppds print private pthreads python qemu-fast qt quicktime quotes readline real remote rhino rogue rplay rtc sasl sdl server servlet-2.3 servlet-2.4 session sftplogging shaper shared sharedmem sheep silc silverxp simplexml skey skk slang smime sndfile snmp sockets softquota sounds sox speex spell sse ssl stencil-buffer stroke suid svg sysvipc szip t1lib tcltk tcpd tga theora tidy tiff timidity tools transcode transparent-proxy truetype truetype-fonts type1 type1-fonts unicode usb v4l v4l2 vcd vcdimager vda vhosts videos vim-with-x virus-scan wddx wmf wxwin wxwindows x86 xanim xatrix xchatdccserver xgetdefault xine xml xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xsl xv xvid xvmc yahoo yv12 zlib zvbi"
Comment 2 neetocin 2004-11-30 18:49:29 UTC
Created attachment 45035 [details]
Strace when printing

This is an strace of firefox obtained by "strace firefox". I don't know if it's
helpful since firefox run is only a shell script
Comment 3 neetocin 2004-12-01 17:33:58 UTC
Hmm, strange. When I delete ~/.mozilla and most of the hidden configuration files in the home directory it works again. Maybe its an extensions fault? I had Adblock and All-in-one-gestures. Now I run run Ablock-dev so Adblock-stable might be the problem.
Comment 4 Kathy Wills 2004-12-01 18:12:20 UTC
I don't have any extensions installed. I tried a new profile by deleting .mozilla and .thunderbird and recreating them before I filed this bug report. So for me at least that doesn't solve the problem.
Comment 5 Kathy Wills 2004-12-03 05:24:14 UTC
Created attachment 45199 [details]
strace of firefox crash

Here is an strace of my crash with firefox on trying to print as user. To me it
looks a little different than the strace submitted by someone else. I may be
wrong. Hope this helps.
Comment 6 Kathy Wills 2004-12-03 05:29:59 UTC
Created attachment 45200 [details]
strace of thunderbird crash

Here is the strace of the thunderbird crash on print. Hope it helps.
Comment 7 Kathy Wills 2004-12-06 07:38:32 UTC
I've done some experimenting. Still haven't solved the problem though. The crash on print occurs with and without xprint in the USE flags.
Comment 8 James Pattinson 2004-12-06 08:33:41 UTC
Just something else to add as I also see this problem. I'm using CUPS 1.1.20-r5 and FireFox 1.0-r3 (compiled locally).

If I install the official firefox 1.0 distribution from mozilla.org into my home directory and run it, I can print fine. However if I use my gentoo compiled copy it crashes as soon as I print.

I am running as the same user each time, so .mozilla of course is the same.

Also I noticed that it's also crashing when I print to a file, not just a printer.

Thanks
James
Comment 9 Stefano 2004-12-17 03:34:03 UTC
I confirm the same bug, and I'm also using CUPS, so that may be the problem.
Comment 10 Kathy Wills 2004-12-29 17:16:37 UTC
Removing the configuration for fonts based on http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts allows me to now be able to print from firefox without crashing. Apparently the problem has something to do with using the freetype fonts.
Comment 11 John Altstadt 2005-01-04 10:24:07 UTC
I had this problem with Firefox 1.0, but a re-build fixed it.

I have this problem with Thunderbird 1.0, but a re-build did not fix it.

Starting Thunderbird after the re-build deleted the old compreg.dat and XUL.mfasl files. /usr/libexec/mozilla-launcher tries to delete the files: compreg.dat, chrome.rdf, and XUL.mfasl. Unfortunately chrome.rdf is one directory deeper than the script looks in, so it is never removed. When I removed all the listed files by hand and restarted Thunderbird, I still had the problem with printing. I am assuming that the problem is in some corrupt configuration file, but which one?

My user.js files for each of Thunderbird and Firefox are virtually identical, both incorporating the font configuration lines listed in the HOWTO.
Comment 12 Kathy Wills 2005-01-04 11:04:24 UTC
It is the font configuration in user.js that caused the problem for me. Unfortunately, I couldn't just remove it from user.js to solve the problem. I ended up having to start a new profile with the font configuration stuff removed from user.js. Now printing works as it should in both firefox and thunderbird. Recompiling firefox didn't work for me. It was the new profile without font configuration in user.js that fixed it for me.
Comment 13 John Altstadt 2005-01-05 09:47:28 UTC
To get TB 1.0 printing, all I had to do was comment out the user.js line:
  //pref("font.FreeType2.enable", true);

Since I can print from FF 1.0 with freetype2 enabled, I checked the USE flags for the two builds on my system:
[ebuild   R   ] net-www/mozilla-firefox-1.0  -debug +gnome +gtk2 +ipv6 +java -ldap -mozdevelop -moznoxft -mozxmlterm +truetype -xinerama -xprint 0 kB 
[ebuild   R   ] mail-client/mozilla-thunderbird-1.0  +crypt -debug +gnome +java -ldap -moznoxft -xinerama -xprint 0 kB 

The flags that are different are:
FF: +gtk2 +ipv6 -mozdevelop -mozxmlterm +truetype
TB: +crypt

The relevant flag would appear to be the +truetype, which is part of the FF ebuild but not the TB ebuild.
Comment 14 Sam Kyritsoglou 2005-01-09 13:59:48 UTC
Hi,
I had the same problem and I solved this problem when I set a default printer is cups. 
I find the solution in this tread http://forums.gentoo.org/viewtopic.php?t=259278 (seconde page)
As I got a network printer, I set the cups-pdf printer by default.
Hope this can help you.
Comment 15 John Altstadt 2005-01-09 15:25:18 UTC
Do you have FreeType2 enabled in your user.js files?

I already had a default printer set in /etc/cups/printers.conf, which was also set in /etc/profile with PRINTER. The only thing I was missing (that was described in the forum thread) was the definition of LPDEST. Adding this last environment variable did not help at all.
Comment 16 Sam Kyritsoglou 2005-01-10 00:32:31 UTC
I haven't got any user.js for firefox or thunderbird.

I didn't make any change in /etc/profile. Just set default printer in localhost:631/printers.

May be, my problem is not the same than you.
Comment 17 Daniel 2005-02-04 08:25:39 UTC
ok, i can confirm this bug, and also solving it.
i'm using firefox compiled with -debug +gnome +java -ldap -mozdevelop -moznoxft +mozsvg -mozxmlterm -xinerama +xprint.
as mentioned on previous comments:
1. root prints fine/
2. /usr/bin/firefox: line 88: 12734 Segmentation fault      $mozbin "$@" when printing as normal user.
3. print preview and print setup work just fine.

anyway, i managed solving it by setting "font.FreeType2.printing" in about:config to false.
also I wanna mention that exporting LPDEST and PRINTER didn't help.

Comment 18 Stefano 2005-02-07 13:03:31 UTC
I confirm the workaround above works for me
Comment 19 Congtat Cia 2005-03-01 23:28:44 UTC
I repeated Jim's* trial and got the following results:
*Jim: a memeber of forums.gentoo.org.tw

freetype-2.1.5-r1+mozilla-firefox-1.0.1-mozilla-firefox-1.0-4ft2.patch
= FT2 Printing OK

freetype-2.1.5-r1+mozilla-firefox-1.0.1
= FT2 Printing crashes

freetype-2.1.9-r1+mozilla-firefox-1.0.1
= FT2 Printing crashes

freetype-2.1.9-r1+mozilla-firefox-1.0.1-mozilla-firefox-1.0-4ft2.patch
= emerge mozilla-firefox fails

FT2 is the only working medthod while printing traditional Chinese and some other Asian documents. Therefore I consider Bug 79213 a duplicate of this one.
Comment 20 John Altstadt 2005-03-17 09:03:54 UTC
When I was using FF 1.0, printing worked with
  pref("font.FreeType2.enable", true);
After upgrading to FF 1.0.1, printing a page crashes FF. I have had to disable FreeType2 in FF as well as TB.

I have made no changes in my USE flags.
Comment 21 Daniel Kasak 2005-05-03 21:05:57 UTC
*None* of the posted solutions fix this for me ( firefox and thunderbird both crashing upon print request ), including:

- setting LPDEST and PRINTER environment variables
- disabling freetype2 stuff in about:config
- setting a default printer in CUPS ( was already set )
- recompiling

Our default printer is a network printer ( tried various ones as defaults ).
Comment 22 Daniel Kasak 2005-05-03 21:54:54 UTC
Update...

I'm not sure if I have the same issue as others here, but I found a post in a ubuntu forum that claimed this bug was triggered by the Glider theme ( gnome default ).

Sure enough, switching Gtk2 themes ( I chose a downloaded 'eXperience Crystal' theme ) has stopped the crashing for me.
Comment 23 mrsteven 2005-05-23 14:00:06 UTC
Same problem here with firefox 1.0.4. The workaround helped here, too.
Comment 24 mrsteven 2005-05-24 03:58:34 UTC
Eh sorry, I have forgotten to mention that I use the freetype2 workaround.
By the way, there is a bugreport on
https://bugzilla.mozilla.org/show_bug.cgi?id=294879 about this bug.
Comment 25 Jan Schubert 2005-07-18 03:32:26 UTC
Setting "font.FreeType2.printing" to false solved it for me too! I did'nt have
any problem in firefox or any other application.

@Daniel, comment #17 (From  Daniel  2005-02-04 08:25 PDT):
Where do I find about:config in thunderbird?
Comment 26 Christian Marie (RETIRED) gentoo-dev 2006-12-18 19:53:41 UTC
Stale, please reopen if this is still a problem.