Overview
| Artifact ID: | e2eaec4a73f4cc53418b45a403aeb5814eac09bdfb3c8560717332de745af21b |
|---|---|
| Ticket: | d402ffe76f90c650bcf18d5b5c58a0b77770ed48
Win32 potential crash when using main() |
| User & Date: | chw on 2020-05-10 20:13:51 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "core-8-6-branch"
- is_private changed to: "0"
- login: "chw"
- priority changed to: "5 Medium"
- private_contact changed to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "chw"
- subsystem changed to: "50. Embedding Support"
- title changed to: "Win32 potential crash when using main()"
- type changed to: "Bug"