Enabling core dumps in child processes

Enabling core dumps in child processes

Post by Tony Houghto » Thu, 24 Oct 2002 23:32:42



I'm writing a program which is mainly in C, but uses a perl script to
manipulate some files before and after execution; the perl calls the C
using system(). The C program needs debugging, but I can't get it to
dump core when run from the perl script.

I've tried putting a little shell script between the perl and the C,
which sets ulimit -c unlimited, but it still doesn't dump core. I've tried
calling this wrapper script with bash's --login option, tried also
setting ulimit before calling the perl script, but it still doesn't
work. And the cwd is writable.

--
TH * http://www.realh.co.uk

 
 
 

Enabling core dumps in child processes

Post by Tony Houghto » Thu, 24 Oct 2002 23:35:27


I'm writing a program which is mainly in C, but uses a perl script to
manipulate some files before and after execution; the perl calls the C
using system(). The C program needs debugging, but I can't get it to
dump core when run from the perl script.

I've tried putting a little shell script between the perl and the C,
which sets ulimit -c unlimited, but it still doesn't dump core. I've tried
calling this wrapper script with bash's --login option, tried also
setting ulimit before calling the perl script, but it still doesn't
work. And the cwd is writable.

[Sorry about the repost, I got the perl group wrong]

--
TH * http://www.realh.co.uk

 
 
 

Enabling core dumps in child processes

Post by Tony Houghto » Fri, 25 Oct 2002 05:03:44




> I'm writing a program which is mainly in C, but uses a perl script to
> manipulate some files before and after execution; the perl calls the C
> using system(). The C program needs debugging, but I can't get it to
> dump core when run from the perl script.

Oops, it wasn't because of perl after all, it seems that it's sudo
that's suppressing core dumps. Any idea how to reenable them, or is
there something else I can use instead of sudo?

[perl group removed from followups]

--
TH * http://www.realh.co.uk

 
 
 

1. child process to dump core

Hi all,

  I need information reg a child process to dump core.
The scenario is like this:
"Parent process is run as 'root' and it forks a child whose uid and
gid is changed to 'nobody'. If the child process is killed by a signal
(SIGSEGV or SIGILL....) it is not generating a core."
I want the child process to generate the core, so as to debug.

Any help is welcome

-Leekris

2. Using a GSM SMS Gateway on WWW to notify incoming mail

3. getting child processes to dump core?

4. Symbolic Mathmatics Programs, Recommendations?

5. telnetd process core dumps when handing off to login process

6. Help on Sun Solaris disk formats

7. how to kill a child process that runs other children processes

8. fdisk troubles w/ Micropolis 2G

9. smail failed to reap child process: No child processes

10. core dumps core dumps everywhere...

11. dump core or not dump core

12. Getting a child and child's child process-id