thread & freebsd - Unix

This is a discussion on thread & freebsd - Unix ; Hi all, i get on freebsd 6.2 the follow error (with libc_r): Program terminated with signal 11, Segmentation fault. #0 0x08055050 in ?? () Cannot find thread, Thread ID=2753, generic error (gdb) bt #0 0x08055050 in ?? () #1 0x28186069 ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: thread & freebsd

  1. thread & freebsd

    Hi all,
    i get on freebsd 6.2 the follow error (with libc_r):

    Program terminated with signal 11, Segmentation fault.
    #0 0x08055050 in ?? ()
    Cannot find thread, Thread ID=2753, generic error
    (gdb) bt
    #0 0x08055050 in ?? ()
    #1 0x28186069 in pthread_cleanup_pop () from /usr/lib/libc_r.so
    #2 0x28184cee in pthread_exit () from /usr/lib/libc_r.so
    #3 0x28179d0b in _thread_start () from /usr/lib/libc_r.so
    #4 0xbf5fc000 in ?? ()

    and this (with libthr):

    Program terminated with signal 11, Segmentation fault.
    New Thread 0x804f600 (LWP 100374)]
    [New Thread 0x804f200 (LWP 100109)]
    [New Thread 0x804f100 (LWP 100108)]
    [New Thread 0x804f000 (LWP 100312)]
    (gdb) bt
    #0 0x08050040 in ?? ()
    #1 0x281804c9 in pthread_cleanup_pop () from /usr/lib/libthr.so.2
    #2 0x2817ffba in pthread_exit () from /usr/lib/libthr.so.2
    #3 0x281785d7 in pthread_create () from /usr/lib/libthr.so.2
    #4 0xbf3f8fec in ?? ()

    i get this error random,
    anyone can help me ?
    Thanks

    Andrea

    PS: the source is compiled with -pthread and link with /etc/libmap.conf with
    lib_r or libthr



  2. Re: thread & freebsd

    On Thu, 6 Mar 2008 14:25:11 +0100, "Andrea" wrote:
    > Hi all,
    > i get on freebsd 6.2 the follow error (with libc_r):
    >
    > Program terminated with signal 11, Segmentation fault.
    > #0 0x08055050 in ?? ()
    > Cannot find thread, Thread ID=2753, generic error
    > (gdb) bt
    > #0 0x08055050 in ?? ()
    > #1 0x28186069 in pthread_cleanup_pop () from /usr/lib/libc_r.so
    > #2 0x28184cee in pthread_exit () from /usr/lib/libc_r.so
    > #3 0x28179d0b in _thread_start () from /usr/lib/libc_r.so
    > #4 0xbf5fc000 in ?? ()
    >
    > and this (with libthr):
    >
    > Program terminated with signal 11, Segmentation fault.
    > New Thread 0x804f600 (LWP 100374)]
    > [New Thread 0x804f200 (LWP 100109)]
    > [New Thread 0x804f100 (LWP 100108)]
    > [New Thread 0x804f000 (LWP 100312)]
    > (gdb) bt
    > #0 0x08050040 in ?? ()
    > #1 0x281804c9 in pthread_cleanup_pop () from /usr/lib/libthr.so.2
    > #2 0x2817ffba in pthread_exit () from /usr/lib/libthr.so.2
    > #3 0x281785d7 in pthread_create () from /usr/lib/libthr.so.2
    > #4 0xbf3f8fec in ?? ()
    >
    > i get this error random,
    > anyone can help me ?


    Maybe. Can you show us the source?

    It's not really easy to guess at what a program does, by looking at a
    non-debug stack trace, without any sort of information about the source
    code or other `trace' information.


  3. Re: thread & freebsd

    "Giorgos Keramidas" ha scritto nel messaggio
    news:878x0wgcbx.fsf@kobe.laptop...
    > On Thu, 6 Mar 2008 14:25:11 +0100, "Andrea" wrote:
    >> Hi all,
    >> i get on freebsd 6.2 the follow error (with libc_r):
    >>
    >> Program terminated with signal 11, Segmentation fault.
    >> #0 0x08055050 in ?? ()
    >> Cannot find thread, Thread ID=2753, generic error
    >> (gdb) bt
    >> #0 0x08055050 in ?? ()
    >> #1 0x28186069 in pthread_cleanup_pop () from /usr/lib/libc_r.so
    >> #2 0x28184cee in pthread_exit () from /usr/lib/libc_r.so
    >> #3 0x28179d0b in _thread_start () from /usr/lib/libc_r.so
    >> #4 0xbf5fc000 in ?? ()
    >>
    >> and this (with libthr):
    >>
    >> Program terminated with signal 11, Segmentation fault.
    >> New Thread 0x804f600 (LWP 100374)]
    >> [New Thread 0x804f200 (LWP 100109)]
    >> [New Thread 0x804f100 (LWP 100108)]
    >> [New Thread 0x804f000 (LWP 100312)]
    >> (gdb) bt
    >> #0 0x08050040 in ?? ()
    >> #1 0x281804c9 in pthread_cleanup_pop () from /usr/lib/libthr.so.2
    >> #2 0x2817ffba in pthread_exit () from /usr/lib/libthr.so.2
    >> #3 0x281785d7 in pthread_create () from /usr/lib/libthr.so.2
    >> #4 0xbf3f8fec in ?? ()
    >>
    >> i get this error random,
    >> anyone can help me ?

    >
    > Maybe. Can you show us the source?
    >
    > It's not really easy to guess at what a program does, by looking at a
    > non-debug stack trace, without any sort of information about the source
    > code or other `trace' information.
    >


    Hi Giorgos,
    at this time i cannot show the source (i ask and wait for answer),
    this source is a multithread tcp server compiled with:

    CFLAGS = -Wall -ggdb -pedantic -ansi -pthread -O1

    how can i get other trace information ?
    Thanks



+ Reply to Thread