{"action":"created","issue":{"url":"https://api.github.com/repos/ConsenSys/mythril/issues/497","repository_url":"https://api.github.com/repos/ConsenSys/mythril","labels_url":"https://api.github.com/repos/ConsenSys/mythril/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/ConsenSys/mythril/issues/497/comments","events_url":"https://api.github.com/repos/ConsenSys/mythril/issues/497/events","html_url":"https://github.com/ConsenSys/mythril/issues/497","id":357522097,"node_id":"MDU6SXNzdWUzNTc1MjIwOTc=","number":497,"title":"ValueError: invalid literal for int() with base 16: ''","user":{"login":"roynalnaruto","id":5194933,"node_id":"MDQ6VXNlcjUxOTQ5MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/5194933?v=4","gravatar_id":"","url":"https://api.github.com/users/roynalnaruto","html_url":"https://github.com/roynalnaruto","followers_url":"https://api.github.com/users/roynalnaruto/followers","following_url":"https://api.github.com/users/roynalnaruto/following{/other_user}","gists_url":"https://api.github.com/users/roynalnaruto/gists{/gist_id}","starred_url":"https://api.github.com/users/roynalnaruto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roynalnaruto/subscriptions","organizations_url":"https://api.github.com/users/roynalnaruto/orgs","repos_url":"https://api.github.com/users/roynalnaruto/repos","events_url":"https://api.github.com/users/roynalnaruto/events{/privacy}","received_events_url":"https://api.github.com/users/roynalnaruto/received_events","type":"User","site_admin":false},"labels":[{"id":695308627,"node_id":"MDU6TGFiZWw2OTUzMDg2Mjc=","url":"https://api.github.com/repos/ConsenSys/mythril/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"norhh","id":15844703,"node_id":"MDQ6VXNlcjE1ODQ0NzAz","avatar_url":"https://avatars1.githubusercontent.com/u/15844703?v=4","gravatar_id":"","url":"https://api.github.com/users/norhh","html_url":"https://github.com/norhh","followers_url":"https://api.github.com/users/norhh/followers","following_url":"https://api.github.com/users/norhh/following{/other_user}","gists_url":"https://api.github.com/users/norhh/gists{/gist_id}","starred_url":"https://api.github.com/users/norhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norhh/subscriptions","organizations_url":"https://api.github.com/users/norhh/orgs","repos_url":"https://api.github.com/users/norhh/repos","events_url":"https://api.github.com/users/norhh/events{/privacy}","received_events_url":"https://api.github.com/users/norhh/received_events","type":"User","site_admin":false},"assignees":[{"login":"norhh","id":15844703,"node_id":"MDQ6VXNlcjE1ODQ0NzAz","avatar_url":"https://avatars1.githubusercontent.com/u/15844703?v=4","gravatar_id":"","url":"https://api.github.com/users/norhh","html_url":"https://github.com/norhh","followers_url":"https://api.github.com/users/norhh/followers","following_url":"https://api.github.com/users/norhh/following{/other_user}","gists_url":"https://api.github.com/users/norhh/gists{/gist_id}","starred_url":"https://api.github.com/users/norhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norhh/subscriptions","organizations_url":"https://api.github.com/users/norhh/orgs","repos_url":"https://api.github.com/users/norhh/repos","events_url":"https://api.github.com/users/norhh/events{/privacy}","received_events_url":"https://api.github.com/users/norhh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":19,"created_at":"2018-09-06T07:04:53Z","updated_at":"2018-09-26T01:38:28Z","closed_at":"2018-09-22T14:53:34Z","author_association":"NONE","body":"<!-- Note: did you notice that there is now a template for requesting new features?\r\n\r\nPlease remove any of the optional sections if they are not applicable. -->\r\n\r\n## Description\r\n\r\nError while running mythril on truffle project through the docker container. A few contracts are analysed correctly, and then I see the following issue:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/myth\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('mythril==0.18.11', 'myth')\r\n  File \"/usr/lib/python3/dist-packages/pkg_resources/__init__.py\", line 658, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/usr/lib/python3/dist-packages/pkg_resources/__init__.py\", line 1438, in run_script\r\n    exec(code, namespace, namespace)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/EGG-INFO/scripts/myth\", line 9, in <module>\r\n    mythril.interfaces.cli.main()\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/interfaces/cli.py\", line 147, in main\r\n    mythril.analyze_truffle_project(args)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/mythril.py\", line 183, in analyze_truffle_project\r\n    return analyze_truffle_project(self.sigs, *args, **kwargs)  # just passthru by passing signatures for now\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/support/truffle.py\", line 51, in analyze_truffle_project\r\n    sym = SymExecWrapper(ethcontract, address, args.strategy, max_depth=args.max_depth)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/analysis/symbolic.py\", line 30, in __init__\r\n    self.laser.sym_exec(address)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/laser/ethereum/svm.py\", line 61, in sym_exec\r\n    transaction.run(self.open_states, self)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/laser/ethereum/transaction.py\", line 58, in run\r\n    evm.exec()\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/laser/ethereum/svm.py\", line 71, in exec\r\n    new_states, op_code = self.execute_state(global_state)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/laser/ethereum/svm.py\", line 97, in execute_state\r\n    new_global_states = Instruction(op_code, self.dynamic_loader).evaluate(global_state)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/laser/ethereum/instructions.py\", line 69, in evaluate\r\n    return instruction_mutator(global_state)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/laser/ethereum/instructions.py\", line 34, in wrapper\r\n    new_global_states = func(self, global_state_copy)\r\n  File \"/usr/local/lib/python3.6/dist-packages/mythril-0.18.11-py3.6.egg/mythril/laser/ethereum/instructions.py\", line 552, in codecopy_\r\n    int(bytecode[2*(concrete_code_offset + i): 2*(concrete_code_offset + i + 1)], 16)\r\nValueError: invalid literal for int() with base 16: ''\r\n```\r\n\r\n## How to Reproduce\r\n\r\nThe repository I am trying to run this on, is a public repository: https://github.com/DigixGlobal/dao-contracts\r\n\r\n```\r\n$ docker run -v $(pwd):/tmp -w \"/tmp/\" mythril/myth --truffle\r\n```\r\n\r\n## Environment\r\n\r\n* OS\r\n```\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 16.04.5 LTS\r\nRelease:\t16.04\r\nCodename:\txenial\r\n```\r\n\r\n* Docker version:\r\n```\r\n$ docker --version\r\nDocker version 18.06.1-ce, build e68fc7a\r\n```\r\n\r\n* Python version:\r\n```\r\n$ python --version\r\nPython 3.5.6\r\n$ python3 --version\r\nPython 3.5.6\r\n```\r\n\r\n* Mythril version:\r\n```\r\n$ docker run mythril/myth --version\r\nMythril version v0.18.11\r\n```\r\n\r\n* Solidity compiler and version: `solc --version`\r\n```\r\n$ solc --version\r\nsolc, the solidity compiler commandline interface\r\nVersion: 0.4.24+commit.e67f0147.Linux.g++\r\n```"},"comment":{"url":"https://api.github.com/repos/ConsenSys/mythril/issues/comments/424555780","html_url":"https://github.com/ConsenSys/mythril/issues/497#issuecomment-424555780","issue_url":"https://api.github.com/repos/ConsenSys/mythril/issues/497","id":424555780,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDU1NTc4MA==","user":{"login":"roynalnaruto","id":5194933,"node_id":"MDQ6VXNlcjUxOTQ5MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/5194933?v=4","gravatar_id":"","url":"https://api.github.com/users/roynalnaruto","html_url":"https://github.com/roynalnaruto","followers_url":"https://api.github.com/users/roynalnaruto/followers","following_url":"https://api.github.com/users/roynalnaruto/following{/other_user}","gists_url":"https://api.github.com/users/roynalnaruto/gists{/gist_id}","starred_url":"https://api.github.com/users/roynalnaruto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roynalnaruto/subscriptions","organizations_url":"https://api.github.com/users/roynalnaruto/orgs","repos_url":"https://api.github.com/users/roynalnaruto/repos","events_url":"https://api.github.com/users/roynalnaruto/events{/privacy}","received_events_url":"https://api.github.com/users/roynalnaruto/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T01:38:28Z","updated_at":"2018-09-26T01:38:28Z","author_association":"NONE","body":"@norhh So how do I allow those paths from `node_modules`? Also, this means Mythril will not be able to analyse a truffle project with contracts inside a directory structure as the `dao-contracts` repository?"}}
{"actor":{"display_login":"roynalnaruto"}}