美文网首页
2018-08-06

2018-08-06

作者: Gradlyarn | 来源:发表于2018-08-06 10:35 被阅读13次
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    @autoreleasepool {
          Person *p1 = [[[Person alloc] init] autorelease] ;
    }
}

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  * frame #0: 0x0000000101c5289e testDemo`-[Person dealloc](self=0x000060c00000b670, _cmd="dealloc") at Person.m:15
    frame #1: 0x0000000102573a2e libobjc.A.dylib`objc_object::sidetable_release(bool) + 202
    frame #2: 0x0000000102574178 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 860
    frame #3: 0x0000000101c527f2 testDemo`-[ViewController touchesBegan:withEvent:](self=0x00007fc94d506fb0, _cmd="touchesBegan:withEvent:", touches=1 element, event=class name = UITouchesEvent) at ViewController.m:56
    frame #4: 0x000000010357afcd UIKit`forwardTouchMethod + 347
    frame #5: 0x000000010357ae61 UIKit`-[UIResponder touchesBegan:withEvent:] + 49
    frame #6: 0x00000001033bf562 UIKit`-[UIWindow _sendTouchesForEvent:] + 2130
    frame #7: 0x00000001033c0f2a UIKit`-[UIWindow sendEvent:] + 4124
    frame #8: 0x0000000103364365 UIKit`-[UIApplication sendEvent:] + 352
    frame #9: 0x0000000103cb0a1d UIKit`__dispatchPreprocessedEventFromEventQueue + 2809
    frame #10: 0x0000000103cb3672 UIKit`__handleEventQueueInternal + 5957
    frame #11: 0x0000000102e6d101 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #12: 0x0000000102f0cf71 CoreFoundation`__CFRunLoopDoSource0 + 81
    frame #13: 0x0000000102e51a19 CoreFoundation`__CFRunLoopDoSources0 + 185
    frame #14: 0x0000000102e50fff CoreFoundation`__CFRunLoopRun + 1279
    frame #15: 0x0000000102e50889 CoreFoundation`CFRunLoopRunSpecific + 409
    frame #16: 0x0000000107edb9c6 GraphicsServices`GSEventRunModal + 62
    frame #17: 0x00000001033485d6 UIKit`UIApplicationMain + 159
    frame #18: 0x0000000101c52863 testDemo`main(argc=1, argv=0x00007fff5dfad150) at main.m:14
    frame #19: 0x00000001068f2d81 libdyld.dylib`start + 1
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    Person *p1 = [[[Person alloc] init] autorelease];
}

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  * frame #0: 0x000000010e15089e testDemo`-[Person dealloc](self=0x000060800001a1b0, _cmd="dealloc") at Person.m:15
    frame #1: 0x000000010ea71a2e libobjc.A.dylib`objc_object::sidetable_release(bool) + 202
    frame #2: 0x000000010ea72178 libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 860
    frame #3: 0x00000001101b1722 UIKit`__handleEventQueueInternal + 6133
    frame #4: 0x000000010f36b101 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #5: 0x000000010f40af71 CoreFoundation`__CFRunLoopDoSource0 + 81
    frame #6: 0x000000010f34fa19 CoreFoundation`__CFRunLoopDoSources0 + 185
    frame #7: 0x000000010f34efff CoreFoundation`__CFRunLoopRun + 1279
    frame #8: 0x000000010f34e889 CoreFoundation`CFRunLoopRunSpecific + 409
    frame #9: 0x00000001143d99c6 GraphicsServices`GSEventRunModal + 62
    frame #10: 0x000000010f8465d6 UIKit`UIApplicationMain + 159
    frame #11: 0x000000010e150863 testDemo`main(argc=1, argv=0x00007fff51aaf150) at main.m:14
    frame #12: 0x0000000112df0d81 libdyld.dylib`start + 1

相关文章

网友评论

      本文标题:2018-08-06

      本文链接:https://www.haomeiwen.com/subject/hbswvftx.html