This may not help but try with ldc's address sanitizer. That might give you more information about the life time for the memory causing the segfault itself with stack traces.