Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-02-23
05:36 • Ticket [476537ffff] UpdateStringProc panic when using stubs status still Clo... artifact: 451b359ffb user: dgp
05:36 • Closed ticket [476537ffff]. artifact: ccb7fc804e user: dgp
05:34 • Ticket [476537ffff]: 4 changes artifact: 1e69d6c505 user: dgp
05:34 • Add attachment stubcrash.patch to ticket [476537ffff] artifact: 34880e69a5 user: dgp
05:34 • Ticket [476537ffff] UpdateStringProc panic when using stubs status still Ope... artifact: 3c46bcb2d9 user: dgp
2002-01-08
06:32 • Ticket [476537ffff]: 4 changes artifact: 19dd62a9aa user: dgp
06:31 • Ticket [476537ffff]: 4 changes artifact: e42f6718e7 user: dgp
2001-10-30
21:43 • New ticket [476537ffff]. artifact: a09f864f25 user: dgp

UpdateStringProc panic when using stubs

Closed / Fixed476537ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-10-30 21:43:57
A panic about a missing UpdateStringProc
has been reported on AIX systems.  See

http://groups.google.com/groups?hl=en&selm=fec9a0b3.0110291044.5480155c%40posting.google.com

I'm still working on understanding the
comment on line 189 of generic/tclPkg.c,
but the code there is clearly broken:

    /* ...
     * Detect this situation by checking that this
library has been correctly
     * initialised. If it has not been then return
immediately as nothing will
     * work.
     */

    if (!tclEmptyStringRep) {
        Tcl_AppendResult(interp, "Cannot load package
\"", name,
                "\" in standalone executable: This
package is not ",
                "compiled with stub support", NULL);
        return NULL;
    }

Since "nothing will work", the routine
Tcl_AppendResult() should not be called,
because, as promised, it will not work!
It panics when tclEmptyStrinRep is not initialized.

Similar code is in Tcl_PkgPresentEx().
dgpplain2002-01-08 06:31:59
Logged In: YES 
user_id=80530

Here's a patch that *may* fix the problem.
I can't test though, because I don't have
a test package that demonstrates the bug.
Writing to Guy Mason, who originally reported
the trouble on c.l.t. to see if he can test.
dgpplain2002-01-08 06:32:00
File Added - 15657: stubcrash.patch
dgpplain2002-02-23 05:34:27
File Added - 18266: stubcrash.patch

Logged In: YES 
user_id=80530

here's an updated patch.
dgpplain2002-02-23 05:34:28
File Deleted - 15657:
dgpplain2002-02-23 05:36:21
Logged In: YES 
user_id=80530

only way to get this tested is to commit.
doing so now.
dgp Ticket [476537ffff]: 2 changes [History diff]2002-02-23 05:36:22
Log in (anonymous is fine) to add a comment.

Attachments: