Skip to content
Tcl Source Code History Of Ticket 7346adc50fac47b5
Login

History Of Ticket 7346adc50fac47b5

Artifacts Associated With Ticket 7346adc50fac47b5

  1. Ticket change [780f5275ad] (rid 240444) by anonymous on 2025-05-25 15:52:49:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      I hit an "Illegal instruction" crash while trying to parse old archived usenet posts with the mime library.  I can reproduce the issue with a single line:
      
      % ::encoding convertfrom iso2022-jp "\x1b\$B\$*;n\$"
      unable to realloc 82463372083200 bytes
      Illegal instruction
      
      The same code works without crashing in Tcl 8.6.10:
      
      % ::encoding convertfrom iso2022-jp "\x1b\$B\$*;n\$"
      お試
      %
      
      I have not dug into the C code involved here, but I would suspect that some length calculation has got broken in the 32->64bit transition.
      
    5. foundin initialized to: "9.0.1"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Severe"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "11. Conversions from String"
    14. title initialized to:
      Crash with encoding convertfrom iso2022-jp <string with escape sequence>
      
    15. type initialized to: "Bug"
  2. Ticket change [2ec8e55d7d] (rid 240447) by apnadkarni on 2025-05-25 16:45:55:

    1. assignee changed to: "apnadkarni"
    2. icomment: "Reproduced. Looking into it..."
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
  3. Ticket change [c5fb1d84e9] (rid 240450) by apnadkarni on 2025-05-25 17:20:53:

    1. icomment:
      ```
      % tcl::unsupported::icu convertfrom iso2022-jp "\x1b\$B\$*;n\$"
      ICU error while decoding. ICU error (11): U_TRUNCATED_CHAR_FOUND
      ```
      
      so ICU sees the string as not valid but of course that is no excuse for Tcl to go into a tizzy instead of raising an error.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  4. Ticket change [8dec840a7e] (rid 240463) by apnadkarni on 2025-05-26 05:17:43:

    1. icomment: "Proposed fix in [0ca96a7829] ready for review."
    2. login: "apnadkarni"
    3. mimetype: "text/x-fossil-plain"
  5. Ticket change [4ccfd50a14] (rid 240467) by jan.nijtmans on 2025-05-26 08:02:27:

    1. icomment:
      Good catch! Looks good to me. I agree with handling tcl8 the same as replace here, the tcl 8.6 behavior is simply broken (too).
      
      I don't think it's really worth to backport the fix to 8.6 too.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [9c4eabc7fc] (rid 240490) by apnadkarni on 2025-05-26 10:34:54:

    1. closedate changed to: "2460821.94090567"
    2. closer changed to: "apnadkarni"
    3. icomment:
      Thanks for the review, Jan and @cgm for the report. Fixed now in [237ff71b86].
      
    4. login: "apnadkarni"
    5. mimetype: "text/x-fossil-plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"