bblfsh / python-driver

GNU General Public License v3.0
10 stars 16 forks source link

Overflow error #206

Open ncordon opened 5 years ago

ncordon commented 5 years ago

From the latest bblfsh logs we got this error:

rpc error: code = Internal desc = Traceback (most recent call last):\n
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/requestprocessor.py\", line 155, in process_request\n ast = AstImprover(code, orig_ast).parse()\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 39, in parse\n res = self.visit(self._astdict, root=True)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 66, in visit\n visit_result = meth(node)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 264, in visit_other\n node[field] = meth(child)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 271, in visit_other_field\n return [self.visit(x) for x in node]\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 271, in <listcomp>\n return [self.visit(x) for x in node]\n
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 66, in visit\n visit_result = meth(node)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 264, in visit_other\n node[field] = meth(child)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 269, in visit_other_field\n return self.visit(node)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 66, in visit\n visit_result = meth(node)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 264, in visit_other\n node[field] = meth(child)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 271, in visit_other_field\n return [self.visit(x) for x in node]\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 271, in <listcomp>\n return [self.visit(x) for x in node]\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 66, in visit\n visit_result = meth(node)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 264, in visit_other\n node[field] = meth(child)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 271, in visit_other_field\n return [self.visit(x) for x in node]\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 271, in <listcomp>\n return [self.visit(x) for x in node]\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 66, in visit\n visit_result = meth(node)\n 
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 130, in visit_Num\n elif not math.isfinite(node[\"n\"]):\nOverflowError: int too large to convert to float\n

Files that triggered the error:

src/gdata/tlslite/mathtls.py
third_party/tlslite/tlslite/mathtls.py