Indeed, systemd does some sneaky tricks.

$ sysctl kernel.core_pattern

kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %p %u %g %s %t %e

$ sudo sysctl kernel.core_pattern='core'

$ node -e 'process.abort()'
Aborted

$ ls -a
./  ../  core


Thanks!


On 02/01/2013 07:08 PM, Ben Noordhuis wrote:
> On Fri, Feb 1, 2013 at 5:27 PM, Dan Milon <danmi...@gmail.com>
> wrote:
>> $ ulimit -c unlimited
>> 
>> $ node -e 'process.abort()' Aborted (core dumped)
>> 
>> $ ls -a ./  ../
>> 
>> Any idea?
>> 
>> BTW, could you point me to the actual code of process.abort in
>> the source?
>> 
>> danmilon.
> 
> Check what the kernel.core_pattern sysctl is set to.  Some
> security frameworks change it so core dumps get stored elsewhere.
> 
> Also, don't run as root.  Some of the aforementioned frameworks
> block root core dumps as a security precaution (think symlink
> attacks.)
> 
> process.abort() is implemented in src/node.cc (grep for 'Abort').
> It doesn't do anything special: it just calls abort() which in turn
> sends a SIGABRT to the process.
> 

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to