Hi All,
I have more information on this error with another application:
- The application being traced is from the SPEC CPU® 2017 suite: 531.deepsjeng_r
- The tracer and convertor are from a release build of release 10 on Linux
- Traced from the beginning, the conversion for the raw file will always fail when the trace file is around ~28G
- I played with the tracing options trying to delimit the point of failure, but it was unsuccessful:
- with `-trace_for_instrs 12G`, a raw file of 49G would be successfully converted into a trace file of 25G after ~2.5 hours.
- with `-trace_for_instrs 14G`, a raw file of 55G would fail when the trace file reached 28G with `ERROR: Conversion failed: Failed to process file for thread 70986: Failed to close prior component`.
- So it seems that something between 49G and 55G in the raw file triggered the error.
- I tried skipping the first 49G and only keeping the point of failure with `-trace_after_instrs 12G -exit_after_tracing 4G`. The raw file is 8.1G, which should contain the point of failure. However, the conversion would succeed.
- So the error seems to be sensitive to when the tracing starts and I cannot reduce the reproducible test case.
- I also tried converting with a recent weekly build DynamoRIO-Linux-10.0.19762. It would fail with the same `ERROR: Conversion failed: Failed to process file for thread 70986: Failed to close prior component`
- Another issue not directly related to the conversion error is that the successfully converted trace (traced with `-trace_for_instrs 12G` mentioned above, for example) is unusable. For example, the view tool would say:
Failed to open trace/window.0000/drmemtrace.deepsjeng_s_base.memtrace-m64.64874.9297.trace.zip
Failed to initialize scheduler: Failed to open trace/window.0000/drmemtrace.deepsjeng_s_base.memtrace-m64.64874.9297.trace.zip
ERROR: failed to initialize analyzer
And If I use `unzip -l <trace file>` to list the chunks within the trace file, it says:
Archive: drmemtrace.deepsjeng_s_base.memtrace-m64.64874.9297.trace.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of drmemtrace.deepsjeng_s_base.memtrace-m64.64874.9297.trace.zip or
drmemtrace.deepsjeng_s_base.memtrace-m64.64874.9297.trace.zip.zip, and cannot find drmemtrace.deepsjeng_s_base.memtrace-m64.64874.9297.trace.zip.ZIP, period.
Do you have any suggestions on how I can provide more information on this error? Thank you so much!