Closed hbruch closed 4 years ago
We recently saw a segfault in the deepdiff
library that happened when a user had a zero-byte body file. Do you happen to still have the body file that was in use when this crash was encountered? I wonder if it's the same issue.
Nevermind, this is unrelated to having an empty file, should have been able to tell from the stacktrace. This happens because the "structure.json" string is treated as a component selector, and there's no component with that name. We're not checking for this problem, so resolving the component leads to a segfault.
If might make sense to also allow for filenames instead of just components, and if the provided string is neither a filename nor component, print an error.
Expected behavior
qri diff structure.json
executed in the working dir of a dataset should return the diff compared to last saved version.Actual behavior
A segmentation violation occurs:
Additional info
qri: HEAD (c21419b3a0df46e) OS: MacOS Mojave 10.14.6 (18G103)