| Ticket UUID: | 1249172 | ||
| Title: | Tcl_FSEvalFile in VFS fails to reset [info script] | ||
| Type: | Bug | Created on: | 2005-08-01 02:33:35 |
| Submitter: | stevel | Assigned to: | vincentdarley |
| Subsystem: | 37. File System | Severity: | |
| Priority: | 5 Medium | Last modified: | 2005-08-09 07:26:16 |
| Status: | Closed | Closed by: | stevel |
| Resolution: | None | Closed on: | 2005-08-09 00:26:16 |
| Version: | obsolete: 8.5a4 | ||
| Description: | ||||
When using tclkit build from the core-8-4-branch, a "package require Tk" results in a subsequent "info script" invocaion returning an incorrect value. For example: puts stderr "before = [info script]" package require Tk puts stderr "after = [info script]" returns: before = tst1.tcl after = /usr/local/bin/tclkitA/lib/tcl8.4/auto.tcl The problem only occurs with tclkit built from the core-8-4-branch. It doesn't occur with wish built from core-8-4-branch nor wish built the HEAD. It also seems to occur only with Tk (both the Aqua and X11 versions) but not with any of the other packages inTclkit (http, Itcl, Mk4tcl or vfs). | ||||
| User Comments: | ||||
dgp added on 2005-08-01 21:58:57:
Logged In: YES user_id=80530 Please replace [package require Tk] in your demo with [catch tcl_findLibrary], and see if the problem is still present. stevel added on 2005-08-02 06:54:23:
Logged In: YES user_id=2460 Confirmed - the problem still persists dgp added on 2005-08-02 12:18:21:
Logged In: YES user_id=80530 Good. That should take Tk out of the picture. Next, please try: [source [file join [info library] auto.tcl]] stevel added on 2005-08-02 15:16:46:
Logged In: YES user_id=2460 confirmed - problem still persists. BTW, you can get the tclkit for OSX that exhibits the behaviour via the link in this post - http://sourceforge.net/mailarchive/message.php?msg_id=12511812 dgp added on 2005-08-02 20:55:27:
Logged In: YES user_id=80530 hmmm... that suggests a fault in Tcl_FSEvalFile() then. dgp added on 2005-08-02 21:02:51:
Logged In: YES user_id=80530 Are these failures in a thread-enabled Tcl? dgp added on 2005-08-02 22:06:39:
Logged In: YES user_id=80530 I'm afraid I don't see how the save/restore of oldScriptFile within Tcl_FSEvalFile() can go wrong, unless there's some real serious memory corruption behind it. stevel added on 2005-08-03 07:02:53:
Logged In: YES user_id=2460 It's not thread-enabled. dgp added on 2005-08-08 20:59:34:
Logged In: YES user_id=80530 do I understand this has been resolved? stevel added on 2005-08-09 07:26:16:
Logged In: YES user_id=2460 Yes - in so far that we have established that the problem isn't in Tcl (i.e. it is either in one of the tclkit extensions, or triggered by the tclkit build process) | ||||
