Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f152f128511afe91c3c75666253b209f76291b899cf6bbc99db090f258dcba8a
Ticket: 422b0414a390567aa0f5070bced52d75aaa4fc02
Tclsh91.exe from release 9.1.a1 crashes upon launch on older MS Windows release.
User & Date: erikleunissen on 2026-03-14 11:43:19
Changes

  1. comment changed to:
    I know, Windows 7 isn't supported anymore.
    
    However, shouldn't Tclsh (and Wish), bail out more gracefully than just
    segfaulting upon launch under older OS's?
    
    Here is my observation:
    * As the very first thing after launch in Windows 7, a window pops up with title
      "Fatal Error", displaying the error message: "PGV Initializer did not initialize".
      See also the attached screenshot.
    * When clicking the popup window away, the appended stack trace appears.
    
    Notes:
    * Tclsh was cross-built from linux using: x86_64-w64-mingw32-gcc (SUSE Linux) 9.2.0
    * The segfault has not been observed:
      - with tclsh91 from release 9.1a0 (using the same cross toolchain).
      - when launching under MS Windows 11
    
    -- stack trace (Dr. Mingw) --
    tclsh91.exe caused an Illegal Instruction at location 000000006E8CA302 in module tcl91.dll.
    
    AddrPC           Params
    000000006E8CA302 004C004400540000 0000000000000000 000000000022EF50  tcl91.dll!Tcl_Panic+0x82
    000000006E8FB4E6 000000000048FF30 0000000000000030 0000000000000000  tcl91.dll!TclGetProcessGlobalValue+0x266
    000000006E922148 0044004300420041 0048004700460045 004C004B004A0049  tcl91.dll!TclpInitLibraryPath+0x78
    000000006E8FB4BB 00000000003426A0 000000006E92F128 00000000003445D0  tcl91.dll!TclGetProcessGlobalValue+0x23b
    000000006E84C2EF 000000006E92F110 000000006E92F108 0000000000345580  tcl91.dll!InitializeEncodingSearchPath+0xbf
    000000006E8FB4BB 000000000022FCD8 000000000022FCD8 0000000000650735  tcl91.dll!TclGetProcessGlobalValue+0x23b
    000000006E84F52C 0000000000000000 000000006E7C0000 0000000000000000  tcl91.dll!Tcl_GetEncoding+0xac
    000000006E850CE5 0000000000000000 0000000000000000 0000000000646470  tcl91.dll!Tcl_SetSystemEncoding+0x85
    000000006E921700 0000000000401580 000007FE83858806 0000000000000000  tcl91.dll!TclpSetInitialEncodings+0x20
    000000006E852878 00000000004018D0 0000000083858806 0000000000646470  tcl91.dll!Tcl_FindExecutable+0x18
    000000006E90EC90 000000000000003E 0000000000000000 0000000000646470  tcl91.dll!TclZipfs_AppHook+0x10
    000000000040165B 0000000000000001 000000000048FF30 0000000000409978  tclsh91.exe!wmain+0x4b
    00000000004013EE 0000000000000000 0000000000000000 0000000000000000  tclsh91.exe!__tmainCRTStartup+0x26e  [/home/abuild/rpmbuild/BUILD/mingw-w64-v7.0.0/mingw-w64-crt/crt/crtexe.c @ 334]
    000000000040153B 0000000000000000 0000000000000000 0000000000000000  tclsh91.exe!mainCRTStartup+0x1b  [/home/abuild/rpmbuild/BUILD/mingw-w64-v7.0.0/mingw-w64-crt/crt/crtexe.c @ 223]
    --
    
  2. login: "erikleunissen"
  3. mimetype: "text/plain"