Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of assertions errors when trying to debug in GDB mode #59

Open
morgan-dgk opened this issue Dec 17, 2023 · 1 comment
Open

Lots of assertions errors when trying to debug in GDB mode #59

morgan-dgk opened this issue Dec 17, 2023 · 1 comment

Comments

@morgan-dgk
Copy link

morgan-dgk commented Dec 17, 2023

Hi, this tool works great when used in run mode but when I try and debug the same program in gdb mode I get a bunch of assertion errors of the form:

Traceback (most recent call last):
  File "/usr/lib/wayland_debug/backends/gdb_plugin/plugin.py", line 70, in stop
    connection_id, message = self.message_extractor()
                             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/wayland_debug/backends/gdb_plugin/extract.py", line 153, in sent_message
    object = wl.UnresolvedObject(object_id, None)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/wayland_debug/core/wl/object.py", line 85, in __init__
    super().__init__(obj_id)
  File "/usr/lib/wayland_debug/core/wl/object.py", line 12, in __init__
    assert obj_id > 0
           ^^^^^^^^^^
AssertionError

When I open GDB via the flag, I also see:

Function "wl_connection_destroy" not defined.
Function "wl_closure_invoke" not defined.
Function "wl_closure_dispatch" not defined.
Function "serialize_closure" not defined.

Any ideas as to what might be going on?

@wmww
Copy link
Owner

wmww commented Jan 7, 2024

Perhaps it's using your system's libwayland, which doesn't have debug symbols? If you're using the snap I don't know what's going on, but if you're running it another way try running ./resources/get-libwayland.sh and see if that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants