Generating core dumps

I have the following set up on a Sun server running solaris 5.8 for core dump generation

[rss10@jsh1035c:JSDISC01] coreadm
global core file pattern: /var/core
init core file pattern: /var/core
global core dumps: enabled
per-process core dumps: enabled
global setid core dumps: disabled
per-process setid core dumps: disabled
global core dump logging: enabled

[rss10@jsh1035c:JSDISC01] ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) 10000000
nofiles(descriptors) 256
vmemory(kbytes) unlimited

I have even run the command coreadm -p core.%f.%p $$, but have had no luck it managing to create a core file.

I am testing the generation with the following simple C program

int main ()
{
int c;
c=9/0;
}

This will cause a core dump (i am 99% certain), but alas not for me.

Anyone got any suggestions?

Your program will drop core for me. But I don't have your screwy patterns set. Read the coreadm man page again.

I have time and time again with little luck.

Run
coreadm -g "" -i core
as root. After you reboot the box, things will work again. Until you reboot you probably can do :
coreadm -p core $$
to fix your current shell.

Thanks, that worked.