Skip to content
Tcl Source Code History Of Ticket 218520
Login

History Of Ticket 218520

Artifacts Associated With Ticket 218520

  1. Ticket change [3ed68ef5be] (rid 121338) by nobody on 2000-10-26 01:01:37:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 863 Bug
      Version: 8.0.3
      SubmitDate: '1998-11-25'
      LastModified: '1999-10-21'
      Severity: MED
      Status: Released
      Submitter: pat
      ChangedBy: hobbs
      OS: All
      OSVersion: NA
      Machine: NA
      FixedDate: '1999-10-21'
      FixedInVersion: 8.2
      ClosedDate: '2000-10-25'
      
      
      Date: Sun, 8 Nov 1998 21:35:49 -0800 (PST)
      To: [email protected]
      Cc: [email protected]
      Subject: pointers are not integers (Tcl code is non standard)
      From: [email protected]
      Status: O
      
      Tcl 8.0.3 Bug
      
      email:  [email protected]
      Support:  None
      Severity:  1
      OperatingSystem:  Other
      OperatingSystemVersion:  NEC Super-UX R8.2, Cray Unicos 9.2
      Synopsis:  pointers are not integers (Tcl code is non standard)
      
      Comments:
      Can't compile and execute successfully on 64 bit systems. Many bugs can be cured by using
      #include <stddef.h> /* ANSI standard */
      and casting to type ptrdiff_t
      I changed unix/configure.in to include:
      AC_CHECK_HEADER(stddef.h, tcl_ok=1, tcl_ok=0)
      if test $tcl_ok = 1; then
      AC_CHECK_TYPE(ptrdiff_t, int)
      else
          AC_DEFINE(NO_STDDEF_H)
      fi
      Changed many occurrences of pointer differences being treated as integer. e.g
      generic/regexp.c has in function regtail()
              if (OP(scan) == BACK)
                      offset = scan - val;
              else
                      offset = val - scan;
      which should be
              if (OP(scan) == BACK)
                      offset = (ptr_diff_t)(scan - val);
              else
                      offset = (ptrdiff_t)(val - scan);
      When an integer is 32 bits and an address is 40 bits, the original doesn't work. When a char *
      comprises a character offset followed by a word address, the subtraction is nonsense. Unresolved
      problems: What did the author(s) really mean in
      generic/tclCompile.c in the function  int TclObjIndexForString() which attempts
      [ line 7032 ]  to create an integer by 
      objIndex = (int) Tcl_GetHashValue(hPtr);
      ?? How can this work if the ponter is 64 bits.
      Truncate and guess a value? :-(
      Cheers,
           Len Makin
      
      
      
      4/16/99 - redman - the code described no longer exists (regexp.c) in 8.1.  8.1 tested on 64bit Solaris works fine.  Whether or not to fix in 8.0.x is another question.
      --
      This has been fixed for 8.1+, which is the current stable release. 
      -- 10/21/1999 hobbs
      
      
      
    4. foundin initialized to: "obsolete: 8.0.3"
    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: "10. Objects"
    10. title initialized to:
      pointers are not integers (Tcl code is non standard) - 64 bi
      
    11. type initialized to: "Bug"
  2. Ticket change [a8393bb728] (rid 98939) by welch on 2000-10-26 08:23:19:

    1. closedate changed to: "2000-10-26T01:23:19"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"