Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overflow in vm range #382

Open
NickeZ opened this issue Aug 14, 2024 · 2 comments
Open

overflow in vm range #382

NickeZ opened this issue Aug 14, 2024 · 2 comments

Comments

@NickeZ
Copy link

NickeZ commented Aug 14, 2024

Hello!
Thank you for this very nice tool. When I'm comparing binaries built with different compilers (gcc-8 and gcc-11) I get the following error message:

$ bloaty firmware.11.3-2022.08.elf -d compileunits -- firmware.8-2019-q3.elf
bloaty: Overflow in vm range, vmaddr=276388, vmsize=18446744073709275228

diffing them without compileunits work:

$ bloaty firmware.11.3-2022.08.elf -- firmware.8-2019-q3.elf
    FILE SIZE        VM SIZE
 --------------  --------------
  [NEW]  +354Ki  [ = ]       0    .debug_loclists
  [NEW] +32.4Ki  [ = ]       0    .debug_rnglists
  +2.6% +17.0Ki  +2.6% +17.0Ki    .text
  +1.6% +11.9Ki  [ = ]       0    .debug_line
  +0.5% +11.3Ki  [ = ]       0    .debug_str
  +7.1% +9.50Ki  [ = ]       0    .debug_abbrev
  +9.8% +3.09Ki  [ = ]       0    .debug_aranges
  +0.6% +1.19Ki  [ = ]       0    .symtab
  [NEW]    +257  [ = ]       0    .debug_line_str
  [ = ]       0  +0.6%    +252    .bss
  +0.1%    +173  [ = ]       0    .strtab
  +3.8%     +40  [ = ]       0    [ELF Section Headers]
 -85.6%     +35 -100.0%      +4    [2 Others]
 -24.6%     -67  [ = ]       0    .comment
  [DEL]    -204  [ = ]       0    .stab
  [DEL]    -444  [ = ]       0    .stabstr
  -1.2% -1.32Ki  [ = ]       0    .debug_frame
 -16.4% -17.0Ki  [ = ]       0    [Unmapped]
 -14.7% -55.7Ki  [ = ]       0    .debug_ranges
  -9.4%  -310Ki  [ = ]       0    .debug_info
 -38.7%  -512Ki  [ = ]       0    .debug_loc
  -4.8%  -455Ki  +2.0% +17.3Ki    TOTAL

files.zip

@murphyatwork
Copy link

+1 Got same error with StarRocks binary:

bloaty: Overflow in vm range, vmaddr=12465963768561892118, vmsize=5980780305148018688

it's like an integer overflow ?

@DDR0
Copy link

DDR0 commented Oct 31, 2024

I'm having this issue too.

$ bloaty *.elf -d compileunits
bloaty: Overflow in vm range, vmaddr=1075541649, vmsize=18446744072634009967

I have attached a small repro, a few MiB in size. Cheers!

RavelightsMain.ino.elf.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants