staticCFunction that compiles but doesn't execute

I have class method Base.initializeSignalHandler which calls init_signal_handler which takes a staticCFunction lambda, however the program compiles and executes, but doesn’t run init_signal_handler.

Skärmavbild 2022-04-11 kl. 21.48.44

Skärmavbild 2022-04-11 kl. 21.49.28

Skärmavbild 2022-04-11 kl. 21.48.18

Can anyone give me a direction where to check for error.

My exact understanding of

function - must be static , i.e. an (unbound) reference to a Kotlin function or a closure which doesn’t capture any variable

is not clear, is this the fault maybe?