gta-reversed / gta-reversed-modern

Reimplementation of GTA:SA 1.0 US

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash in `CEntity::CleanUpOldReference`

Pirulax opened this issue · comments

Description

Crash happens in the above function

Steps to Reproduce

Not sure tbh, I was just AFKing, closed the game, and that it.

Expected Behavior

...

Current Behavior

...

Screenshots/Videos

Callstack
image

from CInterestingEvents::~CInterestingEvents (0x85689c)

I think this actually is an OG bug.
Since this thing is static it's destroyed atexit, at which point the pools are unallocated already, which, well, is use after free => bad.
No real solution for now imho.
Good job btw thank you!