Easy segmentation fault in mac node --debug

try this v5.1.1

node --debug;

const obj = Promise.resolve(1);
util.inspect(obj)
['any command after last command']

after run util.inspect(obj), any new command will cause segmentation fault on Mac's node .

more information:

  • without --debug, all work fine as expected.
  • the third command can be anything, .