Skip to content

Unable to compile Elixir 1.19.4 from source with OTP 28.3 #15033

@mister11

Description

@mister11

When compiling Elixir 1.19.4 from source (or release zip) with OTP 28.3, I've encoutered the following error:

1) test compile!/1 (RegexTest)
   test/elixir/regex_test.exs:127
   Wrong message for Regex.CompileError
   expected:
     ~r/position 0$/
   actual:
     "quantifier does not follow a repeatable item at position 1"
   code: assert_raise Regex.CompileError, ~r/position 0$/, fn ->
   stacktrace:
     test/elixir/regex_test.exs:130: (test)

I think the culprit is OTP 28.3 since it works with OTP 28.1. In OTP 28.3 release notes, it says:

Updated PCRE2 to 10.47. Also picked newer fix, from upstream PCRE2, to bug that could cause benign random uninitialized data in exported regular expressions.

PCRE2 changelog says:

  1. (Support << and >> function composition operators #756) Improved error offsets and diagnostics for syntax errors during
    pattern compilation.

And PR changes show some tests being update with position changing from N to N-1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions