-
Notifications
You must be signed in to change notification settings - Fork 40
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
Tokio stack overflow #130
Comments
I believe @jessfraz was looking into something related to this a little while back. |
Yeah we've talked about the stack overflows |
The nightmare bugs |
Looks to be highly correlated with pushes to RFD branches handled by Looking over the after the last two weeks all stack overflows are preceded by a log entry of the form: This GCP query can be used to isolate the log entries: I need to look closer to determine what exactly is causing the overflow, but it looks to originate between lines 555 and 577 in |
It seems to be failing on |
okay so this is where I have gotten as well. Then I dug deep into the generated client and couldn't find anything. And putting printfs random places didn't give me anything either. Somewhere there must be a recursive function right, but I could not for the life of me figure it out, like it must be in a lib of a lib or something, anyways I didn't get much further other than it was happening right before the auth function in the octorust generated lib |
Running tokio with 4MB thread stacks instead of the default 2MB looks to provide enough memory for the RFD push events to be handled. After measuring more locally it looks like the large async trees are getting too large. I never hit an overflow locally, but got very close. My best guess at this point is we weren't hitting recursive calls, we were just creating too deeply nested of an async struct. I'll likely leave the increased thread stack size at 4MB for now, and will retest when we look at breaking down some of the functions. |
OMG that makes so much more sense! |
I was going crazy thinking something was recursive!! |
Closing this for now as the immediate problem is resolved. We will revisit memory usage in the future to bring down the needed stack size. |
This occurs a few times per day in the webhooky. Looks to be correlated to M-F work (as expected). Needs investigation.
The text was updated successfully, but these errors were encountered: