-
Notifications
You must be signed in to change notification settings - Fork 1.3k
3.3.0 segmentation fault 11 on OSX #1107
Comments
Reverting to 3.2.0 fixes the problem |
👍 I'm having the exact same issue node -v
# v2.5.0
npm -v
# 2.13.2 I'm using it through gulp-sass though, so can't really revert. |
My guess is that you need to delete your Sounds like your system has kept the v3.2.0 rather than downloading the updated v3.3.0 binary. |
Nope, 3.3.0 is definitely causing the problem on my PC. |
@bestander please follow our troubleshooting guide and create a gist with all the output. We're unable to reproduce this issue. |
I deleted my node_modules, and did a clean install. It shows segmentation fault 11 now. |
If someone could produce a scss sample that produce that the segfault that would greatly help. |
Sure will do. |
Hm, in an isolated case it does not throw the error:
But in our production system with a large gulp script just having
Segfaults node with error.
I'll try to investigate more |
It's not related to gulp-sass as I am currently using that without issue. |
@xzyfer I'm using the sass-loader for Webpack, that uses node-sass, and 3.3.0 definitely crashes Node with Segmentation Fault: 11. Downgraded to 3.2.0 and voila, it works. |
@eddiemoore @enriquecaballero @yizhan Are you using node-sass via Gulp / Grunt, and which? Please run the following commands
|
By pure fluke I was able to reproduce this in a
The culprit appears to I'm still digging into why node-sass is triggering this segfaulting behaviour in fsevents. |
Some suspect things I've noticed with regards to fsevents.
|
Incase you still need it node -v
# v2.5.0
npm -v
# 2.13.2
node -p process.versions
{ http_parser: '2.5.0',
node: '2.5.0',
v8: '4.2.77.21',
uv: '1.6.1',
zlib: '1.2.8',
ares: '1.10.1-DEV',
modules: '44',
openssl: '1.0.2d' }
node -p process.platform
# darwin
node -p process.arch
# x64 |
@eddiemoore are you experiencing this through a watcher or in a singe gulp run? |
both. During a build and watch. gulp.task('styles', () => {
return gulp.src('src/styles/**/*.scss')
.pipe($.sass().on('error', $.sass.logError))
.pipe(gulp.dest('dist/styles'))
}) Using gulp-load-plugins in case you are wondering what the $ is. |
I've done some more digging and I believe this to be a bug in @enriquecaballero @eddiemoore @bestander can you please try the following: Add this line as the first dependency on your
Then delete your |
@xzyfer That solves the issue for now. Just hope this will be fixed soon without having to do this. |
Thanks @eddiemoore. That just helps confirm fsevents is the culprit. I've commented on their related issue paulmillr/chokidar#219 |
Reverting to |
Only thing is CodeShip CI can't install it.........
|
@eddiemoore make it an optionalDependency instead
|
👍 |
@saper I don't know of a way to get remote access to an OSX machine, sorry. |
@saper libsass runs against osx in CI. Maybe you could hack together something to exploit that in PR? |
Today I started getting the segmentation fault 11 issue. However, I'm running node-sass 3.2.0 with sass-loader for webpack. Based on this conversation it doesn't seem like that's possible. Am I losing my mind? |
@lomteslie Please see #1107 (comment) |
@vinkla Thank you – That fixed it after reinstalling node modules. |
Yes unfortunately the issue isn't specific to node-sass but the underlying 3rd party library used for compiling native extensions like watchers used by grunt, gulp, webpack and karma. It just so happens node-sass manages to trigger this issue. We're working with the 3rd party library to get this resolved. |
This is to make sure binaries affected by sass#1107 are never built
This is to make sure binaries affected by sass#1107 are never built
|
Hey all, just wanted to say that in my experience this can sometimes be due to particular sass bugs and sometimes only cause seg faults in one OS (node-sass does different things dep on OS), one that's caused seg faul n Linux: .example { switched to: .example { fixes Happened one other time when I was using an undeclared mixin |
@sirrodgepodge segfaults are pretty much always a bug in libsass and if someone would have reported it as an issue, libsass team would have had a chance to fix it already ... |
@sirrodgepodge this has been fixed in libsass and will be in the next node-sass version. |
I was experiencing this issue. Initially, I installed encfs with homebrew while my OS x version was Yosemite. Everything worked fine until I upgraded to El Capitan, (begrudgingly). Then I experienced the segmentation fault 11. I uninstalled encfs: and then reinstalled: and everything worked fine again. |
Node quits with "segmentation fault 11" when node-sass is required.
I am using gulp-sass that depends on node-sass.
Mac OS X 10.10.5
node -v
v2.3.0
npm -v
2.12.1
The text was updated successfully, but these errors were encountered: