Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 30 Dec 2015 20:04:41 +0000 (UTC)
From: Guided Muscle <>
To:  <>
Subject: Musl bug, or, am I losing my mind?

Houston, I think we have a problem.
I used musl-gcc to compile tinycdb on Debian 8 and kept getting errors on a very simple test case.

Make options:
CFLAGS=-O2 -s -static -fPIC -D_FILE_OFFSET_BITS=64 
The resulting executable is cdb.

Test data is generated via a lua script (test.lua):
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))

Running lua test.lua | cdb -c o.cdb always results in an error ... FAILED
cdb: (stdin): bad format

So, maybe they broke the pipe in Linux Debian ... Let's prepare a temporary file  lua test.lua > o.txt

The, run this puppy:
cat o.txt | cdb -c c.cdb  
FAILED: cdb: (stdin): bad format

PASS: cdb -c c.cdb < o.txt

What am I missing?


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.