-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CompareObjects hangs on valid input #9
Comments
And here's a goroutine dump while it's hanging. At least this time it was in reflect.DeepEqual, though that function itself runs fine on my two inputs. Maybe an infinite loop in the string similarity code? SIGQUIT: quit goroutine 0 [idle]: goroutine 1 [chan receive]: goroutine 17 [syscall, locked to thread]: goroutine 5 [syscall]: goroutine 6 [runnable]: goroutine 7 [chan receive]: goroutine 18 [select, locked to thread]: rax 0xe |
This may be a bug / pathological input in golcs instead. |
I found a pair of valid JSON inputs that cause Differ.CompareObjects to hang indefinitely.
[Edit: changing the link to a branch rather than specific commit]
I've added sanitized versions of those files and a hanging unit test over here: https://github.com/pteichman/gojsondiff/tree/infinite-hang
As an API request, would it be useful to be able to disable the substring diffing? For my use case it's enough to know that the values fail string equality checks. Or alternatively, should LCS calculation be part of the display logic rather than in the differ itself?
The text was updated successfully, but these errors were encountered: