无法追踪的奇怪 GDB 错误 [英] strange GDB error unable to trace

查看:21
本文介绍了无法追踪的奇怪 GDB 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am getting this strange error in gdb and i'm unable to trace the exact line of code to trace the bug. Does someone knows about this type of bug? Here is what i get in 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) 

推荐答案

我已经找到了问题的解决方案.问题是由于视图控制器.视图控制器被释放,然后在方法被调用之后.但是奇怪的 gdb 并没有显示任何关于 viewController relese 的信息......打开 NSZombie 也没有帮助.

I've got the solution to the problem. The problem was due to a view Controller. The view controller was released and then after the method was called. But strange gdb didn't show anything about viewController relese....Neither turning on NSZombie helped.

这篇关于无法追踪的奇怪 GDB 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆