我在 gdb 中遇到这个奇怪的错误,我无法跟踪确切的代码行来跟踪错误。有人知道这种类型的错误吗?这是我在 gdb 中得到的

*** -[CALayer sublayers]: message sent to deallocated instance 0x911c2a0
(gdb) po 0x911c2a0
Program received signal SIGTRAP, Trace/breakpoint trap.
0x020993a7 in ___forwarding___ ()
The program being debugged was signaled while in a function called from GDB.
GDB has restored the context to what it was before the call.
To change this behavior use "set unwindonsignal off"
Evaluation of the expression containing the function (_NSPrintForDebugger) will be   abandoned.
(gdb) info symbol 0x911c2a0
No symbol matches 0x911c2a0.
(gdb)

最佳答案

您可以尝试以下操作以查看故障 CALayer 的分配位置:

(gdb) info malloc 0x911c2a0

我不知道 gdb 与僵尸对象是否兼容,但显然,它似乎有一些局限性。

关于objective-c - 奇怪的 GDB 错误无法追踪,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2910861/

10-14 20:53
查看更多