{"action":"created","issue":{"url":"https://api.github.com/repos/angr/angr/issues/173","repository_url":"https://api.github.com/repos/angr/angr","labels_url":"https://api.github.com/repos/angr/angr/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/angr/angr/issues/173/comments","events_url":"https://api.github.com/repos/angr/angr/issues/173/events","html_url":"https://github.com/angr/angr/issues/173","id":169311362,"number":173,"title":"KeyError: 'x86_cr0'","user":{"login":"ljun85","id":20829780,"avatar_url":"https://avatars.githubusercontent.com/u/20829780?v=3","gravatar_id":"","url":"https://api.github.com/users/ljun85","html_url":"https://github.com/ljun85","followers_url":"https://api.github.com/users/ljun85/followers","following_url":"https://api.github.com/users/ljun85/following{/other_user}","gists_url":"https://api.github.com/users/ljun85/gists{/gist_id}","starred_url":"https://api.github.com/users/ljun85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljun85/subscriptions","organizations_url":"https://api.github.com/users/ljun85/orgs","repos_url":"https://api.github.com/users/ljun85/repos","events_url":"https://api.github.com/users/ljun85/events{/privacy}","received_events_url":"https://api.github.com/users/ljun85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-04T07:44:50Z","updated_at":"2016-08-08T06:36:11Z","closed_at":null,"body":"When use 'b.analyses.CFG()', it promt \"KeyError: 'x86_cr0'\", where b = angr.Project('/bin/true'), why?\r\n\r\n\r\n File \"/root/.virtualenvs/angr/local/lib/python2.7/site-packages/pyvex-4.6.6.28-py2.7.egg/pyvex/block.py\", line 70, in __init__\r\n    1)\r\nKeyError: 'x86_cr0'"},"comment":{"url":"https://api.github.com/repos/angr/angr/issues/comments/238152748","html_url":"https://github.com/angr/angr/issues/173#issuecomment-238152748","issue_url":"https://api.github.com/repos/angr/angr/issues/173","id":238152748,"user":{"login":"ljun85","id":20829780,"avatar_url":"https://avatars.githubusercontent.com/u/20829780?v=3","gravatar_id":"","url":"https://api.github.com/users/ljun85","html_url":"https://github.com/ljun85","followers_url":"https://api.github.com/users/ljun85/followers","following_url":"https://api.github.com/users/ljun85/following{/other_user}","gists_url":"https://api.github.com/users/ljun85/gists{/gist_id}","starred_url":"https://api.github.com/users/ljun85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljun85/subscriptions","organizations_url":"https://api.github.com/users/ljun85/orgs","repos_url":"https://api.github.com/users/ljun85/repos","events_url":"https://api.github.com/users/ljun85/events{/privacy}","received_events_url":"https://api.github.com/users/ljun85/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T06:36:11Z","updated_at":"2016-08-08T06:36:11Z","body":"I  update my angr by donging  pip install --upgrade angr:\r\nout:\r\nDownloading/unpacking angr\r\n  Downloading angr-4.6.6.29.tar.gz (206Kb): 206Kb downloaded\r\n  Running setup.py egg_info for package angr\r\n\r\nRequirement already up-to-date: capstone in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/capstone-3.0.4-py2.7.egg (from angr)\r\nRequirement already up-to-date: networkx in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/networkx-1.11-py2.7.egg (from angr)\r\nRequirement already up-to-date: futures in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/futures-3.0.5-py2.7.egg (from angr)\r\nCannot fetch index base URL http://pypi.python.org/simple/\r\nRequirement already up-to-date: progressbar in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/progressbar-2.3-py2.7.egg (from angr)\r\nRequirement already up-to-date: mulpyplexer in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from angr)\r\nRequirement already up-to-date: cooldict in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from angr)\r\nRequirement already up-to-date: ana in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from angr)\r\nRequirement already up-to-date: archinfo in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/archinfo-4.6.6.28-py2.7.egg (from angr)\r\nRequirement already up-to-date: pyvex in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/pyvex-4.6.6.28-py2.7.egg (from angr)\r\nRequirement already up-to-date: claripy in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/claripy-4.6.6.29-py2.7.egg (from angr)\r\nRequirement already up-to-date: simuvex in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/simuvex-4.6.6.28-py2.7.egg (from angr)\r\nRequirement already up-to-date: cle in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/cle-4.6.6.28-py2.7.egg (from angr)\r\nRequirement already up-to-date: cachetools in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/cachetools-1.1.6-py2.7.egg (from angr)\r\nRequirement already up-to-date: decorator>=3.4.0 in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/decorator-4.0.10-py2.7.egg (from networkx->angr)\r\nRequirement already up-to-date: pyelftools in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from archinfo->angr)\r\nRequirement already up-to-date: pycparser in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/pycparser-2.14-py2.7.egg (from pyvex->angr)\r\nRequirement already up-to-date: cffi>=1.0.3 in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/cffi-1.7.0-py2.7-linux-i686.egg (from pyvex->angr)\r\nRequirement already up-to-date: angr-only-z3-custom in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/angr_only_z3_custom-4.4.2.alpha1-py2.7.egg (from claripy->angr)\r\nRequirement already up-to-date: bintrees in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/bintrees-2.0.4-py2.7.egg (from simuvex->angr)\r\nRequirement already up-to-date: dpkt-fix in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from simuvex->angr)\r\nRequirement already up-to-date: idalink in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from cle->angr)\r\nCannot fetch index base URL http://pypi.python.org/simple/\r\nRequirement already up-to-date: pefile in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/pefile-2016.3.28-py2.7.egg (from cle->angr)\r\nCould not find any downloads that satisfy the requirement future in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/future-0.15.2-py2.7.egg (from pefile->cle->angr)\r\nNo distributions at all found for future in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/future-0.15.2-py2.7.egg (from pefile->cle->angr)\r\nStoring complete log in /root/.pip/pip.log\r\n(angr_4)root@ubuntu:/opt/ljun/angr/angr/angr-4.6.1.12# pip install --upgrade angr\r\nDownloading/unpacking angr\r\n  Running setup.py egg_info for package angr\r\n\r\nRequirement already up-to-date: capstone in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/capstone-3.0.4-py2.7.egg (from angr)\r\nRequirement already up-to-date: networkx in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/networkx-1.11-py2.7.egg (from angr)\r\nRequirement already up-to-date: futures in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/futures-3.0.5-py2.7.egg (from angr)\r\nCannot fetch index base URL http://pypi.python.org/simple/\r\nRequirement already up-to-date: progressbar in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/progressbar-2.3-py2.7.egg (from angr)\r\nRequirement already up-to-date: mulpyplexer in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from angr)\r\nRequirement already up-to-date: cooldict in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from angr)\r\nRequirement already up-to-date: ana in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from angr)\r\nRequirement already up-to-date: archinfo in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/archinfo-4.6.6.28-py2.7.egg (from angr)\r\nCannot fetch index base URL http://pypi.python.org/simple/\r\nRequirement already up-to-date: pyvex in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/pyvex-4.6.6.28-py2.7.egg (from angr)\r\nRequirement already up-to-date: claripy in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/claripy-4.6.6.29-py2.7.egg (from angr)\r\nRequirement already up-to-date: simuvex in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/simuvex-4.6.6.28-py2.7.egg (from angr)\r\nRequirement already up-to-date: cle in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/cle-4.6.6.28-py2.7.egg (from angr)\r\nCannot fetch index base URL http://pypi.python.org/simple/\r\nRequirement already up-to-date: cachetools in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/cachetools-1.1.6-py2.7.egg (from angr)\r\nRequirement already up-to-date: decorator>=3.4.0 in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/decorator-4.0.10-py2.7.egg (from networkx->angr)\r\nRequirement already up-to-date: pyelftools in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from archinfo->angr)\r\nRequirement already up-to-date: pycparser in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/pycparser-2.14-py2.7.egg (from pyvex->angr)\r\nRequirement already up-to-date: cffi>=1.0.3 in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/cffi-1.7.0-py2.7-linux-i686.egg (from pyvex->angr)\r\nRequirement already up-to-date: angr-only-z3-custom in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/angr_only_z3_custom-4.4.2.alpha1-py2.7.egg (from claripy->angr)\r\nRequirement already up-to-date: bintrees in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/bintrees-2.0.4-py2.7.egg (from simuvex->angr)\r\nRequirement already up-to-date: dpkt-fix in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from simuvex->angr)\r\nRequirement already up-to-date: idalink in /root/.virtualenvs/angr_4/lib/python2.7/site-packages (from cle->angr)\r\nRequirement already up-to-date: pefile in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/pefile-2016.3.28-py2.7.egg (from cle->angr)\r\nRequirement already up-to-date: future in /root/.virtualenvs/angr_4/lib/python2.7/site-packages/future-0.15.2-py2.7.egg (from pefile->cle->angr)\r\nInstalling collected packages: angr\r\n  Running setup.py install for angr\r\n\r\nSuccessfully installed angr\r\nCleaning up...\r\n\r\n\r\n\r\nNow, my angr compents are all up-to-date. But , i meat the \"KeyError: 'x86_cr0'\"  when i imput \" b = angr.Project('/bin/true') \". details:\r\nIn[1]:\r\nimport angr\r\nIn[2]:\r\nb = angr.Project('/bin/true')\r\nOut[2]:\r\nb = angr.Project('/bin/true')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/project.py\", line 164, in __init__\r\n    self._simos.configure_project()\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/simos.py\", line 386, in configure_project\r\n    super(SimLinux, self).configure_project()\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/simos.py\", line 172, in configure_project\r\n    self.proj.loader.perform_irelative_relocs(irelative_resolver)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/cle-4.6.6.28-py2.7.egg/cle/loader.py\", line 799, in perform_irelative_relocs\r\n    val = resolver_func(resolver)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/simos.py\", line 161, in irelative_resolver\r\n    val = resolver()\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/surveyors/caller.py\", line 50, in __call__\r\n    self.perform_call(*args)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/surveyors/caller.py\", line 70, in perform_call\r\n    caller_end_unpruned = caller.step(until=lambda pg: len(pg.active) == 0, step_func=step_func if self._concrete_only else None).unstash(from_stash='deadended')\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/path_group.py\", line 515, in step\r\n    pg = pg._one_step(stash=stash, selector_func=selector_func, successor_func=successor_func, check_func=check_func, **kwargs)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/path_group.py\", line 306, in _one_step\r\n    r = self._one_path_step(a, successor_func=successor_func, check_func=check_func, **kwargs)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/path_group.py\", line 207, in _one_path_step\r\n    successors = a.step(**kwargs)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/path.py\", line 317, in step\r\n    self._make_sim_run(throw=throw)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/path.py\", line 343, in _make_sim_run\r\n    self._run = self._project.factory.sim_run(self.state, **self._run_args)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/factory.py\", line 133, in sim_run\r\n    r = self.sim_block(state, addr=addr, **block_opts)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/factory.py\", line 72, in sim_block\r\n    **block_opts)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/angr/lifter.py\", line 133, in lift\r\n    traceflags=traceflags)\r\n  File \"/root/.virtualenvs/angr_4/local/lib/python2.7/site-packages/pyvex-4.6.6.28-py2.7.egg/pyvex/block.py\", line 70, in __init__\r\n    1)\r\nKeyError: 'x86_cr0'\r\n\r\n"}}
{"actor":{"display_login":"ljun85"}}