Duke3D: crash at mimalloc
The game crashes at one very specific place.
Game variant: "Duke Nukem 3D: Atomic Edition (WT)".
Terminal output from debug build:
$ ./eduke32
runtime src|
ATTENTION: default value of option mesa_glthread overridden by environment.
0,1653s INFO| Started at 2023-07-03 14:13:17.830
0,1655s INFO| EDuke32 r10322-77e6bb66f
0,1655s INFO| Built Jul 3 2023 14:13:02, GCC 11.3.0, 64-bit
0,1657s INFO| Using directory /home/user/eduke32/
0,1658s INFO| Using directory /home/user/.config/eduke32/
0,1677s INFO| CPU: AMD Ryzen 7 2700 Eight-Core Processor
0,1677s INFO| Initializing SDL 2.0.20 (https://github.com/libsdl-org/SDL.git@b424665e0899769b200231ba943353a5fee1b6b6)
0,2931s INFO| Using 'x11' video driver.
0,2932s GFX| Detecting video modes for display 0 (LG Ultra HD 27")...
0,3002s INFO| Searching for game data...
2,6239s INFO| Using DUKE3D.GRP as main data file.
2,6288s CON| Compiling: GAME.CON (151190 bytes)
2,6348s CON| Including: DEFS.CON (35992 bytes)
2,6364s CON| Including: USER.CON (45482 bytes)
2,6376s WARN| USER.CON:844: overwriting existing definition for sound #261 (hydro43.voc)
2,6377s WARN| USER.CON:873: overwriting existing definition for sound #323 (aisle402.voc)
2,6409s CON| GAME.CON: In actor 'ORGANTIC':
2,6410s WARN| GAME.CON:3967: found 'else' with no 'if'
2,6425s CON| GAME.CON: In state 'pigshootenemystate':
2,6426s WARN| GAME.CON:5890: found 'else' with no 'if'
2,6446s WARN| Found 4 warning(s), 0 error(s).
2,6486s CON| Relocated compiled code from 0x20002800110 to 0x20001c50110
2,6490s CON| Compiled 140344 bytes in 20ms
2,7466s INFO| Initialized 96,0M cache
2,8322s INFO| Loaded DUKE.RTS
2,8323s INFO| Initializing console...
3,4001s INPT| Game controllers:
3,4003s INPT| 1. Speedlink TORID Wireless Gamepad
3,4006s INPT| Using controller: Speedlink TORID Wireless Gamepad [(null)].
3,4007s INPT| Controller supports rumble.
3,4043s INFO| Executing settings.cfg
3,4047s INFO| vid_brightness: unknown command or cvar
3,4050s GFX| Detecting video modes for display 0 (LG Ultra HD 27")...
3,4118s GFX| Setting video mode 640x400 (0-bpp windowed).
3,4382s WARN| Video driver enforcing SwapInterval -1, unable to configure VSync!
3,4412s GFX| OpenGL driver: AMD Radeon RX 6600 XT (navi23, LLVM 15.0.7, DRM 3.47, 5.19.0-45-generic) 4.6 (Compatibility Profile) Mesa 22.2.5-0ubuntu0.1~22.04.3
3,4413s GFX| OpenGL context: version 4.6
3,4413s GFX| Refresh rate: 60,00Hz.
3,4573s GFX| Setting video mode 1920x1080 (32-bpp windowed).
3,6342s INFO| Opened texturecache as cache file.
3,6346s PR| Initializing Polymer subsystem...
3,6365s PR| Initialization complete in 2 ms.
3,6365s ASS| Initializing Apogee Sound System
3,6423s ASS| Using SDL PULSEAUDIO driver on Models 00h-0fh
3,6425s ASS| Initialized sound at 48,0 KHz stereo with 64 voices
3,6426s ASS| Initializing MIDI driver: AdLib OPL3 emulation
3,6715s GFX| Setting video mode 1920x1000 (32-bpp windowed).
3,7030s INFO| Opened texturecache as cache file.
3,7031s PR| Initializing Polymer subsystem...
3,7049s PR| Initialization complete in 2 ms.
3,7115s PR| Compiling program with bits (octal) 4060641
3,9917s PR| Compiling program with bits (octal) 4020641
4,2088s PR| Compiling program with bits (octal) 4000221
7,3254s INFO| sv_loadsnapshot: snapshot size: 4752822 bytes.
7,3256s INFO| ud: 0 ms
7,3271s INFO| sws: 2 ms
7,3286s INFO| script: 1 ms
7,3287s INFO| animisc: 1 ms
7,3312s INFO| vars: 2 ms
7,3521s INFO| Cache size increased by 1024 to new max of 2048 entries
7,3604s INFO| Cache time: 29ms.
7,3871s PR| Board loaded.
7,3964s PR| Compiling program with bits (octal) 4000001
7,4259s PR| Compiling program with bits (octal) 7000221
7,4361s PR| Compiling program with bits (octal) 6000221
7,4385s PR| Compiling program with bits (octal) 4000441
7,4487s PR| Compiling program with bits (octal) 7300221
7,9287s PR| Compiling program with bits (octal) 7000225
7,9513s PR| Compiling program with bits (octal) 7300225
11,7381s INFO| UNLOCKED
13,2436s PR| Compiling program with bits (octal) 6000225
15,2996s MEM| mimalloc: error:
15,2997s MEM| corrupted free list entry of size 384b at 0x2000a7c6a80: value 0xafc7726b7c6c00
Caught signal: SIGABRT
Caught signal: SIGSEGV
Segmentation fault (core dumped)
Attached save file. Steps to reproduce the issue:
- Load save "2".
- Walk on the bridge towards the door, pop in red keycard, open the door and shoot yellow canisters on the left.
- Once the canisters explode - the game crashes.
Please let me know if more info is necessary.