I don't understand why the program just crashs wit...
# kotlin-native
q
I don't understand why the program just crashs with the segmentation fault (core dumped) but if I comment out line 18 (
set_response(res)
), it would work. It does nothing except passing the response pointer around.
Back trace
o
Could you try
initRuntimeIfNeeded
on entry to the callback?
q
Thank you for saving the day again. I just read about it on Github. Added
initRuntimeIfNeeded()
and move
x
out of the
memScope {}
block. Now it is serving some JSON!