That's the bug. Apparently select=0 and len=0 is wrong.