wish8.6(49041,0x109d0f600) malloc: nano zone abandoned due to inability to preallocate reserved vm space. *** tablelist-own after idle callbacks: tablelist::updateView .tf.tbl tablelist::updateHScrlbar .tf.tbl tablelist::updateScrlColOffset .tf.tbl tablelist::stretchColumns .tf.tbl -1 tablelist::adjustSeps .tf.tbl *** invoking update idletasks ================================================================= ==49041==ERROR: AddressSanitizer: heap-use-after-free on address 0x60e0000ca410 at pc 0x0001029f9432 bp 0x7ff7bec95520 sp 0x7ff7bec95518 READ of size 8 at 0x60e0000ca410 thread T0 #0 0x1029f9431 in UnlinkContent tkPlace.c:494 #1 0x1029f457b in Tk_PlaceObjCmd tkPlace.c:320 #2 0x105566d21 in Dispatch tclBasic.c:4468 #3 0x10554785e in TclNRRunCallbacks tclBasic.c:4504 #4 0x10555a577 in TclEvalObjEx tclBasic.c:6069 #5 0x1055436b9 in Tcl_EvalObjEx tclBasic.c:6050 #6 0x106322604 in AfterProc tclTimer.c:1199 #7 0x10631acc9 in TclServiceIdle tclTimer.c:751 #8 0x1061b3ba3 in Tcl_DoOneEvent tclNotify.c:980 #9 0x10284f196 in Tk_UpdateObjCmd tkCmds.c:1213 #10 0x105566d21 in Dispatch tclBasic.c:4468 #11 0x10554785e in TclNRRunCallbacks tclBasic.c:4504 #12 0x10555a577 in TclEvalObjEx tclBasic.c:6069 #13 0x1055436b9 in Tcl_EvalObjEx tclBasic.c:6050 #14 0x106322604 in AfterProc tclTimer.c:1199 #15 0x106325353 in TimerHandlerEventProc tclTimer.c:593 #16 0x1061b0fe8 in Tcl_ServiceEvent tclNotify.c:670 #17 0x1061b3b21 in Tcl_DoOneEvent tclNotify.c:967 #18 0x1028c1fff in Tk_MainLoop tkEvent.c:2109 #19 0x102990d34 in Tk_MainEx tkMain.c:377 #20 0x10126ec5e in main tkAppInit.c:93 #21 0x109c944fd in start+0x1cd (dyld:x86_64+0x54fd) 0x60e0000ca410 is located 16 bytes inside of 152-byte region [0x60e0000ca400,0x60e0000ca498) freed by thread T0 here: #0 0x1016cf829 in wrap_free+0xa9 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x47829) #1 0x1054ddcc4 in TclpFree tclAlloc.c:722 #2 0x1055bd324 in Tcl_Free tclCkalloc.c:1226 #3 0x1029fa5ab in FreeContent tkPlace.c:435 #4 0x1029f494d in Tk_PlaceObjCmd tkPlace.c:327 #5 0x105566d21 in Dispatch tclBasic.c:4468 #6 0x10554785e in TclNRRunCallbacks tclBasic.c:4504 #7 0x10555a577 in TclEvalObjEx tclBasic.c:6069 #8 0x1055436b9 in Tcl_EvalObjEx tclBasic.c:6050 #9 0x106322604 in AfterProc tclTimer.c:1199 #10 0x10631acc9 in TclServiceIdle tclTimer.c:751 #11 0x1061b3ba3 in Tcl_DoOneEvent tclNotify.c:980 #12 0x103399fab in -[TKContentView(TKWindowEvent) generateExposeEvents:] tkMacOSXWindowEvent.c:1196 #13 0x103398550 in -[TKContentView(TKWindowEvent) drawRect:] tkMacOSXWindowEvent.c:1067 #14 0x7ff81b73b2b2 in _NSViewDrawRect+0x78 (AppKit:x86_64+0x19b2b2) #15 0x7ff81be57ceb in -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]+0x727 (AppKit:x86_64+0x8b7ceb) #16 0x7ff81b73a9b0 in -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:]+0x2ea (AppKit:x86_64+0x19a9b0) #17 0x7ff81b73a5ef in -[NSView(NSLayerKitGlue) drawLayer:inContext:]+0x121 (AppKit:x86_64+0x19a5ef) #18 0x7ff81fc4e30d in CABackingStoreUpdate_+0x264 (QuartzCore:x86_64+0x2230d) #19 0x7ff81fcb33bc in invocation function for block in CA::Layer::display_()+0x34 (QuartzCore:x86_64+0x873bc) #20 0x7ff81fc4d69f in -[CALayer _display]+0x8db (QuartzCore:x86_64+0x2169f) #21 0x7ff81fc4c618 in CA::Layer::display_if_needed(CA::Transaction*)+0x362 (QuartzCore:x86_64+0x20618) #22 0x7ff81fd9c72a in CA::Context::commit_transaction(CA::Transaction*, double, double*)+0x2cc (QuartzCore:x86_64+0x17072a) #23 0x7ff81fc2e249 in CA::Transaction::commit()+0x2bf (QuartzCore:x86_64+0x2249) #24 0x7ff81b74b7d1 in __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke+0x11c (AppKit:x86_64+0x1ab7d1) #25 0x7ff81be940d3 in ___NSRunLoopObserverCreateWithHandler_block_invoke+0x28 (AppKit:x86_64+0x8f40d3) #26 0x7ff818bb0cb6 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__+0x16 (CoreFoundation:x86_64h+0x7fcb6) #27 0x7ff818bb0b53 in __CFRunLoopDoObservers+0x21e (CoreFoundation:x86_64h+0x7fb53) #28 0x7ff818baffe6 in __CFRunLoopRun+0x348 (CoreFoundation:x86_64h+0x7efe6) #29 0x7ff818baf5dc in CFRunLoopRunSpecific+0x232 (CoreFoundation:x86_64h+0x7e5dc) #30 0x7ff8217ec4f0 in RunCurrentEventLoopInMode+0x123 (HIToolbox:x86_64+0x324f0) #31 0x7ff8217ec117 in ReceiveNextEventCommon+0x11b (HIToolbox:x86_64+0x32117) #32 0x7ff8217ebfe4 in _BlockUntilNextEventMatchingListInModeWithFilter+0x45 (HIToolbox:x86_64+0x31fe4) #33 0x7ff81b5ded87 in _DPSNextEvent+0x375 (AppKit:x86_64+0x3ed87) #34 0x7ff81b5dd3f3 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0x582 (AppKit:x86_64+0x3d3f3) #35 0x10335dd6f in TkMacOSXEventsSetupProc tkMacOSXNotify.c:477 #36 0x1061b340a in Tcl_DoOneEvent tclNotify.c:930 #37 0x1033a7357 in TkMacOSXHandleMapOrUnmap tkMacOSXWm.c:809 #38 0x102a68f7a in Tk_UnmapWindow tkWindow.c:1913 #39 0x102924ff6 in Tk_UnmaintainGeometry tkGeometry.c:591 #40 0x1029f456f in Tk_PlaceObjCmd tkPlace.c:318 #41 0x105566d21 in Dispatch tclBasic.c:4468 #42 0x10554785e in TclNRRunCallbacks tclBasic.c:4504 #43 0x10555a577 in TclEvalObjEx tclBasic.c:6069 #44 0x1055436b9 in Tcl_EvalObjEx tclBasic.c:6050 #45 0x106322604 in AfterProc tclTimer.c:1199 #46 0x10631acc9 in TclServiceIdle tclTimer.c:751 #47 0x1061b3ba3 in Tcl_DoOneEvent tclNotify.c:980 #48 0x10284f196 in Tk_UpdateObjCmd tkCmds.c:1213 #49 0x105566d21 in Dispatch tclBasic.c:4468 #50 0x10554785e in TclNRRunCallbacks tclBasic.c:4504 #51 0x10555a577 in TclEvalObjEx tclBasic.c:6069 #52 0x1055436b9 in Tcl_EvalObjEx tclBasic.c:6050 #53 0x106322604 in AfterProc tclTimer.c:1199 #54 0x106325353 in TimerHandlerEventProc tclTimer.c:593 #55 0x1061b0fe8 in Tcl_ServiceEvent tclNotify.c:670 #56 0x1061b3b21 in Tcl_DoOneEvent tclNotify.c:967 #57 0x1028c1fff in Tk_MainLoop tkEvent.c:2109 #58 0x102990d34 in Tk_MainEx tkMain.c:377 #59 0x10126ec5e in main tkAppInit.c:93 #60 0x109c944fd in start+0x1cd (dyld:x86_64+0x54fd) previously allocated by thread T0 here: #0 0x1016cf6e0 in wrap_malloc+0xa0 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x476e0) #1 0x1054ddca4 in TclpAlloc tclAlloc.c:699 #2 0x1055bcfd2 in Tcl_Alloc tclCkalloc.c:1059 #3 0x1029fcc11 in CreateContent tkPlace.c:400 #4 0x1029f585a in ConfigureContent tkPlace.c:635 #5 0x1029f307e in Tk_PlaceObjCmd tkPlace.c:256 #6 0x105566d21 in Dispatch tclBasic.c:4468 #7 0x10554785e in TclNRRunCallbacks tclBasic.c:4504 #8 0x10555a577 in TclEvalObjEx tclBasic.c:6069 #9 0x1055436b9 in Tcl_EvalObjEx tclBasic.c:6050 #10 0x106322604 in AfterProc tclTimer.c:1199 #11 0x10631acc9 in TclServiceIdle tclTimer.c:751 #12 0x1061b3ba3 in Tcl_DoOneEvent tclNotify.c:980 #13 0x103399fab in -[TKContentView(TKWindowEvent) generateExposeEvents:] tkMacOSXWindowEvent.c:1196 #14 0x103399319 in -[TKContentView(TKWindowEvent) setFrameSize:] tkMacOSXWindowEvent.c:1131 #15 0x7ff81b631204 in -[NSWindow _oldPlaceWindow:fromServer:]+0x371 (AppKit:x86_64+0x91204) #16 0x7ff81b62fb32 in -[NSWindow _setFrameCommon:display:fromServer:]+0xa87 (AppKit:x86_64+0x8fb32) #17 0x103382e41 in XResizeWindow tkMacOSXSubwindows.c:417 #18 0x1033b187e in UpdateGeometryInfo tkMacOSXWm.c:4427 #19 0x10631acc9 in TclServiceIdle tclTimer.c:751 #20 0x1061b3ba3 in Tcl_DoOneEvent tclNotify.c:980 #21 0x103399fab in -[TKContentView(TKWindowEvent) generateExposeEvents:] tkMacOSXWindowEvent.c:1196 #22 0x103398550 in -[TKContentView(TKWindowEvent) drawRect:] tkMacOSXWindowEvent.c:1067 #23 0x7ff81b73b2b2 in _NSViewDrawRect+0x78 (AppKit:x86_64+0x19b2b2) #24 0x7ff81be57ceb in -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:]+0x727 (AppKit:x86_64+0x8b7ceb) #25 0x7ff81b73a9b0 in -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:]+0x2ea (AppKit:x86_64+0x19a9b0) #26 0x7ff81b73a5ef in -[NSView(NSLayerKitGlue) drawLayer:inContext:]+0x121 (AppKit:x86_64+0x19a5ef) #27 0x7ff81fc4e30d in CABackingStoreUpdate_+0x264 (QuartzCore:x86_64+0x2230d) #28 0x7ff81fcb33bc in invocation function for block in CA::Layer::display_()+0x34 (QuartzCore:x86_64+0x873bc) #29 0x7ff81fc4d69f in -[CALayer _display]+0x8db (QuartzCore:x86_64+0x2169f) #30 0x7ff81fc4c618 in CA::Layer::display_if_needed(CA::Transaction*)+0x362 (QuartzCore:x86_64+0x20618) #31 0x7ff81fd9c72a in CA::Context::commit_transaction(CA::Transaction*, double, double*)+0x2cc (QuartzCore:x86_64+0x17072a) #32 0x7ff81fc2e249 in CA::Transaction::commit()+0x2bf (QuartzCore:x86_64+0x2249) #33 0x7ff81b74b7d1 in __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke+0x11c (AppKit:x86_64+0x1ab7d1) #34 0x7ff81be940d3 in ___NSRunLoopObserverCreateWithHandler_block_invoke+0x28 (AppKit:x86_64+0x8f40d3) #35 0x7ff818bb0cb6 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__+0x16 (CoreFoundation:x86_64h+0x7fcb6) #36 0x7ff818bb0b53 in __CFRunLoopDoObservers+0x21e (CoreFoundation:x86_64h+0x7fb53) #37 0x7ff818baffe6 in __CFRunLoopRun+0x348 (CoreFoundation:x86_64h+0x7efe6) #38 0x7ff818baf5dc in CFRunLoopRunSpecific+0x232 (CoreFoundation:x86_64h+0x7e5dc) #39 0x7ff8217ec4f0 in RunCurrentEventLoopInMode+0x123 (HIToolbox:x86_64+0x324f0) #40 0x7ff8217ec117 in ReceiveNextEventCommon+0x11b (HIToolbox:x86_64+0x32117) #41 0x7ff8217ebfe4 in _BlockUntilNextEventMatchingListInModeWithFilter+0x45 (HIToolbox:x86_64+0x31fe4) #42 0x7ff81b5ded87 in _DPSNextEvent+0x375 (AppKit:x86_64+0x3ed87) #43 0x7ff81b5dd3f3 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0x582 (AppKit:x86_64+0x3d3f3) #44 0x10335dd6f in TkMacOSXEventsSetupProc tkMacOSXNotify.c:477 #45 0x1061b340a in Tcl_DoOneEvent tclNotify.c:930 #46 0x1028c1fff in Tk_MainLoop tkEvent.c:2109 #47 0x102990d34 in Tk_MainEx tkMain.c:377 #48 0x10126ec5e in main tkAppInit.c:93 #49 0x109c944fd in start+0x1cd (dyld:x86_64+0x54fd) SUMMARY: AddressSanitizer: heap-use-after-free tkPlace.c:494 in UnlinkContent Shadow bytes around the buggy address: 0x1c1c00019430: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c1c00019440: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x1c1c00019450: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x1c1c00019460: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd 0x1c1c00019470: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa =>0x1c1c00019480: fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c1c00019490: fd fd fd fa fa fa fa fa fa fa fa fa fd fd fd fd 0x1c1c000194a0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1c1c000194b0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x1c1c000194c0: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x1c1c000194d0: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==49041==ABORTING