{"action":"closed","issue":{"url":"https://api.github.com/repos/haconiwa/mruby-exec/issues/3","repository_url":"https://api.github.com/repos/haconiwa/mruby-exec","labels_url":"https://api.github.com/repos/haconiwa/mruby-exec/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/haconiwa/mruby-exec/issues/3/comments","events_url":"https://api.github.com/repos/haconiwa/mruby-exec/issues/3/events","html_url":"https://github.com/haconiwa/mruby-exec/issues/3","id":160135915,"number":3,"title":"Casual test case occurs SEGV?","user":{"login":"udzura","id":91011,"avatar_url":"https://avatars.githubusercontent.com/u/91011?v=3","gravatar_id":"","url":"https://api.github.com/users/udzura","html_url":"https://github.com/udzura","followers_url":"https://api.github.com/users/udzura/followers","following_url":"https://api.github.com/users/udzura/following{/other_user}","gists_url":"https://api.github.com/users/udzura/gists{/gist_id}","starred_url":"https://api.github.com/users/udzura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/udzura/subscriptions","organizations_url":"https://api.github.com/users/udzura/orgs","repos_url":"https://api.github.com/users/udzura/repos","events_url":"https://api.github.com/users/udzura/events{/privacy}","received_events_url":"https://api.github.com/users/udzura/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-06-14T09:28:08Z","updated_at":"2016-06-15T01:34:15Z","closed_at":"2016-06-15T01:34:15Z","body":"When added this one:\r\n\r\n```ruby\r\nassert(\"Exec#exec\") do\r\n  p = Process.fork { Exec.exec \"/bin/sleep\", \"0.1\" }\r\n  p, status = Process.waitpid2 p\r\n  assert_true(p.is_a?(Integer))\r\n  assert_true(status.success?)\r\nend\r\n```\r\n\r\nThen it makes SEGV once about every 4 times.\r\n\r\nBut, but this seems to make no SEGV...\r\n\r\n```ruby\r\nloop do\r\n  p = Process.fork { exec \"/bin/bash\", \"-c\", \"echo -n .\" }\r\n  Process.waitpid p\r\nend\r\n```\r\n\r\n```console\r\n$ ./mruby/bin/mruby /tmp/just_loop.rb\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..........................................................................................\r\n..................\r\n```"}}
{"actor":{"display_login":"udzura"}}