Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e2eaec4a73f4cc53418b45a403aeb5814eac09bdfb3c8560717332de745af21b
Ticket: d402ffe76f90c650bcf18d5b5c58a0b77770ed48
Win32 potential crash when using main()
User & Date: chw on 2020-05-10 20:13:51
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    According to MSDN the _wenviron variable initially is NULL when
    the program starts via main() but is populated on the very first
    call of _wgetenv() or _wputenv().
    
    The current core-8-6-branch requires in TclSetupEnv() _wenviron
    to be non NULL, otherwise a crash (access violation, segfault)
    happens. When some custom code embeds Tcl as a library and uses
    main() instead of wmain() as its program entry point, that crash
    is most likely.
    
    Please see https://www.androwish.org/home/info/93ee54fe8cd2e176
    for a possible solution.
    
  5. foundin changed to: "core-8-6-branch"
  6. is_private changed to: "0"
  7. login: "chw"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "chw"
  14. subsystem changed to: "50. Embedding Support"
  15. title changed to: "Win32 potential crash when using main()"
  16. type changed to: "Bug"