-
Notifications
You must be signed in to change notification settings - Fork 5
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
fetcher autonomously panics #30
Comments
For what it's worth we noticed this after upgrading from jwx v2.0.21 to v2.1.0 which upgrades httprc from v1.0.4 to v1.0.5. The only suspicious change (to me) there is the change in where the |
I see similar panics with httprc 1.0.5, stemming from code that uses jwx 2.1.0 like LeslieLeung's.
I think so too, the mutex isn't held during the |
I don't see it in our logs for the past 3 months. Are you able to reproduce this issue somewhat regularly? If so, could you set |
The line number indicated at the top of the traceback is a As I mentioned above, I'm pretty sure that the reason for the channel being closed is that 2 goroutines are executing |
Correct, I misread that second case. I opened #31 as a revert commit of the prior change. |
Sorry, I completely missed the original report 2 weeks ago. I'm a bit busy today, please give me a day or two to sort things out |
Okay. I understand the analysis, and I will take everybody's word for it, but the truth is that I can't reproduce it, so tbh I feel a bit uneasy. I'll merge #31 and what not, but If anybody can come up with a reliable reproduction test case in the future, I think it will benefit all of us. |
merged #31, so will close for now. Please open a new issue if problem persists |
Thanks for releasing the fix @lestrrat! I built a small reproduction example as a gist here, in case you are interested: https://gist.github.com/TheJokr/d5b836cca484d4a00967504c553987cf It panics consistently with |
* Add test I have run this against the version that panics, and verified that it indeed reproduces #30. Future changes can probably rely on this test for _preliminary_ checks against the same symptom. * Appease linter
I am using
github.com/lestrrat-go/jwx/v2 v2.1.0
andgithub.com/lestrrat-go/httprc v1.0.5
, and thefetcher
would randomly panics with the following trace:Given the goroutine is launched inside httprc, I don't have any mean to recover from this panic.
Here is the code on the
jwx
side if it helps:jwx code
The text was updated successfully, but these errors were encountered: