-
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
[DNM] CI Test #1883
[DNM] CI Test #1883
Conversation
0dbb709
to
accaf76
Compare
On R6010: If we want to handle this in libsass, we would probably need to prevent the default If we want to handle this in sassc, the C way, we would probably need to do error handling for Signals; we will catch |
Sorry, forgot to mention I already merged sass/sassc@5cb56f3 |
👍 |
Now hunting down the issue which seems some memory corruption. Quite a hunt I can say so far ... |
Issue is we pass a |
accaf76
to
47797f8
Compare
Added a fix to keep the memory alive until context is deleted. This exposes a funky issue with error reporting. We re-parse some things after ie. interpolation. An error there will not show the real source, but the interpolated thing we tried to re-parse (also note that the line number is off):
Unsure how to handle this, best would be to be sure we don't error when we re-parse something (error on parse or after evaluation step, ie. with the above we could allow it to parse). I would like to remove all re-parse steps, since we should be able to evaluate the already parsed stuff directly. Anyway, for now this seems to work ... |
@am11 I think we cannot prevent that popup in libsass directly, and somehow that makes sense. We don't know if the consumer is a GUI app or a console app, so the consumer should enforce that behavior. But I don't know how to apply this to ie. perl-libsass bindings for now. I actually wasn't able to include the statements I added in sassc directly into libsass, so I'm not even sure if we technically could enfore that from libsass side. Anyway this only seems to be related to debug builds, so I guess it doesn't make much sense to put too much effort into this. |
@mgreter, as a general practice, is the idea to handle exceptions in the LibSass for users and sanitize all the exceptions as compiler errors/warnings (for consistent experience)? It is probably a good idea to streamline exceptions in trans-compiler scenarios such as libsass. (however, this goes against the "principle of avoiding too much defensive programming" though.. 😄).
From C++ side, if SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
_set_abort_behavior( 0, _WRITE_ABORT_MSG); |
Spec sass/sass-spec#720
Listing issues that only pass on some CI configurations:
and https://travis-ci.org/sass/libsass/jobs/103243292
https://travis-ci.org/sass/libsass/jobs/103492289
https://travis-ci.org/sass/libsass/jobs/103492289
The last two seem related to #1786