commercialhaskell / commercialhaskell/stack

Segmentation Fault when running stack in zsh (MacOS)

Open
#5,607 25 comments 36 reactions 0 assignees View on GitHub
further investigation required
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

### Summary
When using stack in zsh it returns segfault.

### Steps to reproduce
Using zsh to run:
```
brew install stack
stack new project
```
But if you add the verbose flag, or redirect its stdout, it does not segfault.
```
stack new project -v
stack new project2 > /dev/null
```
run perfectly fine.
Note that not all commands fail, for example
```
stack --help
stack config
```
work.
If one uses bash instead of zsh, it also runs without any problem.

### Version
OS: MacOS 11.5.2 aarch64
Zsh: 5.8
Terminal: The MacOS builtin terminal
Installation method: homebrew
```
$ stack --version
Version 2.7.3 aarch64
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.