Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

系统库能符号化吗 #1

Open
mynameissujie opened this issue Feb 22, 2021 · 10 comments
Open

系统库能符号化吗 #1

mynameissujie opened this issue Feb 22, 2021 · 10 comments

Comments

@mynameissujie
Copy link

No description provided.

@KorolZhu
Copy link
Owner

系统库应该可以吧,还没尝试解析过

@mynameissujie
Copy link
Author

我看了下 都没有系统库相关解析的资料。symbolicatecrash只能解析官方.crash文件,我尝试把你生成的.crash添加一些参数变成官方的,但是弄symbolicatecrash解析还是有问题。
//atos -o ~/Library/Developer/Xcode/iOS\ DeviceSupport/13.3\ (17C54)/Symbols/usr/lib/system/libsystem_platform.dylib -arch arm64 -l 1963BC000 1963C25BC dylib怎么跟系统的UIKitCore、CoreFoundation关联。要不然这样也可以解析出来吗?

@mynameissujie
Copy link
Author

mynameissujie commented Feb 23, 2021

xcrun atos -arch arm64 -o /Users/xx/Library/Developer/Xcode/iOS\ DeviceSupport/14.3\ (18C66)\ arm64e/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation -l 0x1985c4000 0x000000019866576c

atos cannot load symbols for the file /Users/xx/Library/Developer/Xcode/iOS DeviceSupport/14.3 (18C66) arm64e/Symbols/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation for architecture arm64.

17 CoreFoundation 0x000000019866576c 0x1985c4000 + 661356
这个crash的CoreFoundation竟然解析不出来

@KorolZhu
Copy link
Owner

matrix我现在只会在特定的情况下给一些特定的用户安装,比如说用户反馈卡顿,然后上传文件,手动来解析,得到一些应用相关的初步堆栈,就可以分析问题,所以系统库的解析还没有去看过。

@mynameissujie
Copy link
Author

好的 谢谢

@KorolZhu
Copy link
Owner

你是在哪里上班的啊,考虑换工作吗

@mynameissujie
Copy link
Author

尝试解析出来了,要写脚本了

@mynameissujie
Copy link
Author

老铁方便加个好友交流吗

@KorolZhu
Copy link
Owner

13632557538

@chenyu1520
Copy link

chenyu1520 commented Aug 17, 2022

系统库可以用python脚本解析,部分代码如下:

fullSDKDir = /Users/xxxx/Library/Developer/Xcode/iOS\ DeviceSupport/15.5\ \(19F77\)\ arm64e/Symbols//System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
atos_result = os.popen(
f"atos \
-o {fullSDKDir} \
-l {list_i[3]} \
{list_i[2]}").read()
new_line_list = str(i.split('0x')[0]) + str(atos_result)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants