Overview
| Artifact ID: | 48dae08acd9bc8c46b2e363e8d583a4cdbee7468beb186d4f9289a34918c5227 |
|---|---|
| Ticket: | f0b80a3db9443698e13867cb8e01499f1f661fdd
macOS : crash when building Tcl in develop mode |
| User & Date: | apnadkarni on 2025-09-15 06:54:09 |
Changes
- icomment:
I am guessing your application main program does not call `TclZipfs_AppInit` at initialization time causing the assertion to fail. I had added that assertion to ensure that function was always called to check for embedded zip archives before any attempts to load Tcl libraries from zip archives. Reviewing the manpages and TIP's it appears although tclsh and wish always do this, there is no requirement documented that other applications that use their own main programs call that function. So I'll remove the assertion. Of course, it means embedded ZIPs will not work if `TclZipfs_AppInit` is not called and the application must use the "traditional" file system located libraries (which is anyways the case on macOS). Thanks for the report but I do wish you had stated up front this was a custom application and not a stock tclsh or wish build. It would have saved me considerable time reviewing code paths searching for the case where the zipfs-based Tcl library was not initialized.
- login: "apnadkarni"
- mimetype: "text/x-markdown"