Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 2004 16:30:30 +0100
From:      Federico Galvez-Durand Besnard <fico@del.ufrj.br>
To:        freebsd-ports@freebsd.org
Subject:   HEADS UP: Firefox and Thunderbird printing crashes possible fix 
Message-ID:  <41AC9216.5070606@del.ufrj.br>

next in thread | raw e-mail | index | archive | help

   Hello, I had problems printing and previewing in both thunderbird 0.9
   and firefox 1.0. Even Page Setup crashed.
   I notice the default commands for printing (firefox [1]about:config)
   are little weird. Not sure this can be considered a bug, it may work
   in other setups but mine.
   I do not use CUPS, so  LPR picks my laser printer from /etc/printcap.
   My laser is my default LP printer also.
   I added these lines to my "user.js" configuration file (if you do not
   have one, create one with these lines only):
   #+++begin lines+++
   user_pref("print.postscript.print_command", "lpr -P lp ");
   user_pref("print.print_command", "lpr -P lp ");
   user_pref("print.printer_list", "lp");
   #+++end lines+++
   The user.js file is located in:
   ~/.mozilla/firefox/$randomdir1/user.js
   ~.thunderbird/$randomdir2/user.js
   where "randomdir" is created at installation time, with a random name;
   one can easily identify it.
   After creating "user.js" you need to restart both programs and they
   should print, preview and accept page setup without crashing.
   Have peace.
   Adrian Pircalabu [2]apircalabu at bitdefender.com Wrote:
   Mon Nov 1 04:50:07 PST 2004
     * Previous message: [3]FreeBSD Port: linux-realplayer-8.cs2_5 
     * Next message: [4]problem with openssl-0.9.7e and SquirrelMail 
     * Messages sorted by: [5][ date ] [6][ thread ] [7][ subject ] [8][
       author ]
     _________________________________________________________________

On Fri, 29 Oct 2004 15:34:03 -0400
Joe Marcus Clarke <[9]marcus at FreeBSD.org> wrote:

> If you're experiencing a crash in Firefox or Thunderbird when trying
> to print, and you're using CUPS, please replace
> files/patch-security-coreconf-FreeBSD.mk with the attached patch, and
> rebuild.  I believe this should do the trick.

Hi,
unfortunately, after modifying the patch and rebuilding, Thunderbird
crashed again in nsDeviceContextSpecG.cpp:1151
Same context

gdb -c thunderbird-bin.core
/usr/X11R6/lib/thunderbird/lib/thunderbird-0.8/thunderbird-bin GNU gdb
4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details. This GDB was configured as "i386-unknown-freebsd"...Deprecated
bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 933 in fill_symbuf

Core was generated by `thunderbird-bin'.
Program terminated with signal 10, Bus error.
[...]
(gdb) bt
#0  0x2b37e84b in SHA1_Final () from /usr/lib/libcrypto.so.3
#1  0x2b37a8c0 in X509_check_private_key () from /usr/lib/libcrypto.so.3
#2  0x2b37ac38 in EVP_DigestFinal_ex () from /usr/lib/libcrypto.so.3
#3  0x2b36b48d in RAND_SSLeay () from /usr/lib/libcrypto.so.3
#4  0x2b36b5bc in RAND_SSLeay () from /usr/lib/libcrypto.so.3
#5  0x2b36b092 in RAND_seed () from /usr/lib/libcrypto.so.3
#6  0x2b292ee9 in httpInitialize () from /usr/local/lib/libcups.so.2
#7  0x2b29303c in httpConnectEncrypt () from /usr/local/lib/libcups.so.2
#8  0x2b293012 in httpConnect () from /usr/local/lib/libcups.so.2
#9  0x2b2911a0 in cups_get_sdests () from /usr/local/lib/libcups.so.2
#10 0x2b290875 in cupsGetDests () from /usr/local/lib/libcups.so.2
#11 0x2914855e in GlobalPrinters::InitializeGlobalPrinters
(this=0x29194ee0) at nsDeviceContextSpecG.cpp:1151
[...]

I'll post the complete backtrace if needed

--
Adrian Pircalabu


--
This message was scanned for spam and viruses by BitDefender
For more information please visit [10]http://www.bitdefender.com/
     _________________________________________________________________

     * Previous message: [11]FreeBSD Port: linux-realplayer-8.cs2_5 
     * Next message: [12]problem with openssl-0.9.7e and SquirrelMail 
     * Messages sorted by: [13][ date ] [14][ thread ] [15][ subject ]
       [16][ author ]
     _________________________________________________________________

   [17]More information about the freebsd-ports mailing list

References

   1. about:config
   2. mailto:freebsd-ports%40freebsd.org?Subject=HEADS%20UP%3A%20Firefox%20and%20Thunderbird%20printing%20crashes%0A%20possible%20fix&In-Reply-To=41829B2B.3000500%40FreeBSD.org
   3. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/017496.html
   4. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/017497.html
   5. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/date.html#17495
   6. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/thread.html#17495
   7. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/subject.html#17495
   8. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/author.html#17495
   9. http://lists.freebsd.org/mailman/listinfo/freebsd-ports
  10. http://www.bitdefender.com/
  11. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/017496.html
  12. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/017497.html
  13. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/date.html#17495
  14. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/thread.html#17495
  15. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/subject.html#17495
  16. http://lists.freebsd.org/pipermail/freebsd-ports/2004-November/author.html#17495
  17. http://lists.freebsd.org/mailman/listinfo/freebsd-ports



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41AC9216.5070606>