Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

strange GDB error unable to trace

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) 
like image 976
Rahul Vyas Avatar asked Jan 31 '26 12:01

Rahul Vyas


1 Answers

You can try the following in order to see where the faulty CALayer was allocated:

(gdb) info malloc 0x911c2a0

I don't know if gdb plays well with zombie objects, but obviously, it seems that it has some limitations.

like image 84
Laurent Etiemble Avatar answered Feb 03 '26 07:02

Laurent Etiemble