Raze crashes on manjaro

i like to play retro games from time to time, and I’ve installed raze, a source port for running build engine games, from the AUR, the package is raze-git.
Recently i encountered a crash while playing a specific situation. As the devs explained me, upon crash the program should create a crash log in the current directory but it doesn’t. I installed gxmessage and gdb, but to no avail. The program just creates a core dump, which i was told is useless on other platforms.
I installed lldb and managed to found the reason of the crash. Here is the output:

Process 15684 stopped
* thread #1, name = 'raze', stop reason = signal SIGSEGV: invalid address (fault address: 0x5555611e9000)
frame #0: 0x00005555558e80c4 raze`getzrange(vec3_t const*, short, int*, int*, int*, int*, int, unsigned int) + 436
raze`getzrange:
-> 0x5555558e80c4 <+436>: movswq (%rax,%rbx,2), %rax
0x5555558e80c9 <+441>: leaq (%rax,%rax,2), %rcx
0x5555558e80cd <+445>: leaq (%rax,%rcx,4), %rax
0x5555558e80d1 <+449>: leaq (%rbp,%rax,4), %rcx
(lldb) bt
* thread #1, name = 'raze', stop reason = signal SIGSEGV: invalid address (fault address: 0x5555611e9000)
* frame #0: 0x00005555558e80c4 raze`getzrange(vec3_t const*, short, int*, int*, int*, int*, int, unsigned int) + 436
frame #1: 0x0000555555c8f2fb raze`Blood::GetZRange(spritetype*, int*, int*, int*, int*, int, unsigned int, unsigned int) + 459
frame #2: 0x0000555555cef42f raze`Blood::MoveThing(spritetype*) + 751
frame #3: 0x0000555555d0eb20 raze`Blood::actProcessSprites() + 1072
frame #4: 0x0000555555d11410 raze`Blood::GameInterface::Ticker() + 464
frame #5: 0x0000555555925492 raze`TryRunTics() + 3106
frame #6: 0x00005555559254dd raze`MainLoop() + 45
frame #7: 0x000055555592b726 raze`RunGame() + 5158
frame #8: 0x000055555592c964 raze`GameMain() + 308
frame #9: 0x0000555555759124 raze`main + 260
frame #10: 0x00007ffff6988b25 libc.so.6`__libc_start_main + 213
frame #11: 0x000055555576d7be raze`_start + 46

The crash doesn’t replicate on Windows, so i think it’s a Manjaro issue. The devs said that since they cannot replicate it, they cannot fix anything.
I know this surely is a niche topic, but i’m asking just for curiosity, to understand the cause of the crash.

:+1: Welcome to Manjaro! :+1:

It does and you gave it to us.

The devs might not know that Manjaro is an Arch-derivative and that we’re running the latest and greatest kernels / device drivers / … and that the problem you’re encountering will be encountered by more users in the future as the kernel updates dribble down to other Linux versions.

So when filing a bug, always:

  • include the output of:

    neofetch
    inxi --admin --verbosity=7 --filter --no-host --width
    
  • The exact steps to reproduce the problem (on your system)

  • The application crash report you’ve already provided to us.

Maybe (very small maybe) we can do something if you provide the above output to us…

:crossed_fingers:

Thanks for your reply!

Actually, i got that crash report from manually running lldb… the program crashes and just says:
failed to run debug; segmentation fault; coredump created.
I posted it, but probably the want a crash report of a specific type.

I did run the command and obtained a report, but when i try to post it got rejected. It says i can’t include links.

As for the steps to reproduce, it’s not easy to explain… i play one map, then at a certain point the program freezes for some seconds… then crashes. On windows it doesn’t.
I’m not a programmer, but i think that maybe is something related to glibc.

1 Like

Please read this:

Yeah, they want what you posted here:

Process 15684 stopped
* thread #1, name = 'raze', stop reason = signal SIGSEGV: invalid address (fault address: 0x5555611e9000)
frame #0: 0x00005555558e80c4 raze`getzrange(vec3_t const*, short, int*, int*, int*, int*, int, unsigned int) + 436
raze`getzrange:
-> 0x5555558e80c4 <+436>: movswq (%rax,%rbx,2), %rax
0x5555558e80c9 <+441>: leaq (%rax,%rax,2), %rcx
0x5555558e80cd <+445>: leaq (%rax,%rcx,4), %rax
0x5555558e80d1 <+449>: leaq (%rbp,%rax,4), %rcx
(lldb) bt
* thread #1, name = 'raze', stop reason = signal SIGSEGV: invalid address (fault address: 0x5555611e9000)
* frame #0: 0x00005555558e80c4 raze`getzrange(vec3_t const*, short, int*, int*, int*, int*, int, unsigned int) + 436
frame #1: 0x0000555555c8f2fb raze`Blood::GetZRange(spritetype*, int*, int*, int*, int*, int, unsigned int, unsigned int) + 459
frame #2: 0x0000555555cef42f raze`Blood::MoveThing(spritetype*) + 751
frame #3: 0x0000555555d0eb20 raze`Blood::actProcessSprites() + 1072
frame #4: 0x0000555555d11410 raze`Blood::GameInterface::Ticker() + 464
frame #5: 0x0000555555925492 raze`TryRunTics() + 3106
frame #6: 0x00005555559254dd raze`MainLoop() + 45
frame #7: 0x000055555592b726 raze`RunGame() + 5158
frame #8: 0x000055555592c964 raze`GameMain() + 308
frame #9: 0x0000555555759124 raze`main + 260
frame #10: 0x00007ffff6988b25 libc.so.6`__libc_start_main + 213
frame #11: 0x000055555576d7be raze`_start + 46

Don’t! Let the devs figure it out!

:grin:

Actually, you don’t need to do anything here any more as we’ve explained what to provide to the devs so they can figure it out!

:+1:

Nothing to do, i can’t post it. Sorry, this is too complicated for me.

The fact is that there isn’t a link on the output! Why does it keeps rejecting the post??

System:
  Kernel: 5.4.112-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 
  root=UUID=2cdd9729-d081-4f66-a6a6-d810429d0474 rw udev.log_priority=3 
  sysrq_always_enabled 
  Desktop: Cinnamon 4.8.6 tk: GTK 3.24.28 vt: 7 dm: LightDM 1.30.0 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: Micro-Star model: B450M PRO-M2 (MS-7B84) v: 1.0 
  serial: <filter> UEFI: American Megatrends v: 2.40 date: 12/17/2018 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 7.79 GiB used: 1.92 GiB (24.6%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 8-Core model: AMD Ryzen 7 2700 bits: 64 type: MT MCP arch: Zen+ 
  family: 17 (23) model-id: 8 stepping: 2 microcode: 800820D cache: L2: 4 MiB 
  bogomips: 102425 
  Speed: 2409 MHz min/max: 1550/3200 MHz boost: enabled Core speeds (MHz): 
  1: 2409 2: 2432 3: 1376 4: 1377 5: 1376 6: 1375 7: 1378 8: 1374 9: 1336 
  10: 1340 11: 1337 12: 1341 13: 1321 14: 1305 15: 1376 16: 1376 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb cpuid 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm mca 
  mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl 
  npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb 
  perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 
  rdrand rdseed rdtscp rep_good sep sev sha_ni skinit smap smca sme smep ssbd 
  sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock syscall tce topoext 
  tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt xgetbv1 xsave 
  xsavec xsaveerptr xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Mars LE [Radeon HD 8530M / R5 M240] vendor: Sapphire Limited 
  driver: radeon v: kernel alternate: amdgpu bus-ID: 1f:00.0 
  chip-ID: 1002:6607 class-ID: 0300 
  Display: x11 server: X.Org 1.20.11 driver: loaded: ati,radeon 
  unloaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  OpenGL: renderer: AMD OLAND (DRM 2.50.0 5.4.112-1-MANJARO LLVM 11.1.0) 
  v: 4.5 Mesa 21.0.2 direct render: Yes 
Audio:
  Device-1: AMD Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 
  Series] 
  vendor: Sapphire Limited driver: snd_hda_intel v: kernel bus-ID: 1f:00.1 
  chip-ID: 1002:aab0 class-ID: 0403 
  Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus-ID: 21:00.3 chip-ID: 1022:1457 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.4.112-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.17 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.25 running: no 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus-ID: 1b:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp27s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Message: No bluetooth data found. 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 1.13 TiB used: 137.12 GiB (11.9%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital 
  model: WDS240G2G0A-00JH30 size: 223.58 GiB block-size: physical: 512 B 
  logical: 512 B speed: 6.0 Gb/s rotation: SSD serial: <filter> rev: 0000 
  scheme: GPT 
  ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Toshiba model: MQ04UBF100 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B 
  rotation: 5400 rpm serial: <filter> scheme: MBR 
  Optical-1: /dev/sr0 vendor: ATAPI model: iHAS124 F rev: CLDM 
  dev-links: cdrom 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r state: running 
Partition:
  ID-1: / raw-size: 22.98 GiB size: 22.49 GiB (97.89%) used: 10.47 GiB (46.5%) 
  fs: ext4 dev: /dev/sda5 maj-min: 8:5 label: N/A 
  uuid: 2cdd9729-d081-4f66-a6a6-d810429d0474 
  ID-2: /boot/efi raw-size: 99 MiB size: 95 MiB (95.96%) 
  used: 27.7 MiB (29.1%) fs: vfat dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: F27D-3EB2 
  ID-3: /run/media/stocazz/0CEE8225EE8206E4 raw-size: 200 GiB 
  size: 200 GiB (100.00%) used: 28.22 GiB (14.1%) fs: ntfs dev: /dev/sda4 
  maj-min: 8:4 label: N/A uuid: 0CEE8225EE8206E4 
  ID-4: /run/media/stocazz/TOSHIBA EXT raw-size: 931.51 GiB 
  size: 931.51 GiB (100.00%) used: 98.4 GiB (10.6%) fs: ntfs dev: /dev/sdb1 
  maj-min: 8:17 label: TOSHIBA EXT uuid: 7C7468E37468A21E 
Swap:
  Alert: No swap data was found. 
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 499 MiB fs: ntfs label: N/A 
  uuid: 2070DD5970DD366E 
  ID-2: /dev/sda3 maj-min: 8:3 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-6:2 info: Logitech Keyboard K120 type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s 
  power: 90mA chip-ID: 046d:c31c class-ID: 0300 
  Device-2: 1-7:3 info: Logitech Unifying Receiver type: Keyboard,Mouse 
  driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 98mA chip-ID: 046d:c534 class-ID: 0301 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Device-1: 4-1:2 info: Toshiba America External USB 3.0 type: Mass Storage 
  driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 896mA 
  chip-ID: 0480:0901 class-ID: 0806 serial: <filter> 
Yay, managed to post:

Sensors:
  System Temperatures: cpu: 36.4 C mobo: 0 C gpu: radeon temp: 31.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 307 Uptime: 23m wakeups: 0 Init: systemd v: 247 tool: systemctl 
  Compilers: gcc: 10.2.0 Packages: pacman: 1146 lib: 374 flatpak: 0 
  Shell: Bash v: 5.1.0 running-in: konsole inxi: 3.3.04
1 Like

So it was that X.org the cause :angry:

And why I didn’t understand what you were talking about…

You need to put 3 backticks ``` before and after stuff like that as the discobot tutorial taught you… (or not…) :wink:

That looks good! So now you have to

  • file the crash dump
  • the inxi
  • a save file of where you crash

with the developers of the application, instead of here, because they will be able to make sense of it.

:crossed_fingers:

Ah, ok… the fact is that the devs are on windows, and that’s why i’m asking for some tips here…
Nevermind, thank you for your time :smiley:

I’m giving you tips on how to file a bug…

What was the exact command / method you used to install this if the devs are not aware of a Linux build???

I installed it from aur:
yay -syu raze-git
It’s not the they are not aware, just that they don’t provide linux build, you have to compile yourself…

The AUR package maintainer is also the github developer, so create an issue here

:man_shrugging:

Erm… no, they aren’t the same person… and i already opened an issue in the official forum…
Nevermind, i was just asking out of curiosity :smiley:

1 Like

Just for update, this is how the thing ended, after i’ve reported several different crashes :

“I already said that this does not happen on Windows. I cannot reproduce it in an environment where I can investigate it.”