Skip to content
Tcl Source Code History Of Ticket 218392ffffffffff
Login

History Of Ticket 218392ffffffffff

Artifacts Associated With Ticket 218392ffffffffff

  1. Ticket change [eba97a3f0c] (rid 103573) by nobody on 2000-10-26 00:57:02:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5056 Bug
      Version: 8.2
      SubmitDate: '2000-04-13'
      LastModified: '2000-05-15'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Linux-Red Hat
      OSVersion: RedHat 6.1, NetBSD 1.4.2, Solaris 7
      Machine: i386, sun4u
      FixedDate: '2000-10-25'
      ClosedDate: '2000-05-15'
      
      
      Name: Michael Richardson
      
      ReproducibleScript:
      create a module as both a shared object and statically linked.
      Call Tcl_StaticPackage in the Tcl_AppInit of the static function.
      Do load "" Module in tcl. The initProc is not called.
      Looking at tclLoad.c, line 124, it appears that if the package is already
      loaded, that we goto "done", skipping the code at line 283. I don't see any
      other calls to initProc, so I think that this functionality is broken.
      
      DesiredBehavior:
      I expect that initProc will be called when I do 'load "" Module'
      I would do a patch, but it isn't clear to me how do make sure that the Init
      function for the package only gets called once. The code seems to depend
      upon the existence of the package on the package list to determine that the 
      package has been initialized.
      
      
      What does the init C code really look like?  initProc should be called
      at least once, even in static packages, if everything is set up correctly. 
      -- 05/10/2000 hobbs
      User's code...
      
      int
      Tcl_AppInit( Tcl_Interp *interp )
      {
        if( Tcl_Init( interp ) == TCL_ERROR ) {
          return TCL_ERROR;
        }
        
        Tcl_StaticPackage(interp, "Beke",  Beke_Init,  Beke_Init);
        ...
      }
      
      How is the user certain that the code isn't called, instead of
      just throwing some error?  Doing the same to some test code
      (tktable), it all works as expected. 
      -- 05/15/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      Tcl_StaticPackage does not call initProc upon load.
      
    11. type initialized to: "RFE"
  2. Ticket change [6e02b82f50] (rid 128804) by welch on 2000-10-26 08:21:17:

    1. closedate changed to: "2000-10-26T01:21:17"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [1710310070] (rid 124816) by dgp on 2001-04-19 02:53:37:

    1. foundin changed to: "None"
    2. status changed to: "Open"
    3. subsystem changed to: "None"
  4. Ticket change [0dca55ee2c] (rid 114422) by dgp on 2001-04-19 02:56:08:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      See Patch 403531
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. subsystem changed to: "40. Dynamic Loading"
    5. username: "dgp"
  5. Ticket change [968fc7239c] (rid 106346) by dgp on 2001-04-19 02:56:25:

    1. closedate changed to: "2001-04-18T19:56:25"
    2. closer changed to: "dgp"
    3. status changed to: "Closed"