Fixing Usage of session after free
If hsa_shut_down() is not called from the application then we may still have async calls back
to the rocprofiler to use session parameters, thats why we need to leak the session up till
this is fixed in the ROCR-Runtime
Change-Id: Ia8fcdaa859815d88a272296770d702968132e3e6
[ROCm/rocprofiler commit: c9b5d73ca8]
Šī revīzija ir iekļauta:
revīziju iesūtīja
Ammar Elwazir
vecāks
1e6d394c7a
revīzija
c0bc40fd5d
@@ -428,9 +428,13 @@ void finish() {
|
||||
rocprofiler::TraceBufferBase::FlushAll();
|
||||
CHECK_ROCPROFILER(rocprofiler_terminate_session(session_id));
|
||||
}
|
||||
if (session_id.handle > 0) {
|
||||
CHECK_ROCPROFILER(rocprofiler_destroy_session(session_id));
|
||||
}
|
||||
// If hsa_shut_down() is not called from the application then we may still have async calls back
|
||||
// to the rocprofiler to use session parameters, thats why we need to leak the session up till
|
||||
// this is fixed in the ROCR-Runtime
|
||||
|
||||
// if (session_id.handle > 0) {
|
||||
// CHECK_ROCPROFILER(rocprofiler_destroy_session(session_id));
|
||||
// }
|
||||
}
|
||||
|
||||
static bool env_var_search(std::string& s) {
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user