Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a09f864f25ad7ff207641f4ce8e8118f2abe9ba2
Ticket: 476537ffffffffffffffffffffffffffffffffff
UpdateStringProc panic when using stubs
User & Date: dgp on 2001-10-30 21:43:57
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    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().
    
    
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "39. Package Manager"
  10. title changed to: "UpdateStringProc panic when using stubs"
  11. type changed to: "Bug"