Comment 4 for bug 977995

Revision history for this message
Steven Ayre (steveayre) wrote :

Hi Alexey. Any update on this?

The workaround does not work for me - as stated originally I have already streamed it over SSH to a file. The extraction command is reading directly from the saved file:
xbstream -x -v < ../20120406_092210_full.xbs

Having run strace it appears that it attempts to read the XBSTCK01 data as 14 bytes. Usually read() returns exactly 14 bytes:
read(0, "XBSTCK01\0P\n\0\0\0", 14) = 14

When the error occurs the last read was shorter than the expected 14 bytes (even though there is more data available). It appears that xbstream doesn't handle read() returning less data than requested.
read(0, "XBSTCK01\0P\n", 14) = 11