Bug 40612 - gdb thread debugging non-functional
gdb thread debugging non-functional
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: gdb (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-05-14 20:32 EDT by Elliot Lee
Modified: 2007-04-18 12:33 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-05-14 20:32:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Elliot Lee 2001-05-14 20:32:42 EDT
Description of Problem:


How Reproducible: Very


Steps to Reproduce:
0. Enter myscript.py as below
1. gdb python
2. run myscript.py
3. ^C during program
4. 'info threads'

Actual Results:
No threads there to manipulate.

Expected Results:
Threads there to manipulate.

Additional Information:
Also stops on SIG32, which according to Matt should be passed right through.

myscript.py:

#!/usr/bin/python
import thread
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
def athread():
    print "new thread"
    while 1: signal.pause()
thread.start_new_thread(athread, ())
print "old thread"
while 1: signal.pause()
Comment 1 Trond Eivind Glomsrxd 2001-05-15 10:47:03 EDT
Seems to work for me... gdb-5.0rh-8

(gdb) run myscript.py 
Starting program: /usr/bin/python myscript.py
[New Thread 1024 (LWP 27018)]
[New Thread 2049 (LWP 27027)]
[New Thread 1026 (LWP 27028)]
old thread
new thread

Program received signal SIGINT, Interrupt.
[Switching to Thread 1026 (LWP 27028)]
0x40126587 in __libc_pause () from /lib/i686/libc.so.6
(gdb) info threads
* 3 Thread 1026 (LWP 27028)  0x40126587 in __libc_pause ()
   from /lib/i686/libc.so.6
  2 Thread 2049 (LWP 27027)  0x4014ae37 in __poll (fds=0x80d1614, nfds=1, 
    timeout=2000) at ../sysdeps/unix/sysv/linux/poll.c:63
  1 Thread 1024 (LWP 27018)  0x40126587 in __libc_pause ()
   from /lib/i686/libc.so.6
(gdb)
Comment 2 Elliot Lee 2001-05-15 16:24:09 EDT
To clarify the problem:

. I had not been using the rawhide gdb, which fixes a number of thread related
issues. Upgrading made things partially better.

. The rawhide gdb doesn't work with the 2.2.x kernels, which the machine I was
on runs. This is a WONTFIX thing - it's caused by the usage of 2.4 kernel
headers when compiling glibc, IIRC.

Note You need to log in before you can comment on or make changes to this bug.