Skip to content

Instantly share code, notes, and snippets.

@ddribin
Created July 10, 2010 00:31
Show Gist options
  • Save ddribin/470280 to your computer and use it in GitHub Desktop.
Save ddribin/470280 to your computer and use it in GitHub Desktop.
ZeroingWeakRef(54051) malloc: recording malloc stacks to disk using standard recorder
ZeroingWeakRef(54051) malloc: stack logging compaction turned off; size of log files on disk can increase rapidly
ZeroingWeakRef(54051) malloc: stack logs deleted from /tmp/stack-logs.54051.arch.y6uZul.index
ZeroingWeakRef(54051) malloc: stack logs being written into /tmp/stack-logs.54051.ZeroingWeakRef.YizJXG.index
2010-07-09 19:30:24.199 ZeroingWeakRef[54051:a0b] obj is <NSObject: 0x10010c560>
2010-07-09 19:30:24.206 ZeroingWeakRef[54051:a0b] Creating weak ref
2010-07-09 19:30:24.208 ZeroingWeakRef[54051:a0b] obj: <NSObject_MAZeroingWeakRefSubclass: 0x10010c560> ref: <MAZeroingWeakRef_MAZeroingWeakRefSubclass: 0x1001102a0 -> <NSObject_MAZeroingWeakRefSubclass: 0x10010c560>> ref2: <MAZeroingWeakRef: 0x100111c90 -> <MAZeroingWeakRef_MAZeroingWeakRefSubclass: 0x1001102a0 -> <NSObject_MAZeroingWeakRefSubclass: 0x10010c560>>>
2010-07-09 19:30:24.209 ZeroingWeakRef[54051:a0b] Releasing obj
2010-07-09 19:30:24.210 ZeroingWeakRef[54051:a0b] ref: <MAZeroingWeakRef_MAZeroingWeakRefSubclass: 0x1001102a0 -> <NSObject_MAZeroingWeakRefSubclass: 0x10010c560>> ref2: <MAZeroingWeakRef: 0x100111c90 -> <MAZeroingWeakRef_MAZeroingWeakRefSubclass: 0x1001102a0 -> <NSObject_MAZeroingWeakRefSubclass: 0x10010c560>>>
2010-07-09 19:30:24.211 ZeroingWeakRef[54051:a0b] ref2: <MAZeroingWeakRef: 0x100111c90 -> (null)>
2010-07-09 19:30:24.213 ZeroingWeakRef[54051:a0b] array: (
)
ZeroingWeakRef(54051) malloc: *** error for object 0x100112c70: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
(gdb) info malloc-history 0x100112c70
Alloc: Block address: 0x0000000100112c70 length: 128
Stack - pthread: 0x7fff708efc20 number of frames: 3
0: 0x7fff83ef4f2e in malloc_zone_malloc
1: 0x7fff83ef3208 in malloc
2: 0x1000016b0 in start
(gdb) bt
#0 0x00007fff83fcd491 in malloc_error_break ()
#1 0x00007fff83fce5e8 in szone_error ()
#2 0x00007fff83ef7fa2 in szone_free_definite_size ()
#3 0x00007fff870dd90d in CFLocaleCreateLocaleIdentifierFromComponents ()
#4 0x00007fff870dd50e in __CFCalendarCreateUCalendar ()
#5 0x00007fff870dd3a4 in CFCalendarCreateWithIdentifier ()
#6 0x00007fff870f2356 in __CFLogCString ()
#7 0x00007fff870f1fab in _CFLogvEx ()
#8 0x00007fff8807735f in NSLogv ()
#9 0x00007fff880772f7 in NSLog ()
#10 0x0000000100001af1 in main (argc=1, argv=0x7fff5fbff338) at main.m:37
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment