开发者

How to make nscd generate core dump files?

开发者 https://www.devze.com 2023-02-22 21:03 出处:网络
nscd service crashed without a core dump file. ulimit -开发者_Go百科c is unlimited. Someone says that that\'s because nscd use \"setuid\" when the \"server-user\" is set in /etc/nscd.conf.

nscd service crashed without a core dump file.

ulimit -开发者_Go百科c is unlimited.

Someone says that that's because nscd use "setuid" when the "server-user" is set in /etc/nscd.conf.

Then I added a "#" to delete it at the beginning of the "server-user" line in /etc/nscd.conf then restart the service.

Now it runs as root which could be checked by "ps -ef | grep nscd".

However, the following commands still could not make nscd to generate a core dump file: kill -ABRT nscd-pid or kill -s SIGSEGV nscd-pid

Who can tell me why and how? Thanks in advance!


resolved it myself. That's because nscd is called with "daemon nscd ..." in /etc/init.d/nscd script, however the daemon function in /etc/init.d/functions modify the core dump file size to be 0, so even if issuing "ulimit -c unlimited" at the beginning of "/etc/init.d/nscd" could not make sence.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号