main-file-name" "code_2.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=none" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-...
(gdb) shell malloc_history 3939 0xa4e10 And there it is: the double-released object was allocated with [NSDatadataWithBytes:length:] in the function main()! I love you, Cocoa! Another useful breakpoint is "szone_error"- this stops the debugger where you get the "Incorrect checksum for ...
(gdb) shell malloc_history 3939 0xa4e10 1. And there it is: the double-released object was allocated with [NSData dataWithBytes:length:] in the function main()! I love you, Cocoa! Another useful breakpoint is "szone_error"- this stops the debugger where you get the "I...
Incidentally, you can inspect the values of the client's command arguments at any time, with a simplegdbinvocation. The arguments are of typerobj, which has a fieldptrthat is a pointer to the actual value in memory. Since in oursetcase these are strings, we can inspect them by typecast...
if you run under gdb, you may enter: (gdb) shell malloc_history 3939 0xa4e10 And there it is: the double-released object was allocated with [NSDatadataWithBytes:length:] in the function main()! I love you, Cocoa! Another useful breakpoint is "szone_error"- this stops the debugger wh...
(gdb) shell malloc_history 3939 0xa4e10 1. And there it is: the double-released object was allocated with [NSData dataWithBytes:length:] in the function main()! I love you, Cocoa! Another useful breakpoint is "szone_error"- this stops the debugger where you get the "...