[??-gd9da513f7]Use after free with HUDMessages and DoomRPG

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

[??-gd9da513f7]Use after free with HUDMessages and DoomRPG

Post by Edward-san »

Sometimes it happens that during my gameplay with DoomRPG SE, if I use the address sanitizer, I get this crash to the desktop:
Spoiler:
Moreover, it seems to happen either when multiple events are triggered (which means more HUD messages), or either while doing shopping in the DoomRPG menu. It's really hard to reproduce reliably, so I leave this for now (I won't be able to get a stack trace till tomorrow) (see later).

I got this with Ubuntu 18.04 x64, I don't know if it happens on OSX, I can try later. and also with OSX (makefile + clang + address sanitizer).

Also I got this stack trace (I really miss the 'backtrace full' from gdb):
Spoiler:
I reproduced this way: just run `gzdoom -iwad freedoom2.wad -file DoomRPG/DoomRPG` (provided you extracted the zip from github and renamed the folder from DoomRPG-master to DoomRPG), then start a new game and play for some time.

I'll try to make a suitable save file which should allow for easy reproduction of the bug. Managed to do it. See the attached save file.

When you load it, you should start from map01 of freedoom2, with the player having some cheats (god2 + notarget + infinite ammo) and a lot of summoned cyberdemons you'll need to kill them. During the process, in a way or in another, you'll get the crash. If it doesn't happen, try again.
Attachments
drpgfreedoom2.zip
(203.23 KiB) Downloaded 39 times
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [??-gd9da513f7]Use after free with HUDMessages and DoomR

Post by _mental_ »

PR with the fix. It's garbage collection in conjunction with linker lists, i.e. usual things, nothing special.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [??-gd9da513f7]Use after free with HUDMessages and DoomR

Post by _mental_ »

It was fixed in 5b32c5b.
Post Reply

Return to “Closed Bugs [GZDoom]”