|
Message-ID: <1295998941.4272196.1451543795605.JavaMail.yahoo@mail.yahoo.com> Date: Thu, 31 Dec 2015 06:36:35 +0000 (UTC) From: Guided Muscle <atguarded-gizmo@...oo.com> To: <musl@...ts.openwall.com> Subject: Re: Musl bug, or, am I losing my mind? Thanks all. I have the strace outputs for the two ends of the pipe. However, I don;t know what to do with the files. What are the essential parts that I should email to this fine group? BTW, the files are rather large. Thank you. -- GM ===== tail lua_strace.txt == write(1, "23752375237523752375237523752375"..., 15360) = 15360 write(1, "23752375237523752375237523752375"..., 492) = 492 write(1, "+7,20957:key5238->value523852385"..., 5120) = 5120 write(1, "23852385238523852385238523852385"..., 15360) = 15360 write(1, "23852385238523852385238523852385"..., 496) = 496 write(1, "+7,20961:key5239->value523952395"..., 5120) = 5120 write(1, "23952395239523952395239523952395"..., 15360) = 15360 write(1, "23952395239523952395239523952395"..., 500) = -1 EPIPE (Broken pipe) --- stopped by SIGPIPE --- +++ killed by SIGPIPE +++ ===== tail cdb_strace.txt == write(3, "36523652365236523652365236523652"..., 16384) = 16384 readv(0, [{"", 0}, {"+7,20953:key5237->value523752375"..., 1024}], 2) = 1024 readv(0, [{"23752375237523752375237523752375"..., 19946}, {"7\n,20953:key5237->value523752375"..., 1024}], 2) = 19948 write(3, "36523652365236523652365236523652"..., 4096) = 4096 write(3, "37523752375237523752375237523752"..., 16384) = 16384 readv(0, [{"", 0}, {"+7,20957:key5238->value523852385"..., 1024}], 2) = 1024 readv(0, [{"23852385238523852385238523852385"..., 19950}, {"23852385238523852385238523852385"..., 1024}], 2) = 19952 writev(2, [{"cdb: (stdin): bad format\n", 25}, {NULL, 0}], 2) = 25 exit_group(2) = ? +++ exited with 2 +++ == -------------------------------------------- On Wed, 12/30/15, Rich Felker <dalias@...c.org> wrote: Subject: Re: [musl] Musl bug, or, am I losing my mind? To: musl@...ts.openwall.com Date: Wednesday, December 30, 2015, 11:07 PM On Thu, Dec 31, 2015 at 04:10:02AM +0100, Szabolcs Nagy wrote: > * Szabolcs Nagy <nsz@...t70.net> [2015-12-30 22:28:33 +0100]: > > * Guided Muscle <atguarded-gizmo@...oo.com> [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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.