Where are the core dump files created using "node-bort-on-uncaught-exception"?

I just read this Netflix blog post - I read it perfectly. I played a little with the mentioned tools, etc. especially with the generation of core dumps on uncaught exceptions by setting the --abort-on-uncaught-exception flag. It is also described here . I think it still works with a simple script test (which does nothing but an error), as I see this output:

 Uncaught Error: foo FROM run (/tmp/test/index.js:4:9) wrapper [as _onTimeout] (timers.js:265:14) Timer.listOnTimeout (timers.js:110:15) [1] 18165 illegal hardware instruction (core dumped) node --abort-on-uncaught-exception index.js 

However, it seems to me that I'm too stupid to find the actual core dump file that this experiment (?) Should produce. I looked at /var/cores/ and /opt/cores/ , which were mentioned somewhere on the Internet, but these directories do not exist. The quick find / -name core -type f also did not bring anything useful. What am I missing?

EDIT: node version v0.12.0.

+5
source share
1 answer

Ah, never mind. A great example of rubberducking ... Just found out that the main files are not created if ulimit -c set to 0 , which was on my machine (see for example here ). Setting this parameter made the core file pop up in the working directory.

+9
source

Source: https://habr.com/ru/post/1237577/


All Articles