-
Notifications
You must be signed in to change notification settings - Fork 9
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
testmthread: Contains an unsupported closure type (whose implementation is missing) #18
Comments
This error has been observed also on ubuntu-22.04 using GHC 7.10.3 and Clang 18 (CI run: https://github.com/runeksvendsen/packman/actions/runs/12557619285/job/35010538362). Logs:
|
Note: the CI run for I know this because I wrote a script for grepping the logs of failed jobs within a GitHub CI run (see https://stackoverflow.com/a/79326305/700597), and all of the logs contain the string |
In CI I'm seeing the following error as well for the
Full logs:
|
CI: ignore failures due to issue #18
@jberthold in #19 (comment) you say (regarding this issue):
How do I do this? I've tried running with the |
There are macros Lines 75 to 90 in 58b5a6d
When using the library, the debug logging is activated together with other debug options ( scheduler and sparks ), originally from https://github.com/ghc/ghc/blob/f21fbb795b39a3ac0cf56940be67daf4ce4369fa/includes/rts/Flags.h#L90-L110In order to use the flags, you need to link the program with debugging enabled ( -debug ), and then pass +RTS -Ds -Dr -RTS as command line flags for the runtime system (to activate both scheduler and sparks ) when you run the program, see https://downloads.haskell.org/ghc/9.12.1/docs/users_guide/runtime_control.html#rts-options-for-hackers-debuggers-and-over-interested-souls(How exactly to do this with a distro GHC I don't quite remember, TBH, I was always using the debugging with GHCs built locally with debugging enabled). |
Just re-read your last sentence...
What is missing is the activation of the |
@jberthold thank you. The command |
Sorry for the delayed response, busy getting back to the job... |
As it turns out, ghc-8.6.5 provided by nix via $ nix-shell --argstr ghcVersion ghc844 --run "cabal -fdebug test"
$ dist-newstyle/build/x86_64-linux/ghc-8.4.4/packman-0.5.1/t/testmthread/build/testmthread/testmthread +RTS -Ds -Dr 2>&1 | grep -i pack
$ nix-shell --argstr ghcVersion ghc884 --run "cabal -fdebug test"
$ dist-newstyle/build/x86_64-linux/ghc-8.8.4/packman-0.5.1/t/testmthread/build/testmthread/testmthread +RTS -Ds -Dr 2>&1 | grep -i pack IDK why 865 does not (maybe something that the Also, I observed the multi-threading error ( |
Using GHC 8.6.5 on macOS, the
testmthread
test suite occasionally fails with the following output:It doesn't always happen, but if I keep running the given test suite repeatedly as follows, it happens after a few runs.
The test failure can be observed in the following CI run: https://github.com/runeksvendsen/packman/actions/runs/12525280654/job/34936688671
TODO
The text was updated successfully, but these errors were encountered: