-
Notifications
You must be signed in to change notification settings - Fork 34
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
Prevent IllegalArgumentException #421
Conversation
Signed-off-by: Jesse Bonzo <[email protected]>
Could be related to #404 |
Hi, @jbonzohln |
@avpotapov00 No, sorry it's company code I can't share. I believe the cause is a very deep call stack though. |
Unfortunately, we cannot accept such a PR without tests. |
Hi @ndkoval ! I've tested it on #404 (same issue). I've tried to apply this commit on top of Also, I've encountered the same bug while working on another feature --- supporting coroutines in GPMC API #411, and with this fix the problem is also fixed there. The fix in this PR is very simple, it just prevents the negative value to leak into a function not expecting negative value, by simply taking As for the test, the problem is that the code affected by this fix is deep down the internal logic of constructing trace representation. It is hard to construct an artificial test to trigger this behavior (I've tried). We can try to port the reproducing test reported by @de-shyt in #404 from her repository. However, this test is quite large and complicated (it includes custom implementation of |
I also believe |
@eupp I've merged the PR but accidentally did that to |
Signed-off-by: Jesse Bonzo <[email protected]>
Signed-off-by: Jesse Bonzo <[email protected]> (cherry picked from commit 5bb2c73)
When running my tests I get this error: