-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Alpha crashes with fault address in groupby.go #3642
Comments
@jarifibrahim Can you check if the following change to groupby.go in line 225 helps? Change from
to
I think that would stop the crash but I am not sure if it's the right solution, or why uidMatrix does not have enough entries. |
@martinmr The change stopped the crash. |
ok.still not sure of the root cause but i'll open a PR with the fix. We have similar checks in our codebase so this should be fine. |
My bad, the crash is in the next line while trying to access |
For some reason, there are nil values stored in the uidMatrix, which results in a segmentation fault when trying to access the Uids field. The root cause of this issue is still unclear but this change adds an additional check to prevent the segmentation fault.
For some reason, there are nil values stored in the uidMatrix, which results in a segmentation fault when trying to access the Uids field. The root cause of this issue is still unclear but this change adds an additional check to prevent the segmentation fault.
Fix has been submitted so closing this for now. Feel free to reopen if you happen to see it again but the original segfault should be gone now. |
For some reason, there are nil values stored in the uidMatrix, which results in a segmentation fault when trying to access the Uids field. The root cause of this issue is still unclear but this change adds an additional check to prevent the segmentation fault.
What version of Dgraph are you using?
727b246
Have you tried reproducing the issue with latest release?
Yes
What is the hardware spec (RAM, OS)?
N/A
Steps to reproduce the issue (command/config used to run Dgraph).
Expected behaviour and actual result.
After a few seconds alpha crashes. Here's the stack trace of alpha https://gist.github.com/jarifibrahim/d517efefd7f7c334a9bb50552041cc11
The text was updated successfully, but these errors were encountered: