NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

GDB + Threaded programs



Hi all,

GDB in NetBSD 6.0 amd64 seems to have issues with threaded programs.
For example, this is a Java process:

----8<-------
# gdb -p 13694
GNU gdb (GDB) 7.3.1
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 "x86_64--netbsd".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 13694
Reading symbols from /usr/pkg/java/openjdk7/bin/java...(no debugging
symbols found)...done.
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libpthread.so.1...(no debugging symbols
found)...done.
[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 2]
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/lib/libgcc_s.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgcc_s.so.1
Reading symbols from
/usr/pkg/java/openjdk7/jre/lib/amd64/server/libjvm.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/pkg/java/openjdk7/jre/lib/amd64/server/libjvm.so
Reading symbols from /usr/lib/libstdc++.so.7...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.7
Reading symbols from /usr/lib/libm.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libm.so.0
Reading symbols from
/usr/pkg/java/openjdk7/jre/lib/amd64/libverify.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/pkg/java/openjdk7/jre/lib/amd64/libverify.so
Reading symbols from
/usr/pkg/java/openjdk7/jre/lib/amd64/libjava.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/pkg/java/openjdk7/jre/lib/amd64/libjava.so
Reading symbols from
/usr/pkg/java/openjdk7/jre/lib/amd64/libzip.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/pkg/java/openjdk7/jre/lib/amd64/libzip.so
Reading symbols from
/usr/pkg/java/openjdk7/jre/lib/amd64/libnio.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/pkg/java/openjdk7/jre/lib/amd64/libnio.so
Reading symbols from
/usr/pkg/java/openjdk7/jre/lib/amd64/libnet.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/pkg/java/openjdk7/jre/lib/amd64/libnet.so
Reading symbols from
/usr/pkg/java/openjdk7/jre/lib/amd64/libmanagement.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/pkg/java/openjdk7/jre/lib/amd64/libmanagement.so
Reading symbols from
/usr/pkg/java/openjdk7/jre/lib/amd64/libsunec.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/pkg/java/openjdk7/jre/lib/amd64/libsunec.so
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols
found)...done.
Loaded symbols for /usr/libexec/ld.elf_so
/usr/src/external/gpl3/gdb/dist/gdb/thread.c:81: internal-error:
inferior_thread: Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
/usr/src/external/gpl3/gdb/dist/gdb/thread.c:81: internal-error:
inferior_thread: Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
sorry, pid 13694 was killed: orphaned traced process

----------------------

I think I have already seen this working on a 5.99 build, but I´m not
sure. Seems related to PR/30756.


Are there still known issues?


Home | Main Index | Thread Index | Old Index