Cannot generate core dump file

Segmentation fault(core dumped)

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.

PS: run on fedora 12

questions:

  1. are you running the code as root - if not the cwd of the process may not allow it to write to the cwd.

  2. do you have debuginfo installed?

  3. run this as root:

find / -type -f -name core -exec file {} \;

file usually identifies the name of the program that generated the core. What do you see?

Have you checked the output of

cat /proc/sys/kernel/core_pattern 

If arbtd is running, try stopping this daemon.

That requires debuginfo be installed? Hence my question.....

@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.

@fpmurphy

cat /proc/sys/kernel/core_pattern
|/usr/libexec/hookCCpp /var/cache/abrt %p %s %u

ps -ef |grep arbtd
alien 2410 1945 0 13:36 pts/1 00:00:00 grep arbtd

may be there is no arbtd deamon.

PS:abrtd was running, I typed it in a wrong way. abrtd not arbtd.

can any body help me?

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?

Maybe this post from a Fedora forum is relevant.
http://forums.fedoraforum.org/showthread.php?t=237200

You are not going to get core dumps unless you turn on abrt or modify this configuration. Read up about abrt. See Features/ABRT - FedoraProject

I turned on abrt, but it still cannot generage core file. Then I re-installed abrt using the command

yum install abrt

, and the core file appears! Thank you all here!!