[4.0.0] Hard crash where VM crash expected

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
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

[4.0.0] Hard crash where VM crash expected

Post by Matt »

Code: Select all

class caca:actor{
    cacodemon notcaco;
    override void postbeginplay(){
        super.postbeginplay();
        notcaco=cacodemon(spawn("lostsoul"));
        notcaco.target=self;
        //notcaco.stamina=1000;
    }
}
start map, "summon caca" in console, exit console

Expected: VM crash with null pointer
Actual: Hard crash to desktop

Expected behaviour occurs if I set stamina instead of target.
Attachments
gzdoom-crash.log.zip
(4.27 KiB) Downloaded 23 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [4.0.0] Hard crash where VM crash expected

Post by Graf Zahl »

This looks like a code generation oversight in the JIT compiler. This particular assignment has no null check. With vm_jit 0 it properly aborts.
It's not something I'm going to invest more time in for now, though.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [4.0.0] Hard crash where VM crash expected

Post by _mental_ »

Fixed in 3767a9a.
Post Reply

Return to “Closed Bugs [GZDoom]”