fail to attach to process on Solaris

Burkhardt, Glenn Glenn.Burkhardt@goodrich.com
Mon Aug 22 15:05:00 GMT 2011


I can't seem to attach to a process that's running multiple threads.
Any help is appreciated.  I've included the print output from the whole
session, but the problem is the line:

procfs: couldn't find pid 15719 (kernel thread 67) in procinfo list.


Version info:
GNU gdb (GDB) 7.3
gcc (GCC) 4.5.2
SunOS 5.9 Generic_118558-28 sun4u sparc SUNW,Sun-Fire-V440



rms $ gdb rms.sparc 15719
GNU gdb (GDB) 7.3
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.9".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/glenn.burkhardt/targets/sol/ata0a/rms/rms.sparc...done.
Attaching to program
`/home/glenn.burkhardt/targets/sol/ata0a/rms/rms.sparc', process 15719
[New process 15719]
Retry #1:
Retry #2:
Retry #3:
Retry #4:
Reading symbols from /usr/lib/watchmalloc.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/watchmalloc.so.1
Reading symbols from /usr/openwin/lib/libXaw.so.5...(no debugging
symbols found)...done.
Loaded symbols for /usr/openwin/lib/libXaw.so.5
Reading symbols from /usr/openwin/lib/libXmu.so.4...(no debugging
symbols found)...done.
Loaded symbols for /usr/openwin/lib/libXmu.so.4
Reading symbols from /usr/openwin/lib/libXt.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/openwin/lib/libXt.so.4
Reading symbols from /usr/openwin/lib/libSM.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/openwin/lib/libSM.so.6
Reading symbols from /usr/openwin/lib/libICE.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/openwin/lib/libICE.so.6
Reading symbols from
/itek/raptor/build/rci/rciDisplay/openGL.sparc/libGL.so...done.
Loaded symbols for
/itek/raptor/build/rci/rciDisplay/openGL.sparc/libGL.so
Reading symbols from
/itek/raptor/build/rci/rciDisplay/openGL.sparc/libGLU.so...done.
Loaded symbols for
/itek/raptor/build/rci/rciDisplay/openGL.sparc/libGLU.so
Reading symbols from /usr/openwin/lib/libXext.so.0...(no debugging
symbols found)...done.
Loaded symbols for /usr/openwin/lib/libXext.so.0
Reading symbols from /usr/openwin/lib/libX11.so.4...(no debugging
symbols found)...done.
Loaded symbols for /usr/openwin/lib/libX11.so.4
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libm.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libpthread.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/openwin/lib/libXi.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/openwin/lib/libXi.so.5
Reading symbols from /usr/lib/libaio.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmd5.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libmd5.so.1
Reading symbols from /usr/lib/libmp.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from
/usr/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
Reading symbols from /usr/lib/libthread.so.1...(no debugging symbols
found)...done.
[Thread debugging using libthread_db enabled]
[New LWP    65        ]
[New LWP    63        ]
[New LWP    62        ]
[New LWP    60        ]
[New LWP    59        ]
[New LWP    58        ]
[New LWP    57        ]
[New LWP    56        ]
[New LWP    55        ]
[New LWP    54        ]
[New LWP    53        ]
[New LWP    52        ]
[New LWP    50        ]
[New LWP    49        ]
[New LWP    48        ]
[New LWP    47        ]
[New LWP    46        ]
[New LWP    45        ]
[New LWP    44        ]
[New LWP    43        ]
[New LWP    42        ]
[New LWP    41        ]
[New LWP    40        ]
[New LWP    39        ]
[New LWP    38        ]
[New LWP    37        ]
[New LWP    36        ]
[New LWP    35        ]
[New LWP    34        ]
[New LWP    33        ]
[New LWP    32        ]
[New LWP    31        ]
[New LWP    30        ]
[New LWP    29        ]
[New LWP    28        ]
[New LWP    27        ]
[New LWP    26        ]
[New LWP    25        ]
[New LWP    24        ]
[New LWP    23        ]
[New LWP    22        ]
[New LWP    21        ]
[New LWP    20        ]
[New LWP    19        ]
[New LWP    18        ]
[New LWP    17        ]
[New LWP    16        ]
[New LWP    15        ]
[New LWP    14        ]
[New LWP    13        ]
[New LWP    12        ]
[New LWP    11        ]
[New LWP    10        ]
[New LWP    9        ]
[New LWP    8        ]
[New LWP    7        ]
[New LWP    6        ]
[New LWP    5        ]
[New LWP    4        ]
[New LWP    3        ]
[New LWP    51        ]
[New Thread 1 (LWP 1)]
[New Thread 3        ]
[New Thread 4 (LWP 4)]
[New Thread 5 (LWP 5)]
[New Thread 6        ]
[New Thread 7 (LWP 7)]
[New Thread 8 (LWP 8)]
[New Thread 9        ]
[New Thread 10 (LWP 10)]
[New Thread 11 (LWP 11)]
[New Thread 12        ]
[New Thread 13 (LWP 13)]
[New Thread 14 (LWP 14)]
[New Thread 15        ]
[New Thread 16 (LWP 16)]
[New Thread 17 (LWP 17)]
[New Thread 18        ]
[New Thread 19 (LWP 19)]
[New Thread 20 (LWP 20)]
[New Thread 21        ]
[New Thread 22        ]
[New Thread 23        ]
[New Thread 24        ]
[New Thread 25        ]
[New Thread 26        ]
[New Thread 27        ]
[New Thread 28        ]
[New Thread 29 (LWP 29)]
[New Thread 30        ]
[New Thread 31 (LWP 31)]
[New Thread 32 (LWP 32)]
[New Thread 33 (LWP 33)]
[New Thread 34        ]
[New Thread 35        ]
[New Thread 36        ]
[New Thread 37        ]
[New Thread 38        ]
[New Thread 39        ]
[New Thread 40        ]
[New Thread 41        ]
[New Thread 42 (LWP 42)]
[New Thread 43 (LWP 43)]
[New Thread 44 (LWP 44)]
[New Thread 45        ]
[New Thread 46        ]
[New Thread 47        ]
[New Thread 48        ]
[New Thread 49        ]
[New Thread 50        ]
[New Thread 51        ]
[New Thread 52        ]
[New Thread 53        ]
[New Thread 54        ]
[New Thread 55        ]
[New Thread 56        ]
[New Thread 57        ]
[New Thread 58 (LWP 58)]
[New Thread 59 (LWP 59)]
[New Thread 60        ]
[New Thread 62        ]
[New Thread 63        ]
[New Thread 65 (LWP 65)]
[New Thread 2        ]
[New Thread 61        ]
[New Thread 64        ]
[New Thread 66        ]
[New Thread 67        ]
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /lib/ld.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/ld.so.1
[Switching to Thread 1 (LWP 1)]
0xfeb1f24c in _read () from /usr/lib/libc.so.1
(gdb) whe
#0  0xfeb1f24c in _read () from /usr/lib/libc.so.1
#1  0xfeb0f504 in _filbuf () from /usr/lib/libc.so.1
#2  0xfeb11c4c in fgets () from /usr/lib/libc.so.1
#3  0x005fe25c in shell_run (shell=0xa17bc0) at cmd.c:144
#4  0x0009ab0c in main (argc=1, argv=0xffbff37c) at rms.c:99
(gdb) c
Continuing.
procfs: couldn't find pid 15719 (kernel thread 67) in procinfo list.
(gdb) q



More information about the Gdb mailing list