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

always killed #14

Open
harden614 opened this issue Oct 14, 2021 · 4 comments
Open

always killed #14

harden614 opened this issue Oct 14, 2021 · 4 comments
Labels
question Further information is requested

Comments

@harden614
Copy link

when i run karonte.py and doing Building xxxxx CFG (this may take some time),then killed
image

@sud0why
Copy link

sud0why commented Nov 1, 2021

The same problem. Always killed is because memory is not enough. I use a 512GB memory to run dlink-880 firmware, alse be killed. I think problem at tool/bdg/binary_dependency_graph.py, class BinaryDependencyGraph, def _update_projects, self._cfgs[b] = self._projects[b].analyses.CFG(collect_data_references=True, extra_cross_references=True)

extra_cross_references=True option allow angr collect "cross-references" from the entire program, It consume more memory.

But I check origin paper and code branch IEEE-SP-20, this experiment is on a 32GB memory machine. I'm very confused.

When I disable cross_references option and only enable data_references option, I can't get the same result with result in dataset on dlink-880

@harden614
Copy link
Author

harden614 commented Nov 9, 2021 via email

@ltfish
Copy link

ltfish commented Nov 9, 2021

A quick note on debugging tips: It's usually one of the SimProcedures trying to create lists (or other data structures) based on incorrect or negative indices (e.g., creating a list with BVV(-1, 32) elements). You can run the script with ipython --pdb, then kill it when the memory usage goes up uncontrollably to see where it's creating large lists or other containers.

I believe Karonte is still using a super old base of angr, which means we won't be able to backport our fixes in new versions of angr, unfortunately.

@ltfish ltfish added the question Further information is requested label Nov 9, 2021
@harden614
Copy link
Author

harden614 commented Nov 16, 2021 via email

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

No branches or pull requests

3 participants