public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: threads/2292: GDB process stops when debugging threaded program
@ 2007-11-13  1:48 Oleg V. Zhylin
  0 siblings, 0 replies; 4+ messages in thread
From: Oleg V. Zhylin @ 2007-11-13  1:48 UTC (permalink / raw)
  To: jimb; +Cc: gdb-prs

The following reply was made to PR threads/2292; it has been noted by GNATS.

From: "Oleg V. Zhylin" <ovz@yahoo.com>
To: jimb@red-bean.com, gdb-prs@sources.redhat.com, jimb@codesourcery.com,
  nobody@sources.redhat.com, gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: threads/2292: GDB process stops when debugging threaded program
Date: Mon, 12 Nov 2007 17:43:05 -0800 (PST)

 Hi,
 
   As this issue came up again, I've checked with DDD folks, since DDD
 steps through threads successfully. DDD does use gdb as debugging
 engine, so clearly it does some configuraiton. We didn't figure out
 what exactly DDD does, but the effect of it is that gdb locates
 /lib/libthread_db.so.1. Thus it looks like my problem can be
 re-formulated 
 
  How to make gdb locate libpthread_db library?
 
 --- jimb@red-bean.com wrote:
 
 > Synopsis: GDB process stops when debugging threaded program
 > 
 > Responsible-Changed-From-To: unassigned->jimb
 > Responsible-Changed-By: jimb
 > Responsible-Changed-When: Sat Jul 28 00:19:22 2007
 > Responsible-Changed-Why:
 >     I'll keep track of this one.
 > 
 >
 http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2292
 > 
 
 
 WBR Oleg V. Zhylin   ovz@yahoo.com
 
 
       ____________________________________________________________________________________
 Be a better sports nut!  Let your teams follow you 
 with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: threads/2292: GDB process stops when debugging threaded program
@ 2007-07-28  0:19 jimb
  0 siblings, 0 replies; 4+ messages in thread
From: jimb @ 2007-07-28  0:19 UTC (permalink / raw)
  To: gdb-prs, jimb, jimb, nobody, ovz

Synopsis: GDB process stops when debugging threaded program

Responsible-Changed-From-To: unassigned->jimb
Responsible-Changed-By: jimb
Responsible-Changed-When: Sat Jul 28 00:19:22 2007
Responsible-Changed-Why:
    I'll keep track of this one.

http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2292


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: threads/2292: GDB process stops when debugging threaded program
@ 2007-07-28  0:18 Jim Blandy
  0 siblings, 0 replies; 4+ messages in thread
From: Jim Blandy @ 2007-07-28  0:18 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR threads/2292; it has been noted by GNATS.

From: Jim Blandy <jimb@codesourcery.com>
To: Oleg V.Zhylin <vz@yahoo.com>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: threads/2292: GDB process stops when debugging threaded program
Date: Fri, 27 Jul 2007 17:14:52 -0700

 I'm unable to reproduce this problem on Fedora Core 6, using CVS
 HEAD.  I'll be upgrading to FC7 soon; I'll give it a try there.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* threads/2292: GDB process stops when debugging threaded program
@ 2007-07-28  0:08 Oleg V.Zhylin
  0 siblings, 0 replies; 4+ messages in thread
From: Oleg V.Zhylin @ 2007-07-28  0:08 UTC (permalink / raw)
  To: gdb-gnats; +Cc: Jim Blandy


>Number:         2292
>Category:       threads
>Synopsis:       GDB process stops when debugging threaded program
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 28 00:08:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Oleg V. Zhylin <vz@yahoo.com>
>Release:        GDB CVS 2007-7-27
>Organization:
>Environment:
Fedora Core 7
>Description:
The attached program makes GDB itself stop when run.
>How-To-Repeat:
Hi Jim,

  pthread_test.cpp demonstrates the problematic behavior. It is built
using

 g++ -g pthread_test.cpp -lpthread

 The version numbers are

$ cat /proc/version
Linux version 2.6.21-1.3228.fc7
(kojibuilder@xenbuilder2.fedora.redhat.com) (gcc version 4.1.2 20070502
(Red Hat 4.1.2-12)) #1 SMP Tue Jun 12 15:37:31 EDT 2007

and gdb snapshot for July 24th

$ gdb --version
GNU gdb 6.6.50.20070724

Below is the log of gdb session

$ gdb a.out
GNU gdb 6.6.50.20070724
Copyright (C) 2007 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"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/cartcs/Work/gdb/pthread_create/a.out
[Thread debugging using libthread_db enabled]
[New Thread 0xb7f336d0 (LWP 22251)]

[3]+  Stopped                 gdb a.out
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="pthread_test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="pthread_test.cpp"

I2luY2x1ZGUgPHB0aHJlYWQuaD4NCiNpbmNsdWRlIDxzeXMvdGltZS5oPgoNCnZvaWQgU2xlZXAo
dW5zaWduZWQgbG9uZyB1bE1pbGxpc2Vjb25kcykNCnsNCiAgICBzdHJ1Y3QgdGltZXZhbCB0aW1l
b3V0Ow0KICAgIHRpbWVvdXQudHZfc2VjID0gMDsNCiAgICB0aW1lb3V0LnR2X3VzZWMgPSB1bE1p
bGxpc2Vjb25kcyAqIDEwMDA7DQogICAgc2VsZWN0KDEsIE5VTEwsIE5VTEwsIE5VTEwsICZ0aW1l
b3V0KTsNCn0gDQoNCnN0YXRpYyB2b2lkKiB0aHJlYWRGdW5jKCB2b2lkKiBscFBhcmFtICkgDQp7
DQogICBTbGVlcCgzMDAwKTsNCn0NCg0KaW50IG1haW4oKQ0Kew0KICBwdGhyZWFkX2F0dHJfdCBh
dHRyOw0KDQogIGludAkJbjsNCiAgYm9vbCByZXMgPSBmYWxzZTsNCg0KICBpZiAoIChuID0gOjpw
dGhyZWFkX2F0dHJfaW5pdCgmYXR0cikpICE9IDApDQogIHsNCiAgICByZXR1cm4gLTE7DQogIH0N
CiAgcHRocmVhZF90IHRpZDsNCg0KICBpZiAoIChuID0gOjpwdGhyZWFkX2NyZWF0ZSgmdGlkLCAm
YXR0ciwgdGhyZWFkRnVuYywgMCkpID09IDApDQogIHsNCg0KICAgIHJlcyA9IHRydWU7DQogIH0N
Cg0KICBpZiAoIChuID0gOjpwdGhyZWFkX2F0dHJfZGVzdHJveSgmYXR0cikpICE9IDApDQogIHsN
CiAgICByZXR1cm4gLTI7DQogIH0NCiAgaWYgKCFyZXMpDQogIHsNCiAgICByZXR1cm4gLTM7DQog
IH0NCiAgU2xlZXAoNTAwMCk7DQoNCiAgcmV0dXJuIDA7DQp9Cg==


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-13  1:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-13  1:48 threads/2292: GDB process stops when debugging threaded program Oleg V. Zhylin
  -- strict thread matches above, loose matches on Subject: below --
2007-07-28  0:19 jimb
2007-07-28  0:18 Jim Blandy
2007-07-28  0:08 Oleg V.Zhylin

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).