This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Segfault with function/map combination #1861
Comments
Closed
I found a small reproducable case: It seems grunt-sass is not relevant for this problem. @function map-include($map, $keys...) {
$map-include: ();
@each $key in $keys {
@if map-has-key($map, $key) {
$map-include: map-merge($map-include, ($key: map-get($map, $key)));
} @else {
@error 'Oooops! #{$key} is not included in map #{$map}';
}
}
@return $map-include;
}
$colors: (
"white": #FFFFFF,
"black": #000000,
"green-50": #F0F7F7
);
$list-colors: map-include($colors, 'white', 'black') !default; |
danez
changed the title
Random segfault on large project
Segfault with function/map combination
Jan 17, 2017
This was referenced Jan 19, 2017
Thanks for the reproduction @danez. This has been fixed in LibSass 3.5.0.beta.2 and will be released in [email protected] in the next couple days. |
@danez can you confirm the segfault is resolved with |
Sadly it still does not work, I open another ticket, as different problem. |
I ran into the same issue using scss maps having the following environment:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
npm -v
): 4.1.1node -v
): 6.9.3node -p process.versions
):node -p process.platform
): linuxnode -p process.arch
): x64node -p "require('node-sass').info"
):npm ls node-sass
):We receive random segfaults when running
grunt-sass
on our large codebase. I usedsegfault-handler
to catch the error and print something useful and this is all I got:I also tried compiling a debug version of the node-sass binding, but that didn't change the segfault output.
I tried changing grunt-sass to use
sass.renderSync()
and not do any async stuff, but besides being slower the same error appears again.Our codebase works with 3.x
The text was updated successfully, but these errors were encountered: