fn must be declared static. Otherwise it's value is not retained between invocations of _call_coz_get_counter. When _initialized is set to 1 (and is correctly retained across invocations), but fn is not retained, we try to invoke it anyway and SEGFAULT.
fn must be declared static. Otherwise it's value is not retained between invocations of _call_coz_get_counter. When _initialized is set to 1 (and is correctly retained across invocations), but fn is not retained, we try to invoke it anyway and SEGFAULT.

emeryberger/coz,emeryberger/coz,emeryberger/coz