Skip to content

Fix event profiler segfault #322

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

Closed
wants to merge 2 commits into from
Closed

Conversation

gdankel
Copy link
Contributor

@gdankel gdankel commented Jun 25, 2021

Summary:
The change to lazy initialization of the ConfigLoader exposed an issue in the EventProfiler where a nullptr on demand configuration is dereferenced.

On-demand configuration should only be accessed if the profiler is actually actively handling an on-demand request.

Differential Revision: D29378839

Phabricator CommitParserBot and others added 2 commits June 24, 2021 17:00
Summary:
Pull Request resolved: pytorch#309

First cut for api to register profilers
* Moved the profiler to a unique_ptr so it is owned by ActivityProfiler object
* Use of factory style of initializers on libkineto API

Reviewed By: gdankel

Differential Revision: D28418449

fbshipit-source-id: b0f1f377a2ea344c3da681f04c14aa6e50e2d77b
Summary:
The change to lazy initialization of the ConfigLoader exposed an issue in the EventProfiler where a nullptr on demand configuration is dereferenced.

On-demand configuration should only be accessed if the profiler is actually actively handling an on-demand request.

Differential Revision: D29378839

fbshipit-source-id: a3ccdeb166761d23334a9fc77d54ac65f04ecb39
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D29378839

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 683604e.

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

Successfully merging this pull request may close these issues.

2 participants