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

History Of Ticket 693401ffffffffff

Artifacts Associated With Ticket 693401ffffffffff

  1. Ticket change [ddfb6cc8ea] (rid 114773) by junruli on 2003-02-26 03:54:39:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      1. Tcl version : 8.4.1
      2. IncrTcl version : 3.2.1
      3. OS Platform : Solaris 2.5
      4. Problem behavior : 
      tclsh8.4> load libitcl3.2.so
      tclsh8.4> ::itcl::class A { }; A a 
      tclsh8.4> ::itcl::find object a
      ==>>nothing returned here
      And sometimes, it dumps core.
      5. Expected behaviours :
      should return "a"
      If I do "itcl::find object ::a",  it works ok. 
      6. Concise code and solutions :
      In $INCRTCL_ROOT/itcl/generic/itcl_cmds.c file, line
      707 ~ 716 
      707             if (forceFullNames || nsPtr
      !=(Namespace*)activeNs ||
      708                 originalCmd != NULL) { 
      709
      710                
      objPtr=Tcl_NewStringObj((char*)NULL, 0);
      711                 Tcl_GetCommandFullName(interp,cmd,
      objPtr);
      712                 name
      =Tcl_GetStringFromObj(objPtr,(int*)NULL);
      713             } else {
      714                 cmdName
      =Tcl_GetCommandName(interp,cmd);
      715                 objPtr =Tcl_NewStringObj(cmdName,
      -1);
      716             }
      
      The variable "name" is used to hold the searching
      result, it is correct for match the fully qualified
      name(i.e, find o ::a),
      but between line 714~715, when search for "find o a",
      it doesn't set the "name" variable.
      In the following lines ( line 721 below ), it tries to
      use "name" variable, I think that is the reason for
      causing the coredump.
      718             Tcl_CreateHashEntry(&unique,
      (char*)cmd, &newEntry);
      719
      720             match = 0;
      721             if (newEntry && (!pattern ||
      Tcl_StringMatch(name, pattern)))
      
      This needs to be fixed, you can move line 712 to line
      717 the product will work fine. 
      
      Thanks,
      Christina Junru Li. 
      
      
    4. foundin initialized to: "obsolete: 8.4.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "junruli"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "find command fail in Tcl8.4.1/IncrTcl3.2.1"
    11. type initialized to: "Bug"
  2. Ticket change [57e9e466dd] (rid 117711) by dkf on 2003-02-26 16:46:50:

    1. closedate changed to: "2003-02-26T09:46:50"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      This is a fault in itcl, not tcl.  Different project.  :^)
      You should submit your bug report at
      https://sourceforge.net/tracker/?func=add&group_id=13244&atid=113244
      (which is the incrtcl bug tracker's submit page)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "dkf"
  3. Ticket change [f572f8bf48] (rid 130107) by hobbs on 2003-02-27 07:37:37:

    1. closedate changed to: "2003-02-27T00:37:37"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      This is actually out-of-date as I have already corrected this 
      bug in itcl anyway.  If you used a recent ActiveTcl, it would 
      have the correct binaries.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. username: "hobbs"