{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/pyre-check/issues/124","repository_url":"https://api.github.com/repos/facebook/pyre-check","labels_url":"https://api.github.com/repos/facebook/pyre-check/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/facebook/pyre-check/issues/124/comments","events_url":"https://api.github.com/repos/facebook/pyre-check/issues/124/events","html_url":"https://github.com/facebook/pyre-check/issues/124","id":384132861,"node_id":"MDU6SXNzdWUzODQxMzI4NjE=","number":124,"title":"pyre segmentation fault","user":{"login":"rpgoldman","id":3274,"node_id":"MDQ6VXNlcjMyNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3274?v=4","gravatar_id":"","url":"https://api.github.com/users/rpgoldman","html_url":"https://github.com/rpgoldman","followers_url":"https://api.github.com/users/rpgoldman/followers","following_url":"https://api.github.com/users/rpgoldman/following{/other_user}","gists_url":"https://api.github.com/users/rpgoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/rpgoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpgoldman/subscriptions","organizations_url":"https://api.github.com/users/rpgoldman/orgs","repos_url":"https://api.github.com/users/rpgoldman/repos","events_url":"https://api.github.com/users/rpgoldman/events{/privacy}","received_events_url":"https://api.github.com/users/rpgoldman/received_events","type":"User","site_admin":false},"labels":[{"id":949738467,"node_id":"MDU6TGFiZWw5NDk3Mzg0Njc=","url":"https://api.github.com/repos/facebook/pyre-check/labels/need-info","name":"need-info","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":{"login":"dark","id":86657,"node_id":"MDQ6VXNlcjg2NjU3","avatar_url":"https://avatars0.githubusercontent.com/u/86657?v=4","gravatar_id":"","url":"https://api.github.com/users/dark","html_url":"https://github.com/dark","followers_url":"https://api.github.com/users/dark/followers","following_url":"https://api.github.com/users/dark/following{/other_user}","gists_url":"https://api.github.com/users/dark/gists{/gist_id}","starred_url":"https://api.github.com/users/dark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dark/subscriptions","organizations_url":"https://api.github.com/users/dark/orgs","repos_url":"https://api.github.com/users/dark/repos","events_url":"https://api.github.com/users/dark/events{/privacy}","received_events_url":"https://api.github.com/users/dark/received_events","type":"User","site_admin":false},"assignees":[{"login":"dark","id":86657,"node_id":"MDQ6VXNlcjg2NjU3","avatar_url":"https://avatars0.githubusercontent.com/u/86657?v=4","gravatar_id":"","url":"https://api.github.com/users/dark","html_url":"https://github.com/dark","followers_url":"https://api.github.com/users/dark/followers","following_url":"https://api.github.com/users/dark/following{/other_user}","gists_url":"https://api.github.com/users/dark/gists{/gist_id}","starred_url":"https://api.github.com/users/dark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dark/subscriptions","organizations_url":"https://api.github.com/users/dark/orgs","repos_url":"https://api.github.com/users/dark/repos","events_url":"https://api.github.com/users/dark/events{/privacy}","received_events_url":"https://api.github.com/users/dark/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-11-25T23:50:40Z","updated_at":"2018-11-27T17:30:22Z","closed_at":null,"author_association":"NONE","body":"Like #119 I am getting error -11 when running pyre.  Following the instructions on that ticket, I ran with `pyre.bin`, hoping to get better error messages, but no luck:\r\n```\r\n$ pyre.bin check -debug -project-root `pwd` -workers 8 -typeshed lib/pyre_check/typeshed/ -search-path ~/Library/Python/3.6/lib/python/\r\n2018-11-25 17:40:07 INFO Finding type stubs in `/Users/rpg/projects/xplan/xplan-experiment-analysis`...\r\n2018-11-25 17:40:07 INFO Finding type stubs in `/Users/rpg/Library/Python/3.6/lib/python`...\r\n2018-11-25 17:40:07 INFO Finding type stubs in `/Users/rpg/projects/xplan/xplan-experiment-analysis/lib/pyre_check/typeshed/stdlib`...\r\n2018-11-25 17:40:07 INFO Finding type stubs in `/Users/rpg/projects/xplan/xplan-experiment-analysis/lib/pyre_check/typeshed/third_party`...\r\n2018-11-25 17:40:07 INFO Finding external sources in `/Users/rpg/Library/Python/3.6/lib/python`...\r\n2018-11-25 17:40:08 INFO Parsing 10123 stubs and external sources...\r\n2018-11-25 17:40:18 WARNING Could not parse 21 external files due to syntax errors! Run with `--show-parse-errors` for more details.\r\n2018-11-25 17:40:18 PERFORMANCE Stubs parsed: 10.924899s\r\n2018-11-25 17:40:39 INFO Parsing 5425 sources in `/Users/rpg/projects/xplan/xplan-experiment-analysis`...\r\n2018-11-25 17:40:48 WARNING Could not parse 9 files due to syntax errors! Run with `--show-parse-errors` for more details.\r\n2018-11-25 17:40:48 PERFORMANCE Sources parsed: 9.688026s\r\n2018-11-25 17:40:58 PERFORMANCE Registered ignores: 9.318696s\r\n2018-11-25 17:40:58 INFO Building type environment...\r\nSegmentation fault: 11\r\n```\r\nIf there's anything I can do to get a more informative error message, please let me know.\r\nNote that despite the text of the `WARNING` method, `pyre.bin` errors when I give it `--show-parse-errors` as option.  Presumably this is only handled by the python wrapper?\r\nPyre version info\r\n```\r\n$ pyre.bin version\r\nDarwin x86_64 @ Thu Oct 11 11:24:05 PDT 2018\r\n601bfe35cfa2ce19e8dc3be4154922cf92af43c5\r\npyre version 0.0.16\r\n```\r\nRunning on MacBookPro, High Sierra.\r\n\r\npyre is checking an _enormous_ number of files, because it's checking my virtual environment.  The parse errors all seem to be from there:\r\n```\r\n ƛ Could not parse file at lib/python3.6/site-packages/pandas/core/arrays/base.py:204:0-204:0\r\n          # type: () -> int\r\n  ^\r\n ƛ Could not parse file at lib/python3.6/site-packages/ipykernel/kernelapp.py:421:28-421:28\r\n                         file=sys.stderr)\r\n                             ^\r\n ƛ Could not parse file at lib/python3.6/site-packages/scipy/stats/_continuous_distns.py:1:0-1:0\r\n  ﻿#\r\n  ^\r\n ƛ Could not parse file at lib/python3.6/site-packages/pandas/core/base.py:798:0-798:0\r\n          # type: () -> np.ndarray\r\n  ^\r\n ƛ Could not parse file at lib/python3.6/site-packages/xarray/core/computation.py:162:0-162:0\r\n      # type: (...) -> List[OrderedDict[Any, Variable]]\r\n  ^\r\n ƛ Could not parse file at lib/python3.6/site-packages/mypy/typeshed/tests/check_consistent.py:37:43-37:43\r\n      for file1, *others in consistent_files:\r\n                                            ^\r\n ƛ Could not parse file at lib/python3.6/site-packages/jedi/_compatibility.py:368:16-368:16\r\n          print >> sys.stderr, args\r\n                 ^\r\n ƛ Could not parse file at lib/python3.6/site-packages/arviz/plots/forestplot.py:460:51-460:51\r\n          end_y = max(y for y, *_ in self.iterator())\r\n                                                    ^\r\n ƛ Could not parse file at lib/python3.6/site-packages/arviz/data/io_cmdstan.py:181:48-181:48\r\n                  for sample, *_ in parsed_output:\r\n                                                 ^\r\n ƛ Could not parse 9 files due to syntax errors!\r\n```\r\nsome of these look pretty dubious as syntax errors.  For example, the ipykernel block with the syntax errors is the following:\r\n``` python\r\n            def print_tb(etype, evalue, stb):\r\n                print (\"GUI event loop or pylab initialization failed\",\r\n                       file=sys.stderr)\r\n                print (shell.InteractiveTB.stb2text(stb), file=sys.stderr)\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/pyre-check/issues/comments/442146734","html_url":"https://github.com/facebook/pyre-check/issues/124#issuecomment-442146734","issue_url":"https://api.github.com/repos/facebook/pyre-check/issues/124","id":442146734,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjE0NjczNA==","user":{"login":"rpgoldman","id":3274,"node_id":"MDQ6VXNlcjMyNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3274?v=4","gravatar_id":"","url":"https://api.github.com/users/rpgoldman","html_url":"https://github.com/rpgoldman","followers_url":"https://api.github.com/users/rpgoldman/followers","following_url":"https://api.github.com/users/rpgoldman/following{/other_user}","gists_url":"https://api.github.com/users/rpgoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/rpgoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpgoldman/subscriptions","organizations_url":"https://api.github.com/users/rpgoldman/orgs","repos_url":"https://api.github.com/users/rpgoldman/repos","events_url":"https://api.github.com/users/rpgoldman/events{/privacy}","received_events_url":"https://api.github.com/users/rpgoldman/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T17:30:22Z","updated_at":"2018-11-27T17:30:22Z","author_association":"NONE","body":"No joy, I'm afraid:\r\n```\r\n$ ./bin/pyre.bin check -debug -project-root `pwd` -workers 8 -typeshed lib/pyre_check/typeshed/\r\n2018-11-27 11:27:59 INFO Finding type stubs in `/Users/rpg/projects/xplan/xplan-experiment-analysis`...\r\n2018-11-27 11:27:59 INFO Finding type stubs in `/Users/rpg/projects/xplan/xplan-experiment-analysis/lib/pyre_check/typeshed/stdlib`...\r\n2018-11-27 11:27:59 INFO Finding type stubs in `/Users/rpg/projects/xplan/xplan-experiment-analysis/lib/pyre_check/typeshed/third_party`...\r\n2018-11-27 11:27:59 INFO Parsing 2592 stubs and external sources...\r\n2018-11-27 11:28:01 PERFORMANCE Stubs parsed: 1.428321s\r\n2018-11-27 11:28:02 INFO Parsing 5411 sources in `/Users/rpg/projects/xplan/xplan-experiment-analysis`...\r\n2018-11-27 11:28:10 WARNING Could not parse 9 files due to syntax errors! Run `pyre --show-parse-errors check` for more details.\r\n2018-11-27 11:28:10 PERFORMANCE Sources parsed: 7.792732s\r\n2018-11-27 11:28:18 PERFORMANCE Registered ignores: 8.150550s\r\n2018-11-27 11:28:18 INFO Building type environment...\r\nSegmentation fault: 11\r\n```\r\nThe above is with only one python file actually in this directory, but all of the stubs and the virtualenv files."}}
{"actor":{"display_login":"rpgoldman"}}