From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9022 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 06:36:35 +0000 (UTC) Message-ID: <1295998941.4272196.1451543795605.JavaMail.yahoo@mail.yahoo.com> References: <1295998941.4272196.1451543795605.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: quoted-printable X-Trace: ger.gmane.org 1451543998 804 80.91.229.3 (31 Dec 2015 06:39:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 06:39:58 +0000 (UTC) To: Original-X-From: musl-return-9035-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 31 07:39:53 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 1aEWtr-00022f-SQ for gllmg-musl@m.gmane.org; Thu, 31 Dec 2015 07:39:51 +0100 Original-Received: (qmail 21677 invoked by uid 550); 31 Dec 2015 06:39:49 -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 21651 invoked from network); 31 Dec 2015 06:39:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1451543976; bh=Gc7UNacKH3GQQ4+kGOnisxAEar9FKbTkLECOmojp93A=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=FFp5WVJ/A5SwkGLYZbRY8viFshX01ayW1UkzFrg9/CdUH/WXSDvdYxJcCMRkt2KdCCJ91xvwJPtFbyPECK0jrlcjtzkYUDKuFE67WBTavzCugkRvByo4s/20enkjVsfiolxCZMtLynfx+ZMysbrLIvoVMNxgI59pGzTLzI17ljRTKCeoqL4xTOwfdp1tJ2EgFirAOsPLn+XhFuA9FCn41nkTawkr1NcEibakpoRZRxtkDWolsGiIo9fm34rRoP79BIpdIXSYjy6YPEnvCWxcwPD1F2Wi5NNiRsN6JCIkUzoREILgPy1F833xpi9yeUuNywHTAkQb3fMLyLWolIU5qA== X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 434950.96583.bm@omp1013.mail.ne1.yahoo.com X-YMail-OSG: XEo76nYVM1kdkChbc1.82Izq9auEk0lLbxIAIb3zSa8kkAtNM9m8tX7BS0Jlyi4 eWG3zSMjnUw0fVfWoNylIAQ5b27ryPxjjG8ZQjy7ECLeIMTrT5v59kjaiLuYbfvc2P.r4iWSV.PJ 4AyftNZ..8WEYc2gSXfIrjCjxV4BcTFoepg5Z5n3O2IlGSIm1x1gC2mihAuIpCiv473b95oeHRG1 kBQATgHHeyJ1pNeczEa83ZZsGwcrmeEF8OOZptJDDcAuYW5IenQKrcVY6vNV6ViWMlrE6uh8a3rB 2XFlZU6Mn.Hr2Qt2PR4vojRgfWMRAqypU8N9r.N9uZcpqIQiRC0vfvxmtxtLekGEuElun00zNcdz uojHCr0ZR7H8My.18NGr7FcM_qHDmkTUVhMoBuU4KGy1jwy1FCgyfhvq0yHp6qH7XHDV3q97.G5s F9BWFZMM80qF6TbipSlFVjlZGCP7X6akrByMm.T3YQ8OUnTNPv3Cg9ZOO9_BtUt3KUTLH0wNDieH ._3CZhm_KxBGi Xref: news.gmane.org gmane.linux.lib.musl.general:9022 Archived-At: Thanks all. I have the strace outputs for the two ends of the pipe. However, I don;t kn= ow what to do with the files. What are the essential parts that I should em= ail to this fine group? BTW, the files are rather large. Thank you. -- GM =3D=3D=3D=3D=3D tail lua_strace.txt =3D=3D write(1, "23752375237523752375237523752375"..., 15360) =3D 15360 write(1, "23752375237523752375237523752375"..., 492) =3D 492 write(1, "+7,20957:key5238->value523852385"..., 5120) =3D 5120 write(1, "23852385238523852385238523852385"..., 15360) =3D 15360 write(1, "23852385238523852385238523852385"..., 496) =3D 496 write(1, "+7,20961:key5239->value523952395"..., 5120) =3D 5120 write(1, "23952395239523952395239523952395"..., 15360) =3D 15360 write(1, "23952395239523952395239523952395"..., 500) =3D -1 EPIPE (Broken p= ipe) --- stopped by SIGPIPE --- +++ killed by SIGPIPE +++ =3D=3D=3D=3D=3D tail cdb_strace.txt =3D=3D write(3, "36523652365236523652365236523652"..., 16384) =3D 16384 readv(0, [{"", 0}, {"+7,20953:key5237->value523752375"..., 1024}], 2) =3D 1= 024 readv(0, [{"23752375237523752375237523752375"..., 19946}, {"7\n,20953:key52= 37->value523752375"..., 1024}], 2) =3D 19948 write(3, "36523652365236523652365236523652"..., 4096) =3D 4096 write(3, "37523752375237523752375237523752"..., 16384) =3D 16384 readv(0, [{"", 0}, {"+7,20957:key5238->value523852385"..., 1024}], 2) =3D 1= 024 readv(0, [{"23852385238523852385238523852385"..., 19950}, {"238523852385238= 52385238523852385"..., 1024}], 2) =3D 19952 writev(2, [{"cdb: (stdin): bad format\n", 25}, {NULL, 0}], 2) =3D 25 exit_group(2) =3D ? +++ exited with 2 +++ =3D=3D -------------------------------------------- On Wed, 12/30/15, Rich Felker wrote: Subject: Re: [musl] Musl bug, or, am I losing my mind? To: musl@lists.openwall.com Date: Wednesday, December 30, 2015, 11:07 PM =20 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=C2=A0=20 > > > FAILED: cdb: (stdin): bad format > > >=20 > > > However=20 > > > PASS: cdb -c c.cdb < o.txt > >=20 > > my guess is that cdb does not handle short reads properly > >=20 > > but you can see what's going on with strace > =20 > 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. >=20 > again strace can tell if that is the case. =20 "On Debian 8" is probably not a musl-based cat. =20 Rich