{"action":"closed","issue":{"url":"https://api.github.com/repos/cea-sec/Sibyl/issues/21","repository_url":"https://api.github.com/repos/cea-sec/Sibyl","labels_url":"https://api.github.com/repos/cea-sec/Sibyl/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/cea-sec/Sibyl/issues/21/comments","events_url":"https://api.github.com/repos/cea-sec/Sibyl/issues/21/events","html_url":"https://github.com/cea-sec/Sibyl/issues/21","id":190754597,"number":21,"title":"Using Sibyl under windows: multiprocessing forking errors","user":{"login":"gitttt","id":9463528,"avatar_url":"https://avatars.githubusercontent.com/u/9463528?v=3","gravatar_id":"","url":"https://api.github.com/users/gitttt","html_url":"https://github.com/gitttt","followers_url":"https://api.github.com/users/gitttt/followers","following_url":"https://api.github.com/users/gitttt/following{/other_user}","gists_url":"https://api.github.com/users/gitttt/gists{/gist_id}","starred_url":"https://api.github.com/users/gitttt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitttt/subscriptions","organizations_url":"https://api.github.com/users/gitttt/orgs","repos_url":"https://api.github.com/users/gitttt/repos","events_url":"https://api.github.com/users/gitttt/events{/privacy}","received_events_url":"https://api.github.com/users/gitttt/received_events","type":"User","site_admin":false},"labels":[{"id":127186247,"url":"https://api.github.com/repos/cea-sec/Sibyl/labels/invalid","name":"invalid","color":"e6e6e6","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-21T15:46:59Z","updated_at":"2017-01-24T16:40:38Z","closed_at":"2017-01-24T16:40:38Z","body":"from the sibyl installation folder on windows I run:\r\n`C:\\Python27\\python.exe find.py d:\\path\\to\\binary -j python -a arml ABI_ARM 0x1768`\r\n\r\nThis gets me:\r\n\r\n```\r\nFile \"find.py\", line 148, in <module>\r\n    p.start()\r\n  File \"C:\\Python27\\lib\\multiprocessing\\process.py\", line 130, in start\r\n    self._popen = Popen(self)\r\n  File \"C:\\Python27\\lib\\multiprocessing\\forking.py\", line 277, in __init__\r\n    dump(process_obj, to_child, HIGHEST_PROTOCOL)\r\n  File \"C:\\Python27\\lib\\multiprocessing\\forking.py\", line 199, in dump\r\n    ForkingPickler(file, protocol).dump(obj)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 224, in dump\r\n    self.save(obj)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 331, in save\r\n    self.save_reduce(obj=obj, *rv)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 419, in save_reduce\r\n    save(state)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 649, in save_dict\r\n    self._batch_setitems(obj.iteritems())\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 681, in _batch_setitems\r\n    save(v)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 562, in save_tuple\r\n    save(element)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 331, in save\r\n    self.save_reduce(obj=obj, *rv)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 419, in save_reduce\r\n    save(state)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 649, in save_dict\r\n    self._batch_setitems(obj.iteritems())\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 681, in _batch_setitems\r\n    save(v)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 331, in save\r\n    self.save_reduce(obj=obj, *rv)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 419, in save_reduce\r\n    save(state)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 649, in save_dict\r\n    self._batch_setitems(obj.iteritems())\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 681, in _batch_setitems\r\n    save(v)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 600, in save_list\r\n    self._batch_appends(iter(obj))\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 636, in _batch_appends\r\n    save(tmp[0])\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 331, in save\r\n    self.save_reduce(obj=obj, *rv)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 419, in save_reduce\r\n    save(state)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 649, in save_dict\r\n    self._batch_setitems(obj.iteritems())\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 681, in _batch_setitems\r\n    save(v)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 331, in save\r\n    self.save_reduce(obj=obj, *rv)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 419, in save_reduce\r\n    save(state)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 649, in save_dict\r\n    self._batch_setitems(obj.iteritems())\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 681, in _batch_setitems\r\n    save(v)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 331, in save\r\n    self.save_reduce(obj=obj, *rv)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 396, in save_reduce\r\n    save(cls)\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"C:\\Python27\\lib\\pickle.py\", line 748, in save_global\r\n    (obj, module, name))\r\npickle.PicklingError: Can't pickle <type 'thread.lock'>: it's not found as thre\r\nad.lock\r\n\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"C:\\Python27\\lib\\multiprocessing\\forking.py\", line 380, in main\r\n    prepare(preparation_data)\r\n  File \"C:\\Python27\\lib\\multiprocessing\\forking.py\", line 495, in prepare\r\n    '__parents_main__', file, path_name, etc\r\n  File \"D:\\Sibyl\\find.py\", line 148, in <module>\r\n    p.start()\r\n  File \"C:\\Python27\\lib\\multiprocessing\\process.py\", line 130, in start\r\n    self._popen = Popen(self)\r\n  File \"C:\\Python27\\lib\\multiprocessing\\forking.py\", line 258, in __init__\r\n    cmd = get_command_line() + [rhandle]\r\n  File \"C:\\Python27\\lib\\multiprocessing\\forking.py\", line 358, in get_command_l\r\nine\r\n    is not going to be frozen to produce a Windows executable.''')\r\nRuntimeError: \r\n            Attempt to start a new process before the current process\r\n            has finished its bootstrapping phase.\r\n\r\n            This probably means that you are on Windows and you have\r\n            forgotten to use the proper idiom in the main module:\r\n\r\n                if __name__ == '__main__':\r\n                    freeze_support()\r\n                    ...\r\n\r\n            The \"freeze_support()\" line can be omitted if the program\r\n            is not going to be frozen to produce a Windows executable.\r\n```\r\n\r\nNote that there are two errors (?)."}}
{"actor":{"display_login":"commial"}}