Skip to content

Fix crash when enabling profiler#316

Merged
dvander merged 1 commit intoalliedmodders:masterfrom
peace-maker:profiling_scope_crash
Feb 5, 2019
Merged

Fix crash when enabling profiler#316
dvander merged 1 commit intoalliedmodders:masterfrom
peace-maker:profiling_scope_crash

Conversation

@peace-maker
Copy link
Member

When a plugin is currently executing code while the profiler is being activated, the VM tried to leave a profiling scope it never entered.

sm_rcon sm prof start vprof would crash the server.

https://crash.limetech.org/lgolraffyt46

When a plugin is currently executing code while the profiler is being activated, the VM tried to leave a profiling scope it never entered.

`sm_rcon sm prof start vprof` would crash the server.
@peace-maker peace-maker force-pushed the profiling_scope_crash branch from fc08193 to 0675bac Compare February 4, 2019 15:20
@dvander dvander merged commit 84de066 into alliedmodders:master Feb 5, 2019
@peace-maker peace-maker deleted the profiling_scope_crash branch February 5, 2019 08:01
peace-maker added a commit to peace-maker/sourcepawn that referenced this pull request Jul 15, 2019
The crash fix in alliedmodders#316 didn't initialize the member variable, so it doesn't really fix the issue. It seems I just got tricked during testing with debug builds.
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