-
Notifications
You must be signed in to change notification settings - Fork 463
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
std::bad_typeid when checking parent selector on base level #1415
Comments
Commit 0e6b4a2 still works fine for me, |
Bisect points at 9b4e424 - surprising :) |
Looking the commits in question is almost certainly 9f5ef6d |
yep, my bisect went bad, checking again.. didn't have compile errors though |
This is the backtrace:
On frame #2 the value is |
When the |
Looks to me like a bigger issue now - during the expansion phase we traverse the tree lexically, while variables should actually be expanded from the dynamic context. The context of the mixin call is not known (not set), since we process |
Minimal test case
|
This variant also causes a segfault
|
The latter seems to be second half of the issue: the selector stack is empty, so we return NULL as a value and crash. The first half exposed by the mixin case is that we have the selector stack is empty while it should not be (mixin call does not get its dynamic scope of selectors). |
I'm not sure I'm following. Given this code, the selector stack should be empty, which is causing the error in my first example.
|
We can see that the selector scope is being passed to the mixin
Produces
|
Sure, it is empty, because IT IS empty :) now I see it. A quick workaround (or even a fix?) in #1430 |
That fix seems fine to me. I'll create the specs so can ship this. |
This PR activates specs for sass/libsass#1415
I see lots of other methods happily returning 0 as |
If anything I'd say both, since |
Returning
Should produce
We don't currently produce this error, but it implies having |
Spec added sass/sass-spec#468 |
This looks like a regression in master
Given the following code:
Ruby Sass:
libsass 3.2:
libsass master:
The text was updated successfully, but these errors were encountered: