Skip to content

HLS failing with Assertion freesize < size failed on a fairly minimal example #2328

Closed
@googleson78

Description

@googleson78

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

> haskell-language-server-9.0.1 --probe-tools
haskell-language-server version: 1.4.0.0 (GHC: 9.0.1) (PATH: /home/googleson78/.ghcup/bin/haskell-language-server-9.0.1~1.4.0) (GIT hash: 253547816ee216c53ee7dacc0ad3cac43e863d30)
Tool versions found on the $PATH
cabal:          3.6.0.0
stack:          2.7.3
ghc:            8.8.4

Which OS do you use:
Debian

Which lsp-client do you use:
LanguageClient-neovim

Describe your project (alternative: link to the project):
Here's a link to the reproducer - https://github.com/googleson78/hls-repro-0

Contents of hie.yaml:
Not using a custom hie.yaml

Steps to reproduce

Run haskell-language-server-wrapper (or -9.0.1) in the given reproducer

Note that removing the directory dependency stops this from happening.

Expected behaviour

No crash

Actual behaviour

Completed (1 file worked, 0 files failed)
haskell-language-server-9.0.1: allocatestack.c:384: advise_stack_range: Assertion `freesize < size' failed.
[1]    144526 abort      haskell-language-server-9.0.1

Include debug information

It's included in the repro example repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions