Skip to content

internal error: m32_allocator_init: Failed to map

Summary

This occurred:

doctests: mmap 131072 bytes at (nil): Cannot allocate memory
doctests: Try specifying an address with +RTS -xm<addr> -RTS
doctests: internal error: m32_allocator_init: Failed to map
    (GHC version 8.10.3 for x86_64_unknown_linux)
    Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

Example: https://github.com/input-output-hk/cardano-ledger-specs/pull/2147/checks?check_run_id=1958123589

Steps to reproduce

Fork and build:

https://github.com/input-output-hk/cardano-ledger-specs/pull/2147/commits/694a33f04a27b53b0cb57e42f3ad0affbed26625

Expected behavior

Error should not occur.

Environment

  • GHC version used: ghc-8.10.3
  • Cabal version used: cabal-3.4.0.0
  • Operating System: ubuntu-latest on Github Runner
  • System Architecture: Intel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information