菜鸟教程小白 发表于 2022-12-12 20:41:22

ios - 每个堆栈跟踪行末尾的数字是什么意思?


                                            <p><p>我正在检查一些 Xcode 崩溃日志,我想知道每行末尾的数字意味着:</p>

<pre><code>0 Powercents 0x000781de testflight_backtrace + 142
1 Powercents 0x00078d6c TFSignalHandler + 212
2 libsystem_c.dylib 0x319937ec _sigtramp + 48
3 libsystem_c.dylib 0x3198920e pthread_kill + 54
4 libsystem_c.dylib 0x3198229e abort + 94
5 AppSupport 0x35f70c2e abortAfterPassingIntegrityCheck + 38
6 AppSupport 0x35f70ee6 runIntegrityCheckAndAbort + 526
7 AppSupport 0x35f7102c checkResultWithStatement + 120
8 AppSupport 0x35f72a12 _connectAndCheckVersion + 1058
9 AppSupport 0x35f72ab6 CPSqliteDatabaseConnectionForWriting + 42
10 AppSupport 0x35f72b8c CPSqliteDatabaseRegisterFunction + 20
11 AddressBook 0x345523f6 ABCDBContextCreateWithPathAndAddressBook + 214
12 AddressBook 0x34546428 ABCCreateAddressBookWithDatabaseDirectoryAndForceInProcessMigrationInProcessLinkingAndResetSortKeys + 232
13 AddressBook 0x34554cd6 ABAddressBookCreate + 14
14 TextInput 0x377981c4 _ZN2KB45fill_with_matchable_strings_from_address_bookERNS_7HashmapINS_6StringEbEE + 16
15 TextInput 0x3779edf4 _ZN2KB21DynamicDictionaryImpl28background_load_address_bookERKNS_16StaticDictionaryE + 200
16 TextInput 0x3779f72e _ZN2KBL14BackgroundLoadEPv + 278
17 libsystem_c.dylib 0x3194a734 _pthread_start + 320
18 libsystem_c.dylib 0x3194a5ef thread_start + 7
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>它们是机器码偏移量</p>

<p>例如在这张图片中,</p>

<ul>
<li><code>libsystem_kernel.dylib mach_msg</code>的机器码从地址<code>0x18474f054</code>开始。</li>
<li><code>libsystem_kernel.dylib mach_msg + 68</code>,如你所见,这里是调用<code>mach_msg_trap</code>的地方,<code>mach_msg_trap</code>的地址是<code>0x18474f21c</code>,</li>
<li><code>libsystem_kernel.dylib mach_msg + 72</code>是断点停止的地方,等于<code>0x18474f054 + 0x72</code></li>
</ul>

<p> <a href="/image/Z7Ibw.png" rel="noreferrer noopener nofollow"><img src="/image/Z7Ibw.png" alt="enter image description here"/></a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 每个堆栈跟踪行末尾的数字是什么意思?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/10398264/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/10398264/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 每个堆栈跟踪行末尾的数字是什么意思?