Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
129 views
in Technique[技术] by (71.8m points)

Kotlin-Native crash call stack miss a frame stack before 'objc2kotlin' function in iOS application

My team uses Kotlin-Native to develop our iOS APP.

When a crash happend in kotlin, the crash call stack is not complete. But when I debug the app in XCode, the crash call stack is complete.

When I disconnect XCode and trigger the same crash in the app, and then connect to XCode the view crash log (XCode > Window > Devide and Simulator > view device logs), I find that one stack frame disappears, the red line in the image below:

the red line stack frame disappear in crash log

My team found out the 'objc2kotlin' function has a bug: The assembly code of objc2kotlin doesn't change the value of fp(frame pointer, x29) after pushing lr(link register, x30) and fp(frame pointer, x29).

Hope Kotlin-Native team fix the bug quickly, thank you very much.

question from:https://stackoverflow.com/questions/65882678/kotlin-native-crash-call-stack-miss-a-frame-stack-before-objc2kotlin-function

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...