Tk Source Code

Attachment Details
Login
Overview

Artifact ID: 9544055b5480121532180d944c4c893b0f7c4040cc2ab89aec265f0f321f854b
Ticket: a680524fb0ccaa97e32491c649e9f823016a7c5d
Date: 2026-11-18 16:14:04
User: anonymous
Artifact Attached: fd5b6ccec3c97c4b7e7239ae644a1bdca25bbb850329cbbb6aed62f1d6a74e36
Filename:asan_report.txt
Description:
Content:
=================================================================
==45988==ERROR: AddressSanitizer: heap-use-after-free on address 0x129a352ee7c0 at pc 0x7ff9476e5d7f bp 0x00d2a803d950 sp 0x00d2a803d950
READ of size 4 at 0x129a352ee7c0 thread T0
    #0 0x7ff9476e5d7e in GetEntryText tk\win\tkWinMenu.c:494
    #1 0x7ff9476e632a in ReconfigureWindowsMenu tk\win\tkWinMenu.c:611
    #2 0x7ff947522c5f in TclServiceIdle tcl\generic\tclTimer.c:751
    #3 0x7ff9474c0268 in Tcl_ServiceAll tcl\generic\tclNotify.c:1082
    #4 0x7ff947708b7a in TkWinChildProc tk\win\tkWinX.c:844
    #10 0x7ff9476f77e6 in TkWmDeadWindow tk\win\tkWinWm.c:2713
    #11 0x7ff9478322a5 in Tk_DestroyWindow tk\generic\tkWindow.c:1515
    #12 0x7ff9477b90b5 in DestroyMenuInstance tk\generic\tkMenu.c:1204
    #13 0x7ff9477b93ac in TkDestroyMenu tk\generic\tkMenu.c:1280
    #14 0x7ff9477b974f in DestroyMenuEntry tk\generic\tkMenu.c:1442
    #15 0x7ff9475001fb in Tcl_EventuallyFree tcl\generic\tclPreserve.c:296
    #16 0x7ff9477be8d5 in DeleteMenuCloneEntries tk\generic\tkMenu.c:3531
    #17 0x7ff9477b811c in MenuWidgetObjCmd tk\generic\tkMenu.c:751
    #18 0x7ff94736bcc8 in Dispatch tcl\generic\tclBasic.c:4467
    #19 0x7ff94736be6b in TclNRRunCallbacks tcl\generic\tclBasic.c:4503
    #20 0x7ff94736fb60 in TclEvalObjEx tcl\generic\tclBasic.c:6068
    #21 0x7ff94736fab3 in Tcl_EvalObjEx tcl\generic\tclBasic.c:6049
    #22 0x7ff9477bc59e in TkPostCommand tk\generic\tkMenu.c:2658
    #23 0x7ff9477b502b in PreprocessMenu tk\generic\tkMacWinMenu.c:56
    #24 0x7ff9477b525e in PreprocessMenu tk\generic\tkMacWinMenu.c:82
    #25 0x7ff9477b5358 in TkPreprocessMenu tk\generic\tkMacWinMenu.c:137
    #26 0x7ff9476e75ca in TkWinHandleMenuEvent tk\win\tkWinMenu.c:1186
    #27 0x7ff947706314 in WmProc tk\win\tkWinWm.c:8094
    #32 0x7ffa3b097b7d in Twapi_Init+0x4cadd (twapi520.dll+0x1f4107b7d)
    #33 0x00d2a803f0ff  (<unknown module>)

0x129a352ee7c0 is located 0 bytes inside of 296-byte region [0x129a352ee7c0,0x129a352ee8e8)
freed by thread T0 here:
    #0 0x7ff9467d2ca1 in _asan_wrap_static_crt_free+0x61 (clang_rt.asan_dynamic-x86_64.dll+0x180052ca1)
    #1 0x7ff947359c28 in TclpFree tcl\generic\tclAlloc.c:722
    #2 0x7ff9477b98cd in DestroyMenuEntry tk\generic\tkMenu.c:1466
    #3 0x7ff9475001fb in Tcl_EventuallyFree tcl\generic\tclPreserve.c:296
    #4 0x7ff9477be8d5 in DeleteMenuCloneEntries tk\generic\tkMenu.c:3531
    #5 0x7ff9477b811c in MenuWidgetObjCmd tk\generic\tkMenu.c:751
    #6 0x7ff94736bcc8 in Dispatch tcl\generic\tclBasic.c:4467
    #7 0x7ff94736be6b in TclNRRunCallbacks tcl\generic\tclBasic.c:4503
    #8 0x7ff94736fb60 in TclEvalObjEx tcl\generic\tclBasic.c:6068
    #9 0x7ff94736fab3 in Tcl_EvalObjEx tcl\generic\tclBasic.c:6049
    #10 0x7ff9477bc59e in TkPostCommand tk\generic\tkMenu.c:2658
    #11 0x7ff9477b502b in PreprocessMenu tk\generic\tkMacWinMenu.c:56
    #12 0x7ff9477b525e in PreprocessMenu tk\generic\tkMacWinMenu.c:82
    #13 0x7ff9477b5358 in TkPreprocessMenu tk\generic\tkMacWinMenu.c:137
    #14 0x7ff9476e75ca in TkWinHandleMenuEvent tk\win\tkWinMenu.c:1186
    #15 0x7ff947706314 in WmProc tk\win\tkWinWm.c:8094
    #20 0x7ffa3b097b7d in Twapi_Init+0x4cadd (twapi520.dll+0x1f4107b7d)
    #21 0x00d2a803f0ff  (<unknown module>)

previously allocated by thread T0 here:
    #0 0x7ff9467d1e92 in _asan_wrap_malloc+0x22 (clang_rt.asan_dynamic-x86_64.dll+0x180051e92)
    #1 0x7ff94737f8ce in Tcl_Alloc tcl\generic\tclCkalloc.c:1059
    #2 0x7ff9477bb559 in MenuNewEntry tk\generic\tkMenu.c:2274
    #3 0x7ff9477bbaad in MenuAddOrInsert tk\generic\tkMenu.c:2387
    #4 0x7ff9477b7e36 in MenuWidgetObjCmd tk\generic\tkMenu.c:655
    #5 0x7ff94736bcc8 in Dispatch tcl\generic\tclBasic.c:4467
    #6 0x7ff94736be6b in TclNRRunCallbacks tcl\generic\tclBasic.c:4503
    #7 0x7ff94736b32e in Tcl_EvalObjv tcl\generic\tclBasic.c:4226
    #8 0x7ff94736e71e in TclEvalEx tcl\generic\tclBasic.c:5372
    #9 0x7ff94749698a in Tcl_FSEvalFileEx tcl\generic\tclIOUtil.c:1824
    #10 0x7ff9477b6ae7 in Tk_MainExW tk\generic\tkMain.c:328
    #11 0x7ff7b93611a1 in wWinMain tk\win\winMain.c:176
    #12 0x7ff7b9362b58 in __scrt_common_main_seh exe_common.inl:288

SUMMARY: AddressSanitizer: heap-use-after-free tk\win\tkWinMenu.c:494 in GetEntryText
Shadow bytes around the buggy address:
  0x129a352ee500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x129a352ee580: 00 00 00 00 00 00 00 00 00 00 00 00 00 fa fa fa
  0x129a352ee600: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x129a352ee680: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x129a352ee700: fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa
=>0x129a352ee780: fa fa fa fa fa fa fa fa[fd]fd fd fd fd fd fd fd
  0x129a352ee800: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x129a352ee880: fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa
  0x129a352ee900: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x129a352ee980: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x129a352eea00: fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa
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
==45988==ABORTING