commercialhaskell / commercialhaskell/stack

Adding a new module to a project and running `app/DevelMain.update` fails

Open
#4,040 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

```
Prelude> update
ghc: panic! (the 'impossible' happened)
(GHC version 8.2.2 for x86_64-unknown-linux):
Loading temp shared object failed: /tmp/ghc16656_0/libghc_9.so: undefined symbol: HandlerziAuthziViews_renderLogin_closure

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
```

Commit used was eeec8dfa7798175c619390e469ac5d85d6d07a6f

I added a new module, it was automatically pulled into other modules. My modules would already be compiled, so I'd run `:load app/DevelMain.hs` and then `update` to rerun my Yesod application and I got the above error.

I could probably reproduce this using https://github.com/fpco/badgers if desired. `stack clean` didn't fix it, I was in the middle of something so I didn't have time to try other things.

Contributor guide

Open the contributing guide

Research direction

Start with commit eeec8dfa7798175c619390e469ac5d85d6d07a6f and app/DevelMain.hs, then reproduce the failure from `:load app/DevelMain.hs` followed by `update`. If possible, try the badgers project as a smaller reproduction. Done should identify whether the failure belongs to Stack or GHC and provide a confirmed reproduction or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.