Trouble getting a core dump from clamd
Chuck Swiger
cswiger at mac.com
Wed Jan 20 21:05:11 UTC 2010
Hi--
On Jan 20, 2010, at 12:46 PM, Doug Poland wrote:
> Thanks for the suggestion and the pointer to man 5 core. I
> implemented your suggestions but still get no core dump. Very
> strange...
Check your default resource limits (shell startup files & /etc/login.conf) and see whether coredumpsize is set to 0, maybe? If you build and run:
% cat crash.c
#include <stdlib.h>
main()
{
char *bad = NULL;
bad[0] = '1';
}
% cc -o crash crash.c
% ./crash
[1] 16550 segmentation fault (core dumped) ./crash
% ls /cores
crash.16550.core
...do you get this trivial program to dump core?
Regards,
--
-Chuck
More information about the freebsd-questions
mailing list