lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMhs6YwYBwGpCxgoGJyi3w3w5LTeM1fftG47bfh0-rr1eqC9zA@mail.gmail.com>
Date:	Thu, 28 Jul 2011 16:44:04 +0300
From:	Maxin B John <maxin.john@...il.com>
To:	Srinivas Nayak <sinu_nayak2001@...oo.co.in>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: Linux child process does not core dump

Hi Srinivas,

On Thu, Jul 28, 2011 at 3:46 PM, Srinivas Nayak
<sinu_nayak2001@...oo.co.in> wrote:
>
> In my program, I fork() to get a child process.
> Because of some problem, child process terminates by a segmentation fault.
> Parent process is still running.
>
> I have compiled my code with -g option.
> I have done: ulimit -c unlimited.
>
> I am not getting core dump of the child process.
>
> How can I get the core dump of child process?

You can call setrlimit(2) from the child process to get core dump.

Best Regard,
Maxin B. John
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ