public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Jon Ringle <jon.ringle@comdial.com>
To: Daniel Jacobowitz <drow@mvista.com>, gdb@sources.redhat.com
Subject: Re: pthread_create does not return when remote debugging
Date: Sat, 28 Jun 2003 15:02:00 -0000	[thread overview]
Message-ID: <200306281101.34861.jon.ringle@comdial.com> (raw)
In-Reply-To: <20030628144324.GA7298@nevyn.them.org>

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

  reply	other threads:[~2003-06-28 15:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-28  7:16 Jon Ringle
2003-06-28 13:43 ` Jon Ringle
2003-06-28 15:52   ` Jon Ringle
2003-06-29  2:16     ` Jon Ringle
2003-06-28 15:01 ` Daniel Jacobowitz
2003-06-28 15:02   ` Jon Ringle [this message]
2003-06-28 15:30     ` Daniel Jacobowitz
2003-06-28 20:02       ` Jon Ringle
2003-06-28 20:29         ` Daniel Jacobowitz
2003-06-28 22:49           ` Jon Ringle
2003-06-29  2:02             ` Daniel Jacobowitz
2003-06-29  6:40               ` Jon Ringle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306281101.34861.jon.ringle@comdial.com \
    --to=jon.ringle@comdial.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).