-
Notifications
You must be signed in to change notification settings - Fork 841
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
Segmentation fault in stack repl #6134
Comments
@MiguelGuthridge, thanks for reporting. I can't reproduce this on Windows, so it may well be operating system-specific. To collect some more information about your experience, when you start up |
The full output is listed above. I'm outside of a project folder - this is my second day learning Haskell, so I'm barely writing single files, let alone projects at this point. I did notice that I was able to get similar crashes in GHCI, just with different output. In the mean time, my course admins seem to have done some further investigation, and it appears to be a kernel-related issue. Currently, my machine is on Kernel 6.2.15, and the fix is only present in Kernel 6.3.4, so I'll just have to wait a few weeks for it to be resolved :( I'll also have to investigate to see if I can use GHC >= 9.4.x in my course, since it apparently also fixes the issues. Sadly until there is LSP support, I'll be unable to use 9.2.8 which appears to backport the fix. Unless there's anything that can be fixed on the Stack end of things, feel free to close this :) |
Given what your course admins have identified, this looks to be an upstream issue and I will close. There is no Stackage snapshot (yet) for GHC 9.2.8, but Stack should work if you specify in the relevant resolver: lts-20.23 # GHC 9.2.7
compiler: ghc-9.2.8 # Override snapshot with GHC 9.2.8 See https://docs.haskellstack.org/en/stable/yaml_configuration/#compiler. |
Please follow the steps below for reporting a bug in Stack:
Make sure that you are using the latest release (currently Stack 2.11.1). See the
upgrade instructions
to upgrade.
Please use the following schema for your bug report:
General summary/comments
When I run certain commands in the Stack REPL, it causes a segmentation fault.
Steps to reproduce
For example:
stack repl
add_two = (+) 2
add_two 3
Expected
The output is printed correctly, then the REPL continues normally.
Actual
After the output is printed, a segmentation fault occurs, and the REPL exits with code
139
I cannot reproduce the issue when the
--verbose
flag is given.Stack version
Method of installation
Platform
Other observations
I use
zsh
as my shell, and the error does not occur if I run Stack from withinbash
. This could indicate similarity to #5607 (although I created a new issue due to it being specifically for MacOS).Edit: I appear to get similar segfault errors under
bash
, just with different inputs.The text was updated successfully, but these errors were encountered: