Skip to content

No symbol "main_arena" in current context. #30

@annemacedo-tw

Description

@annemacedo-tw

I currently have a docker setup with GDB, like this

I'm trying to debug a python3 app, I have python3-dbg installed on the docker container with GDB.

[Current thread is 1 (LWP 9335)]
Traceback (most recent call last):
  File "<string>", line 5, in <module>
  File "/home/gdb-heap/gdbheap.py", line 17, in <module>
    from heap.commands import register_commands
  File "/home/gdb-heap/heap/commands.py", line 21, in <module>
    from heap.glibc import glibc_arenas
  File "/home/gdb-heap/heap/glibc.py", line 445, in <module>
    glibc_arenas = GlibcArenas()
  File "/home/gdb-heap/heap/glibc.py", line 415, in __init__
    self.main_arena = self.get_main_arena()
  File "/home/gdb-heap/heap/glibc.py", line 420, in get_main_arena
    return gdb.parse_and_eval("main_arena")
gdb.error: No symbol "main_arena" in current context.
/home/gdb-heap-commands:7: Error in sourced command file:

Seems similar to hugsy/gef#81

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions