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.
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. server0- dbgsym : Depends: libwayland-server0 (= 1.20.0-1) but 1.20.0-1ubuntu0.1 is to be installed
libwayland-
E: Unable to correct problems, you have held broken packages.
$ export DEBUGINFOD_URLS="https:/ /debuginfod. ubuntu. com" unix/sysv/ linux/recvmsg. c, line 35.
$ sudo gdb
...
(gdb) set debuginfod enabled on
(gdb) attach 9248
(gdb) break recvmsg
Breakpoint 1 at 0x7f25319279d0: file ../sysdeps/
(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 unix/sysv/ linux/recvmsg. c: No such file or directory. unix/sysv/ linux/recvmsg. c:35 64-linux- gnu/libwayland- server. so.0 loop_dispatch () at /lib/x86_ 64-linux- gnu/libwayland- server. so.0 event_source_ dispatch (base=<optimised out>, callback=<optimised out>, data=<optimised out>) wayland/ meta-wayland. c:110 unix/sysv/ linux/recvmsg. c:35 64-linux- gnu/libwayland- server. so.0 64-linux- gnu/libwayland- server. so.0 loop_dispatch () from /lib/x86_ 64-linux- gnu/libwayland- server. so.0
35 ../sysdeps/
(gdb) bt full
#0 __libc_recvmsg (fd=21, msg=0x7fff1de64a50, flags=1073741888) at ../sysdeps/
#1 0x00007f2531ea5ad6 in () at /lib/x86_
#2 0x00007f2531ea4eea in wl_event_
#3 0x00007f2531d2b45b in wayland_
at ../src/
source = <optimised out>
loop = <optimised out>
...
(gdb) finish
Run till exit from #0 __libc_recvmsg (fd=21, msg=0x7fff1de64a50, flags=1073741888) at ../sysdeps/
0x00007f2531ea5ad6 in ?? () from /lib/x86_
Value returned is $2 = 12
(gdb) finish
Run till exit from #0 0x00007f2531ea5ad6 in ?? () from /lib/x86_
0x00007f2531ea4eea in wl_event_
(gdb) s loop_dispatch, event_source_ dispatch (base=<optimised out>, callback=<optimised out>, data=<optimised out>) at ../src/ wayland/ meta-wayland. c:112 wayland/ meta-wayland. c: No such file or directory.
Single stepping until exit from function wl_event_
which has no line number information.
wayland_
112 ../src/