Title:

It seems a bug in gdb. When multi-thread application being debbuged, the debugger hangs up. The example of code and gdb diagnostics follows.

====================================================
#include <pthread.h>
 
void *f1(void *arg )
{
}
 
main()
{
    pthread_t thread;
    pthread_create(&thread, NULL, &f1, NULL);
    return 0;
}                   
====================================================

srvlinux:~/MplProject/gdbtest$ gdb test.out
GNU gdb 4.18
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 "i686-pc-linux-gnu"...
(gdb) run
Starting program: /home/igor/MplProject/gdbtest/test.out
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
 
Program received signal ?, Unknown signal.
0x4038c24a in sigsuspend () from /lib/libc.so.6
(gdb)cont
Continuing.
warning: Signal ? does not exist on this system.  
===============================================================================
My version of Linux is SlackWare 7.0 ( based on 2.2.13 kernel), gdb 4.18, glibc 2.1.2
===============================================================================
Please help me to solve this  problem.

With best regards,
Igor
[EMAIL PROTECTED]

Reply via email to