Open mkuron opened 11 years ago
sudo gdb /usr/bin/python2.7
(gdb) run predicate_installer.py '"QuickTimePlayerLegacyContentHandler" IN tags'
(gdb) c
[...log output...]
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000018
0x00007fff98d474af in objc_msgSend_vtable3 ()
(gdb) p/x $rdi
$1 = 0x1
(gdb) p/x $rsi
$2 = 0x100479c40
(gdb) p/x $rdx
$3 = 0x7fff5fbfd9f0
(gdb) bt
#0 0x00007fff98d474af in objc_msgSend_vtable3 ()
#1 0x00000001004570cb in pythonify_c_value ()
#2 0x0000000100445684 in PyObjCFFI_MakeClosure ()
#3 0x00007fff959788a6 in ffi_closure_unix64_inner ()
#4 0x00007fff95977f66 in ffi_closure_unix64 ()
#5 0x00007fff93309d3a in __NSThreadPerformPerform ()
#6 0x00007fff8e3c6b31 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#7 0x00007fff8e3c6455 in __CFRunLoopDoSources0 ()
#8 0x00007fff8e3e97f5 in __CFRunLoopRun ()
#9 0x00007fff8e3e90e2 in CFRunLoopRunSpecific ()
#10 0x00007fff93311f5e in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] ()
#11 0x00007fff95977de4 in ffi_call_unix64 ()
#12 0x0000000105b29ab0 in ?? ()
(gdb) x/16xw 0x100479c40
0x100479c40: 0x98d47480 0x00007fff 0x970c924d 0x00007fff
0x100479c50: 0x7e3a7e00 0x00007fff 0x7ecfd840 0x00007fff
0x100479c60: 0x00479de8 0x00000001 0x00479e60 0x00000001
0x100479c70: 0x7d6e59d8 0x00007fff 0x7d6e5820 0x00007fff
(gdb) x/16xw 0x7fff5fbfd9f0
0x7fff5fbfd9f0: 0x00000001 0x00000000 0x959787d7 0x00007fff
0x7fff5fbfda00: 0x06432980 0x00000001 0x959787d7 0x00007fff
0x7fff5fbfda10: 0x071cc827 0x00000001 0x959787d7 0x00007fff
0x7fff5fbfda20: 0x002e1fd0 0x00000001 0x959787d7 0x00007fff
The script crashes when the delegate returns. Everything still works fine though.