So after quite a few headaches I finally managed to build Kstars and run it with lldb. Funnily enough the first time I ran it it didn't crash (it happens once in a blue moon)
This is a consistent crash in every mac with sonoma I tried (I don't have access to a mac without sonoma installed)
Does anyone have any insight on what might be causing this?