If you don't use any new methods/functions/callbacks provided by libcod, it is basically just patches/fixes/protections

About pam mode, maybe some random users force the server/mod using non-available weapons, like the openScriptMenu hack to pick weapons from the enemy side? That could explain the randomness in crashing