Closed Rexogamer closed 1 year ago
The core dump is too big to upload directly to GitHub, but you can find it on GDrive here
I'm not able to use the core dump file. Can you get the stack trace using gdb?
$ gdb /path/to/fastfetch
$ run
$ bt
I think we need to update the issue template
It seems that it was module Packages
segfault. What package managers did you use?
It was module Display
segfault.
Do you still need the gdb trace? If so, I tried to get it but it said there weren't any debugging symbols 🤔
Yes, I do. Please download and install the latest dev build and try again
https://github.com/fastfetch-cli/fastfetch/actions/runs/5302263868
Hope this helps:
(gdb) bt
#0 0x0000043800000780 in ?? ()
#1 0x00007ffff7f898b6 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#2 0x00007ffff7f8634d in ffi_call_int (cif=cif@entry=0x7ffff7bfe610, fn=<optimised out>, rvalue=<optimised out>, avalue=<optimised out>, closure=closure@entry=0x0)
at ../src/x86/ffi64.c:673
#3 0x00007ffff7f88f33 in ffi_call (cif=cif@entry=0x7ffff7bfe610, fn=<optimised out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffff7bfe6e0) at ../src/x86/ffi64.c:710
#4 0x00007ffff7f93b20 in wl_closure_invoke (closure=closure@entry=0x7ffff0008160, target=<optimised out>, target@entry=0x7ffff0008270, opcode=opcode@entry=4, data=<optimised out>,
flags=<optimised out>) at ../src/connection.c:1025
#5 0x00007ffff7f942c3 in dispatch_event (display=display@entry=0x7ffff0002330, queue=<optimised out>, queue=<optimised out>) at ../src/wayland-client.c:1595
#6 0x00007ffff7f944bc in dispatch_queue (queue=0x7ffff0002400, display=0x7ffff0002330) at ../src/wayland-client.c:1741
#7 wl_display_dispatch_queue_pending (display=display@entry=0x7ffff0002330, queue=queue@entry=0x7ffff0002400) at ../src/wayland-client.c:1983
#8 0x00007ffff7f95e43 in wl_display_dispatch_queue (queue=<optimised out>, display=<optimised out>) at ../src/wayland-client.c:1959
#9 0x00007ffff7f96f1f in wl_display_roundtrip_queue (display=0x7ffff0002330, queue=0x7ffff0002400) at ../src/wayland-client.c:1370
#10 0x00005555555838e5 in waylandOutputHandler (version=4, name=4, registry=<optimised out>, wldata=0x7ffff7bfedb0)
at /home/runner/work/fastfetch/fastfetch/src/detection/displayserver/linux/wayland.c:153
#11 waylandGlobalAddListener (data=0x7ffff7bfedb0, registry=<optimised out>, name=4, interface=<optimised out>, version=4)
at /home/runner/work/fastfetch/fastfetch/src/detection/displayserver/linux/wayland.c:217
#12 0x00007ffff7f898b6 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#13 0x00007ffff7f8634d in ffi_call_int (cif=cif@entry=0x7ffff7bfeb10, fn=<optimised out>, rvalue=<optimised out>, avalue=<optimised out>, closure=closure@entry=0x0)
at ../src/x86/ffi64.c:673
#14 0x00007ffff7f88f33 in ffi_call (cif=cif@entry=0x7ffff7bfeb10, fn=<optimised out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffff7bfebe0) at ../src/x86/ffi64.c:710
#15 0x00007ffff7f93b20 in wl_closure_invoke (closure=closure@entry=0x7ffff00069a0, target=<optimised out>, target@entry=0x7ffff0006510, opcode=opcode@entry=0, data=<optimised out>,
flags=<optimised out>) at ../src/connection.c:1025
#16 0x00007ffff7f942c3 in dispatch_event (display=display@entry=0x7ffff0002330, queue=<optimised out>, queue=<optimised out>) at ../src/wayland-client.c:1595
#17 0x00007ffff7f944bc in dispatch_queue (queue=0x7ffff0002400, display=0x7ffff0002330) at ../src/wayland-client.c:1741
#18 wl_display_dispatch_queue_pending (display=0x7ffff0002330, queue=0x7ffff0002400) at ../src/wayland-client.c:1983
#19 0x0000555555583d3f in detectWayland (instance=instance@entry=0x7fffffffce20, result=result@entry=0x5555555e2dc0 <result>)
at /home/runner/work/fastfetch/fastfetch/src/detection/displayserver/linux/wayland.c:260
#20 0x0000555555583dfc in ffdsConnectWayland (instance=instance@entry=0x7fffffffce20, result=result@entry=0x5555555e2dc0 <result>)
at /home/runner/work/fastfetch/fastfetch/src/detection/displayserver/linux/wayland.c:281
#21 0x00005555555835a7 in ffConnectDisplayServerImpl (ds=ds@entry=0x5555555e2dc0 <result>, instance=instance@entry=0x7fffffffce20)
at /home/runner/work/fastfetch/fastfetch/src/detection/displayserver/linux/displayserver_linux.c:64
#22 0x00005555555660a3 in ffConnectDisplayServer (instance=0x7fffffffce20) at /home/runner/work/fastfetch/fastfetch/src/detection/displayserver/displayserver.c:37
#23 0x000055555555ff9d in ffConnectDisplayServerThreadMain (data=<optimised out>) at /home/runner/work/fastfetch/fastfetch/src/common/init.c:152
#24 0x00007ffff7c8f18a in start_thread (arg=<optimised out>) at ./nptl/pthread_create.c:444
#25 0x00007ffff7d1dbd0 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
It's really helpful! Thanks.
@LinusDierheimer Can you help with that?
Got tested on a physical machine, and reproduced the crash issue with the deb package built by Github-CI
But I can't reproduce it when building from source
I suppose the issue comes from wl_output_listener
We build Ubuntu (deb) packages on Ubuntu 20.04, which uses an old wayland-dev package that doesn't support wl_output_listener::name
or wl_output_listener::description
.
Therefore wl_output_listener
is a smaller data structure on Ubuntu 20.04. It is actually an ABI break change of libwayland
I can somehow make some hacks to work around this issue, but building binaries on old Linux systems is honestly a bad idea
@LinusDierheimer Thoughts?
I don't want to build on a newer system, Ubuntu 20.04 is still widly used and should be supported. How does libwayland handle it if we provide the newer definition of the struct by our selfs and always use that?
building binaries on old Linux systems is honestly a bad idea
In the worst case we update the ci to provide a different deb package for each version
In the worst case we update the ci to provide a different deb package for each version
Yeah, that's what I want to suggest.
@Rexogamer Please confirm if the latest dev build works for you
Can confirm that the latest dev build works :tada:
Thanks for reporting
General description of bug:
When I try to run the script, it makes it 4 lines in before pausing, then segfaulting:
Often helpful questions:
Output of
fastfetch --version
:Output of
fastfetch --load-config devinfo
:Output of
fastfetch --load-config devinfo-verbose
:Output of
fastfetch --list-features
: