Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-957

io_lib:format/3 crash when chars_limit is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 21.1, 21.3.8, 22.0.1
    • Fix Version/s: OTP-21.3.8.3, OTP-22.0.2
    • Component/s: stdlib
    • Labels:
      None

      Description

      `io_lib:format/3` crash with `chars_limit` set for complex data structure when format uses new formatter feature `~0p`. Also I found that minor modification in format or in value passed to first `~0p` parameter eliminates crash. Removing `chars_limit` also eliminates crash.

      You can find code that crash ErlangVM attached to this issue.

        Attachments

          Activity

            People

            Assignee:
            hasse Hans Bolinder
            Reporter:
            kpy3 Sergey Yelin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: