Debug issue still not resolved - either segfaults, header read errors, or something else... never happens with debug disabled.