This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: threads/1154: gdb-5.3 + glibc-2.3.2 fail for my multithreaded program
- From: "Justin Lee" <justin_lee at ud dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 21 May 2003 23:48:00 -0000
- Subject: Re: threads/1154: gdb-5.3 + glibc-2.3.2 fail for my multithreaded program
- Reply-to: "Justin Lee" <justin_lee at ud dot com>
The following reply was made to PR threads/1154; it has been noted by GNATS.
From: "Justin Lee" <justin_lee@ud.com>
To: <gdb-gnats@sources.redhat.com>,
<nobody@sources.redhat.com>,
<mat@lcs.mit.edu>,
<gdb-prs@sources.redhat.com>
Cc:
Subject: Re: threads/1154: gdb-5.3 + glibc-2.3.2 fail for my multithreaded program
Date: Wed, 21 May 2003 18:41:42 -0500
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&da=
tabase=3Dgdb&pr=3D1154
I have encountered almost this exact problem on a dual P4 Xeon box. On =
this box, hyperthreading is disabled. Here is some version info:
bmltdb201:/tmp$ uname -a
Linux bmltdb201.corp.ud.com 2.4.20-13.7smp #1 SMP Mon May 12 12:31:27 =
EDT 2003 i686 unknown
bmltdb201:/tmp$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.1/specs
Configured with: ../configure --prefix=3D/usr --mandir=3D/usr/share/man =
--infodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix =
--disable-checking --with-system-zlib --enable-__cxa_atexit =
--host=3Di386-redhat-linux
Thread model: posix
gcc version 3.2.1 20021125 (Red Hat Linux 8.0 3.2.1-1)
bmltdb201:/tmp$ gdb -v
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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 "i386-redhat-linux-gnu".
bmltdb201:/tmp$ ls -l /lib/i686/libc*
-rwxr-xr-x 1 root root 1374147 Nov 8 2002 =
/lib/i686/libc-2.3.1.so*
lrwxrwxrwx 1 root root 13 Apr 29 22:59 =
/lib/i686/libc.so.6 -> libc-2.3.1.so*
Note in particular this is glibc 2.3.1, which is not the same as =
mat@lcs.mit.edu's 2.3.2. The triggering factor appeared to be when I =
upgraded from kernel 2.4.9 to 2.4.20. My specific problem is that I =
cannot attach to one of our large multithreaded programs:
bmltdb201:/tmp$ sudo gdb /usr/local/UD/services/dispatch/dispatch 5185
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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 "i386-redhat-linux-gnu"...
Attaching to program: /usr/local/UD/services/dispatch/dispatch, process =
5185
Couldn't get registers: Operation not permitted.
A program is being debugged already. Kill it? (y or n)
Note that I can confirm that I am not using NPTL because my programs all =
have the manager thread from the original LinuxThreads implementation.
A simpler program that just creates a couple of threads works fine, its =
just this more complicated program. I'm not sure if this helps at all, =
but I thought I'd report it.
Also, on the last update, I saw this:
Fixed by a replacement Red Hat errata package.
but I don't see a mention of that anywhere else. What errata package?
Thanks,
Justin Lee