{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/go-mruby/issues/40","repository_url":"https://api.github.com/repos/mitchellh/go-mruby","labels_url":"https://api.github.com/repos/mitchellh/go-mruby/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/go-mruby/issues/40/comments","events_url":"https://api.github.com/repos/mitchellh/go-mruby/issues/40/events","html_url":"https://github.com/mitchellh/go-mruby/issues/40","id":185845188,"number":40,"title":"mrb_load_file panics due to an expired syscall","user":{"login":"erikh","id":18923,"avatar_url":"https://avatars.githubusercontent.com/u/18923?v=3","gravatar_id":"","url":"https://api.github.com/users/erikh","html_url":"https://github.com/erikh","followers_url":"https://api.github.com/users/erikh/followers","following_url":"https://api.github.com/users/erikh/following{/other_user}","gists_url":"https://api.github.com/users/erikh/gists{/gist_id}","starred_url":"https://api.github.com/users/erikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikh/subscriptions","organizations_url":"https://api.github.com/users/erikh/orgs","repos_url":"https://api.github.com/users/erikh/repos","events_url":"https://api.github.com/users/erikh/events{/privacy}","received_events_url":"https://api.github.com/users/erikh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-28T06:00:58Z","updated_at":"2016-11-11T13:16:08Z","closed_at":null,"body":"In reference to #38 and #39:\n\nI'm not sure if this is mruby or us, but here's a trace:\n\n```\nfatal error: exitsyscall: syscall frame is no longer valid\n\nruntime stack:\nruntime.throw(0x84679e, 0x2d)\n        /usr/local/go/src/runtime/panic.go:566 +0x95\nruntime.exitsyscall.func1()\n        /usr/local/go/src/runtime/proc.go:2470 +0x36\nruntime.systemstack(0x7ffe3ea0c490)\n        /usr/local/go/src/runtime/asm_amd64.s:298 +0x79\nruntime.mstart()\n        /usr/local/go/src/runtime/proc.go:1079\n\ngoroutine 1 [syscall, locked to thread]:\nruntime.cgocall(0x7108e0, 0xc4201e0fd0, 0xc400000000)\n        /usr/local/go/src/runtime/cgocall.go:131 +0x110 fp=0xc4201e0f88 sp=0xc4201e0f48\ngithub.com/erikh/box/vendor/github.com/mitchellh/go-mruby._C2func_mrb_load_file(0x14ae400, 0x14cbc90, 0x0, 0x0, 0x0, 0x0)\n        ??:0 +0x72 fp=0xc4201e0fd0 sp=0xc4201e0f88\ngithub.com/erikh/box/vendor/github.com/mitchellh/go-mruby.(*Mrb).LoadFile(0xc420084370, 0xc4200107d0, 0x9, 0x0, 0x0, 0x0)\n        /home/erikh/src/github.com/erikh/box/vendor/github.com/mitchellh/go-mruby/mruby.go:196 +0x219 fp=0xc4201e10b0 sp=0xc4201e0fd0\ngithub.com/erikh/box/builder.(*Builder).Load(0xc420245000, 0xc4200107d0, 0x9, 0x1, 0x1, 0x0)\n        /home/erikh/src/github.com/erikh/box/builder/builder.go:115 +0x43 fp=0xc4201e10f0 sp=0xc4201e10b0\n```\n\nbox is my project, and it just calls LoadFile there.\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/go-mruby/issues/comments/259955001","html_url":"https://github.com/mitchellh/go-mruby/issues/40#issuecomment-259955001","issue_url":"https://api.github.com/repos/mitchellh/go-mruby/issues/40","id":259955001,"user":{"login":"mikesimons","id":188544,"avatar_url":"https://avatars.githubusercontent.com/u/188544?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesimons","html_url":"https://github.com/mikesimons","followers_url":"https://api.github.com/users/mikesimons/followers","following_url":"https://api.github.com/users/mikesimons/following{/other_user}","gists_url":"https://api.github.com/users/mikesimons/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesimons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesimons/subscriptions","organizations_url":"https://api.github.com/users/mikesimons/orgs","repos_url":"https://api.github.com/users/mikesimons/repos","events_url":"https://api.github.com/users/mikesimons/events{/privacy}","received_events_url":"https://api.github.com/users/mikesimons/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T13:16:08Z","updated_at":"2016-11-11T13:16:08Z","body":"@erikh Do you have exact code & steps we can use to reproduce this?\r\n\r\nI pulled your load file patch and tried with implementations of `sleep` using both golang and mruby-sleep mgem but could not reproduce. Is there any chance that other goroutines could be sharing the mruby interpreter?\r\n\r\nI did find [this](https://github.com/golang/go/issues/15639#issuecomment-219897791) which may be relevant."}}
{"actor":{"display_login":"mikesimons"}}