{"action":"created","issue":{"url":"https://api.github.com/repos/joyent/node/issues/9326","labels_url":"https://api.github.com/repos/joyent/node/issues/9326/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node/issues/9326/comments","events_url":"https://api.github.com/repos/joyent/node/issues/9326/events","html_url":"https://github.com/joyent/node/issues/9326","id":59785321,"number":9326,"title":"Segfault on FreeBSD","user":{"login":"sigmike","id":28259,"avatar_url":"https://avatars.githubusercontent.com/u/28259?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmike","html_url":"https://github.com/sigmike","followers_url":"https://api.github.com/users/sigmike/followers","following_url":"https://api.github.com/users/sigmike/following{/other_user}","gists_url":"https://api.github.com/users/sigmike/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmike/subscriptions","organizations_url":"https://api.github.com/users/sigmike/orgs","repos_url":"https://api.github.com/users/sigmike/repos","events_url":"https://api.github.com/users/sigmike/events{/privacy}","received_events_url":"https://api.github.com/users/sigmike/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joyent/node/labels/freebsd","name":"freebsd","color":"02e10c"},{"url":"https://api.github.com/repos/joyent/node/labels/P-1","name":"P-1","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"tjfontaine","id":146447,"avatar_url":"https://avatars.githubusercontent.com/u/146447?v=3","gravatar_id":"","url":"https://api.github.com/users/tjfontaine","html_url":"https://github.com/tjfontaine","followers_url":"https://api.github.com/users/tjfontaine/followers","following_url":"https://api.github.com/users/tjfontaine/following{/other_user}","gists_url":"https://api.github.com/users/tjfontaine/gists{/gist_id}","starred_url":"https://api.github.com/users/tjfontaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjfontaine/subscriptions","organizations_url":"https://api.github.com/users/tjfontaine/orgs","repos_url":"https://api.github.com/users/tjfontaine/repos","events_url":"https://api.github.com/users/tjfontaine/events{/privacy}","received_events_url":"https://api.github.com/users/tjfontaine/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/joyent/node/milestones/26","html_url":"https://github.com/joyent/node/milestones/0.12.2","labels_url":"https://api.github.com/repos/joyent/node/milestones/26/labels","id":905099,"number":26,"title":"0.12.2","description":"","creator":{"login":"misterdjules","id":811047,"avatar_url":"https://avatars.githubusercontent.com/u/811047?v=3","gravatar_id":"","url":"https://api.github.com/users/misterdjules","html_url":"https://github.com/misterdjules","followers_url":"https://api.github.com/users/misterdjules/followers","following_url":"https://api.github.com/users/misterdjules/following{/other_user}","gists_url":"https://api.github.com/users/misterdjules/gists{/gist_id}","starred_url":"https://api.github.com/users/misterdjules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterdjules/subscriptions","organizations_url":"https://api.github.com/users/misterdjules/orgs","repos_url":"https://api.github.com/users/misterdjules/repos","events_url":"https://api.github.com/users/misterdjules/events{/privacy}","received_events_url":"https://api.github.com/users/misterdjules/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":13,"state":"open","created_at":"2014-12-16T02:15:06Z","updated_at":"2015-03-19T19:34:23Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-03-04T11:28:31Z","updated_at":"2015-03-19T22:08:59Z","closed_at":null,"body":"I'm running this simple source:\r\n```javascript\r\nvar http = require(\"http\");\r\n\r\nhttp.createServer(function(request, response) {\r\n  response.writeHead(200, {\"Content-Type\": \"text/plain\"});\r\n  response.write(\"Hello World\");\r\n  response.end();\r\n}).listen(5000);\r\n```\r\n\r\nIt works fine until I hit Ctrl+C: it segfaults.\r\n\r\nHere's the backtrace:\r\n```\r\n#0  0x000000080226f469 in swapcontext () from /lib/libthr.so.3\r\n#1  0x000000080226f062 in sigaction () from /lib/libthr.so.3\r\n#2  <signal handler called>\r\n#3  0x00000008024f344a in _umtx_op () from /lib/libc.so.7\r\n#4  0x00000008024e2c24 in sem_timedwait () from /lib/libc.so.7\r\n#5  0x0000000000b53ef8 in v8::base::Semaphore::Wait ()\r\n#6  0x00000000008c7e84 in v8::internal::SweeperThread::Run ()\r\n#7  0x0000000000b5594d in v8::base::ThreadEntry ()\r\n#8  0x000000080226a4f5 in pthread_create () from /lib/libthr.so.3\r\n#9  0x0000000000000000 in ?? ()\r\n```\r\n\r\nI'm running FreeBSD 10.1-RELEASE with node installed from the ports.\r\n\r\nIf I run a script that contains only a `console.log` it doesn't crash when it exits."},"comment":{"url":"https://api.github.com/repos/joyent/node/issues/comments/83778573","html_url":"https://github.com/joyent/node/issues/9326#issuecomment-83778573","issue_url":"https://api.github.com/repos/joyent/node/issues/9326","id":83778573,"user":{"login":"trevnorris","id":289174,"avatar_url":"https://avatars.githubusercontent.com/u/289174?v=3","gravatar_id":"","url":"https://api.github.com/users/trevnorris","html_url":"https://github.com/trevnorris","followers_url":"https://api.github.com/users/trevnorris/followers","following_url":"https://api.github.com/users/trevnorris/following{/other_user}","gists_url":"https://api.github.com/users/trevnorris/gists{/gist_id}","starred_url":"https://api.github.com/users/trevnorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevnorris/subscriptions","organizations_url":"https://api.github.com/users/trevnorris/orgs","repos_url":"https://api.github.com/users/trevnorris/repos","events_url":"https://api.github.com/users/trevnorris/events{/privacy}","received_events_url":"https://api.github.com/users/trevnorris/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T22:08:59Z","updated_at":"2015-03-19T22:08:59Z","body":"I've confirmed this is also an issue in io.js. Still investigating why this could possibly happen."}}