question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gdb.error: There is no member named keys

See original GitHub issue

When debugging, I see:

─── Output/messages ────────────────────────────
121         QTAILQ_FOREACH(kid, &b->children, sibling) {
Traceback (most recent call last):
  File "/usr/share/glib-2.0/gdb/glib_gdb.py", line 158, in children
    return self._iterator(self.val, self.keys_are_strings)
  File "/usr/share/glib-2.0/gdb/glib_gdb.py", line 108, in __init__
    self.keys = self._pointer_array(ht["keys"], ht["have_big_keys"])
gdb.error: There is no member named keys.

The reproduce steps are complicated as I am using QEMU remote gdb debugging and I believe this error might be related to the program I am debugging. Let me know if I need to provide some additional information.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lbmengcommented, Dec 27, 2020

Maybe this can help, otherwise I don’t know, just remove/rename those .py files.

Thanks! The following command can disable the glib-2.0 pretty-printer.

disable pretty-printer /lib/x86_64-linux-gnu/libglib-2.0.so.0

0reactions
cyrus-andcommented, Dec 21, 2020

Maybe this can help, otherwise I don’t know, just remove/rename those .py files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Python Exception <class 'gdb.error'> There is no member ...
Type "apropos word" to search for commands related to "word". I've writen a small test program called gdbbroke.cpp: #include <string> ...
Read more >
gdb pretty printer throws python error: There is no member ...
Breakpoint 1, main () at n.c:9 9 return 0; Python Exception <class 'gdb.error'> There is no member named keys.: $1 = 0x602000 Continuing....
Read more >
$1 = Python Exception <class 'gdb.error'> There is no member ...
When I try to print a vector, I get this strange error. ... Exception <class 'gdb.error'> There is no member or method named...
Read more >
gdb.error: There is no member or method named _M_storage
gdb.error: There is no member or method named _M_storage ; Relates to · CPP-7662 GDB doesn't recognize STL containers for clang/clang++ ; Is...
Read more >
2018q4.txt - sourceware.org
The idea here is that it is obvious when gdb is done reading debug info, as it ... [Bug gdb/23768] New: ubsan runtime...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found