This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: pthread_create does not return when remote debugging
On Saturday 28 June 2003 10:43 am, Daniel Jacobowitz wrote:
> On Sat, Jun 28, 2003 at 01:28:02AM -0400, Jon Ringle wrote:
> > Hi,
> >
> > I am having an issue when remote debugging a multi-threaded app, a call
> > to pthread_create hangs inside __pthread_wait_for_restart_signal on the
> > host gdb.
>
> Have you tried this without the breakpoint in pthread_create?
I have. This is what I had initially done, and narrow the problem down to
pthread_create never returning.
>
> Other than that nothing obvious comes to mind, you'll have to
> investigate yourself. Sorry.
Could the problem be on the gdbserver side not sending back anything in
response to gdb Sending packet: &c#63...Ack?
Would I be headed in the right direction for investigation?
Jon
-----
Breakpoint 1, 0x020019e0 in pthread_create ()
(gdb) set debug remote 1
(gdb) finish
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Sending packet: $m204b230,4#5a...Ack
Packet received: 0dc0a0e1
Sending packet: $m204b234,4#5e...Ack
Packet received: 00d82de9
Sending packet: $m204b238,4#62...Ack
Packet received: 04b04ce2
Sending packet: $m204b23c,4#8d...Ack
Packet received: 30d04de2
Sending packet: $m204b240,4#5b...Ack
Packet received: 10000be5
Sending packet: $m204b244,4#5f...Ack
Packet received: 14100be5
Sending packet: $m204b248,4#63...Ack
Packet received: 18200be5
Sending packet: $m204b24c,4#8e...Ack
Packet received: 0030a0e3
Sending packet: $m204b250,4#5c...Ack
Packet received: 20300be5
Sending packet: $m204b254,4#60...Ack
Packet received: ab0300eb
Sending packet: $m204b258,4#64...Ack
Packet received: 0030a0e1
Sending packet: $m204b25c,4#8f...Ack
Packet received: 030053e3
Sending packet: $m204b260,4#5d...Ack
Packet received: 020000da
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Run till exit from #0 0x020019e0 in pthread_create ()
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $m20019e4,4#62...Ack
Packet received: 0cc08fe0
Sending packet: $M20019e4,4:01009fef#a7...Ack
Packet received: OK
Sending packet: $Hc400#3f...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received: T050b:54fdffbf;0d:18fdffbf;0f:e4190002;
Sending packet: $M20019e4,4:0cc08fe0#d5...Ack
Packet received: OK
Sending packet: $m20019e4,4#62...Ack
Packet received: 0cc08fe0
Sending packet: $m4000cbd0,4#ea...Ack
Packet received: 0dc0a0e1
Sending packet: $M4000cbd0,4:01009fef#2f...Ack
Packet received: OK
Sending packet: $m20019e0,4#5e...Ack
Packet received: 04c09fe5
Sending packet: $M20019e0,4:01009fef#a3...Ack
Packet received: OK
Sending packet: $m204b424,4#5f...Ack
Packet received: 0030a0e1
Sending packet: $M204b424,4:01009fef#a4...Ack
Packet received: OK
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack