question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

angr.exploration_techniques.Tracer() got an unexpected keyword argument 'copy_states'

See original GitHub issue

When I run shellphuzz I get the following:

WARNING | 2018-11-28 13:11:27,135 | local_callback | starting drilling of buggy, id:000000,orig:seed-0 Traceback (most recent call last): File "/home/kburova/.virtualenvs/devis/lib/python3.5/site-packages/driller/local_callback.py", line 122, in <module> for new_input in d.drill_generator(): File "/home/kburova/.virtualenvs/devis/lib/python3.5/site-packages/driller/driller_main.py", line 101, in drill_generator for i in self._drill_input(): File "/home/kburova/.virtualenvs/devis/lib/python3.5/site-packages/driller/driller_main.py", line 128, in _drill_input t = angr.exploration_techniques.Tracer(trace=r.trace, crash_addr=r.crash_addr, copy_states=True) TypeError: __init__() got an unexpected keyword argument 'copy_states' (b'', None)

I assume the version of tracer.py is wrong under angr/exploration_techniques/. I installed angr using command pip install angr. When I use python setup.py install within angr repo folder, I get correct tracer.py, but then lib/angr_native.so is missing. Any suggestions on how to fix all this, and what needs to be installed/reinstalled? Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rhelmotcommented, Apr 25, 2019

Wow, that was easier than I thought. I integrated the above patch slightly differently in https://github.com/angr/angr/commit/31d5bb0c1d787427cdb95fc600619f064309eaa4. This should be resolved now.

0reactions
JP1125commented, Apr 25, 2019

I also encountered the same exception All states disappeared!. I checked various variables around this code, e.g., step_step() and _update_state_tracking(), and found that state.history.jumpkind indicates Ijk_Exit. It is not seem to be a critical error/exception. So, I added the following if branch to drop the exception.

https://github.com/angr/angr/blob/master/angr/exploration_techniques/tracer.py#L210-L212

elif self._compare_addr(self._trace[idx + 1], state.addr):
    if state.history.jumpkind.startswith('Ijk_Exit'):
        # termination!
        state.globals['trace_idx'] = len(self._trace) - 1
    else:
        # normal case
        state.globals['trace_idx'] = idx + 1

BTW, this is an issue of angr not driller…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simulation Managers - angr Documentation
explore() with a find argument, execution will run until a state is found that matches the find condition, which can be the address...
Read more >
setup() got an unexpected keyword argument 'silent'
If you believe this is in error, please take it up with the Pycaret dev team, for example by looking for an issue...
Read more >
Diff - 241d4738f53e9d144c5b601f4f579778859d6847^! - tour
- -The issue tracker for the tour's code is located at https://github.com/golang/go/issues. -Prefix your issue with "x/tour:" in the subject line, so it...
Read more >
How to use the angr.exploration_techniques function in angr
To help you get started, we've selected a few angr examples, based on popular ways it is used in public projects. Secure your...
Read more >
Object-Oriented System Development - The Swiss Bay
analysis and design methods have emerged and are still under development. ... Exploratory programming is called for when most of the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found