Skip to content

Pandoc test suite segfaults on i386 when compiled with head

Summary

While testing !10568 (closed) I came across a segfault when running Pandoc's test suite. I also tried compiling it without my patches and it still segfaults with the current HEAD version. I did also try using GHC 9.4.3 which does not cause the segfault.

Steps to reproduce

I don't have a i386 machine, so I'm using a docker container to test this.

git clone https://gitlab.haskell.org/bgamari/ghc-utils.git
cd ghc-utils
./ghc-docker-jobs.sh i386-linux-deb9-validate master

Then inside that docker container:

hadrian/build -j --flavour=perf --docs=none
cd ..
cabal unpack pandoc
cd pandoc-3.1.3
curl https://ghc.gitlab.haskell.org/head.hackage/cabal.project >> cabal.project.local
echo "
source-repository-package
    type: git
    location: https://github.com/hsyl20/foundation.git
    tag: 38be2c93acb6f459d24ed6c626981c35ccf44095
    subdir: basement

source-repository-package
    type: git
    location: https://github.com/GNUtoo/hs-memory.git
    tag: 2d3efc2aa84f981673a76fd8071f4a24012d5702" >> cabal.project.local
cabal update
cabal run test-pandoc -w ~/ghc/_build/stage1/bin/ghc

On my machine this produces a segfault.

Expected behavior

Run the test suite which results in 2 failures like it does with GHC 9.4.3.

Environment

Optional:

  • Operating System: Linux
  • System Architecture: i386 (docker)
Edited by Jaro Reinders
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information