I don't know if this can help you in any way, but I'm not a Linux expert so I 
tried to do some tests with setrlimit by Googling.
I found this page which seems at least related with the 'core dumps' error:

http://adamrosenfield.com/blog/2010/04/23/dumping-core/

I tried to compile the watchdog example in the QNAP and if I run it, it seems 
to work:

[~] # ./a.out
child exited with status 139
got a core dump
[~] # dmesg -c
a.out[17893]: segfault at 1 ip 080485a6 sp bfa23590 error 6 in a.out
[8048000+1000]

This is the behaviour when setting ulimit:

[~] # ulimit -c 0
[~] # ulimit
unlimited
[~] # ./a.out
child exited with status 139
got a core dump

According to the article it should fail, but I've tried the same in a Debian 
sid VM and the output is exactly identical.
To me it seems that setrlimit is not crashing, right?


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to