From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9021 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Musl bug, or, am I losing my mind? Date: Wed, 30 Dec 2015 23:07:29 -0500 Message-ID: <20151231040728.GM238@brightrain.aerifal.cx> References: <1337210970.4152546.1451505881575.JavaMail.yahoo.ref@mail.yahoo.com> <1337210970.4152546.1451505881575.JavaMail.yahoo@mail.yahoo.com> <20151230212832.GA23362@port70.net> <20151231031002.GB23362@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1451534865 12126 80.91.229.3 (31 Dec 2015 04:07:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 04:07:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9034-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 31 05:07:45 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aEUWe-00061N-MY for gllmg-musl@m.gmane.org; Thu, 31 Dec 2015 05:07:44 +0100 Original-Received: (qmail 20366 invoked by uid 550); 31 Dec 2015 04:07:42 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 20348 invoked from network); 31 Dec 2015 04:07:41 -0000 Content-Disposition: inline In-Reply-To: <20151231031002.GB23362@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:9021 Archived-At: On Thu, Dec 31, 2015 at 04:10:02AM +0100, Szabolcs Nagy wrote: > * Szabolcs Nagy [2015-12-30 22:28:33 +0100]: > > * Guided Muscle [2015-12-30 20:04:41 +0000]: > > > cat o.txt | cdb -c c.cdb > > > FAILED: cdb: (stdin): bad format > > > > > > However > > > PASS: cdb -c c.cdb < o.txt > > > > my guess is that cdb does not handle short reads properly > > > > but you can see what's going on with strace > > another guess: if this is a musl based system > then there was a gcc bug that broke fflush at > exit so cat would truncate the output. > > again strace can tell if that is the case. "On Debian 8" is probably not a musl-based cat. Rich