Runescape randomly crashes. malloc_consolidate(): unaligned fastbin chunk
Initial reports started in September 2021, on the Runescape forums.
Description
The game will randomly crash out, with no explicit trigger. I have had the game crash out immediately after logging in; when moving to other areas of the map; interacting with the game; or not at all in a 5+ hour gameplay session.
Log files (for system lockups / game freezes / crashes)
GDB backtraces:
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1 0x00007f85573d6546 in __GI_abort () at abort.c:79
#2 0x00007f855742deb8 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f855754ba78 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007f855743591a in malloc_printerr (str=str@entry=0x7f855754dde8 "malloc_consolidate(): unaligned fastbin chunk detected") at malloc.c:5628
#4 0x00007f85574369c4 in malloc_consolidate (av=av@entry=0x7f840c000020) at malloc.c:4709
#5 0x00007f8557438855 in _int_malloc (av=av@entry=0x7f840c000020, bytes=bytes@entry=2376) at malloc.c:3924
#6 0x00007f855743a4b1 in __GI___libc_malloc (bytes=2376) at malloc.c:3237
#7 0x00007f84ba8f2195 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#8 0x00005588a0d6cb45 in ?? ()
#9 0x00005588a0d841f9 in ?? ()
#10 0x00005588a10392af in ?? ()
#11 0x00005588a0fa6e51 in ?? ()
#12 0x00007f8557594d80 in start_thread (arg=0x7f841e7fc640) at pthread_create.c:481
#13 0x00007f85574ae76f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
and
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1 0x00007febc2bce546 in __GI_abort () at abort.c:79
#2 0x00007febc2c25eb8 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7febc2d43a78 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3 0x00007febc2c2d91a in malloc_printerr (str=str@entry=0x7febc2d46338 "malloc(): unaligned fastbin chunk detected") at malloc.c:5628
#4 0x00007febc2c309d3 in _int_malloc (av=av@entry=0x7fea70000020, bytes=bytes@entry=112) at malloc.c:3812
#5 0x00007febc2c33191 in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3639
#6 0x00007feb23006661 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#7 0x00007feb22d89314 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#8 0x00007feb22890b10 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#9 0x00007feb22892cbd in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#10 0x00007feb22893046 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#11 0x00007feb228acab0 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#12 0x00007feb2289ece2 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#13 0x00007feb2289f2bf in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#14 0x00007feb2295a0a3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#15 0x00007feb2295c230 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#16 0x0000558614b85ae1 in ?? ()
#17 0x0000558614b841ac in ?? ()
#18 0x0000558614e392af in ?? ()
#19 0x0000558614da6e51 in ?? ()
#20 0x00007febc2d8cd80 in start_thread (arg=0x7fea8dffb640) at pthread_create.c:481
#21 0x00007febc2ca676f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Steps to reproduce
It is difficult to reproduce; however, causing the game to repeatedly have to load multiple/different assets may cause the issue to show itself (e.g. move from area to area).
System information
System:
Host: polaris Kernel: 5.16.0-1-amd64 x86_64 bits: 64 compiler: gcc
v: 11.2.0 Desktop: GNOME 41.4 tk: GTK 3.24.31 wm: gnome-shell dm: GDM3
Distro: Debian GNU/Linux bookworm/sid
CPU:
Info: 16-core model: AMD Ryzen 9 3950X bits: 64 type: MT MCP arch: Zen 2
rev: 0 cache: L1: 1024 KiB L2: 8 MiB L3: 64 MiB
Speed (MHz): avg: 2656 high: 4132 min/max: 2200/4761 boost: enabled
cores: 1: 4100 2: 3885 3: 2092 4: 2143 5: 4000 6: 2069 7: 2074 8: 2075
9: 3801 10: 4074 11: 2079 12: 2413 13: 2196 14: 2195 15: 2195 16: 2195
17: 4132 18: 2067 19: 2070 20: 2141 21: 3730 22: 2053 23: 2095 24: 2126
25: 4069 26: 3996 27: 2114 28: 2053 29: 2195 30: 2195 31: 2196 32: 2196
bogomips: 223567
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
vendor: Sapphire driver: amdgpu v: kernel pcie: speed: 16 GT/s lanes: 16
ports: active: DP-1 empty: DP-2,HDMI-A-1,HDMI-A-2 bus-ID: 0b:00.0
chip-ID: 1002:731f
Device-2: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 5-2.2:5 chip-ID: 046d:082d
Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.0
compositor: gnome-shell driver: X: loaded: ati,vesa
unloaded: fbdev,modesetting,radeon gpu: amdgpu display-ID: 0
Monitor-1: DP-1 model: Samsung C49RG9x res: 3840x1080 dpi: 82
diag: 1239mm (48.8")
OpenGL: renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.44.0 5.16.0-1-amd64
LLVM 12.0.1)
v: 4.6 Mesa 21.2.6 direct render: Yes
Regression
As mentioned above, this started to appear in September 2021. According to the Debian Patch Tracker this was just after 20.3.5 was released into Debian Testing (the version of Debian I am using).
Further information (optional)
Issue still persists with RADV_DEBUG=llvm
.