Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7bd128aa711c55b44079c310b6feb8258600fdd69f65fa4a4c665e54d7b5998a
Ticket: f0b80a3db9443698e13867cb8e01499f1f661fdd
macOS : crash when building Tcl in develop mode
User & Date: sl1200mk2 on 2025-09-13 13:47:00
Changes

  1. icomment:
    Hi Ashok, Christopher,
    thank you for taking care of this.
    DLight is the name of my app which is a GUI app that use both Tcl and Tk.
    one of the user of the app have reported that he could make the app to crash on macOS26 (TK is crashing) so I would like to report to Tk devs where it crash exactly.
    
    When I want to post ticket to Tk about a crash I use to compile Tcl and Tk in 'develop' fashion (in order to have line where the crash occurs).
    
    I've followed your advice about not to override CFLAGS, so I've compiled bot Tcl and Tk with:
    make -j 4 -C macosx develop CFLAGS_OPTIMIZE="-fno-omit-frame-pointer -Og -g"
    $SUDO make -C macosx install-develop
    
    and result is the same, when I start my app I got this crash:
    Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib        	       0x18bac2388 __pthread_kill + 8
    1   libsystem_pthread.dylib       	       0x18bafb88c pthread_kill + 296
    2   libsystem_c.dylib             	       0x18ba04a3c abort + 124
    3   libsystem_c.dylib             	       0x18ba03c70 __assert_rtn + 284
    4   Tcl                           	       0x10529b700 <deduplicated_symbol> + 40
    5   Tcl                           	       0x105262da0 TclZipfs_TclLibrary + 4 (tclZipfs.c:4380) [inlined]
    6   Tcl                           	       0x105262da0 ZipFSTclLibraryObjCmd + 144 (tclZipfs.c:4413)
    7   Tcl                           	       0x105147d38 Dispatch + 104 (tclBasic.c:4642)
    8   Tcl                           	       0x105144270 TclNRRunCallbacks + 68 (tclBasic.c:4658) [inlined]
    9   Tcl                           	       0x105144270 Tcl_EvalObjv + 316 (tclBasic.c:4396)
    10  Tcl                           	       0x1051456b8 TclEvalEx + 2896 (tclBasic.c:5497)
    11  Tcl                           	       0x1051efc2c Tcl_Init + 128 (tclInterp.c:400)
    12  DLight                        	       0x1049e532c Tk_AppInit + 48
    13  DLight                        	       0x1049e6814 main + 288
    
    
    on macOS I believe it's tcl/macosx/GNUmakefile which is responsible of the 'develop' style make
    
    ++
    nicolas
    
  2. login: "sl1200mk2"
  3. mimetype: "text/plain"