NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: GDB + Threaded programs
I have no clue what is ment by "inferior_thread" in this case. I can
provide the stack trace of gdb, but that doesn´t look very helpful:
(gdb) bt
#0 0x00007f7ff58ecbda in _lwp_kill () from /usr/lib/libc.so.12
#1 0x00007f7ff58ec512 in abort () from /usr/lib/libc.so.12
#2 0x00000000004995db in ?? ()
#3 0x000000000049a3d2 in ?? ()
#4 0x000000000049a5de in internal_verror ()
#5 0x000000000049a669 in internal_error ()
#6 0x0000000000407edf in inferior_thread ()
#7 0x00000000004103a1 in normal_stop ()
#8 0x0000000000418bab in ?? ()
#9 0x0000000000418dce in attach_command ()
#10 0x0000000000407966 in catch_command_errors ()
#11 0x00000000004065d3 in ?? ()
#12 0x00000000004078db in catch_errors ()
#13 0x0000000000406700 in gdb_main ()
#14 0x000000000040576a in main ()
I suspect that you can try with any threaded program (Java, Python,
whatever...).
2012/12/10 Christos Zoulas <christos%astron.com@localhost>:
> In article
> <CABZpUSV4Sh9cMCnLHaw5sfVKV4pBJ9DU5d4L=82gkC=fuT4v8Q%mail.gmail.com@localhost>,
> Stephan <stephanwib%googlemail.com@localhost> wrote:
>>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.
>
> I have not seen this one, but I am sure there are more issues. What
> is the inferior_ptid it is trying to find, and is it there?
>
> christos
>
Home |
Main Index |
Thread Index |
Old Index