Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Is the current gdb 5.1 broken for Linuxthreads?
@ 2001-09-17 12:47 H . J . Lu
       [not found] ` <20010917161350.A25349@lucon.org>
  0 siblings, 1 reply; 22+ messages in thread
From: H . J . Lu @ 2001-09-17 12:47 UTC (permalink / raw)
  To: GDB, GNU C Library

Here is a modified example from glibc.

# gcc -g ex11.c -lpthread -lrt -D_GNU_SOURCE
# ./a.out&
# ps -xal | grep a.out
000  1103 27904  3705   9   0 247300 600 rt_sig S    pts/17     0:00 ./a.out
040  1103 27905 27904  11   0 247300 600 do_pol S    pts/17     0:00 ./a.out
040  1103 27906 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27907 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27908 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27909 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27910 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27911 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27912 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27913 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27914 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27915 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27916 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27917 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27918 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27919 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27920 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27921 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27922 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27923 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27924 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27925 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27926 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27927 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27928 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27929 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27930 27905  10   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27931 27905  10   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27932 27905  10   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27933 27905  11   0 247300 600 nanosl S    pts/17     0:00 ./a.out
040  1103 27934 27905  10   0 247300 600 nanosl S    pts/17     0:00 ./a.out

# gdb a.out
...
(gdb) att 27934
Attaching to program: /home/hjl/bugs/gdb/thread/./a.out, process 27934
Child process unexpectedly missing: No child processes.

Program terminated with signal ?, Unknown signal.
The program no longer exists.
(gdb)

But

(gdb) att 27904

worked fine. It is a serious regression from gdb 4.18 from RedHat
6.2.


H.J.
From hjl@lucon.org Mon Sep 17 16:13:00 2001
From: "H . J . Lu" <hjl@lucon.org>
To: GDB <gdb@sourceware.cygnus.com>
Subject: Re: Is the current gdb 5.1 broken for Linuxthreads?
Date: Mon, 17 Sep 2001 16:13:00 -0000
Message-id: <20010917161350.A25349@lucon.org>
References: <20010917124710.A21992@lucon.org>
X-SW-Source: 2001-09/msg00139.html
Content-length: 3420

On Mon, Sep 17, 2001 at 12:47:10PM -0700, H . J . Lu wrote:
> Here is a modified example from glibc.
> 
> # gcc -g ex11.c -lpthread -lrt -D_GNU_SOURCE
> # ./a.out&
> # ps -xal | grep a.out
> 000  1103 27904  3705   9   0 247300 600 rt_sig S    pts/17     0:00 ./a.out
> 040  1103 27905 27904  11   0 247300 600 do_pol S    pts/17     0:00 ./a.out
> 040  1103 27906 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27907 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27908 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27909 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27910 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27911 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27912 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27913 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27914 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27915 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27916 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27917 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27918 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27919 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27920 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27921 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27922 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27923 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27924 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27925 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27926 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27927 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27928 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27929 27905   9   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27930 27905  10   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27931 27905  10   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27932 27905  10   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27933 27905  11   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 040  1103 27934 27905  10   0 247300 600 nanosl S    pts/17     0:00 ./a.out
> 
> # gdb a.out
> ...
> (gdb) att 27934
> Attaching to program: /home/hjl/bugs/gdb/thread/./a.out, process 27934
> Child process unexpectedly missing: No child processes.
> 
> Program terminated with signal ?, Unknown signal.
> The program no longer exists.
> (gdb)
> 
> But
> 
> (gdb) att 27904
> 
> worked fine. It is a serious regression from gdb 4.18 from RedHat
> 6.2.
> 

The more I looked at it, the more borken gdb is with linuxthreads:

# gcc -g ex11.c -lpthread -lrt -D_GNU_SOURCE -static
# a.out
# gdb a.out
...
(gdb) att 14226
Attaching to program: /home/hjl/bugs/gdb/thread/a.out, process 14226
...
lin-lwp.c:620: gdb-internal-error: stop_wait_callback: Assertion `pid ==
GET_LWP (lp->ptid)' failed.
An internal GDB error was detected.  This may make further



H.J.


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

end of thread, other threads:[~2001-09-20 21:49 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-17 12:47 Is the current gdb 5.1 broken for Linuxthreads? H . J . Lu
     [not found] ` <20010917161350.A25349@lucon.org>
2001-09-17 19:13   ` H . J . Lu
2001-09-18 13:56     ` H . J . Lu
2001-09-18 15:22       ` RFC: Fix gdb 5.1 for Linuxthreads H . J . Lu
2001-09-19  5:42         ` Duncan Palmer
2001-09-19  9:19           ` H . J . Lu
2001-09-20  8:21             ` Duncan Palmer
2001-09-19  7:06         ` Mark Kettenis
2001-09-19  8:58           ` H . J . Lu
2001-09-19  0:46       ` Is the current gdb 5.1 broken for Linuxthreads? Eli Zaretskii
2001-09-19  8:43         ` H . J . Lu
2001-09-19  6:56       ` Mark Kettenis
2001-09-19  7:39         ` Eric Paire
2001-09-19  9:05           ` H . J . Lu
2001-09-20  0:59             ` Eric Paire
2001-09-19 13:39           ` Andrew Cagney
2001-09-20  1:36             ` Eric Paire
2001-09-20  8:03               ` H . J . Lu
2001-09-20 21:49                 ` Eric Paire
2001-09-19  9:10         ` H . J . Lu
2001-09-19  6:32     ` Mark Kettenis
2001-09-19  9:16       ` H . J . Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox