From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9030 Path: news.gmane.org!not-for-mail From: Guided Muscle Newsgroups: gmane.linux.lib.musl.general Subject: Re: Musl bug, or, am I losing my mind? Date: Thu, 31 Dec 2015 19:19:56 +0000 (UTC) Message-ID: <1163254146.4344492.1451589596849.JavaMail.yahoo@mail.yahoo.com> References: <1163254146.4344492.1451589596849.JavaMail.yahoo.ref@mail.yahoo.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1451589616 17992 80.91.229.3 (31 Dec 2015 19:20:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 19:20:16 +0000 (UTC) To: Original-X-From: musl-return-9043-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 31 20:20:15 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 1aEilg-00065Y-Bb for gllmg-musl@m.gmane.org; Thu, 31 Dec 2015 20:20:12 +0100 Original-Received: (qmail 19814 invoked by uid 550); 31 Dec 2015 19:20:11 -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 19796 invoked from network); 31 Dec 2015 19:20:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1451589597; bh=rpcoE4CWh7FBxL9xxrGN/r+F0rQ1/Ab2NyaYOcrmLAo=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=eWDUeHQCnvu8zI3R7i26gdEtQE+IWx2g93lHoNwYKFbdFbtZh3GOxgos8PMHomKsdGrDebfUlp6aZ1PvStrLwV4T8iN25QtOjBqoZ4ZJAVpopZWFm/T+JVY0scQ7KiGCHXEPrarvhpVpoq/TLNWCjM1nNjoS540T8qEbrUIG0+NV2bGHzs9IEWJanrU7H/7FrqDdoPU2GbFb9LBjnJVVO7LSoZnh4b8VO1TbjZ908ptttMa/GubZcPdKZAoz6bq0cc20rHpy/wza3y2A/jlLIl9CAPLaQtTtrCWpsqoMiYO3gopIVXqehBhpkQ3FLtmrw2rqzbxbhUUid1NUH+3BjQ== X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 775348.77358.bm@omp1005.mail.ne1.yahoo.com X-YMail-OSG: G7XJKHwVM1nre4v.eKQvMBZ5TSPy8eG6RDbHdaBT4hHqPc6gCNES9rXQ2QnS13M _ebMxF90JYbwICvhOo9Hz2xMbk0SApBpHTNOf12Eqwf4iVEU0n5GMEQWp.REIfLLzdMyNzBootmr _q5o45MfLv0inxC7HRLThsvrRocoSncR9ehQplHE4BDYOB5JCnZ98_HJiv1DT62HEYpZFLtc96kN TwKnaQcn_OGNqHF470akkOO5wK6KPKKC60RBM8D5xveIJe.nkY.xPPiPvCqMMdklvlM.pERnBaTW 47iBCDhH2NTpxtFdHldT2wTLmFIT_t0ue5g5eD7RlcU4pOhJLGad5dmde8bXudfuMeNe0uB0C2WZ DjrNFHc6billYvpviGao4CKLbOGYd9E1s.DabDOjpr1VD1CKpPY9mCCoYPJSYP1heg5u6GfBt1am vW5056Ia0skdRo7nBAFICAQevmlWLhXVd16BsHYUVZBkYbyud7BWjMw3.KsSLS3SgKuJROOnv91V cIg-- Xref: news.gmane.org gmane.linux.lib.musl.general:9030 Archived-At: First, thanks to everyone who's pitched in for this problem. I'd love to send the sample file to the list but the file is very big about 45MB when i=5000. Unfortunately, the problem does not rear its head until i is abut 7500. The output of test.lua is not private and can be easily generated from this lua script: -- for i=1,10000 do key,val="key" .. tostring(i), "value" .. string.rep(tostring(i),i) print(string.format("+%d,%d:%s->%s", string.len(key),string.len(val),key,val)) end print("\n") -- NOTES: The problem starts when the loop counter, i, is around 75000. the final newline are part of the cdb format spec. Thanks -- GM -------------------------------------------- On Thu, 12/31/15, Rich Felker wrote: Subject: Re: [musl] Musl bug, or, am I losing my mind? To: musl@lists.openwall.com Date: Thursday, December 31, 2015, 1:33 PM On Thu, Dec 31, 2015 at 05:31:02PM +0000, Guided Muscle wrote: > Recompiled and installed musl 1.1.12 freshly downloaded from the musl web site. > configure;make -j2;make install. > > Oops - just read the INSTALL file in the musl 1.1.12 directory. I'm using gcc 4.90. > Installed gcc 4.8; recompiled musl 1.1.12; > configure;make -j2;make install. > > Test: > lua test.lua | ../cdb -c c.cdb > cdb: (stdin): bad format > > I give up and will use a temporary file for tinycdb. > > Thank you all for your help. Do you have a sample file we could use to reproduce the issue? If the output of test.lua is not private data, just lua test.lua > sample.txt and mailing sample.txt to the list would suffice. Rich