Skip to content

Conversation

@dryabov
Copy link
Contributor

@dryabov dryabov commented May 12, 2020

There was no check for g->enabled neither in the sample_prof_start. As a result, subsequent calls to sample_prof_startmay result in Segmentation fault (one thread is cancelled only, and another is trying to access memory freed in shutdown function).

PS. My internal perfectionist could not ignore this. I apologize for distracting you with such an unnecessary (in most cases) patch.

There was no check for `g->enabled` neither in the `sample_prof_start`. As a result, subsequent calls to `sample_prof_start`may result in Segmentation fault (one thread is cancelled only, and another is trying to access memory freed in shutdown function).

PS. My internal perfectionist could not ignore this. I apologize for distracting you with such an unnecessary (in most cases) patch.
"thelessification"

Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
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