From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10895 invoked by alias); 18 May 2009 06:05:07 -0000 Received: (qmail 10885 invoked by uid 22791); 18 May 2009 06:05:06 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 May 2009 06:04:59 +0000 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id n4I64vfW029430 for ; Sun, 17 May 2009 23:04:57 -0700 Received: from qyk14 (qyk14.prod.google.com [10.241.83.142]) by wpaz1.hot.corp.google.com with ESMTP id n4I64tRO006594 for ; Sun, 17 May 2009 23:04:56 -0700 Received: by qyk14 with SMTP id 14so5638483qyk.14 for ; Sun, 17 May 2009 23:04:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.82.12 with SMTP id z12mr2896959qck.59.1242626695713; Sun, 17 May 2009 23:04:55 -0700 (PDT) In-Reply-To: <1242609756.2800.135.camel@homebase.localnet> References: <1242609756.2800.135.camel@homebase.localnet> Date: Mon, 18 May 2009 06:05:00 -0000 Message-ID: <8ac60eac0905172304t4deae98bxbd4f0b1d2186a8a0@mail.gmail.com> Subject: Re: Partial cores using Linux "pipe" core_pattern From: Paul Pluzhnikov To: psmith@gnu.org Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00111.txt.bz2 On Sun, May 17, 2009 at 6:22 PM, Paul Smith 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. =A0The 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, --=20 Paul Pluzhnikov