iclab / centinel

http://iclab.org/
MIT License
34 stars 17 forks source link

dnspython exception #214

Open lianke123321 opened 8 years ago

lianke123321 commented 8 years ago

Saw this exception why running vpn.py:

Exception in thread Thread-1432:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/vagrant/centinel/centinel/primitives/dnslib.py", line 180, in lookup_domain
    resp = dns.message.from_wire(response)
  File "/usr/local/lib/python2.7/dist-packages/dns/message.py", line 790, in from_wire
    reader.read()
  File "/usr/local/lib/python2.7/dist-packages/dns/message.py", line 726, in read
    self._get_question(qcount)
  File "/usr/local/lib/python2.7/dist-packages/dns/message.py", line 602, in _get_question
    (qname, used) = dns.name.from_wire(self.wire, self.current)
  File "/usr/local/lib/python2.7/dist-packages/dns/name.py", line 704, in from_wire
    raise BadPointer
BadPointer
lianke123321 commented 8 years ago

@rpanah can u look into this?

rpanah commented 8 years ago

@lianke123321 do you have steps to reproduce?

lianke123321 commented 8 years ago

@rpanah I was running top-500 baseline experiment while connecting to a purevpn endpoint.

lianke123321 commented 8 years ago

Another dns exception:

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/vagrant/centinel/centinel/primitives/dnslib.py", line 180, in lookup_domain
    resp = dns.message.from_wire(response)
  File "/usr/local/lib/python2.7/dist-packages/dns/message.py", line 790, in from_wire
    reader.read()
  File "/usr/local/lib/python2.7/dist-packages/dns/message.py", line 726, in read
    self._get_question(qcount)
  File "/usr/local/lib/python2.7/dist-packages/dns/message.py", line 602, in _get_question
    (qname, used) = dns.name.from_wire(self.wire, self.current)
  File "/usr/local/lib/python2.7/dist-packages/dns/name.py", line 708, in from_wire
    raise BadLabelType
BadLabelType
lianke123321 commented 8 years ago

@JASONews could you help look into this? Since you wrote dnslib unit test right?

rpanah commented 8 years ago

@lianke123321, do you know if this was addressed at any point in time?

lianke123321 commented 8 years ago

@rpanah no, since it's still open.

rpanah commented 8 years ago

@lianke123321 I haven't seen this in the RPi nodes' log files. Did you encounter this with the VPNs again?

lianke123321 commented 8 years ago

@rpanah I saw this in VPN walker's logs, you might want to check those logs.