libpthread problem (segfaults)

From: Benjamin Lutz (benlutz_at_datacomm.ch)
Date: 05/30/05

  • Next message: Billy Newsom: "Re: 5-Stable (5.4) any ipnat changes?"
    Date: Mon, 30 May 2005 05:31:56 +0200
    To: freebsd-stable@freebsd.org
    
    
    

    Hello,

    I've run into an issue that has me stumped. Anything that I link against
    libpthread on my FreeBSD-5.4-RELEASE/i386 installation will segfault as
    soon as it tries making use of the threads. For example:

    $ kedit
    zsh: segmentation fault (core dumped) kedit
    $ gdb `which kedit` -c kedit.core
    [...]
    (gdb) backtrace
    #0 0x29524ac7 in __error () from /usr/lib/libpthread.so.1
    #1 0x2951755f in _pthread_mutex_trylock () from /usr/lib/libpthread.so.1
    #2 0x29518aca in pthread_mutex_lock () from /usr/lib/libpthread.so.1
    #3 0x290cc580 in QRealMutexPrivate::lock () from
    /usr/X11R6/lib/libqt-mt.so.3
    #4 0x290cc8b4 in QMutex::lock () from /usr/X11R6/lib/libqt-mt.so.3
    #5 0x28e1a4b9 in insert_tree () from /usr/X11R6/lib/libqt-mt.so.3
    #6 0x28e1a618 in QObject::QObject () from /usr/X11R6/lib/libqt-mt.so.3
    #7 0x28de4514 in QGuardedPtrPrivate::QGuardedPtrPrivate () from
    /usr/X11R6/lib/libqt-mt.so.3
    #8 0x28d6215b in __static_initialization_and_destruction_0 () from
    /usr/X11R6/lib/libqt-mt.so.3
    #9 0x28d6220a in global constructors keyed to qt_xdnd_enter () from
    /usr/X11R6/lib/libqt-mt.so.3
    #10 0x291b9122 in __do_global_ctors_aux () from /usr/X11R6/lib/libqt-mt.so.3
    #11 0x28d1417a in _init () from /usr/X11R6/lib/libqt-mt.so.3
    #12 0x2804fb91 in find_symdef () from /libexec/ld-elf.so.1
    #13 0x2804e77c in _rtld () from /libexec/ld-elf.so.1
    #14 0x2804d9f6 in .rtld_start () from /libexec/ld-elf.so.1
    (gdb)

    This behaviour started appearing after the installation of
    FreeBSD-5.4-RELEASE. I've rebuilt libpthread and qt (I've used qt's own
    uic program as a test, it's affected by this problem too), removed any
    contents of libmap.conf, and there's nothing special in make.conf, the
    problem persists though.

    Also, only programs/libraries that I compiled after the installation of
    FreeBSD-5.4 are affected. Programs that have been compiled under
    FreeBSD-5.3 run just fine.

    Can you give me any pointers as to what exactly is broken on my system,
    and where I should start with fixing things?

    Thanks
    Benjamin

    
    



  • Next message: Billy Newsom: "Re: 5-Stable (5.4) any ipnat changes?"

    Relevant Pages

    • OpenOffice.org 2.3.0_1 on 7.0 - unable to load/save to files
      ... I've come across a situation with my installation of openoffice.org-2.3.0, ... This output hinted me to attach to the process using gdb, ... This prompted me to recompile both GTK packages, ...
      (freebsd-questions)
    • Setup error gtk
      ... I have just installed gnat & gtk in XP PRO ... gdb: unknown target exception 0xc0000139 at 0x7c96478e ... Obviously I have got the installation wrong somewhere. ...
      (comp.lang.ada)
    • Re: [Info-ingres] Tracking a SIGSEGV
      ... I just tried and managed to lock the installation up totally. ... to detach the running iimerge an I had to kill -KILL all running ... After I invoked gdb I got stuff like... ... Quit anyway (and detach it)? ...
      (comp.databases.ingres)
    • How to specify a new but non-default path of gdb in gcc?
      ... I have installed a new gdb in my own account, ... but I'd like to try out the new one without removing ... The installation is successful, but instead of "gcc -g ...", ...
      (comp.os.linux.development.apps)
    • KDE Help Files
      ... In several KDE applications eg. Kedit when I ... try to get the online help nothing happens. ... Am I missing some files? ... I have looked on the installation disks and I donot ...
      (alt.os.linux.suse)