Skip to content

Tests crash ghc 9.12.2 with musl #303

@yaitskov

Description

@yaitskov

Hi,

I noticed that shakespeare tests cause a segfault if app is building statically.
I tried several versions.
Build succeeds and the app is working if the tests are disabled.
Yesod tests pass without issues.
Maybe a ghc bug, but it is interesting to note anyway.
I haven't found tag for 2.2.0 on github.

/nix/store/sp15vpx9zm4hwsb8ryljqkm3p8xvj6wh-stdenv-linux/setup: line 1763:   276 Segmentation fault      (core dumped) ./Setup build
error: Cannot build '/nix/store/0wajyr8kmq4rmmhlgzvbsdq4ikjvmvrf-shakespeare-2.2.0.drv'.
       Reason: builder failed with exit code 139.
       Output paths:
         /nix/store/c3mkgm5yvnb7dsh6jfgfm73qlabvrwy7-shakespeare-2.2.0-doc
         /nix/store/qysvdz74vgqcv085wp5v6n09fdg8hlz3-shakespeare-2.2.0
       Last 25 log lines:
       > Text/Shakespeare/I18N.hs:230:30: warning: [GHC-62161] [-Wincomplete-uni-patterns]
       >     Pattern match(es) are non-exhaustive
       >     In a lambda abstraction:
       >         Patterns of type ‘[String]’ not matched: []
       >     |
       > 230 |                  cxt = fmap (\(c:rest) -> foldl' (\acc v -> acc `AppT` nameToType v) 
       >     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
       >
       > Text/Shakespeare/I18N.hs:502:17: warning: [GHC-58520] [-Wtype-equality-requires-operators]
       >     The use of ‘~’ without TypeOperators
       >     will become an error in a future GHC release.
       >     Suggested fix:
       >       Perhaps you intended to use the ‘TypeOperators’ extension
       >     |
       > 502 | instance master ~ master' => RenderMessage master (SomeMessage master') where
       >     |                 ^
       >
       > [21 of 22] Compiling Text.Shakespeare.Text ( Text/Shakespeare/Text.hs, dist/build/Text/Shakespeare/Text.p_o )
       > [22 of 22] Compiling Text.TypeScript  ( Text/TypeScript.hs, dist/build/Text/TypeScript.p_o )
       > Preprocessing test suite 'test' for shakespeare-2.2.0...
       > Building test suite 'test' for shakespeare-2.2.0...
       > [ 1 of 10] Compiling HamletTestTypes  ( test/HamletTestTypes.hs, dist/build/test/test-tmp/HamletTestTypes.o )
       > [ 2 of 10] Compiling Quoter           ( test/Quoter.hs, dist/build/test/test-tmp/Quoter.o )
       > [ 3 of 10] Compiling Text.CssSpec     ( test/Text/CssSpec.hs, dist/build/test/test-tmp/Text/CssSpec.o )
       > /nix/store/sp15vpx9zm4hwsb8ryljqkm3p8xvj6wh-stdenv-linux/setup: line 1763:   276 Segmentation fault      (core dumped) ./Setup build
       For full logs, run:
         nix log /nix/store/0wajyr8kmq4rmmhlgzvbsdq4ikjvmvrf-shakespeare-2.2.0.drv
error: Cannot build '/nix/store/4hbscc2i39z7vwfj0fsgrybmjjwr2ply-yesod-1.6.2.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/jwal9p7j5brn3fvd5sri0y39bks8i89q-yesod-1.6.2.1-doc
         /nix/store/p04dzc78h8vhnw5fkbrsrrxf5w5l9zv5-yesod-1.6.2.1
error: Cannot build '/nix/store/7kdnxlp0b94g0czh4v0gm884y65c66b7-vpn-router-0.0.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/gxk0wj7nflz02k4jzcz92c2974p6ydjw-vpn-router-0.0.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