Can't install elixir 1.9.x using asdf (test failure)

I have this issue on my laptop (Ubuntu 20.04) where I cannot install the source versions of elixir 1.9.x using asdf. Both 1.10.x and 1.11.x work fine. I have tried it with a fresh install of erlang 21.3.8.18 and 22.3.4.9, neither work.

I get the following:

juul@juulsxps:~$ asdf global erlang 22.3.4.9
juul@juulsxps:~$ asdf reshim
juul@juulsxps:~$ asdf install elixir ref:v1.9.4
==> Checking whether specified Elixir reference exists...
==> Downloading v1.9.4 to /tmp/elixir_build_DQwy2D/elixir-ref-v1.9.4-src.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   126  100   126    0     0   1166      0 --:--:-- --:--:-- --:--:--  1166
100 2197k    0 2197k    0     0  2888k      0 --:--:-- --:--:-- --:--:-- 9098k
==> Making the release
rm -rf ebin
rm -rf lib/*/ebin
rm -rf lib/elixir/src/elixir_parser.erl
make[1]: Entering directory '/home/juul/.asdf/installs/elixir/ref-v1.9.4'
rm -rf lib/*/_build/
rm -rf lib/*/tmp/
rm -rf lib/elixir/test/ebin/
rm -rf lib/mix/test/fixtures/deps_on_git_repo/
rm -rf lib/mix/test/fixtures/git_rebar/
rm -rf lib/mix/test/fixtures/git_repo/
rm -rf lib/mix/test/fixtures/git_sparse_repo/
rm -f erl_crash.dump
make[2]: Entering directory '/home/juul/.asdf/installs/elixir/ref-v1.9.4'
rm -f man/elixir.1
rm -f man/elixir.1.bak
rm -f man/iex.1
rm -f man/iex.1.bak
make[2]: Leaving directory '/home/juul/.asdf/installs/elixir/ref-v1.9.4'
make[1]: Leaving directory '/home/juul/.asdf/installs/elixir/ref-v1.9.4'
Recompile: src/elixir_utils
Recompile: src/elixir_tokenizer
Recompile: src/elixir_sup
Recompile: src/elixir_rewrite
Recompile: src/elixir_quote
Recompile: src/elixir_parser
Recompile: src/elixir_overridable
Recompile: src/elixir_module
Recompile: src/elixir_map
Recompile: src/elixir_locals
Recompile: src/elixir_lexical
Recompile: src/elixir_interpolation
Recompile: src/elixir_import
Recompile: src/elixir_fn
Recompile: src/elixir_expand
Recompile: src/elixir_errors
Recompile: src/elixir_erl_var
Recompile: src/elixir_erl_try
Recompile: src/elixir_erl_pass
Recompile: src/elixir_erl_for
Recompile: src/elixir_erl_compiler
Recompile: src/elixir_erl_clauses
Recompile: src/elixir_erl
Recompile: src/elixir_env
Recompile: src/elixir_dispatch
Recompile: src/elixir_def
Recompile: src/elixir_config
Recompile: src/elixir_compiler
Recompile: src/elixir_code_server
Recompile: src/elixir_clauses
Recompile: src/elixir_bootstrap
Recompile: src/elixir_bitstring
Recompile: src/elixir_aliases
Recompile: src/elixir
Generated elixir.app
==> bootstrap (compile)
Compiled lib/elixir/lib/kernel.ex
Compiled lib/elixir/lib/macro/env.ex
Compiled lib/elixir/lib/keyword.ex
Compiled lib/elixir/lib/module.ex
Compiled lib/elixir/lib/list.ex
Compiled lib/elixir/lib/macro.ex
Compiled lib/elixir/lib/code.ex
Compiled lib/elixir/lib/code/identifier.ex
Compiled lib/elixir/lib/module/locals_tracker.ex
Compiled lib/elixir/lib/kernel/typespec.ex
Compiled lib/elixir/lib/kernel/utils.ex
Compiled lib/elixir/lib/exception.ex
Compiled lib/elixir/lib/protocol.ex
Compiled lib/elixir/lib/stream/reducers.ex
Compiled lib/elixir/lib/enum.ex
Compiled lib/elixir/lib/inspect/algebra.ex
Compiled lib/elixir/lib/inspect.ex
Compiled lib/elixir/lib/regex.ex
Compiled lib/elixir/lib/string.ex
Compiled lib/elixir/lib/string/chars.ex
Compiled lib/elixir/lib/io.ex
Compiled lib/elixir/lib/path.ex
Compiled lib/elixir/lib/file.ex
Compiled lib/elixir/lib/system.ex
Compiled lib/elixir/lib/kernel/cli.ex
Compiled lib/elixir/lib/kernel/error_handler.ex
Compiled lib/elixir/lib/kernel/parallel_compiler.ex
Compiled lib/elixir/lib/kernel/lexical_tracker.ex
==> elixir (compile)
make[1]: Entering directory '/home/juul/.asdf/installs/elixir/ref-v1.9.4'
==> unicode (compile)
make[1]: Leaving directory '/home/juul/.asdf/installs/elixir/ref-v1.9.4'
make[1]: Entering directory '/home/juul/.asdf/installs/elixir/ref-v1.9.4'
Generated elixir.app
make[1]: Leaving directory '/home/juul/.asdf/installs/elixir/ref-v1.9.4'
==> eex (compile)
==> mix (compile)
Generated mix app
==> ex_unit (compile)
Generated ex_unit app
==> logger (compile)
Generated logger app
Generated eex app
==> iex (compile)
Generated iex app
bin/elixir bin/mix format --check-formatted
==> elixir (eunit)
  All 208 tests passed.

==> elixir (ex_unit)
warning: this expression will fail with ArgumentError
  (for doctest at) lib/record.ex:153

Excluding tags: [windows: true]

.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

  1) test escape (RegexTest)
     test/elixir/regex_test.exs:303
     ** (ArgumentError) argument error
     code: refute matches_escaped?("\\xff", "\xff")
     stacktrace:
       (stdlib) :re.run(<<255>>, {:re_pattern, 0, 1, 1, <<69, 82, 67, 80, 79, 0, 0, 0, 15, 8, 80, 32, 209, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 92, 0, 102, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>}, [capture: :none])
       (elixir) lib/regex.ex:469: Regex.safe_run/3
       (elixir) lib/regex.ex:269: Regex.match?/2
       test/elixir/regex_test.exs:313: (test)

............................................................

  2) test Unicode (RegexTest)
     test/elixir/regex_test.exs:86
     ** (ArgumentError) argument error
     code: refute <<?<, 255, ?>>> =~ ~r/<.>/u
     stacktrace:
       (stdlib) :re.run(<<60, 255, 62>>, {:re_pattern, 0, 1, 0, <<69, 82, 67, 80, 76, 0, 0, 0, 0, 8, 0, 32, 81, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 60, 0, 62, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...>>}, [capture: :none])
       (elixir) lib/regex.ex:469: Regex.safe_run/3
       (elixir) lib/regex.ex:269: Regex.match?/2
       test/elixir/regex_test.exs:95: (test)

.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Finished in 16.6 seconds (6.9s on load, 9.7s on tests)
1492 doctests, 3223 tests, 2 failures, 7 excluded

Randomized with seed 621288
make: *** [Makefile:269: test_stdlib] Error 1

Seems 1.8.x doesn’t work either. Does anybody have a clue what could be the problem? This used to work fine on the same machine, by the way, I’m not sure when it started to break.