-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault compiling specially crafted sass file into CSS #1962
Comments
Sorry @brandonprry I'm finding your report hard to follow. Please produce a copy-pastable sample of code that produces this problem so I can debug locally. |
I am not sure what else I can show you, the above has many commands to run as well as the input to use to crash sassc.
|
Are you reporting that the following Sass code produces a segfault? :000000#{00}000000{//
} If so, I am unable to reproduce with 213339a. What is your environment? |
Yes, that is correct. This is ubuntu wily, built from source from git.
|
What is the output that you get? |
I get the following output
Running OS X 10.11.4. What compiler are you using?
|
Is this the path of the file you're compiling?
If so, that may be the issue. Can you try something more standard like |
If you build absolute latest as such:
Then run my input through the newly-built |
I am still unable to reproduce this. // test.scss
@im+ w\dth:5clner #{n: w\dth:5>0Qx;
}button {
//levxe buttons mixin
@inclner #{n: w\dth:500Qx;
}
}
|
You should export the environment variables, not just use them in front of make. Otherwise, they are not picked up by libsass when make is called there to build and you do not get the same result I have. |
Ok I've finally been able to reproduce this with the follow reduced test case
|
Might be that sassc destroys the context too early before actually priniting the error message? |
Closing this a duplicate of #2046 since chances are high you are exactly seeing this here. If not feel free to re-open and to take some inspiration from said bug report, specially since @asottile provided a repo for easy reproduction of the problem. |
Hello, currently testing version 3.3.4 from git
The following file:
minimized from:
causes an assertion failure and a use-after-free.
The text was updated successfully, but these errors were encountered: