-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
util/tracing: panic in LogFields - runtime error: index out of range #25389
Comments
Sentry issue: COCKROACHDB-G1 |
I've got no idea what's going on here. The line that panics is the Printf in
I'm at a loss about how that can generate an @RaduBerinde , do you happen to see anything here? |
Use after finish?
On Wed, Jun 13, 2018, 7:37 PM Andrei Matei ***@***.***> wrote:
I've got no idea what's going on here. The line that panics is the Printf
in
if len(fields) == 1 && fields[0].Key() == "event" {
s.netTr.LazyPrintf("%s", fields[0].Value())
}
I'm at a loss about how that can generate an index out of range, given
that we just checked the length. The .Value() function also doesn't seem
to be using any indexes.
And the caller is sp.LogFields(otlog.String("event", msg)), so there's no
funny business there.
@RaduBerinde <https://github.com/RaduBerinde> , do you happen to see
anything here?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#25389 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE135CNoOGg1TzsHB_8g-7bi6XuegAjdks5t8U3egaJpZM4T44FB>
.
--
…-- Tobias
|
"Use after finish" of what exactly? |
My guess is that for whatever reason we're not seeing the top stack frames. The error is probably coming from inside |
Thanks. Ah, stupid sentry was hiding entries from the stack trace that was pasted here; interesting both at the top and the bottom. With this I can look again.
|
We were using a context that was potentially long gone, leading to a span use-after-free crash. Fixes cockroachdb#25389 Release note (bug fix): Fixed a rare crash on node decomissioning.
26706: server: use the right ctx when logging an error r=andreimatei a=andreimatei We were using a context that was potentially long gone, leading to a span use-after-free crash. Fixes #25389 Release note (bug fix): Fixed a rare crash on node decomissioning. Co-authored-by: Andrei Matei <[email protected]>
Sentry issue: COCKROACHDB-H2 |
Two of the 3 sentry reports here did not belong and have not been fixed. Moved them to the new #26715. |
We were using a context that was potentially long gone, leading to a span use-after-free crash. Fixes cockroachdb#25389 Release note (bug fix): Fixed a rare crash on node decomissioning.
26717: cherrypick 2.0: server: use the right ctx when logging an error r=andreimatei a=andreimatei Cherry-pick of #26706 We were using a context that was potentially long gone, leading to a span use-after-free crash. Fixes #25389 Release note (bug fix): Fixed a rare crash on node decomissioning. Co-authored-by: Andrei Matei <[email protected]>
https://sentry.io/cockroach-labs/cockroachdb/issues/552506410/
The text was updated successfully, but these errors were encountered: