Comment 1 for bug 2043517

Revision history for this message
Alan Jenkins (aj504) wrote :

I tried installing dbgsym packages or using debuginfod to get a full backtrace for libwayland-server.so, but I failed.

$ sudo apt install -qq libwayland-server0-dbgsym
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 libwayland-server0-dbgsym : Depends: libwayland-server0 (= 1.20.0-1) but 1.20.0-1ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.

$ export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"
$ sudo gdb
...
(gdb) set debuginfod enabled on
(gdb) attach 9248
(gdb) break recvmsg
Breakpoint 1 at 0x7f25319279d0: file ../sysdeps/unix/sysv/linux/recvmsg.c, line 35.
(gdb) cont
Continuing.

Thread 1 "gnome-shell" hit Breakpoint 1, __libc_recvmsg (fd=21, msg=0x7fff1de64a50, flags=1073741888) at ../sysdeps/unix/sysv/linux/recvmsg.c:35
35 ../sysdeps/unix/sysv/linux/recvmsg.c: No such file or directory.
(gdb) bt full
#0 __libc_recvmsg (fd=21, msg=0x7fff1de64a50, flags=1073741888) at ../sysdeps/unix/sysv/linux/recvmsg.c:35
#1 0x00007f2531ea5ad6 in () at /lib/x86_64-linux-gnu/libwayland-server.so.0
#2 0x00007f2531ea4eea in wl_event_loop_dispatch () at /lib/x86_64-linux-gnu/libwayland-server.so.0
#3 0x00007f2531d2b45b in wayland_event_source_dispatch (base=<optimised out>, callback=<optimised out>, data=<optimised out>)
    at ../src/wayland/meta-wayland.c:110
        source = <optimised out>
        loop = <optimised out>
...
(gdb) finish
Run till exit from #0 __libc_recvmsg (fd=21, msg=0x7fff1de64a50, flags=1073741888) at ../sysdeps/unix/sysv/linux/recvmsg.c:35
0x00007f2531ea5ad6 in ?? () from /lib/x86_64-linux-gnu/libwayland-server.so.0
Value returned is $2 = 12
(gdb) finish
Run till exit from #0 0x00007f2531ea5ad6 in ?? () from /lib/x86_64-linux-gnu/libwayland-server.so.0
0x00007f2531ea4eea in wl_event_loop_dispatch () from /lib/x86_64-linux-gnu/libwayland-server.so.0

(gdb) s
Single stepping until exit from function wl_event_loop_dispatch,
which has no line number information.
wayland_event_source_dispatch (base=<optimised out>, callback=<optimised out>, data=<optimised out>) at ../src/wayland/meta-wayland.c:112
112 ../src/wayland/meta-wayland.c: No such file or directory.