gdb/2143: gdb reports Program exited normally when it should not
Tue Jul 4 07:18:00 GMT 2006

>Number:         2143
>Category:       gdb
>Synopsis:       gdb reports Program exited normally when it should not
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 04 07:18:01 GMT 2006
>Originator:     Matthew Gardiner
>Release:        gdb-6.3
Fedora Core 3

uname -a
Linux <hostname> #5 SMP  <datetime> i686 i686 i386 GNU/Linux
The program occurs when I attempt to debug my SIP server. This is a multithreaded C++ program which uses pthreads and sockets.

when I run gdb <program>, as soon as a client program attaches gdb reports that "Program exited normally" and the debugged program stops running. (This does not happen when the program is being ran outside of gdb).

Do I need to build gdb in a particular way to support this (SMP?) hardware?

Is there something obvious I am doing wrong to cause gdb to continually report "Program exited normally"?

Any help gratefully received,

Matthew Gardiner
I invoke "gdb sipserver"

Set args at (gdb) prompt
Run at (gdb)

"ps ax" now reports my server to be running.

Invoke a client program (standalone outside of debugger). Once the client attempts to connect a socket to the server the (gdb) prompt reports "Program exited normally" and it is no longer reported by ps.


More information about the Gdb-prs mailing list