Overview
| Artifact ID: | 3745e25f46da74e3b16680c66210dd1173deabb2 |
|---|---|
| Ticket: | 622441ffffffffffffffffffffffffffffffffff
crash on exit Win9x - progress |
| User & Date: | jcw on 2002-10-12 21:07:47 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed to:
TclKit still has a crash on exit reported by several people on Win 9x. I'm now able to consistently reproduce it, with latest CVS head of everything, and running a starkit with the tkhtml extension in it - http://www.equi4.com/pub/sk/tcl84dok.kit Not sure any of this is crucial, but the above combo consistently crashes on win98se and does not crash on nt4 (both under vmware). I haven't got a debug build of the latest tclkit with MSVC6, but I did manage to get a link map and a drwatson log, which - with a bit of hunting - indicates this problem happens with code in tclEncoding.c, i.e. encoding cleanup order or something. TclKit plays one trick with encodings: it has its own C command which calls TclSetLibraryPath, then TclpSetInitialEncodings, then Tcl_FindExecutable (all is in tclkit src/pwb.c, a trivial wrapper). This is needed to resolve the startup catch-22: create tcl interp, then run some setup scripts, then tclkit's end-of-exe data is available as mounted VFS, and *then* we need to reset the encoding logic so it will find encodings inside VFS. Twisted, but it seems to work because there is logic in the startup of encodings to allow initing twice. Now the punch line: if I remove the call to TclpSetInitialEncodings from src/pwb.c, i.e. tclkit's "librarypath" command, then it no longer crashes on exit. Put it back in: boom. Unfortunately, leaving that call out also means the system encoding does not get set to cp1252 on 98 (on nt4 it is still fine) - I can easily fix it, though its unfortunate that the automatic choice for win (and maybe mac?) gets lost. Bottom line: I will remove the call to TclpSetInitialEncodings, and add fake logic to pick cp1252 on windows (probably incorrect for international window configs). That way I hope to resolve the crash-on-exit once and for all. But there's deep misery behind all this, and probably also some hideously bad logic in there... maybe the above helps resolve the true issues underneath.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jcw"
- subsystem changed to: "37. File System"
- title changed to: "crash on exit Win9x - progress"
- type changed to: "Bug"