GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T18:19:48Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/13857compactAdd doesn't work with SmallArray#2019-07-07T18:19:48ZAndrew MartincompactAdd doesn't work with SmallArray#I get this when I try to compact a small array:
```
internal error: stg_compactAddWorkerzh: TODO: SMALL_MUT_ARR_PTRS
(GHC version 8.2.0.20170404 for x86_64_unknown_linux)
Please report this as a GHC bug: http://www.haskell.org/...I get this when I try to compact a small array:
```
internal error: stg_compactAddWorkerzh: TODO: SMALL_MUT_ARR_PTRS
(GHC version 8.2.0.20170404 for x86_64_unknown_linux)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
```
If I look in `rts/Compact.cmm`, I can see that this hasn't been implemented. I haven't seen this in another issue, so I just wanted to make sure it was not overlooked before the 8.2 release.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------- |
| Version | 8.2.1-rc2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | high |
| Resolution | Unresolved |
| Component | Runtime System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"compactAdd doesn't work with SmallArray#","status":"New","operating_system":"","component":"Runtime System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.2.1-rc2","keywords":["compact"],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"I get this when I try to compact a small array:\r\n\r\n{{{\r\ninternal error: stg_compactAddWorkerzh: TODO: SMALL_MUT_ARR_PTRS\r\n (GHC version 8.2.0.20170404 for x86_64_unknown_linux)\r\n Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug\r\n}}}\r\n\r\nIf I look in `rts/Compact.cmm`, I can see that this hasn't been implemented. I haven't seen this in another issue, so I just wanted to make sure it was not overlooked before the 8.2 release.","type_of_failure":"OtherFailure","blocking":[]} -->8.4.3https://gitlab.haskell.org/ghc/ghc/-/issues/13793Simple program trips checkNurserySanity()2019-07-07T18:20:03ZniteriaSimple program trips checkNurserySanity()Error:
```
Repro: internal error: ASSERTION FAILED: file rts/sm/Sanity.c, line 713
(GHC version 8.3.20170606 for x86_64_unknown_linux)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
```
Repro steps:
-...Error:
```
Repro: internal error: ASSERTION FAILED: file rts/sm/Sanity.c, line 713
(GHC version 8.3.20170606 for x86_64_unknown_linux)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
```
Repro steps:
- Add `GhcRTSWays += thr_debug` to `mk/build.mk` to build threaded debug runtime
```
inplace/bin/ghc-stage2 -fforce-recomp -debug -rtsopts -threaded -main-is Repro Repro.hs
./Repro +RTS -A16m -DS
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------- |
| Version | 8.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Runtime System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | simonmar |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Simple program trips checkNurserySanity()","status":"New","operating_system":"","component":"Runtime System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.3","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":["simonmar"],"type":"Bug","description":"Error:\r\n{{{\r\nRepro: internal error: ASSERTION FAILED: file rts/sm/Sanity.c, line 713\r\n\r\n (GHC version 8.3.20170606 for x86_64_unknown_linux)\r\n Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug\r\n}}}\r\n\r\nRepro steps:\r\n* Add `GhcRTSWays += thr_debug` to `mk/build.mk` to build threaded debug runtime\r\n{{{\r\ninplace/bin/ghc-stage2 -fforce-recomp -debug -rtsopts -threaded -main-is Repro Repro.hs\r\n./Repro +RTS -A16m -DS\r\n}}}\r\n\r\n","type_of_failure":"OtherFailure","blocking":[]} -->8.4.3Simon MarlowSimon Marlow