TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8k stars 1.29k forks source link

Layer backed subnode in ASCellNode causes memory related crash #621

Open njdehoog opened 6 years ago

njdehoog commented 6 years ago

For some reason defining a subnode of ASCellNode as being layer backed causes my app to sometimes crash when the view controller displaying those nodes is deallocated.

I'm including a sample project to demonstrate the issue: Sample.zip

In order to reproduce the crash, you need to repeatedly present and dismiss the child view controller. At some point you will encounter some kind of memory issue, which sometimes includes the following error being logged to the console:

malloc: *** error for object 0x104710240: pointer being freed was not allocated

As far as I can tell, setting isLayerBacked to false in the BadgeNode prevents this crash. I have no idea why.

jerryga commented 6 years ago

hi,guys, same issue.

nguyenhuy commented 6 years ago

@njdehoog Thanks for reporting. Could you please profile it in Zoombies mode and share some more details, like what type of object did that pointer point to previously? What object does it belong to?

nguyenhuy commented 6 years ago

Is this related to https://github.com/TextureGroup/Texture/issues/544?

njdehoog commented 6 years ago

@nguyenhuy not sure if it's related to #544. it is the same error message, but program execution seems to halt in a different spot there.

I ran the project in Zombies mode, but that didn't reveal any issues. Subsequently I tried the Address Sanitizer, and that did reveal some more information.

The address sanitizer reports that the same memory is freed twice: screen shot 2017-10-19 at 10 54 25

The memory in question is allocated here: screen shot 2017-10-19 at 11 00 06

This is the address sanitizer output from the console:

=================================================================
==317==ERROR: AddressSanitizer: attempting double-free on 0x00014e21ec40 in thread T11:
    #0 0x101156de7 in wrap_free (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4ede7)
    #1 0x18a14676b in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x11776b)
    #2 0x1856a2137 in <redacted> (/usr/lib/libobjc.A.dylib:arm64+0x26137)
    #3 0x1025ec4b3 in __28-[ASDeallocQueue threadMain]_block_invoke (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x4344b3)
    #4 0x18611899b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xea99b)
    #5 0x1861186bf in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xea6bf)
    #6 0x186117ebf in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe9ebf)
    #7 0x186115aa7 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe7aa7)
    #8 0x1860362d7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x82d7)
    #9 0x18608512b in CFRunLoopRun (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x5712b)
2017-10-19 10:31:50.097200+0200 Sample[317:30567] [Node] Propagating new traits for <Sample.ChildViewController: 0x146aebf80>: { userInterfaceIdiom = Phone; containerSize = {375, 667}; horizontalSizeClass = Compact; verticalSizeClass = Regular; forceTouchCapability = Available }
    #10 0x1025eba3f in -[ASDeallocQueue threadMain] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x433a3f)
    #11 0x186b5f85f in <redacted> (/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x10d85f)
    #12 0x185d9c32b in <redacted> (/usr/lib/system/libsystem_pthread.dylib:arm64+0x232b)
2017-10-19 10:31:50.097872+0200 Sample[317:30567] [Node] View controller <Sample.ChildViewController: 0x146aebf80> will appear
    #13 0x185d9c1f7 in _pthread_start (/usr/lib/system/libsystem_pthread.dylib:arm64+0x21f7)
    #14 0x185d9ac37 in thread_start (/usr/lib/system/libsystem_pthread.dylib:arm64+0xc37)

2017-10-19 10:31:50.098350+0200 Sample[317:30567] [Collection] performBatchUpdates <ASTableNode: 0x147c56880> {  }
2017-10-19 10:31:50.098597+0200 Sample[317:30567] [Collection] <ASTableView: 0x147fe9a80> Skipped update because load hasn't happened.
2017-10-19 10:31:50.098973+0200 Sample[317:30567] [Collection] Initial reloadData <ASTableNode: 0x147c56880>
2017-10-19 10:31:50.102950+0200 Sample[317:30567] [Collection] New content: { itemCounts = [ <S0: 3> ] }
0x00014e21ec40 is located 0 bytes inside of 280-byte region [0x00014e21ec40,0x00014e21ed58)
freed by thread T0 here:
    #0 0x101156de7 in wrap_free (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4ede7)
    #1 0x18a0e5fb3 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb6fb3)
    #2 0x18a07f053 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x50053)
    #3 0x18a0e627b in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb727b)
    #4 0x18a0e717f in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb817f)
    #5 0x1861178b7 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe98b7)
    #6 0x18611526f in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe726f)
    #7 0x18611582b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe782b)
    #8 0x1860362d7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x82d7)
    #9 0x187ec7f83 in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xaf83)
    #10 0x18f5e387f in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x7387f)
    #11 0x100e7671f in main (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Sample:arm64+0x10000e71f)
    #12 0x185b5a56b in <redacted> (/usr/lib/system/libdyld.dylib:arm64+0x156b)

previously allocated by thread T0 here:
    #0 0x101157707 in __sanitizer_mz_malloc (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4f707)
    #1 0x185cbebbb in malloc_zone_malloc (/usr/lib/system/libsystem_malloc.dylib:arm64+0xbbb)
    #2 0x18a146413 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x117413)
    #3 0x18f581adf in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x11adf)
    #4 0x18f5816bf in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x116bf)
    #5 0x18f58132f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x1132f)
    #6 0x102426a03 in -[ASDisplayNode _locked_viewToLoad] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x26ea03)
    #7 0x1024284eb in -[ASDisplayNode _locked_loadViewOrLayer] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x2704eb)
    #8 0x10242a1eb in -[ASDisplayNode view] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x2721eb)
    #9 0x1025d38f3 in -[ASRangeController configureContentView:forCellNode:] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x41b8f3)
    #10 0x10267deeb in -[ASTableView tableView:cellForRowAtIndexPath:] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x4c5eeb)
    #11 0x18f8b5473 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x345473)
    #12 0x18f8b59d7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x3459d7)
    #13 0x18f89566f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x32566f)
    #14 0x18f650f0f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xe0f0f)
    #15 0x102678b67 in -[ASTableView layoutSubviews] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x4c0b67)
    #16 0x18f57cfff in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xcfff)
    #17 0x18a14d0b3 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x11e0b3)
    #18 0x1021f96bf in -[_ASDisplayLayer layoutSublayers] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x416bf)
    #19 0x18a151193 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x122193)
    #20 0x18a0bff23 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x90f23)
    #21 0x18a0e633f in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb733f)
    #22 0x18a0e717f in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb817f)
    #23 0x1861178b7 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe98b7)
    #24 0x18611526f in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe726f)
    #25 0x18611582b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe782b)
    #26 0x1860362d7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x82d7)
    #27 0x187ec7f83 in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xaf83)
    #28 0x18f5e387f in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x7387f)
    #29 0x100e7671f in main (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Sample:arm64+0x10000e71f)

Thread T11 created by T0 here:
    #0 0x10114f707 in wrap_pthread_create (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x47707)
    #1 0x186a91a67 in <redacted> (/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x3fa67)
    #2 0x1025ecd37 in -[ASDeallocQueue init] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x434d37)
    #3 0x1025ead13 in __41+[ASDeallocQueue sharedDeallocationQueue]_block_invoke (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x432d13)
    #4 0x10383545b in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x145b)
    #5 0x10383617b in dispatch_once_f (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x217b)
    #6 0x1025eabb3 in +[ASDeallocQueue sharedDeallocationQueue] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x432bb3)
    #7 0x1024e6dbf in ASPerformBackgroundDeallocation (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x32edbf)
    #8 0x10281573b in -[ASViewController dealloc] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x65d73b)
    #9 0x18f7d7ec3 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x267ec3)
    #10 0x185b95a5f in _Block_release (/usr/lib/system/libsystem_blocks.dylib:arm64+0xa5f)
    #11 0x18f8635bb in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x2f35bb)
    #12 0x185682ef3 in <redacted> (/usr/lib/libobjc.A.dylib:arm64+0x6ef3)
    #13 0x185690637 in objc_destructInstance (/usr/lib/libobjc.A.dylib:arm64+0x14637)
    #14 0x18617d557 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x14f557)
    #15 0x186041997 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x13997)
    #16 0x1856a2137 in <redacted> (/usr/lib/libobjc.A.dylib:arm64+0x26137)
    #17 0x18603604f in _CFAutoreleasePoolPop (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x804f)
    #18 0x186115b03 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe7b03)
    #19 0x1860362d7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x82d7)
    #20 0x187ec7f83 in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xaf83)
    #21 0x18f5e387f in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x7387f)
    #22 0x100e7671f in main (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Sample:arm64+0x10000e71f)
    #23 0x185b5a56b in <redacted> (/usr/lib/system/libdyld.dylib:arm64+0x156b)

SUMMARY: AddressSanitizer: double-free (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4ede7) in wrap_free
2017-10-19 10:31:50.139275+0200 Sample[317:30690] =================================================================
2017-10-19 10:31:50.139322+0200 Sample[317:30690] ==317==ERROR: AddressSanitizer: attempting double-free on 0x00014e21ec40 in thread T11:
2017-10-19 10:31:50.139342+0200 Sample[317:30690]     #0 0x101156de7 in wrap_free (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4ede7)
2017-10-19 10:31:50.139360+0200 Sample[317:30690]     #1 0x18a14676b in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x11776b)
2017-10-19 10:31:50.139376+0200 Sample[317:30690]     #2 0x1856a2137 in <redacted> (/usr/lib/libobjc.A.dylib:arm64+0x26137)
2017-10-19 10:31:50.139393+0200 Sample[317:30690]     #3 0x1025ec4b3 in __28-[ASDeallocQueue threadMain]_block_invoke (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x4344b3)
2017-10-19 10:31:50.141019+0200 Sample[317:30690]     #4 0x18611899b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xea99b)
2017-10-19 10:31:50.141219+0200 Sample[317:30690]     #5 0x1861186bf in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xea6bf)
2017-10-19 10:31:50.141466+0200 Sample[317:30690]     #6 0x186117ebf in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe9ebf)
2017-10-19 10:31:50.141660+0200 Sample[317:30690]     #7 0x186115aa7 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe7aa7)
2017-10-19 10:31:50.141890+0200 Sample[317:30690]     #8 0x1860362d7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x82d7)
2017-10-19 10:31:50.142065+0200 Sample[317:30690]     #9 0x18608512b in CFRunLoopRun (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x5712b)
2017-10-19 10:31:50.142291+0200 Sample[317:30690]     #10 0x1025eba3f in -[ASDeallocQueue threadMain] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x433a3f)
2017-10-19 10:31:50.142708+0200 Sample[317:30690]     #11 0x186b5f85f in <redacted> (/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x10d85f)
2017-10-19 10:31:50.142897+0200 Sample[317:30690]     #12 0x185d9c32b in <redacted> (/usr/lib/system/libsystem_pthread.dylib:arm64+0x232b)
2017-10-19 10:31:50.143206+0200 Sample[317:30690]     #13 0x185d9c1f7 in _pthread_start (/usr/lib/system/libsystem_pthread.dylib:arm64+0x21f7)
2017-10-19 10:31:50.143545+0200 Sample[317:30690]     #14 0x185d9ac37 in thread_start (/usr/lib/system/libsystem_pthread.dylib:arm64+0xc37)
2017-10-19 10:31:50.143757+0200 Sample[317:30690] 
2017-10-19 10:31:50.143892+0200 Sample[317:30690] 0x00014e21ec40 is located 0 bytes inside of 280-byte region [0x00014e21ec40,0x00014e21ed58)
2017-10-19 10:31:50.144065+0200 Sample[317:30690] freed by thread T0 here:
2017-10-19 10:31:50.144208+0200 Sample[317:30690]     #0 0x101156de7 in wrap_free (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4ede7)
2017-10-19 10:31:50.144572+0200 Sample[317:30690]     #1 0x18a0e5fb3 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb6fb3)
2017-10-19 10:31:50.144972+0200 Sample[317:30690]     #2 0x18a07f053 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x50053)
2017-10-19 10:31:50.145123+0200 Sample[317:30690]     #3 0x18a0e627b in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb727b)
2017-10-19 10:31:50.145276+0200 Sample[317:30690]     #4 0x18a0e717f in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb817f)
2017-10-19 10:31:50.145451+0200 Sample[317:30690]     #5 0x1861178b7 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe98b7)
2017-10-19 10:31:50.145636+0200 Sample[317:30690]     #6 0x18611526f in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe726f)
2017-10-19 10:31:50.145803+0200 Sample[317:30690]     #7 0x18611582b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe782b)
2017-10-19 10:31:50.145968+0200 Sample[317:30690]     #8 0x1860362d7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x82d7)
2017-10-19 10:31:50.146153+0200 Sample[317:30690]     #9 0x187ec7f83 in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xaf83)
2017-10-19 10:31:50.146340+0200 Sample[317:30690]     #10 0x18f5e387f in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x7387f)
2017-10-19 10:31:50.146516+0200 Sample[317:30690]     #11 0x100e7671f in main (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Sample:arm64+0x10000e71f)
2017-10-19 10:31:50.146696+0200 Sample[317:30690]     #12 0x185b5a56b in <redacted> (/usr/lib/system/libdyld.dylib:arm64+0x156b)
2017-10-19 10:31:50.146866+0200 Sample[317:30690] 
2017-10-19 10:31:50.146996+0200 Sample[317:30690] previously allocated by thread T0 here:
2017-10-19 10:31:50.147155+0200 Sample[317:30690]     #0 0x101157707 in __sanitizer_mz_malloc (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4f707)
2017-10-19 10:31:50.147528+0200 Sample[317:30690]     #1 0x185cbebbb in malloc_zone_malloc (/usr/lib/system/libsystem_malloc.dylib:arm64+0xbbb)
2017-10-19 10:31:50.147682+0200 Sample[317:30690]     #2 0x18a146413 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x117413)
2017-10-19 10:31:50.147828+0200 Sample[317:30690]     #3 0x18f581adf in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x11adf)
2017-10-19 10:31:50.147968+0200 Sample[317:30690]     #4 0x18f5816bf in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x116bf)
2017-10-19 10:31:50.148119+0200 Sample[317:30690]     #5 0x18f58132f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x1132f)
2017-10-19 10:31:50.148259+0200 Sample[317:30690]     #6 0x102426a03 in -[ASDisplayNode _locked_viewToLoad] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x26ea03)
2017-10-19 10:31:50.148780+0200 Sample[317:30690]     #7 0x1024284eb in -[ASDisplayNode _locked_loadViewOrLayer] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x2704eb)
2017-10-19 10:31:50.149112+0200 Sample[317:30690]     #8 0x10242a1eb in -[ASDisplayNode view] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x2721eb)
2017-10-19 10:31:50.149457+0200 Sample[317:30690]     #9 0x1025d38f3 in -[ASRangeController configureContentView:forCellNode:] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x41b8f3)
2017-10-19 10:31:50.151677+0200 Sample[317:30690]     #10 0x10267deeb in -[ASTableView tableView:cellForRowAtIndexPath:] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x4c5eeb)
2017-10-19 10:31:50.151760+0200 Sample[317:30690]     #11 0x18f8b5473 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x345473)
2017-10-19 10:31:50.151777+0200 Sample[317:30690]     #12 0x18f8b59d7 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x3459d7)
2017-10-19 10:31:50.151895+0200 Sample[317:30690]     #13 0x18f89566f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x32566f)
2017-10-19 10:31:50.151913+0200 Sample[317:30690]     #14 0x18f650f0f in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xe0f0f)
2017-10-19 10:31:50.151928+0200 Sample[317:30690]     #15 0x102678b67 in -[ASTableView layoutSubviews] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x4c0b67)
2017-10-19 10:31:50.153608+0200 Sample[317:30690]     #16 0x18f57cfff in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0xcfff)
2017-10-19 10:31:50.153638+0200 Sample[317:30690]     #17 0x18a14d0b3 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x11e0b3)
2017-10-19 10:31:50.153665+0200 Sample[317:30690]     #18 0x1021f96bf in -[_ASDisplayLayer layoutSublayers] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x416bf)
2017-10-19 10:31:50.153703+0200 Sample[317:30690]     #19 0x18a151193 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x122193)
2017-10-19 10:31:50.153738+0200 Sample[317:30690]     #20 0x18a0bff23 in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0x90f23)
2017-10-19 10:31:50.153791+0200 Sample[317:30690]     #21 0x18a0e633f in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb733f)
2017-10-19 10:31:50.153825+0200 Sample[317:30690]     #22 0x18a0e717f in <redacted> (/System/Library/Frameworks/QuartzCore.framework/QuartzCore:arm64+0xb817f)
2017-10-19 10:31:50.153858+0200 Sample[317:30690]     #23 0x1861178b7 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe98b7)
2017-10-19 10:31:50.153934+0200 Sample[317:30690]     #24 0x18611526f in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe726f)
2017-10-19 10:31:50.153972+0200 Sample[317:30690]     #25 0x18611582b in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe782b)
2017-10-19 10:31:50.154207+0200 Sample[317:30690]     #26 0x1860362d7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x82d7)
2017-10-19 10:31:50.154287+0200 Sample[317:30690]     #27 0x187ec7f83 in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xaf83)
2017-10-19 10:31:50.154322+0200 Sample[317:30690]     #28 0x18f5e387f in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x7387f)
2017-10-19 10:31:50.154403+0200 Sample[317:30690]     #29 0x100e7671f in main (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Sample:arm64+0x10000e71f)
2017-10-19 10:31:50.154448+0200 Sample[317:30690] 
2017-10-19 10:31:50.154479+0200 Sample[317:30690] Thread T11 created by T0 here:
2017-10-19 10:31:50.154513+0200 Sample[317:30690]     #0 0x10114f707 in wrap_pthread_create (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x47707)
2017-10-19 10:31:50.154555+0200 Sample[317:30690]     #1 0x186a91a67 in <redacted> (/System/Library/Frameworks/Foundation.framework/Foundation:arm64+0x3fa67)
2017-10-19 10:31:50.154606+0200 Sample[317:30690]     #2 0x1025ecd37 in -[ASDeallocQueue init] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x434d37)
2017-10-19 10:31:50.154688+0200 Sample[317:30690]     #3 0x1025ead13 in __41+[ASDeallocQueue sharedDeallocationQueue]_block_invoke (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x432d13)
2017-10-19 10:31:50.154724+0200 Sample[317:30690]     #4 0x10383545b in _dispatch_client_callout (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x145b)
2017-10-19 10:31:50.154757+0200 Sample[317:30690]     #5 0x10383617b in dispatch_once_f (/usr/lib/system/introspection/libdispatch.dylib:arm64+0x217b)
2017-10-19 10:31:50.154791+0200 Sample[317:30690]     #6 0x1025eabb3 in +[ASDeallocQueue sharedDeallocationQueue] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x432bb3)
2017-10-19 10:31:50.154836+0200 Sample[317:30690]     #7 0x1024e6dbf in ASPerformBackgroundDeallocation (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x32edbf)
2017-10-19 10:31:50.154889+0200 Sample[317:30690]     #8 0x10281573b in -[ASViewController dealloc] (/private/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/AsyncDisplayKit.framework/AsyncDisplayKit:arm64+0x65d73b)
2017-10-19 10:31:50.154937+0200 Sample[317:30690]     #9 0x18f7d7ec3 in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x267ec3)
2017-10-19 10:31:50.154970+0200 Sample[317:30690]     #10 0x185b95a5f in _Block_release (/usr/lib/system/libsystem_blocks.dylib:arm64+0xa5f)
2017-10-19 10:31:50.155004+0200 Sample[317:30690]     #11 0x18f8635bb in <redacted> (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x2f35bb)
2017-10-19 10:31:50.155040+0200 Sample[317:30690]     #12 0x185682ef3 in <redacted> (/usr/lib/libobjc.A.dylib:arm64+0x6ef3)
2017-10-19 10:31:50.155086+0200 Sample[317:30690]     #13 0x185690637 in objc_destructInstance (/usr/lib/libobjc.A.dylib:arm64+0x14637)
2017-10-19 10:31:50.155153+0200 Sample[317:30690]     #14 0x18617d557 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x14f557)
2017-10-19 10:31:50.155190+0200 Sample[317:30690]     #15 0x186041997 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x13997)
2017-10-19 10:31:50.155272+0200 Sample[317:30690]     #16 0x1856a2137 in <redacted> (/usr/lib/libobjc.A.dylib:arm64+0x26137)
2017-10-19 10:31:50.155343+0200 Sample[317:30690]     #17 0x18603604f in _CFAutoreleasePoolPop (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x804f)
2017-10-19 10:31:50.155426+0200 Sample[317:30690]     #18 0x186115b03 in <redacted> (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0xe7b03)
2017-10-19 10:31:50.155460+0200 Sample[317:30690]     #19 0x1860362d7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation:arm64+0x82d7)
2017-10-19 10:31:50.155494+0200 Sample[317:30690]     #20 0x187ec7f83 in GSEventRunModal (/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices:arm64+0xaf83)
2017-10-19 10:31:50.155550+0200 Sample[317:30690]     #21 0x18f5e387f in UIApplicationMain (/System/Library/Frameworks/UIKit.framework/UIKit:arm64+0x7387f)
2017-10-19 10:31:50.155741+0200 Sample[317:30690]     #22 0x100e7671f in main (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Sample:arm64+0x10000e71f)
2017-10-19 10:31:50.155793+0200 Sample[317:30690]     #23 0x185b5a56b in <redacted> (/usr/lib/system/libdyld.dylib:arm64+0x156b)
2017-10-19 10:31:50.155827+0200 Sample[317:30690] 
2017-10-19 10:31:50.155878+0200 Sample[317:30690] SUMMARY: AddressSanitizer: double-free (/var/containers/Bundle/Application/C728D12F-B284-4F23-8418-67EE87C80B1B/Sample.app/Frameworks/libclang_rt.asan_ios_dynamic.dylib:arm64+0x4ede7) in wrap_free
2017-10-19 10:31:50.155925+0200 Sample[317:30690] 
==317==ABORTING
(lldb) thread info -s
thread #12: tid = 0x77e2, 0x000000010115ef68 libclang_rt.asan_ios_dynamic.dylib`__asan::AsanDie(), name = 'ASDeallocQueue', stop reason = Deallocation of freed memory

{
  "access_size" : 0,
  "access_type" : 0,
  "address" : 5605813312,
  "description" : "double-free",
  "instrumentation_class" : "AddressSanitizer",
  "pc" : 0,
  "stop_type" : "fatal_error"
}