Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-04-20
09:20 • Ticket [2891616fff] TIP 357: export TclLoadFile status still Closed with 2 o... artifact: 22d3f8770c user: sf-robot
09:20 • Closed ticket [2891616fff]. artifact: 803b47b383 user: sf-robot
2010-04-05
14:24 • Pending ticket [2891616fff]. artifact: cc1b2d7a95 user: dkf
2010-03-27
04:20 • Ticket [2891616fff]: 1 change artifact: ec11b43b81 user: dkf
2010-03-17
10:22 • Ticket [2891616fff]: 4 changes artifact: e343aac8e0 user: kennykb
10:22 • Ticket [2891616fff]: 4 changes artifact: fa4ce5df5d user: kennykb
10:22 • Add attachment 357.patch to ticket [2891616fff] artifact: 9f986f8c2d user: kennykb
10:21 • Ticket [2891616fff] TIP 357: export TclLoadFile status still Open with 4 oth... artifact: 266e8adf33 user: kennykb
2010-03-03
09:59 • Ticket [2891616fff]: 4 changes artifact: 9b3b853709 user: kennykb
09:58 • Ticket [2891616fff]: 4 changes artifact: 9aebaf90d4 user: kennykb
09:58 • Ticket [2891616fff]: 4 changes artifact: 8b24bcda76 user: kennykb
2010-03-01
21:47 • Ticket [2891616fff]: 1 change artifact: f04c73df80 user: dkf
08:41 • Ticket [2891616fff]: 4 changes artifact: c21b9d1601 user: kennykb
08:36 • Ticket [2891616fff]: 4 changes artifact: 35d50ef373 user: kennykb
08:36 • Ticket [2891616fff]: 4 changes artifact: 726ed2d522 user: kennykb
2009-12-28
18:21 • Ticket [2891616fff]: 1 change artifact: 5630215840 user: dkf
2009-11-04
09:06 • Ticket [2891616fff]: 4 changes artifact: a35c7eae0a user: kennykb
02:06 • New ticket [2891616fff]. artifact: 7955426f66 user: kennykb

TIP 357: export TclLoadFile

Closed / Accepted2891616fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-11-04 02:06:55
This patch set reflects where I am with TIP 357 implementation.  Notes:

(1) [unload] of modules loaded from VFS is totally untested in the test suite.  And I *know* it won't work with these patches, because I haven't done anything about wrapping the FSDivertLoad structure (in tclLoadUtil.c) into a Tcl_LoadHandle.  That will have to be done (and a test case added) before this ships.

(2) There has been no attempt to test, or even build, on a platform other than Win32 and Linux-ix86. 

(3) The code will not work for preloading DLLs because the DLL  name changes to a TclpTempFileName when it gets copied to the native filesystem, losing the identity of the DLL symbols for cross-linking.

(4) patthoyts, mistachkin, and tclguy are talking about making load-from-memory work on Windows.

(5) jenglish wants Tcl_LoadFile to fail (and unload the library) if any symbol is missing. (Optional symbols can be processed with Tcl_FindSymbol.) I'm willing to go along with that, but haven't done it.  When we do, the calling code in the [load] command needs to be adapted to use Tcl_FindSymbol for the _SafeInit, _Unload and _SafeUnload entry points.

(6) There are no man pages for the new APIs.

(7) The code probably s*ks and definitely needs another pair of eyeballs or three.
kennykbplain2009-11-04 09:06:56
File Added - 349449: 357.patch
dkf Ticket [2891616fff]: 1 change [History diff]2009-12-28 18:21:48
kennykbplain2010-03-01 08:36:26
File Added - 364908: tip357.patch
kennykbplain2010-03-01 08:36:41
File Deleted - 349449:
kennykbplain2010-03-01 08:41:26
Patch updated to build against the current HEAD.

(1) Unload-from-VFS has at least rudimentary testing.
(3) The temp file name now matches the DLL name, which should allow for preloading. The latter is as yet untested.
(5) jenglish's suggestion is adopted.

(2) is still beyond my reach. TESTERS NEEDED.
(4) probably will not happen soon. The required code turns out to be proprietary.
(6-7) are still open issues as well.

(8) In addition, there needs to be some way to clean up the DLLs that have been processed by copy-to-native at process exit.
dkf Ticket [2891616fff]: 1 change [History diff]2010-03-01 21:47:40
kennykbplain2010-03-03 09:58:25
Updated patch yet again.

Draft code added to the source files for HPUX, MacOSX, Next, OSF. TESTERS STILL NEEDED..

The signature of 'Tcl_LoadLibrary' is changed to make 'procPtrs' simply a void*.

Man pages are still missing.
kennykbplain2010-03-03 09:58:37
File Deleted - 364908:
kennykbplain2010-03-03 09:59:28
File Added - 365198: tip357.patch
kennykbplain2010-03-17 10:21:35
File Deleted - 365198:
kennykbplain2010-03-17 10:22:27
File Added - 367052: 357.patch
kennykbplain2010-03-17 10:22:58
Updated patch once again, adding the 'flags' argument from Joe English's proposal
dkf Ticket [2891616fff]: 1 change [History diff]2010-03-27 04:20:33
dkfplain2010-04-05 14:24:45
TIP is now formally done; there's docs and tests and the tests pass on at least some platforms. Remaining work is now engineering things up to quality I'm marking Pending and assuming that we can probably fix anything with bug reports.
sf-robotplain2010-04-20 09:20:26
allow_comments - 1

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
sf-robot Ticket [2891616fff]: 2 changes [History diff]2010-04-20 09:20:27
Log in (anonymous is fine) to add a comment.

Attachments: