google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.71k stars 340 forks source link

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

Open jberryman opened 1 year ago

jberryman commented 1 year ago
$ 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