[pypy-issue] Issue #2783: socket.recvfrom raise UnicodeDecodeError in Ubuntu 14.04 (pypy/pypy)

B S issues-reply at bitbucket.org
Tue Apr 3 03:24:27 EDT 2018


New issue 2783: socket.recvfrom raise UnicodeDecodeError in Ubuntu 14.04
https://bitbucket.org/pypy/pypy/issues/2783/socketrecvfrom-raise-unicodedecodeerror-in

B S:

pypy3: pypy3-v5.10.1-linux64.tar.bz2
scapy: 2.4.0

```
Python 3.5.3 (3f6eaa010fce, Jan 11 2018, 04:44:35)
[PyPy 5.10.1 with GCC 6.2.0 20160901] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>> from scapy.all import *
>>>> sniff()
???? 65535 <class 'int'>
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/pypy3/site-packages/scapy/sendrecv.py", line 767, in sniff
    p = s.recv()
  File "/usr/local/pypy3/site-packages/scapy/arch/linux.py", line 601, in recv
    r = self.ins.recvfrom(x)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xee in position 0: invalid continuation byte
>>>>
```

I test sniff packet in `Windows 10 64bit`, `macOS 10.12.6` with pypy3, all works fine, but this issue occurs in `Ubuntu 16.04` and `Ubuntu 14.04`.

Its seem there are some coding issue in `rsocket`.




More information about the pypy-issue mailing list