This is completely related to bug ODSTRACIMPORT-18, because is the same bug. finalizer tries to save the lines before the SOA record on a fixed size array. If the number of lines is larger than the allocated space, a SEGFAULT is received. Attached is a patch that solves the problem by scanning the file, finding the SOA record and print it. Then starts from the beginning of the input file, skipping the line where the SOA record was. May be it would be useful to print the SOA record and the corresponding RRSIG record(s) together, will test that later.