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

retdec-fileinfo runs 40 seconds and consumes 8 GB of RAM on 28 KB file #872

Closed
s3rvac opened this issue Oct 20, 2020 · 2 comments
Closed

Comments

@s3rvac
Copy link
Member

s3rvac commented Oct 20, 2020

retdec-fileinfo runs 40 seconds and consumes 8 GB of RAM on 28 KB file

Steps to reproduce

$ retdec-fileinfo FILE

where FILE is E556E9A67BBED5B6C32BE434A148841FEFEE81EB39432D427CB08FEFB0098173.

Expected output

retdec-fileinfo analyzes the file in a reasonable time, using a reasonable amount of memory.

Actual output

$ /usr/bin/time -v retdec-fileinfo E556E9A67BBED5B6C32BE434A148841FEFEE81EB39432D427CB08FEFB0098173.dat
Input file               : E556E9A67BBED5B6C32BE434A148841FEFEE81EB39432D427CB08FEFB0098173.dat
[..]
Overlay size             : 0x6a6c
        [..]
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:39.25
        [..]
        Maximum resident set size (kbytes): 8375140
        [..]
        Exit status: 0

That is, it ran for almost 40 seconds and consumed 8 GB of memory.

Notes

Before the image-loader changes, retdec-fileinfo ran for 2 seconds and consumed 2 GB of RAM.

My configuration

  • Current master (commit 4e31e3a)
  • 64b Debian, GCC 9.2, Debug build
@ladislav-zezula
Copy link
Contributor

s3rvac added a commit that referenced this issue Oct 21, 2020
@s3rvac
Copy link
Member Author

s3rvac commented Oct 21, 2020

Fixed by @ladislav-zezula in #873.

@s3rvac s3rvac closed this as completed Oct 21, 2020
s3rvac added a commit that referenced this issue Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants