Docs/guide about debugging crashes for java developers

未關閉
#683 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
52/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
java, swift
領域
documentation

研究方向

從 issue 中的當機輸出和提到的 swift demangle 命令開始;payload 中沒有指定任何文件檔案或測試。指南應說明 Java 開發者如何調查 Swift 當機並對原生堆疊框架進行 demangle,同時使用提供的範例作為完成指南的參考。

由索引模型根據 Issue 內容生成。

描述

documentation

It's important to teach how java developers can debug crashes in swift.

E.g. a crash


     Stack: [0x000000016d7c8000,0x000000016d9cb000],  sp=0x000000016d9c5d10,  free space=2039k
     Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
     V  [libjvm.dylib+0x579b14]  jni_GetArrayLength+0x108
     C  [libSwiftJava.dylib+0x1a1dc4]  $sSa16SwiftJavaJNICoreAA0B5ValueRzlE7fromJNI2inSayxGSvSg_SpySPySo18JNINativeInterfaceVGSgGtcfC+0x118
     C  [libSwiftJava.dylib+0x1a4c24]  $sSayxG16SwiftJavaJNICore0B5ValueA2bCRzlAbCP7fromJNI2inx7JNITypeQz_SpySPySo18JNINativeInterfaceVGSgGtcfCTW+0x20
     C  [libSwiftJava.dylib+0x1a277c]  $sSa16SwiftJavaJNICoreAA0B5ValueRzlE7fromJNI2inSayxGSvSg_SpySPySo18JNINativeInterfaceVGSgGtcfcx7JNITypeQzXEfU2_+0xb8
     C  [libSwiftJava.dylib+0x1a27bc]  $sSa16SwiftJavaJNICoreAA0B5ValueRzlE7fromJNI2inSayxGSvSg_SpySPySo18JNINativeInterfaceVGSgGtcfcx7JNITypeQzXEfU2_TA+0x2c
     C  [libSwiftJava.dylib+0x1988]  $sSlsE3mapySayqd__Gqd__7ElementQzqd_0_YKXEqd_0_YKs5ErrorRd_0_r0_lF+0x400
     C  [libSwiftJava.dylib+0x1a2150]  $sSa16SwiftJavaJNICoreAA0B5ValueRzlE7fromJNI2inSayxGSvSg_SpySPySo18JNINativeInterfaceVGSgGtcfC+0x4a4
     C  [libMySwiftLibrary.dylib+0x36670]
     $s14MySwiftLibrary023Java_com_example_swift_abC29__00024nestedByteArray___3_3B11environment9thisClass5arraySvSgSpySPySo18JNINativeInterfaceVGSgGSg_SvAFtF+0xe8
     C  [libMySwiftLibrary.dylib+0x36580]  Java_com_example_swift_MySwiftLibrary__00024nestedByteArray___3_3B+0xc
     j  com.example.swift.MySwiftLibrary.$nestedByteArray([[B)[[B+0
     j  com.example.swift.MySwiftLibrary.nestedByteArray([[B)[[B+9
     j  com.example.swift.ArraysTest.lambda$nestedByteArray_null$1()V+24
     j  com.example.swift.ArraysTest$$Lambda+0x0000060001166dc0.execute()V+0
     j  org.junit.jupiter.api.AssertThrows.assertThrows(Ljava/lang/Class;Lorg/junit/jupiter/api/function/Executable;Ljava/lang/Object;)Ljava/lang/Throwable;+1
     j  org.junit.jupiter.api.AssertThrows.assertThrows(Ljava/lang/Class;Lorg/junit/jupiter/api/function/Executable;)Ljava/lang/Throwable;+3
     j  org.junit.jupiter.api.Assertions.assertThrows(Ljava/lang/Class;Lorg/junit/jupiter/api/function/Executable;)Ljava/lang/Throwable;+2
     j  com.example.swift.ArraysTest.nestedByteArray_null()V+18

can be demangled using cat ... | swift demangle but java developers may not know about this etc.

主要語言
Swift
星號
1.3k
分支
129
平均合併
23 小時 32 分鐘
30 天內合併 PR
8

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

swiftlang/swift-java 的其他 Issue

查看 swiftlang/swift-java 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。