Skip to content

Stack REPL crashes on ghcjs-base. #542

Open
@crocket

Description

@crocket

I inserted the following stack.yaml into ghcjs-base and executed stack ghci in ghcjs-base.

resolver: lts-6.20
compiler: ghcjs-0.2.0.9006020_ghc-7.10.3
compiler-check: match-exact

setup-info:
  ghcjs:
    source:
      ghcjs-0.2.0.9006020_ghc-7.10.3:
        url: http://ghcjs.tolysz.org/lts-6.20-9006020.tar.gz
        sha1: a6cea90cd8121eee3afb201183c6e9bd6bacd94a

packages:
- '.'

extra-deps: []

flags: {}

extra-package-dbs: []

I had to push through multiple instances of segmentation faults to launch REPL on ghcjs-base. Does this issue still exist?

stack ghci works fine on small toy GHCJS projects. Thus, I conjecture that it is related to nodejs memory limitations.

Activity

crocket

crocket commented on Oct 30, 2016

@crocket
Author

I found a good way to debug this issue.
I just needed to compile ghcjs with --profile or --enable-profiling.
+RTS -xc -RTS will reveal the stack trace.

crocket

crocket commented on Oct 31, 2016

@crocket
Author

I can't compile stack and ghcjs-ghc7 with profiling.

ghcjs-ghc8 will probably be ok with profiling.

For stack, refer to commercialhaskell/stack#2751

changed the title REPL crashes on ghcjs-base. Stack REPL crashes on ghcjs-base. on Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Stack REPL crashes on ghcjs-base. · Issue #542 · ghcjs/ghcjs