Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2004 14:34:20 -0400
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        threads@FreeBSD.org
Subject:   Illegal instruction in firefox/thunderbird with libpthread
Message-ID:  <1087410860.888.22.camel@gyros>

index | next in thread | raw e-mail

[-- Attachment #1 --]
I'm running -CURRENT:

FreeBSD gyros.marcuscom.com 5.2-CURRENT FreeBSD 5.2-CURRENT #33: Fri Jun
11 17:44:01 EDT 2004    
marcus@gyros.marcuscom.com:/usr/obj/usr/src/sys/GYROS  i386

And trying to port the new thunderbird.  When I run it on a fresh
account, I immediately get an illegal instruction and a core dump.  If I
libmap libpthread to libc_r or libthr, the problem goes away, and
thunderbird starts.  If I then libmap libpthread back to libpthread, I
no longer get the problem.  Therefore, it looks like one code path in
thunderbird (and one user has reported the same thing with firefox-0.9)
causes a crash with KSE.  Here is the backtrace I have so far:

Illegal instruction (core dumped)
#0  0x28872477 in kse_create () at {standard input}:15
No locals.
#1  0x2886a539 in _kse_setthreaded (threaded=-1077946880)
    at /usr/src/lib/libpthread/thread/thr_kern.c:432
        sigset = {__bits = {135174400, 3217020440, 671471161, 0}}
#2  0x2885fe99 in _pthread_create (thread=0x0, attr=0xbfbfd608,
    start_routine=0x2884b31c <PR_Select+656>, arg=0x80e9900)
    at /usr/src/lib/libpthread/thread/thr_private.h:971
        curthread = (struct pthread *) 0x807e2b0
        new_thread = (struct pthread *) 0x807be00
        kse = (struct kse *) 0x0
        kseg = (struct kse_group *) 0x0
        crit = 0x1
        ret = 1
#3  0x2884b759 in PR_Select ()
   from /usr/X11R6/lib/thunderbird/lib/thunderbird-0.7/libnspr4.so
No symbol table info available.

This is highly reproduceable with thunderbird, and I can make the port
available if someone wants it.  Thanks.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	marcus@FreeBSD.org
gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBA0JKsb2iPiv4Uz4cRAhl7AJ9DzzTcna9htH5KIKK6rbmcpDpdWACfXLwY
clfRnRAUlTZ/hDuR/UBsonE=
=Kv2h
-----END PGP SIGNATURE-----
help

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