Overview
| Artifact ID: | 5a0e03b8ac9a23db5fe0b9783a6fdd49db269e6a |
|---|---|
| Ticket: | 665431ffffffffffffffffffffffffffffffffff
load fails with undefined symbol message (suggested fix) |
| User & Date: | kennykb on 2003-01-28 01:18:46 |
Changes
- closedate changed to: "2003-01-27T18:18:46"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 I've discussed this proposal with several other Tcl maintaners, and the general consensus is that the proposed change would not be an improvement. The problem is that RTLD_LAZY results in awkward behavior. In the current implemenation, a dynamic loading problem shows up as a Tcl error. This error is likely recoverable: in fact, there are several packages in tcllib that try several binary packages, and even fall back on pure Tcl implementations of their needed functionality. The alternative, deferring the problem, means that the [load] command fails silently, and then if the missing pieces are ever needed, the process aborts with an error that's much less easy to catch and recover. It's arguable that any load module that fails with RTLD_NOW but "succeeds" with RTLD_LAZY is exceedingly likely to abort on the missing pieces later on, and this abort is a mysterious core dump rather than a transparent Tcl error. While this is perhaps acceptable behavior in C, Tcl prides itself on not dumping core for user errors and common misconfigurations. If you can follow up to comp.lang.tcl with what you're trying to accomplish (ideally with specifics about how any why your load is failing), I'm sure that the friendly people there can help work out a solution that doesn't involve nasty surprises at run time.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "kennykb"