From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9032 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: Thu, 31 Dec 2015 14:45:47 -0500 Message-ID: <20151231194547.GO238@brightrain.aerifal.cx> References: <2036560950.4461281.1451590538227.JavaMail.yahoo.ref@mail.yahoo.com> <2036560950.4461281.1451590538227.JavaMail.yahoo@mail.yahoo.com> 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 1451591164 7522 80.91.229.3 (31 Dec 2015 19:46:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 19:46:04 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9045-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 31 20:46:03 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 1aEjAh-0005N3-8p for gllmg-musl@m.gmane.org; Thu, 31 Dec 2015 20:46:03 +0100 Original-Received: (qmail 7311 invoked by uid 550); 31 Dec 2015 19:46:01 -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 7293 invoked from network); 31 Dec 2015 19:46:00 -0000 Content-Disposition: inline In-Reply-To: <2036560950.4461281.1451590538227.JavaMail.yahoo@mail.yahoo.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:9032 Archived-At: On Thu, Dec 31, 2015 at 07:35:38PM +0000, Guided Muscle wrote: > Oh, I wanted to add that this is probably not a cdb bug because cdb, > when compiled with gcc or clang, worked for i > 25000. That doesn't necessarily tell you anything. If the program is producing undefined behavior, it could appear to work under arbitrary conditions. Or it might not be producing undefined behavior but rather just making invalid assumptions about the implementation. I just tried your test.lua with tinycdb I built myself on Alpine Linux (x86_64) and could not reproduce the problem. cdb succeeded just fine reading from pipe. I tried both piping directly from lua, and saving the output to a file then piping from cat and neither produced an error. Rich