-
Notifications
You must be signed in to change notification settings - Fork 1.3k
node-sass Cause the process to collapse #2171
Comments
Running on sassmeister with ruby sass I get |
@nschonni This problem is very strange, try to delete or add some Behind the Chinese comment delete some characters is also normal to capture the error. |
When I pasted the example without the trailing comments, Sassmiester produced the same error for libsass as Ruby. My hunch is that the chinese characters in a string that is assumed to be UTF8 is the issue |
There will be mistakes (this should be), but the process will not collapse. |
The app crash sounds like your app isn't Handling errors correctly. You can
clearly see that node-sass is throwing an error and not crashing.
…On 30 Nov. 2017 12:14 pm, "sbfkcel" ***@***.***> wrote:
[image: -1]
<https://user-images.githubusercontent.com/5469785/33407970-c4935c56-d5ae-11e7-99a2-9c6e4a6e5ffa.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2171 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjZWH6rSfMvHvXsJnQnlYCmByZj-edbks5s7gFZgaJpZM4QvGPx>
.
|
@xzyfer As the first example, the code is simple. SASS did not normally throw an error. But collapsed. |
My guess is this is LibSass crashing. I am unable to reproduce this. The best chance at fixing this to create a repo that produces the crash so that we can debug it. |
const sass = require('node-sass');
let sassString = `div {background-color:$color;} //一二三四五六`,
result;
try {
result = sass.renderSync({
data:sassString
});
} catch (error) {
console.log(error);
};
const sass = require('node-sass');
let sassString = `div {background-color:$color;} //一二三四五六`,
result;
try {
result = sass.renderSync({
data:sassString
});
} catch (error) {
console.log(error);
};
|
I can't reproduce this with node-sass 4.8.1 and mode v9.6.1 What is the output of
|
Can you provide your test1.js and test2.js encoded (for example please use openssl like this):
|
openssl base64 -in test1.js
openssl base64 -in test2.js
|
Thanks, still cannot reproduce it ... the effect is the same on my platfrom. Can you try running node under gdb ( |
GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin16.7.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from node...
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libcares.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libhttp_parser.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libicudata.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libicui18n.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libicustubdata.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libicuucx.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libnghttp2.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libopenssl.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libuv.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libv8_base.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libv8_libbase.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libv8_libplatform.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libv8_libsampler.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libv8_snapshot.a"
warning: Could not open OSO archive file "/Users/iojs/build/ws/out/Release/libzlib.a"
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/gen/node_javascript.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/async-wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/backtrace_posix.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/cares_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/connect_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/connection_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/env.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/fs_event_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/handle_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/inspector_agent.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/inspector_io.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/inspector_js_api.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/inspector_socket.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/inspector_socket_server.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/js_stream.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/module_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_api.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_buffer.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_config.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_constants.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_contextify.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_crypto.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_crypto_bio.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_crypto_clienthello.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_debug_options.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_dtrace.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_file.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_http2.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_http_parser.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_i18n.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_main.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_os.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_perf.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_platform.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_serdes.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_stat_watcher.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_url.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_util.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_v8.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_watchdog.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/node_zlib.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/pipe_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/process_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/signal_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/spawn_sync.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/stream_base.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/stream_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/string_bytes.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/string_search.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/tcp_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/timer_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/tls_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/tracing/agent.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/tracing/node_trace_buffer.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/tracing/node_trace_writer.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/tracing/trace_event.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/tty_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/udp_wrap.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/util.o': can't open to read symbols: No such file or directory.
warning: `/Users/iojs/build/ws/out/Release/obj.target/node/src/uv.o': can't open to read symbols: No such file or directory.
(no debugging symbols found)...done.
"/Users/fan/Downloads/default/test2.js" is not a core dump: File format not recognized
(gdb) |
Windows also has this problem. Is it related to the system language environment? |
There is something special in your language set up, that is why we cannot reproduce it at the moment. What are your language settings on both systems? |
Region: China |
@sbfkcel are you still having this? Can you give me the output of
I also made a mistake in the
after this type When there is no crash it looks like this:
|
node-sass causes the process to cras
Please copy the following code (including comments and spaces, etc.)
Here is an example:
npm -v
):4.2.0node -v
):7.10.0node -p process.versions
):node -p process.platform
):darwinnode -p process.arch
):x64The text was updated successfully, but these errors were encountered: