{"action":"created","issue":{"url":"https://api.github.com/repos/sass/node-sass/issues/1879","repository_url":"https://api.github.com/repos/sass/node-sass","labels_url":"https://api.github.com/repos/sass/node-sass/issues/1879/labels{/name}","comments_url":"https://api.github.com/repos/sass/node-sass/issues/1879/comments","events_url":"https://api.github.com/repos/sass/node-sass/issues/1879/events","html_url":"https://github.com/sass/node-sass/issues/1879","id":204539176,"number":1879,"title":"Segmentation fault when compiling susy","user":{"login":"IlyaSemenov","id":128121,"avatar_url":"https://avatars.githubusercontent.com/u/128121?v=3","gravatar_id":"","url":"https://api.github.com/users/IlyaSemenov","html_url":"https://github.com/IlyaSemenov","followers_url":"https://api.github.com/users/IlyaSemenov/followers","following_url":"https://api.github.com/users/IlyaSemenov/following{/other_user}","gists_url":"https://api.github.com/users/IlyaSemenov/gists{/gist_id}","starred_url":"https://api.github.com/users/IlyaSemenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlyaSemenov/subscriptions","organizations_url":"https://api.github.com/users/IlyaSemenov/orgs","repos_url":"https://api.github.com/users/IlyaSemenov/repos","events_url":"https://api.github.com/users/IlyaSemenov/events{/privacy}","received_events_url":"https://api.github.com/users/IlyaSemenov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-01T09:54:55Z","updated_at":"2017-02-01T10:28:03Z","closed_at":null,"body":"node-sass 4.5.0 (and 4.4.0) fails to compile susy 2.2.12 with a segfault.\r\n\r\nSteps to reproduce:\r\n\r\n1. Create a Dockerfile:\r\n```Dockerfile\r\nFROM alpine:3.5\r\nRUN apk add --no-cache nodejs\r\nRUN npm i node-sass@4.5.0 susy@2.2.12\r\nRUN node_modules/.bin/node-sass  node_modules/susy/sass/_susy.scss\r\n```\r\n\r\n2. Run it:\r\n\r\n```console\r\n$ docker build .\r\n...\r\nStep 4/4 : RUN node_modules/.bin/node-sass  node_modules/susy/sass/_susy.scss\r\n ---> Running in a20e432a5a46\r\nSegmentation fault\r\nThe command '/bin/sh -c node_modules/.bin/node-sass  node_modules/susy/sass/_susy.scss' returned a non-zero code: 139\r\n```\r\n\r\nIf you replace node-sass version with 4.3.0 it compiles fine. Also, I didn't manage to repeat this on Ubuntu so it might be Alpine Linux-specific.\r\n\r\nPlease note that I deliberately trimmed the example. Of course there's no point to compile susy from command line in real world. But it crashes the same way in full webpack environment as well.\r\n\r\n- NPM version (`npm -v`): 3.10.9\r\n- Node version (`node -v`): v6.9.2\r\n- Node Process (`node -p process.versions`):\r\n{ http_parser: '2.7.1',\r\n  node: '6.9.2',\r\n  v8: '5.1.281.88',\r\n  uv: '1.9.1',\r\n  zlib: '1.2.8',\r\n  ares: '1.10.1-DEV',\r\n  icu: '57.1',\r\n  modules: '48',\r\n  openssl: '1.0.2j' }\r\n- Node Platform (`node -p process.platform`): linux\r\n- Node architecture (`node -p process.arch`): x64\r\n- node-sass version (`node -p \"require('node-sass').info\"`):\r\nnode-sass\t4.5.0\t(Wrapper)\t[JavaScript]\r\nlibsass  \t3.5.0.beta.2\t(Sass Compiler)\t[C/C++]\r\n- npm node-sass versions (`npm ls node-sass`):\r\n/\r\n`-- node-sass@4.5.0"},"comment":{"url":"https://api.github.com/repos/sass/node-sass/issues/comments/276623159","html_url":"https://github.com/sass/node-sass/issues/1879#issuecomment-276623159","issue_url":"https://api.github.com/repos/sass/node-sass/issues/1879","id":276623159,"user":{"login":"xzyfer","id":579928,"avatar_url":"https://avatars.githubusercontent.com/u/579928?v=3","gravatar_id":"","url":"https://api.github.com/users/xzyfer","html_url":"https://github.com/xzyfer","followers_url":"https://api.github.com/users/xzyfer/followers","following_url":"https://api.github.com/users/xzyfer/following{/other_user}","gists_url":"https://api.github.com/users/xzyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/xzyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzyfer/subscriptions","organizations_url":"https://api.github.com/users/xzyfer/orgs","repos_url":"https://api.github.com/users/xzyfer/repos","events_url":"https://api.github.com/users/xzyfer/events{/privacy}","received_events_url":"https://api.github.com/users/xzyfer/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T10:28:03Z","updated_at":"2017-02-01T10:28:03Z","body":"Thanks for the report. I have been able to reproduce this issue on the `alpine:3.5` image and  the `node:6-alpine` image which is the image we use to build our binaries.\r\n\r\nI was not able to reproduce the issue on OSX. Still investigating."}}
{"actor":{"display_login":"xzyfer"}}