https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
n

napperley

01/09/2023, 12:35 AM
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

ephemient

01/09/2023, 9:11 PM
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

napperley

01/09/2023, 10:04 PM
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) 😦 .
5 Views