{"action":"created","issue":{"url":"https://api.github.com/repos/cdr/code-server/issues/528","repository_url":"https://api.github.com/repos/cdr/code-server","labels_url":"https://api.github.com/repos/cdr/code-server/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/cdr/code-server/issues/528/comments","events_url":"https://api.github.com/repos/cdr/code-server/issues/528/events","html_url":"https://github.com/cdr/code-server/issues/528","id":434629355,"node_id":"MDU6SXNzdWU0MzQ2MjkzNTU=","number":528,"title":"Segmentation fault (alpine)","user":{"login":"Tarocch1","id":15124068,"node_id":"MDQ6VXNlcjE1MTI0MDY4","avatar_url":"https://avatars3.githubusercontent.com/u/15124068?v=4","gravatar_id":"","url":"https://api.github.com/users/Tarocch1","html_url":"https://github.com/Tarocch1","followers_url":"https://api.github.com/users/Tarocch1/followers","following_url":"https://api.github.com/users/Tarocch1/following{/other_user}","gists_url":"https://api.github.com/users/Tarocch1/gists{/gist_id}","starred_url":"https://api.github.com/users/Tarocch1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tarocch1/subscriptions","organizations_url":"https://api.github.com/users/Tarocch1/orgs","repos_url":"https://api.github.com/users/Tarocch1/repos","events_url":"https://api.github.com/users/Tarocch1/events{/privacy}","received_events_url":"https://api.github.com/users/Tarocch1/received_events","type":"User","site_admin":false},"labels":[{"id":1261742525,"node_id":"MDU6TGFiZWwxMjYxNzQyNTI1","url":"https://api.github.com/repos/cdr/code-server/labels/bug","name":"bug","color":"fdff00","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-04-18T07:31:18Z","updated_at":"2019-04-28T06:20:26Z","closed_at":null,"author_association":"NONE","body":"<!-- Please search existing issues to avoid creating duplicates. -->\r\n<!-- All extension-specific issues should be created with the `Extension Bug` template. -->\r\n\r\n- `code-server` version: 1.868-vsc1.33.1\r\n- OS Version: alpine 3.9.3 (not in docker)\r\n\r\n## Description\r\n\r\n<!-- Describes the problem here -->\r\n\r\nIf source code folder (`code-server-1.868-vsc1.33.1`) exists, code-server run fine, otherwise, code-server gets segmentation fault.\r\n\r\n## Steps to Reproduce\r\n\r\n1. Unzip `code-server-1.868-vsc1.33.1.zip` in /root\r\n2. yarn\r\n3. Add `target` option as `alpine` in `/root/code-server-1.868-vsc1.33.1/packages/server/scripts/nbin.ts`\r\n4. export NODE_ENV=production\r\n5. apk add libxkbfile-dev libsecret-dev\r\n6. yarn task build:server:binary\r\n7. cp /root/code-server-1.868-vsc1.33.1/packages/server/cli-linux-x64 /usr/local/bin/code-server\r\n8. code-server -H -N --disable-telemetry (work fine)\r\n9. mv /root/code-server-1.868-vsc1.33.1 /root/code-server-1.868-vsc1.33 (use mv as rm)\r\n10. code-server -H -N --disable-telemetry:\r\n\r\n``` bash\r\n(node:13387) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(),\r\nBuffer.allocUnsafe(), or Buffer.from() methods instead.\r\nINFO  code-server development\r\nINFO  Additional documentation: http://github.com/codercom/code-server\r\nINFO  Initializing {\"data-dir\":\"/root/.local/share/code-server\",\"extensions-dir\":\"/root/.local/share/code-server/extensions\",\"working-d\r\nir\":\"/root/work/backup\",\"log-dir\":\"/root/.cache/code-server/logs/20190418071423996\"}\r\nINFO  Starting webserver... {\"host\":\"0.0.0.0\",\"port\":8443}\r\nWARN  No certificate specified. This could be insecure.\r\nWARN  Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md\r\nWARN  Launched without authentication.\r\nINFO\r\nINFO  Started (click the link below to open):\r\nINFO  http://localhost:8443/\r\nINFO\r\nINFO  Starting shared process [1/5]...\r\nWARN  stderr {\"data\":\"(node:13399) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please us\r\ne the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\\n\"}\r\nINFO  Connected to shared process\r\nINFO  WebSocket opened / {\"client\":1,\"ip\":\"192.168.56.1\"}\r\nINFO  Starting shared process [1/5]... {\"error\":\"Exited with null\"}\r\nWARN  stderr {\"data\":\"(node:13432) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please us\r\ne the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\\n\"}\r\nINFO  Connected to shared process\r\nINFO  Starting shared process [1/5]... {\"error\":\"Exited with null\"}\r\n[1]    13387 segmentation fault  code-server -H -N --disable-telemetry\r\n```"},"comment":{"url":"https://api.github.com/repos/cdr/code-server/issues/comments/487348608","html_url":"https://github.com/cdr/code-server/issues/528#issuecomment-487348608","issue_url":"https://api.github.com/repos/cdr/code-server/issues/528","id":487348608,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NzM0ODYwOA==","user":{"login":"Gooseware","id":121851,"node_id":"MDQ6VXNlcjEyMTg1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/121851?v=4","gravatar_id":"","url":"https://api.github.com/users/Gooseware","html_url":"https://github.com/Gooseware","followers_url":"https://api.github.com/users/Gooseware/followers","following_url":"https://api.github.com/users/Gooseware/following{/other_user}","gists_url":"https://api.github.com/users/Gooseware/gists{/gist_id}","starred_url":"https://api.github.com/users/Gooseware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gooseware/subscriptions","organizations_url":"https://api.github.com/users/Gooseware/orgs","repos_url":"https://api.github.com/users/Gooseware/repos","events_url":"https://api.github.com/users/Gooseware/events{/privacy}","received_events_url":"https://api.github.com/users/Gooseware/received_events","type":"User","site_admin":false},"created_at":"2019-04-28T06:20:26Z","updated_at":"2019-04-28T06:20:26Z","author_association":"NONE","body":"This is an issue because your docker image now suffers from this fault\r\n\r\nWARN  stderr {\"data\":\"(node:20) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\\n\"}\r\ninternal/child_process.js:366\r\n    throw errnoException(err, 'spawn');\r\n    ^\r\n\r\nError: spawn ENOMEM\r\n    at ChildProcess.spawn (internal/child_process.js:366:11)\r\n    at Object.spawn [as _spawn] (child_process.js:538:9)\r\n    at t.async (/src/packages/server/out/cli.js:504:34598)\r\n    at e.exports (/src/packages/server/out/cli.js:504:34099)\r\n    at e (/src/packages/server/out/cli.js:504:32722)\r\n    at Timeout.u [as _onTimeout] (/src/packages/server/out/cli.js:504:33015)\r\n    at ontimeout (timers.js:436:11)\r\n    at tryOnTimeout (timers.js:300:5)\r\n    at listOnTimeout (timers.js:263:5)\r\n    at Timer.processTimers (timers.js:223:10)\r\n"}}
{"actor":{"display_login":"Gooseware"}}