Could we see your custom allocator/deallocator and how you use it? Maybe you can show us where exactly you get the segfaults...

Regards