In a large fortran program I would like to get the system to do a core dump so I can poke around the symbol table at my leisure. I have attempted to do so with a small test c program (compiled using Apple's developer tools).
ulimit coredumpsize
cat dumpcore.c
#include <stdio.h>
#include <signal.h>
int dumpcore();
int main()
{
return dumpcore();
}
int dumpcore(void)
{
int dog[50],i;
for(i=0;i<50;i++) {
dog = i*i;
}
return raise(SIGABRT); // dump core
}
galatica% ./dumpcore
Abort (core dumped)
... but there is no core file! What gives?
ulimit coredumpsize
cat dumpcore.c
#include <stdio.h>
#include <signal.h>
int dumpcore();
int main()
{
return dumpcore();
}
int dumpcore(void)
{
int dog[50],i;
for(i=0;i<50;i++) {
dog = i*i;
}
return raise(SIGABRT); // dump core
}
galatica% ./dumpcore
Abort (core dumped)
... but there is no core file! What gives?