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

rizin is slow and OOMs when using large ELF with debug symbols (vmlinux) #4385

Open
rockrid3r opened this issue Mar 25, 2024 · 3 comments
Open
Labels
bug Something isn't working Debug performance A performance problem/enhancement

Comments

@rockrid3r
Copy link
Contributor

rockrid3r commented Mar 25, 2024

Work environment

Questions Answers
OS/arch/bits (mandatory) Debian 12 x86/64
File format of the file you reverse (mandatory) ELF
Architecture/bits of the file (mandatory) x86/64
rizin -v full output, not truncated (mandatory) rizin 0.8.0 @ linux-x86-64 commit: 957a299

Expected behavior

Fast.

Actual behavior

Slow & dies because of OOM.
Running with

rizin -e bin.strings=false vmlinux

results in OOM most probably. Other times it's just 10+ mins before startup.

If you run it with

rizin -e bin.strings=false -e bin.dbginfo=false vmlinux

it starts ok in about 3-5 seconds.

Steps to reproduce the behavior

  • Compile linux kernel with debug symbols
  • Run rizin as above

Additional Logs, screenshots, source code, configuration dump, ...

callgrind.out.27141.txt
callgrind.out.9399.txt

@Rot127 Rot127 added bug Something isn't working Debug performance A performance problem/enhancement labels Mar 25, 2024
@rockrid3r
Copy link
Contributor Author

@pelijah noted the process may be killed too early. Re-ran callgrind on a better hardware. See above.

@wargio
Copy link
Member

wargio commented Mar 25, 2024

the last uploaded file is empty

@rockrid3r
Copy link
Contributor Author

the last uploaded file is empty

my bad. reuploaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Debug performance A performance problem/enhancement
Projects
None yet
Development

No branches or pull requests

3 participants