google / google/bloaty

"Overflow in vm range" in a haskell binary, linked with `--gc-sections`

Open
#329 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
5.5k
Forks
378
Avg merge
23h 54m
Merged PRs (30d)
6

Description

```
$ bloaty test-pandoc -d compileunits
bloaty: Overflow in vm range, vmaddr=26239607, vmsize=18446744073683312009
$ bloaty --version
Bloaty McBloatface 1.1
```

This is from the pandoc test suite, compiled with `cabal build -w ghc-9.2.5`, and with DWARF symbols added (`-g1`), and linked with `---gc-sections`

The issue could very well be something with ghc, as DWARF isn't used much, maybe it's interacting badly with `-gc-sections`. But I figured I'd open a ticket

here's an example. it's bzip2 compressed, but I had to change the filename to please github
[test-pandoc.g1.gc-sections.broken.zip](https://github.com/google/bloaty/files/10097300/test-pandoc.g1.gc-sections.broken.zip)

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.