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 thesample_prof_start
. As a result, subsequent calls tosample_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.