This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Partial cores using Linux "pipe" core_pattern


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]