but I cant find core file any where. how to make it out?
I try the command:ulimit -c unlimited, I even added it to the .bashrc file.And I removed ulimit setting in /etc/init.d/function. And there's no ulimit setting in /etc/profile. And I tried sudo find / -name *core*, but find no useful infomation.
@jim mcnamara:
I run my programe as root. And I also tried run my programme as its ower.
I dont know what are cwd and debuginfo.
May be your code has a small fault. I think you mean this:
sudo find / -type f -name core -exec file {} \;
(no '-' letter before 'f')
I tried the command, but it output nothing.
cwd means Current Working Directory.
If the process owner cannot write to that directory there will be no "core" file.
This also applies if the cwd does not exist (yes it can happen).
Did you write the program?
Does it fail immediately or on some condition?