Every few launches of a Kotlin Native program an i...
# kotlin-native
n
Every few launches of a Kotlin Native program an intermittent seg fault occurs. Not every launch of the program causes a seg fault. With the seg fault I am trying to determine what is causing it. One of the C library dependencies (LVGL and LV Drivers) is most likely causing the seg fault to occur. • Are there any techniques for effectively identifying the cause of a seg fault with a Kotlin Native program (using the new memory model)? • What is the current method for debugging memory issues with a Kotlin Native program (using the new memory model)?
e
get a core dump, open with gdb? at least that's my usual approach for debugging sporadic segfaults, haven't had to do it with K/N yet
n
I was hoping that Kotlin Native had something available that would make it easier to troubleshoot memory issues. Alas, there isn't anything available apart from gdb (isn't Kotlin friendly) 😦 .