node-sass: Segmentation fault when compiling susy
node-sass 4.5.0 (and 4.4.0) fails to compile susy 2.2.12 with a segfault.
Steps to reproduce:
- Create a Dockerfile:
FROM alpine:3.5
RUN apk add --no-cache nodejs
RUN npm i node-sass@4.5.0 susy@2.2.12
RUN node_modules/.bin/node-sass node_modules/susy/sass/_susy.scss
- Run it:
$ docker build .
...
Step 4/4 : RUN node_modules/.bin/node-sass node_modules/susy/sass/_susy.scss
---> Running in a20e432a5a46
Segmentation fault
The command '/bin/sh -c node_modules/.bin/node-sass node_modules/susy/sass/_susy.scss' returned a non-zero code: 139
If 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.
Please 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.
- NPM version (
npm -v
): 3.10.9 - Node version (
node -v
): v6.9.2 - Node Process (
node -p process.versions
): { http_parser: ‘2.7.1’, node: ‘6.9.2’, v8: ‘5.1.281.88’, uv: ‘1.9.1’, zlib: ‘1.2.8’, ares: ‘1.10.1-DEV’, icu: ‘57.1’, modules: ‘48’, openssl: ‘1.0.2j’ } - Node Platform (
node -p process.platform
): linux - Node architecture (
node -p process.arch
): x64 - node-sass version (
node -p "require('node-sass').info"
): node-sass 4.5.0 (Wrapper) [JavaScript] libsass 3.5.0.beta.2 (Sass Compiler) [C/C++] - npm node-sass versions (
npm ls node-sass
): / `-- node-sass@4.5.0
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 23 (16 by maintainers)
@m4rcelofs @nizhu are you both using alpine?