Server Help

ASSS Questions - Incorrect module detach order

Goldeye - Mon Oct 31, 2005 10:27 pm
Post subject: Incorrect module detach order
In modules.c, void DetachAllFromArena(Arena *arena)...
It detaches modules in the order they were attached, shouldn't the most recently attached module be detached first, and so on?
This has caused crashes for us in the past, where one module tried getting at free'd memory.

Our fix is to create a list in reversed order at the start of DetachAllFromArena, because apparently, there are problems if you make the list reversed in the first place.
Grelminar - Tue Nov 01, 2005 12:22 am
Post subject:
Ok, I've fixed this. Mt rev 96581a8c5969cb00f4ad77708dfb6012270fa5da.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group