-
Notifications
You must be signed in to change notification settings - Fork 1.3k
segmentation fault when parsing invalid sass #378
Comments
I'm also having this problem using gulp-sass, but I found I get a more helpful error by turning off the sourceMap and sourceComments options, if that helps the diagnosis. |
Not passing in |
I've seen this problem when using gulp-sass. I just tried out grunt-sass (grunt plugin for node-sass) and find that when sourceMap options are on, there's no error logging at all. Blatant issues pass right through unnoticed. Perhaps the scenarios are unrelated but they're strangely symmetrical. |
+1 I am using node-sass from gulp-sass and when I set the |
This is fixed. The next release will bring tons of improvements. Don't know when it will be rolled out though. You can, however, build it by yourself if you have C++ compiler installed (also |
@am11 are you saying this is fixed in master? If so I'll close this issue. |
Actually I replied to the issue @Arkkimaagi reported. That is surely fixed. It's unclear if the OP is facing the same issue. I guess a release at this point will close couple of issues in the tracker. Do you know of an ETA on the next release? |
@am11 first thing we need to do is build all of the binaries for https://github.com/sass/node-sass-binaries, updated to the latest version. I can do Mac and Linux, @LaurentGoderre usually sorts the Windows builds out. Finally, after that is done, we need to update the package.json to reflect a new version number and publish it to npm. If you want to speed things up, feel free to try to compile the Mac/Nix/Win binaries and submit a pr in https://github.com/sass/node-sass-binaries |
Great! 👍 Will do that, but on second thought; I guess this would make sense if we wait for sass/libsass#471 and sass/libsass#476 to merge in by @akhleung. After that I will make a minor update which corresponds to sass/libsass#476. By that time, hopefully teletyping (TTY) test issue (#410) is sorted out, so CI build finally pass with flying colors! 🍏 |
Libsass is out of my control, but feel free to @ me when they're merged in and we can get the ball rolling on updating node-sass. |
@keithamus, @andrew, |
@am11 I don't believe it should if there are binaries available for the platform you're installing it on. The build.js testing-and-installing-or-building script is kinda crazy, I wouldn't be surprised if there were bugs in it. |
@andrew thanks for the quick reply. I think we should add a note in README.md for python and c-compiler dependencies, to clarify that the installation of this npm it's not as straightforward as |
@am11 those dependencies are only required for a rebuild of the binaries. They shouldn't be needed for anyone one a stable NodeJS on any platform the binaries are shipped for. Closing this issue since the PR fixings this was merged weeks ago |
@nschonni, thanks! That's what I was thinking. But it was actually building the package with |
Experienced a lot of segfault errors just a while ago. Tried doing npm rebuild and reinstalling my node modules but to no luck. Finally went back to my code and noticed one line exceeded one tab. Deleted the extra tab and now it finally works! This error occured while I was testing the responsiveness of the site and made a quick change in sass and gulp watch it right ahead. |
I'm not sure what you mean by this. Can you please show an example so I can see the segfaults myself? |
@xzyfer take this as an example: sass is tab-sensitive, I failed to see one line exceeded by a tab. Something similar like this:
|
Thanks @justinewin this should throw an error, not segfault
This is likely a bug in sass2scss /cc @mgreter |
@xzyfer I see, mine was because of a tab. That's why I was wondering why I'm having a segmentation fault. |
@justinewin your segmentation fault is due to an unhandled error. So yes, the extra tab is the problem, but a bug is causes libsass to segfault instead of returning an error, |
Loud comments
This problem was already discussed in issue #7. But as far as I tested it, it is still a problem.
I am using node-sass via gulp-sass. gulp-sass use the current version of node-sass (^0.9).
If I try to compile a scss file with an missing
;
it writessegmentation fault
to the console and crashes.The text was updated successfully, but these errors were encountered: