This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Partial cores using Linux "pipe" core_pattern
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: psmith at gnu dot org
- Cc: gdb at sourceware dot org
- Date: Sun, 17 May 2009 23:04:55 -0700
- Subject: Re: Partial cores using Linux "pipe" core_pattern
- References: <1242609756.2800.135.camel@homebase.localnet>
On Sun, May 17, 2009 at 6:22 PM, Paul Smith <psmith@gnu.org> wrote:
> I've instrumented every single function with checking for errors and
> writing issues to syslog (including informational messages so I know the
> logging works) and no errors are printed. ?The size of the core that I
> get from read(2)'ing stdin is just short, but read(2) never fails or
> shows any errors!
You can't be read(2)ing stdin, since read(2) doesn't take FILE*.
Are you doing read(0, ...) or are you doing fread(..., stdin) ?
If the latter, are you handling the feof() vs. ferror() difference
correctly? A small code sample might help.
Cheers,
--
Paul Pluzhnikov