Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #225
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: child process does not core dump ? |
| Date | 2011-07-28 10:28 +0000 |
| Organization | Dis (not Dat) Organisation |
| Message-ID | <j0rdki$hm3$1@reversiblemaps.ath.cx> (permalink) |
| References | <16ed5180-9f74-49d4-9d52-4af211f80ed9@d8g2000prf.googlegroups.com> |
On 2011-07-28, Srinivas Nayak <sinu.nayak2001@gmail.com> wrote: > Hi, > > 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? Um. I think the current directory should be writable by the process user-id, there's probably several other ways to block a core dump too. you might have to emit some diagnostics (eg: to stderr) to help you find where the failure is. ( Another option is after forking, have the parent spawn a gdb instance attached to the child process (possibly spawn the gdb in an xterm if your stdio is busy already) then use that to trap the segfault. -- ⚂⚃ 100% natural
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
child process does not core dump ? Srinivas Nayak <sinu.nayak2001@gmail.com> - 2011-07-27 22:02 -0700 Re: child process does not core dump ? Jasen Betts <jasen@xnet.co.nz> - 2011-07-28 10:28 +0000 Re: child process does not core dump ? Josef Moellers <josef.moellers@ts.fujitsu.com> - 2011-07-28 14:28 +0200
csiph-web