[Spice-devel] unknown packets received by spice-gtk/​spicy, spice/clie​nt/spicec client

ChiaChu Cho chiachu.cho at gmail.com
Wed May 14 20:05:30 PDT 2014


Hi spice-devel,

I experienced a strange problem while connecting qemu (v1.7) VM with
client/spicec (built with spice(0.12.4) or spice-gtk(v 0.9).

The problem seems to be
unknown packets are received by client and client failed to handle them.
packet_could_not_be_parsed.txt contains 2 sample packets which cause same
problems.

For instance,

1. if spicec received frame 1 (in the attached
packet_could_not_be_parsed.txt), it would try to collect a compound data of
size 0xdd86a6a7 (a7 a6 86 dd) per the SpiceDataHeader, (33 33 ff b8 47 38
52 54 00 d8 a7 a6 86 dd 60 00).

2. if spice-gtk/spicy received fame 2, it would allocate and receive
0x16000000 (00 00 00 16) bytes data per the SpiceMiniDataHeader (33 33 00
00 00 16). The received packet is just 90 bytes and there is no way to
return from spice_channel_read (spice_channel_read_wire) routine.

I investigated this by adding debug print in several place in server side
such as
stream_write_cb()/stream_writev_cb()/stream_ssl_write_cb()/reds_stream_write()
in spice/server/reds.c
but it seems that these packets are not sent by these routine.

Is this a bug or some improper options in server side (script,
run_kvm_win7x32-0_5900.sh, is also attached )?
Is there other place where server might send data which I overlook?

best regards,
--Bryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140515/c529bb63/attachment.html>
-------------- next part --------------


Frame 1
0000   b8 88 e3 f3 62 f2 60 a4 4c aa b6 fd 08 00 45 00  ....b.`.L.....E.
0010   00 82 7e 17 40 00 40 06 1a 40 c0 a8 10 79 c0 a8  ..~. at .@.. at ...y..
0020   10 55 17 0c d3 6e 91 02 ba ba d0 1b eb a1 80 18  .U...n..........
0030   00 eb e3 f1 00 00 01 01 08 0a 1a f2 e0 f8 05 bb  ................
0040   65 35 33 33 ff b8 47 38 52 54 00 d8 a7 a6 86 dd  e533..G8RT......
0050   60 00 00 00 00 18 3a ff 00 00 00 00 00 00 00 00  `.....:.........
0060   00 00 00 00 00 00 00 00 ff 02 00 00 00 00 00 00  ................
0070   00 00 00 01 ff b8 47 38 87 00 33 c8 00 00 00 00  ......G8..3.....
0080   fe 80 00 00 00 00 00 00 45 50 db 2d 98 b8 47 38                                                  ........EP.-..G8

    Virtual Networking Computing
    0000   33 33 ff b8 47 38 52 54 00 d8 a7 a6 86 dd 60 00  33..G8RT......`.
    0010   00 00 00 18 3a ff 00 00 00 00 00 00 00 00 00 00  ....:...........
    0020   00 00 00 00 00 00 ff 02 00 00 00 00 00 00 00 00  ................
    0030   00 01 ff b8 47 38 87 00 33 c8 00 00 00 00 fe 80  ....G8..3.......
    0040   00 00 00 00 00 00 45 50 db 2d 98 b8 47 38        ......EP.-..G8

Frame 2
0000   b8 88 e3 f3 62 f2 60 a4 4c aa b6 fd 08 00 45 00  ....b.`.L.....E.
0010   00 8e 7e 19 40 00 40 06 1a 32 c0 a8 10 79 c0 a8  ..~. at .@..2...y..
0020   10 55 17 0c d3 6e 91 02 bb 4e d0 1b eb a1 80 18  .U...n...N......
0030   00 eb 0c ee 00 00 01 01 08 0a 1a f2 e0 f8 05 bb  ................
0040   7d 68 33 33 00 00 00 16 52 54 00 d8 a7 a6 86 dd  }h33....RT......
0050   60 00 00 00 00 24 00 01 fe 80 00 00 00 00 00 00  `....$..........
0060   45 50 db 2d 98 b8 47 38 ff 02 00 00 00 00 00 00  EP.-..G8........
0070   00 00 00 00 00 00 00 16 3a 00 05 02 00 00 01 00  ........:.......
0080   8f 00 28 aa 00 00 00 01 04 00 00 00 ff 02 00 00  ..(.............
0090   00 00 00 00 00 00 00 01 ff b8 47 38              ..........G8

    Virtual Networking Computing
    0000   33 33 00 00 00 16 52 54 00 d8 a7 a6 86 dd 60 00  33....RT......`.
    0010   00 00 00 24 00 01 fe 80 00 00 00 00 00 00 45 50  ...$..........EP
    0020   db 2d 98 b8 47 38 ff 02 00 00 00 00 00 00 00 00  .-..G8..........
    0030   00 00 00 00 00 16 3a 00 05 02 00 00 01 00 8f 00  ......:.........
    0040   28 aa 00 00 00 01 04 00 00 00 ff 02 00 00 00 00  (...............
    0050   00 00 00 00 00 01 ff b8 47 38                    ........G8


-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_kvm_win7x32-0_5900.sh
Type: application/x-sh
Size: 1781 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140515/c529bb63/attachment.sh>


More information about the Spice-devel mailing list