Skip to content
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

allocation profiler not threadsafe #44099

Closed
vilterp opened this issue Feb 9, 2022 · 1 comment · Fixed by #44116
Closed

allocation profiler not threadsafe #44099

vilterp opened this issue Feb 9, 2022 · 1 comment · Fixed by #44116
Assignees
Labels
multithreading Base.Threads and related functionality
Milestone

Comments

@vilterp
Copy link
Contributor

vilterp commented Feb 9, 2022

@vtjnash pointed out this thread safety bug not caught by our tests: #42768 (comment)

This can result in multiple threads corrupting the stack traces from each others' allocs, leading to a corrupted profile.

Fix involves keeping a buffer per thread.
EDIT: And/or maybe reusing the existing backtrace buffer in the ptls object. (See the linked thread, above)

cc @NHDaly

@vilterp vilterp mentioned this issue Feb 9, 2022
7 tasks
@Sacha0
Copy link
Member

Sacha0 commented Feb 9, 2022

(Assigned to Pete at Pete's request :).)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment