Skip to content

Preserve a frame with source code location when sanitizing traces #2452

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

Merged
merged 2 commits into from
Jan 18, 2021

Conversation

dkhalanskyjb
Copy link
Collaborator

Fixes #1437

@dkhalanskyjb dkhalanskyjb force-pushed the better-synthetic-method-sanitization branch from 8a3753d to 86ea871 Compare December 18, 2020 12:17
Copy link
Collaborator

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

@@ -63,6 +63,7 @@ class SanitizedProbesTest : DebugTestBase() {
"\t(Coroutine creation stacktrace)\n" +
"\tat kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt.createCoroutineUnintercepted(IntrinsicsJvm.kt:116)\n" +
"\tat kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:23)\n" +
"\tat kotlinx.coroutines.BuildersKt__Builders_commonKt.async\$default(Builders.common.kt)\n" +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the actual frame (one with line numbers) points to the wrong line.
Typically, it's worth reporting it to our bugtracker (subsystem: Backend. JVM. Coroutines, assignee -- Ilmir)

result += element
includeInternalFrame = true
result += stackTrace[i]
i += 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpicking] ++i is a single BCI, so it's better to use it.

@dkhalanskyjb dkhalanskyjb force-pushed the better-synthetic-method-sanitization branch from 86ea871 to b4a5286 Compare January 15, 2021 13:29
@dkhalanskyjb dkhalanskyjb merged commit 5e7c61f into develop Jan 18, 2021
@dkhalanskyjb dkhalanskyjb deleted the better-synthetic-method-sanitization branch January 18, 2021 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants