CLI segfault when invoking pkar dump-ll on multiple IDs #72
Labels
No labels
area/api_cli
area/apps
area/content_model
area/framework
area/infrastructure
area/integrity
area/io
area/presentation
area/preservation
area/rdf
area/security
area/submission
area/ui
s
blocked
s
done
s
progress
s
testing
s
wontfix
p
critical
p
high
p
low
p
normal
t
bug
t
documentation
t
enhancement
t
feature
t
test
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ktx/pocket_archive#72
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To reproduce, in git root:
The last line produces the header and first data line of the LL CSV, then exits with a segfault. Not 100% of the time.
pkar list -t container | pkar dump-lldoes not seem to reproduce the problem.Valgrind hasn't caught any problem so far.
At random times, I get the message:
which is in the Volksdata
term_initfunction. Possibly some term is being initialized with garbage data.Interestingly, this only happens when
PKAR_LOGLEVELenv var is set towarnorerr. With more verbose logging, the output is correct.Thinking that this would be a red herring, because the more verbose output may be overwriting recently freed memory with apparently valid data, I compared the outputs of multiple runs of the command, and they all turned out identical. If there was memory corruption, the outputs could be different, or they would have awkward data, or they would cause errors elsewhere along the way. I don't really know what to do with this information.
Same segfault with
Segfault in CLI when chainingto CLI segfault when invokingpkar listwithpkar dump-llpkar dump-llon multiple IDsFixed in
ktx/volksdata_lua@e8f4449a8b.