Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmap 131072 bytes at (nil): Cannot allocate memory #293

Open
newhoggy opened this issue Feb 23, 2021 · 2 comments
Open

mmap 131072 bytes at (nil): Cannot allocate memory #293

newhoggy opened this issue Feb 23, 2021 · 2 comments

Comments

@newhoggy
Copy link

I am getting this error in Github Actions:

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

This has been reported to GHC as well: https://gitlab.haskell.org/ghc/ghc/-/issues/19421

This is easily reproducible from this commit: IntersectMBO/cardano-ledger@694a33f

The error can be seen here: https://github.com/input-output-hk/cardano-ledger-specs/runs/1958540147?check_suite_focus=true

It should be possible to reproduce it by forking the project and attempting to build this commit in Github Actions in the manner described by the .github/workflows/haskell.yml file.

@newhoggy
Copy link
Author

On MacOS, there is also an error, but it is very different:

doctests: 
lookupSymbol failed in relocateSection (relocate external)
/Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a: unknown symbol `__ZNK17double_conversion23DoubleToStringConverter11ToPrecisionEdiPNS_13StringBuilderE'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
   __ZNK17double_conversion6VectorIcEixEi
whilst processing object file
   /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a
The symbol was previously defined in
   /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a(hs-double-conversion.o)
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
doctests: 
lookupSymbol failed in relocateSection (relocate external)
/Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a: unknown symbol `__ZN17double_conversion6StrtofENS_6VectorIKcEEi'
GHC runtime linker: fatal error: I found a duplicate definition for symbol
   __ZN17double_conversion7BitCastIdyEET_RKT0_
whilst processing object file
   /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a
The symbol was previously defined in
   /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a(double-conversion.o)
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
GHC runtime linker: fatal error: I found a duplicate definition for symbol
   __ZN17double_conversion6Bignum9LessEqualERKS0_S2_
whilst processing object file
   /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a
The symbol was previously defined in
   /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a(bignum-dtoa.o)
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
GHC runtime linker: fatal error: I found a duplicate definition for symbol
   __ZN17double_conversion7BitCastIdyEET_RKT0_
whilst processing object file
   /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a
The symbol was previously defined in
   /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a(double-conversion.o)
This could be caused by:
   * Loading two different object files which export the same symbol
   * Specifying the same object file twice on the GHCi command line
   * An incorrect `package.conf' entry, causing some object to be
     loaded twice.
doctests: Could not load Object Code /Users/runner/.cabal/store/ghc-8.10.4/dbl-cnvrsn-2.0.2.0-2cca6009/lib/libHSdbl-cnvrsn-2.0.2.0-2cca6009.a(fast-dtoa.o).

doctests: doctests: unable to load package `double-conversion-2.0.2.0'

@andreasabel
Copy link
Collaborator

@newhoggy: Did you find anything useful at #271?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants