Bug 1226829

Summary: gzdoom segmentation fault
Product: [openSUSE] openSUSE Tumbleweed Reporter: Eric Gillespie <epg>
Component: X11 ApplicationsAssignee: Jan Engelhardt <jengelh>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Eric Gillespie 2024-06-23 22:16:39 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0
Build Identifier: 

Run gzdoom without arguments or with any normal arguments as I normally would, e.g. 'gzdoom -iwad ~/doom/DOOM2.WAD -skill 3 -file Utopia.wad -record Utopia'.


Reproducible: Always

Steps to Reproduce:
1. gzdoom
Actual Results:  

*** Fatal Error ***
!!! Failed to exec debug process
zsh: segmentation fault (core dumped)  gzdoom

% gdb /usr/bin/gzdoom gzdoom-16267-1719180269.core
(gdb) bt
#0  0x00007fcaba0949dc in __pthread_kill_implementation () at /lib64/libc.so.6
#1  0x00007fcaba041176 in raise () at /lib64/libc.so.6
#2  0x000055fafe140ca7 in crash_catcher (signum=11, siginfo=<optimized out>, context=<optimized out>)
    at /usr/src/debug/gzdoom-g4.12.2/src/common/platform/posix/sdl/crashcatcher.c:254
#3  0x00007fcaba041240 in <signal handler called> () at /lib64/libc.so.6
#4  0x00007fcaba17ff6c in __strlen_evex () at /lib64/libc.so.6
#5  0x00007fcaba0643e1 in __printf_buffer () at /lib64/libc.so.6
#6  0x00007fcaba0649f9 in __vfprintf_internal () at /lib64/libc.so.6
#7  0x00007fcaba059ecf in printf () at /lib64/libc.so.6
#8  0x000055fafe118899 in main (argc=1, argv=0x7ffcaeb7df68) at /usr/src/debug/gzdoom-g4.12.2/src/common/platform/posix/sdl/i_main.cpp:158
(gdb) frame 8
#8  0x000055fafe118899 in main (argc=1, argv=0x7ffcaeb7df68) at /usr/src/debug/gzdoom-g4.12.2/src/common/platform/posix/sdl/i_main.cpp:158
158             printf(GAMENAME" %s - %s - SDL version\nCompiled on %s\n",


Expected Results:  
gzdoom runs

% rpm -qi gzdoom
Name        : gzdoom
Version     : 4.12.2
Release     : 3.1
Architecture: x86_64
Install Date: Mon Jun  3 18:40:25 2024
Group       : Amusements/Games/3D/Shoot
Size        : 28312984
License     : GPL-3.0-only
Signature   : RSA/SHA512, Mon May 27 05:09:27 2024, Key ID 35a2f86e29b700a4
Source RPM  : gzdoom-4.12.2-3.1.src.rpm
Build Date  : Fri May 17 17:04:47 2024
Build Host  : reproducible
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
URL         : https://zdoom.org/
Summary     : A DOOM source port with graphic and modding extensions
Description :
GZDoom is a port (a modification) of the original Doom source code, featuring:
* an OpenGL renderer, HQnX/xBRZ rescaling, 3D floor and model support
* Truecolor software rendering, extending the classic 8-bit palette
* Heretic, Hexen and Strife game modes and support for a lot of
  additional IWADs.
* Boom and Hexen map extension support, scriptability with ACS and
  ZScript, and various modding features regarding actors and scenery.
* Demo record/playback of classic and Boom demos is not supported.
Distribution: openSUSE Tumbleweed

% rpm -qi openSUSE-release
Name        : openSUSE-release
Version     : 20240621
Release     : 2966.1
Architecture: x86_64
Install Date: Sat Jun 22 09:32:45 2024
Comment 1 OBSbugzilla Bot 2024-07-01 08:05:02 UTC
This is an autogenerated message for OBS integration:
This bug (1226829) was mentioned in
https://build.opensuse.org/request/show/1184209 Factory / gzdoom
Comment 2 Eric Gillespie 2024-07-05 20:00:43 UTC
Fixed, thanks!

```
% rpm -qi gzdoom
Name        : gzdoom
Version     : 4.12.2
Release     : 4.1
Architecture: x86_64
Install Date: Fri Jul  5 09:34:00 2024
```
Comment 3 Jan Engelhardt 2024-07-06 00:03:33 UTC
  gzdoom  4.12.2-3.1 -> 4.12.2-4.1  x86_64  base  openSUSE