Fixed SEGFAULT due to perf buffer overflow if lost_cb unset
This fixes a SEGFAULT in the underlying libbcc when no lost_cb is set. This occurs when the perf buffer is full and the lost_cb is called. libbcc expects a NULL pointer as lost_cb to trigger its internal lost message. This fixes the bug by providing an appropriate NULL pointer when lost_cb is unset.
Showing
Please register or sign in to comment