You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running make blackbox_ubsan_crash_test on rocksdb v7.2.2 results in the following errors:
monitoring/perf_step_timer.h:19:31: runtime error: load of null pointer of type 'PerfLevel'
file/writable_file_writer.cc:523:9: runtime error: member access within null pointer of type 'struct IOStatsContext'
seems like these variables are not initialized when reached.
accessing the members through a getter instead of directly fixes these errors. e.g. GetPerfLevel() instead of perf_level directly.
perf_context is declared and defined in a very similar way (though with thread_local instead of __thread) but no error is raised from it. thats probably just a coincidence where the first access to perf_context is through get_perf_context() and the rest already see an initialized member.
Steps to reproduce the behavior
make blackbox_ubsan_crash_test
The text was updated successfully, but these errors were encountered:
running make blackbox_ubsan_crash_test on rocksdb v7.2.2 results in the following errors:
monitoring/perf_step_timer.h:19:31: runtime error: load of null pointer of type 'PerfLevel'
file/writable_file_writer.cc:523:9: runtime error: member access within null pointer of type 'struct IOStatsContext'
seems like these variables are not initialized when reached.
accessing the members through a getter instead of directly fixes these errors. e.g. GetPerfLevel() instead of perf_level directly.
perf_context is declared and defined in a very similar way (though with thread_local instead of __thread) but no error is raised from it. thats probably just a coincidence where the first access to perf_context is through get_perf_context() and the rest already see an initialized member.
Steps to reproduce the behavior
make blackbox_ubsan_crash_test
The text was updated successfully, but these errors were encountered: