Mozilla crash on Print

Don Lewis truckman at FreeBSD.org
Sat Nov 27 15:47:57 PST 2004


On 27 Nov, Joe Marcus Clarke wrote:
> On Sat, 2004-11-27 at 13:40 -0800, Don Lewis wrote:

>> I just got a crash with this Firefox 1.0_3,1 running on 4.10-STABLE.  I
>> am using CUPS.  Here's the stack trace:
>> 
> 
> I'm not sure what more I can do.  The crash ends up in CUPS, then in
> OpenSSL.  I have yet to see a stack trace with those components built
> with debugging symbols.  It looks like a CUPS problem to me, but I don't
> use CUPS, so I don't really have any other ideas except to uninstall it.

I rebuilt the libraries with debugging symbols, but at the moment, I
can't reproduce the crash.  Pointing gdb at the old core file, I get:

#0  0x2895f360 in kill () from /usr/lib/libc_r.so.4
No symbol table info available.
#1  0x28956770 in raise () from /usr/lib/libc_r.so.4
No symbol table info available.
#2  0x8057c6d in nsProfileLock::FatalSignalHandler ()
No symbol table info available.
#3  0x28971d60 in _thread_sig_handler () from /usr/lib/libc_r.so.4
No symbol table info available.
#4  0x28971bc3 in _thread_sig_handler () from /usr/lib/libc_r.so.4
No symbol table info available.
#5  0xbfbfffac in ?? ()
No symbol table info available.
#6  0x29a48601 in final (ctx=0xbfbfbf30, md=0xbfbfbf40 "")
    at /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/evp/m_sha1.c:70
        ctx = (EVP_MD_CTX *) 0x0
        md = (unsigned char *) 0x16e <Address 0x16e out of bounds>
#7  0x29a489c0 in EVP_DigestFinal_ex (ctx=0xbfbfbf30, md=0xbfbfbf40 "", 
    size=0x0)
    at /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/evp/digest.c:230
        ctx = (EVP_MD_CTX *) 0xbfbfbf40
        md = (unsigned char *) 0x16e <Address 0x16e out of bounds>
        ret = 136640924
#8  0x29a38609 in ssleay_rand_add (buf=0xbfbfc004, num=1024, add=1024)
    at /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rand/md_rand.c:275
        i = 0
        j = 20
        k = -1077952508
        st_idx = 0
        md_c = {0, 0}
        local_md = '\000' <repeats 19 times>
        m = {digest = 0x29a975c0, engine = 0x0, flags = 0, md_data = 0x824f980}
        do_not_lock = 0
#9  0x29a3873b in ssleay_rand_seed (buf=0xbfbfc004, num=1024)
    at /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rand/md_rand.c:314
        buf = (void *) 0x16e
        num = 0
#10 0x29a381cd in RAND_seed (buf=0xbfbfc004, num=1024)
    at /usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/rand/rand_lib.c:142
        buf = (void *) 0x0
        num = 0
        meth = (RAND_METHOD *) 0x16e
#11 0x29d813b1 in httpInitialize () at http.c:251
        curtime = {tv_sec = 1101421030, tv_usec = 217891}
        i = 1024
        data = "\016/<Å\032K(Aæ'Ô}rÃ@y¾\037l5Ê;X±\226\027\004í\"³pén\017\234¥z+\210!F\a4]Ò£ Y\036ÿÌ\025*\e¸\221ö÷dÍ\202\223ÐÉÎïü\205Ú\013è\001¦ç\224=2\203\0009~ß,õ\212û\030qV×Ä­âs0©.Ï\\e:ëHá\006Çô\035\222c`\031Þ¿\214ÕêÛxQ¶·$\215BS\220\211\216¯¼E\232˨Áf§TýòCÀù>\237ìµJ»Ø1\026\227\204m¢3ðiî\217\034%ú«\b¡Æ\207´ÝR# Ù\236\177L\225ª\2338\021vwäM\002\023PINo|\005Z\213h\201"...
        action = {__sigaction_u = {__sa_handler = 0x1, __sa_sigaction = 0x1}, 
  sa_flags = 0, sa_mask = {__bits = {0, 0, 0, 0}}}
#12 0x29d8152b in httpConnect () at http.c:342
        days = {0x0, 0x0, 0x0, 0x0, 0x0, 0x29d9065f "Sep", 0x29d9065b "Oct"}
        http_fields = 0x29d93e80
        months = {0x29d9063f "Thu", 0x29d9063b "Fri", 0x29d90637 "Sat", 
  0x29d90633 "age", 0x0, 0x29d90745 "", 0x29d90741 "LOSE", 0x0, 
  0x29d9073c "ked", 0x29d90737 "", 0x0, 0x0}
#13 0x29d7ebc9 in cupsGetDests (dests=0xbfbfc4ec) at dest.c:203
        dests = (cups_dest_t **) 0x29d92a70
        num_dests = 702098032
        http = (http_t *) 0x29d7eaf8
#14 0x28e18bf6 in GlobalPrinters::InitializeGlobalPrinters ()
   from /usr/X11R6/lib/firefox/components/libgfx_gtk.so
No symbol table info available.
#15 0x28e19367 in GlobalPrinters::GetDefaultPrinterName ()
   from /usr/X11R6/lib/firefox/components/libgfx_gtk.so
No symbol table info available.
#16 0x28e16f59 in nsPrinterEnumeratorGTK::GetDefaultPrinterName ()
   from /usr/X11R6/lib/firefox/components/libgfx_gtk.so
No symbol table info available.
#17 0x28a70367 in nsPrintOptions::GetDefaultPrinterName ()
   from /usr/X11R6/lib/firefox/libgkgfx.so
No symbol table info available.


Since things seem to be magically working again, I'll switch back to
firefox and see if I can do anything to provoke another core dump.



More information about the freebsd-gnome mailing list