Skip to content
Tcl Source Code History Of Ticket 584825ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 584825ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 584825ffffffffffffffffffffffffffffffffff

  1. Ticket change [efe20a6230] (rid 109076) by dkf on 2002-07-22 10:10:37:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On Solaris8/SPARC, the test expr-22.8 fails because of
      a parser overrun (experiment shows that the object
      passed to IllegalExprOperandType() has length 4 and
      bytes "Inf}" which is wrong and unexpected.)  Why is
      the parser running on past the end of the argument
      passed to [expr]?
      
      For the moment, because I know of no way to exploit
      this bug, I've marked that test as knownBug, but I'm
      not at all happy with that...
      
    4. foundin initialized to: "obsolete: 8.4b2"
    5. priority initialized to: "8"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dkf"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "test expr-22.8 should not be knownBug"
    11. type initialized to: "Bug"
  2. Ticket change [f18549cc56] (rid 109376) by dgp on 2002-07-22 23:30:42:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      This appears to trace back to a
      difference of opinion about how
      strtod() is supposed to be implemented.
      In particular, when given the 4 bytes
      'I', 'n', 'f', and '\0', how many bytes
      should strtod claim make up the
      valid double value?  Thus what
      should the endPtr be set to?
      
      Solaris strtod() claims that '\0' is
      part of the string rep of the double,
      so it sets endPtr to point one past
      the null.  Linux strtod() claims that
      '\0' is not part of the double, so
      it sets endPtr to point at the '\0'.
      
      Later that character gets turned
      back into '}' like it was before.
      
      It seems very strange to me that
      the Solaris strtod() handles the
      string "NaN" differently, and does
      not claim the trailing '\0' for it.
      
      FWIW, the compat/strtod.c offered
      with the Tcl sources recognizes
      neither Inf nor Nan.
      
      Finally, note that on Linux, the
      test expr-22.8 fails for a different
      reason.  There, the string "Inf"
      is happily converted to a legal
      double by Tcl_GetDoubleFromObj()
      on line 3112 of tclExecute.c.  So,
      Tcl goes ahead and performs the
      1 / Inf calculation and gets the
      correct answer: 0.0
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [0f3202c26c] (rid 94746) by dkf on 2002-07-30 22:33:59:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      It seems that handling of Inf and NaN varies quite a bit
      between platforms.  :^(  Looks like I'll have to mark this
      group of tests as nonPortable...
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "dkf"
  4. Ticket change [5a58b76ea5] (rid 118127) by dkf on 2002-07-31 16:41:56:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Marked all this set of tests as non-portable as I'm not
      aware yet of any pair of platforms which give the same
      answers.  :^/
      
      Left bug open because the whole issue needs fixing
      (including more satisfactory resolutions of bugs 584950 and
      585986)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. username: "dkf"
  5. Ticket change [fcb2340610] (rid 108286) by dkf on 2002-07-31 17:27:20:

    1. closedate changed to: "2002-07-31T10:27:20"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Turns out that fixstrtod() already handles this sort of
      thing, but the test for when to enable it was poor.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"