Skip to content

ref(profiling): unref timer #12340

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
Jun 4, 2024
Merged

ref(profiling): unref timer #12340

merged 2 commits into from
Jun 4, 2024

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Jun 3, 2024

Tentative fix for #12169

I did not generate a core dump, but by looking at the crash, it seemed like it the segfault was happening after the bindings were required and the code after the require statement had already ran, which hints at an issue with the measurement collection loop.

This is a small change, but it ensures that the reference to the timer is not maintained and can be properly collected, as well as adds a missing nullptr check.

@JonasBa JonasBa force-pushed the jb/fix/profiling-segfault branch from d6c3332 to 78ead06 Compare June 3, 2024 23:59
@JonasBa JonasBa merged commit 9919790 into develop Jun 4, 2024
105 checks passed
@JonasBa JonasBa deleted the jb/fix/profiling-segfault branch June 4, 2024 13:09
billyvg pushed a commit that referenced this pull request Jun 10, 2024
Tentative fix for
#12169

I did not generate a core dump, but by looking at the crash, it seemed
like it the segfault was happening after the bindings were required and
the code after the require statement had already ran, which hints at an
issue with the measurement collection loop.

This is a small change, but it ensures that the reference to the timer
is not maintained and can be properly collected, as well as adds a
missing nullptr check.
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.

3 participants