{"action":"created","issue":{"url":"https://api.github.com/repos/ponylang/ponyc/issues/551","repository_url":"https://api.github.com/repos/ponylang/ponyc","labels_url":"https://api.github.com/repos/ponylang/ponyc/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/ponylang/ponyc/issues/551/comments","events_url":"https://api.github.com/repos/ponylang/ponyc/issues/551/events","html_url":"https://github.com/ponylang/ponyc/issues/551","id":138309835,"number":551,"title":"net/http.Client seg faulting in apply()","user":{"login":"cquinn","id":494289,"avatar_url":"https://avatars.githubusercontent.com/u/494289?v=3","gravatar_id":"","url":"https://api.github.com/users/cquinn","html_url":"https://github.com/cquinn","followers_url":"https://api.github.com/users/cquinn/followers","following_url":"https://api.github.com/users/cquinn/following{/other_user}","gists_url":"https://api.github.com/users/cquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/cquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cquinn/subscriptions","organizations_url":"https://api.github.com/users/cquinn/orgs","repos_url":"https://api.github.com/users/cquinn/repos","events_url":"https://api.github.com/users/cquinn/events{/privacy}","received_events_url":"https://api.github.com/users/cquinn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ponylang/ponyc/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-03T22:01:39Z","updated_at":"2016-03-03T23:39:38Z","closed_at":null,"body":"In the latest code on master (ponyc -v = 0.2.1-536-gd888dab) running the httpclient example results in:\r\n`$ ./httpget http://google.com`\r\n`Segmentation fault: 11`\r\n\r\nThe example runs ok using the 0.2.1 ponyc. I found this problem with some other code that I am working on, and it just happens that the example reproduces it nicely.\r\n\r\nThis appears to be happening inside `_client(consume req)` but I haven't dug into it any farther.\r\n\r\nThis is on OS X, 10.11.3. These brew packages installed:\r\n-   llvm: stable 3.6.2 (bottled), HEAD [keg-only]\r\n-   pcre2: stable 10.20 (bottled), HEAD\r\n-   libressl: stable 2.3.2 (bottled), HEAD [keg-only]\r\n\r\nI'm not sure what other information would be helpful.\r\n"},"comment":{"url":"https://api.github.com/repos/ponylang/ponyc/issues/comments/192022244","html_url":"https://github.com/ponylang/ponyc/issues/551#issuecomment-192022244","issue_url":"https://api.github.com/repos/ponylang/ponyc/issues/551","id":192022244,"user":{"login":"cquinn","id":494289,"avatar_url":"https://avatars.githubusercontent.com/u/494289?v=3","gravatar_id":"","url":"https://api.github.com/users/cquinn","html_url":"https://github.com/cquinn","followers_url":"https://api.github.com/users/cquinn/followers","following_url":"https://api.github.com/users/cquinn/following{/other_user}","gists_url":"https://api.github.com/users/cquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/cquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cquinn/subscriptions","organizations_url":"https://api.github.com/users/cquinn/orgs","repos_url":"https://api.github.com/users/cquinn/repos","events_url":"https://api.github.com/users/cquinn/events{/privacy}","received_events_url":"https://api.github.com/users/cquinn/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T23:39:38Z","updated_at":"2016-03-03T23:39:38Z","body":"Thanks, that's handy. Without rebuilding ponyc (I'll try that next) I get:\r\n```\r\n#0  0x0000000100026722 in actormap_sweep ()\r\n#1  0x000000010002870b in gc_sweep ()\r\n#2  0x00000001000253d3 in try_gc ()\r\n#3  0x000000010002a32c in run_thread ()\r\n#4  0x00007fff8ff61c13 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib\r\n#5  0x00007fff8ff61b90 in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib\r\n#6  0x00007fff8ff5f375 in thread_start () from /usr/lib/system/libsystem_pthread.dylib\r\n#7  0x0000000000000000 in ?? ()\r\n```"}}