-
Notifications
You must be signed in to change notification settings - Fork 181
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
BoundsError when closing MbedTLS.SSLContext #148
Comments
Note |
Is that the whole stack trace?
--- a/src/debug.jl
+++ b/src/debug.jl
@@ -24,8 +24,8 @@ printlncompact(x) = println(sprint(showcompact, x))
@noinline function precondition_error(msg, frame)
- msg = string(sprint(StackTraces.show_spec_linfo,
- StackTraces.lookup(frame)[2]),
+ msg = string(#=sprint(StackTraces.show_spec_linfo,
+ StackTrace0.lookup(frame)[2])=# "function",
" requires ", msg)
return ArgumentError(msg)
end
@@ -41,8 +41,8 @@ end
@noinline function postcondition_error(msg, frame, ls="", l="", rs="", r="")
- msg = string(sprint(StackTraces.show_spec_linfo,
- StackTraces.lookup(frame)[2]),
+ msg = string(#= sprint(StackTraces.show_spec_linfo,
+ StackTraces.lookup(frame)[2]) =# "function",
" failed to ensure ", msg)
if ls != ""
msg = string(msg, "\n", ls, " = ", sprint(show, l), |
@Keno, @KristofferC ^^ |
|
Lines 292 to 296 in 621e25f
Lines 713 to 716 in 621e25f
The stack trace above is messed up (JuliaLang/julia#19979) by the rethrow here: HTTP.jl/src/ConnectionRequest.jl Lines 35 to 39 in 621e25f
Temporarily commenting out the catch above might reveal the original stack trace. Is this problem still happening with latest @Keno maybe you can help here. Lines 26 to 31 in 621e25f
Is there a better way? |
@samoconnor, couldn't you just pass the name of the function in as a string? julia> string(sum)
"sum" |
FWIW, I'm still seeing the isempty error show up in the logs, which ends up as an error 500 to GitHub. What can I do to help debug? |
I should probably note that the server makes HTTP requests back to GitHub while processing the requests it gets from GitHub, so maybe there's some global state that gets messed up? |
Is there a way to get the name of the enclosing function from a macro? |
Re: "function requires !(isempty(bytes))", I don't think that assertion exists in the latest version. ccb7091#diff-f0790d123318fb66d9dbb0cd3556edb8L401 251deac#diff-f0790d123318fb66d9dbb0cd3556edb8L468 Can you rerun the test with the latest version? |
Apparently |
closing in favour of #214 |
noticed a bunch of logs/errors like this when doing some trial runs for FemtoCleaner.jl.
@samoconnor
The text was updated successfully, but these errors were encountered: