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

Process r2 was stopped if machine hasn't enough memory #13143

Open
dukebarman opened this issue Feb 18, 2019 · 15 comments
Open

Process r2 was stopped if machine hasn't enough memory #13143

dukebarman opened this issue Feb 18, 2019 · 15 comments

Comments

@dukebarman
Copy link
Contributor

dukebarman commented Feb 18, 2019

Work environment

Questions Answers
OS/arch/bits (mandatory) VM Ubuntu 18 x64, 4Gb RAM
r2 -v full output, not truncated (mandatory) rradare2 3.3.0-git 21034 @ linux-x86-64 git.3.2.1-384-g2dc2de305 commit: 2dc2de3 build: 2019-02-18__01:53:27
$ r2 -A /usr/lib/firefox/libxul.so
WARNING: bin_strings buffer is too big (0x012ad527). Use -zzz or set bin.maxstrbuf (RABIN2_MAXSTRBUF) in r2 (rabin2)
Cannot compute hash
Cannot compute hash
oops
[[anal.jmptbl] Missing predecesessor cjmp bb at 0x011bec83
[anal.jmptbl] Missing predecesessor cjmp bb at 0x03622647
[anal.jmptbl] Missing predecesessor cjmp bb at 0x036725b7
[anal.jmptbl] Missing predecesessor cjmp bb at 0x022d0557
[anal.jmptbl] Missing predecesessor cjmp bb at 0x03622637
[anal.jmptbl] Missing predecesessor cjmp bb at 0x04905255
[anal.jmptbl] Missing predecesessor cjmp bb at 0x037af4b7
[anal.jmptbl] Missing predecesessor cjmp bb at 0x022d0547
[x] Analyze all flags starting with sym. and entry0 (aa)
...
[x] Analyze function calls (aac)
[x] Analyze len bytes of instructions for references (aar)
[Invalid asr shift of 58 at 0x3bc3d5bnctions (aaft)
Invalid asr shift of 58 at 0x3bc3e25
Invalid asr shift of 58 at 0x3bc3ebf
Invalid asr shift of 58 at 0x3bc3f61
Invalid asr shift of 58 at 0x3bc3ffb
Invalid asr shift of 58 at 0x3bc40aa
Invalid asr shift of 58 at 0x3bc375c
Invalid asr shift of 58 at 0x3bc3889
Invalid asr shift of 58 at 0x3bc390f
Invalid asr shift of 58 at 0x3bc397c
Invalid asr shift of 58 at 0x3bc3a59
Invalid asr shift of 58 at 0x3bc3ac6
Invalid asr shift of 58 at 0x3bc3b80
Invalid asr shift of 58 at 0x3bc3bed
Invalid asr shift of 58 at 0x3bc44e1
Invalid asr shift of 58 at 0x3bc4bd4
Invalid asr shift of 32 at 0x371cfa4
Invalid asr shift of 46 at 0x371e281
Invalid asr shift of 46 at 0x371e2df
Invalid asr shift of 33 at 0x370511d
Invalid asr shift of 35 at 0x36dfd1b
Invalid asr shift of 46 at 0x36e2068
Invalid asr shift of 32 at 0x36dbcf3
Invalid asr shift of 36 at 0x36dbdb6
Killed

Additional info in #6322

@Maijin Maijin added this to To do in Performance via automation Feb 18, 2019
@ret2libc ret2libc self-assigned this Feb 18, 2019
@radare
Copy link
Collaborator

radare commented Feb 18, 2019 via email

@dukebarman
Copy link
Contributor Author

strace.zip

@dukebarman
Copy link
Contributor Author

bt is empty in gdb session. How can I make asan build? (what options)

@radare
Copy link
Collaborator

radare commented Feb 19, 2019 via email

@dukebarman
Copy link
Contributor Author

@radare with default arguments?

@radare
Copy link
Collaborator

radare commented Feb 19, 2019 via email

@dukebarman
Copy link
Contributor Author

asan build doesn't show another errors

@ret2libc
Copy link
Contributor

Does it show the stack trace when the program gets killed?

@dukebarman
Copy link
Contributor Author

Nope

@radare
Copy link
Collaborator

radare commented Feb 19, 2019 via email

@ret2libc
Copy link
Contributor

This is not about a big malloc, but a series of relatively small mallocs, because the program keeps calling brk. If there was a big malloc it would have probably used mmap or a sbrk with a big difference between current and next brk value.

@radare
Copy link
Collaborator

radare commented Apr 17, 2019

is this bug still there? i think we fixed all those memory problems

@ret2libc
Copy link
Contributor

Well... I think the problem is still there, because r2 uses in general a lot of memory and on some machines with not a lot of ram r2 could be killed. That said.... at the moment and for some time I think there isn't much we can do.

@dukebarman
Copy link
Contributor Author

Yep, it was aborted again.

@radare
Copy link
Collaborator

radare commented Apr 17, 2019 via email

@ret2libc ret2libc removed their assignment Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Performance
  
To do
Development

No branches or pull requests

4 participants