google/crush-tools

hashjoin dies w/ tcmalloc errors when stdin is 0 bytes

Closed this issue · 1 comments

What steps will reproduce the problem?

[(xfp-custom/goog) google3]$ echo -e "1,X\n2,Y" > /tmp/x
[(xfp-custom/goog) google3]$ cat /dev/null | hashjoin -f /tmp/x -k 1 -l 1 -j 2
hashjoin: xmalloc failed to allocate -1 bytes: Cannot allocate memory

What is the expected output? What do you see instead?

A nicer error message that stdin (or the joined file) is 0 bytes.

What version of the product are you using? On what operating system?

(xfp-custom/goog) google3]$ hashjoin -V
0.1

Please provide any additional information below.

Original issue reported on code.google.com by renw...@google.com on 16 Nov 2012 at 11:12

Fixed in r524.

Original comment by jeremy.h...@gmail.com on 7 Jan 2013 at 5:54

  • Changed state: Fixed