Closed
Description
- Version:
v6.11.0 - Platform:
Linux 4.4.0-79-generic Revert "path: resolve normalize drive letter to lower case" #100-Ubuntu SMP Wed May 17 19:58:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
I encountered the problem on my app.
Fact:
The sources (1) and (5) occurs SIGSEGV
But (2), (3), (4) hasn't the problem.
Option:
--max_old_space_size=1024 --expose-gc
and the process is forked process by forever.
(*) catch( ... ) part is written only in (1).
(1)
var when = Promise.resolve();
when = when.then(function() {
return new Promise(function(rsl, rej) {
rej('THROW ERROR'); // => SIGSEGV
});
});
when['catch'](function(e){
console.log(e);
});
(2)
var when = Promise.resolve();
when = when.then(function() {
return new Promise(function(rsl, rej) {
rsl(); // => OK
});
});
(3)
var when = Promise.resolve();
when = when.then(function() {
return new Promise(function(rsl, rej) {
process.nextTick(rej); // => OK
});
});
(4)
var when = Promise.resolve();
when = when.then(function() {
return new Promise(function(rsl, rej) {
setImmediate(rej); // => OK
});
});
(5)
var when = Promise.resolve();
when = when.then(function() {
return new Promise(function(rsl, rej) {
throw 'THROW ERROR' // => SIGSEGV
});
});
I wonder when this phenomena will reproduce in what condition.