Stephen R. van den Berg wrote:
zero..., and if I am not mistaken we do not zero out CVAR Buffer [aka struct _Buffer] on destruct or free either... what am I missing?
Maybe you're not missing anything. I was assuming pike did this elsewhere on destruct. Apparently not, because I can indeed confirm that I still get heap corruptions and thus segfaults. I'll try setting this to zero explicitly on destruct.
I can now confirm that I've been running three hours with io->this = 0 at destruct, and there have not been any coredumps yet. Seems promising.