You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running python/polynomial_resultants.py: * Checking Speed * Checking BugsOverflowError: Python int too large to convert to C longDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/dejan/workspace/libpoly/test/check.py", line 61, in <module> sys.exit(main()) File "/home/dejan/workspace/libpoly/test/check.py", line 50, in main forkexec(test, context) File "/home/dejan/workspace/libpoly/test/check.py", line 11, in forkexec exec(code, env, env) File "python/polynomial_resultants.py", line 72, in <module> check_psc(p, q, expected) File "python/polynomial_resultants.py", line 17, in check_psc psc = p.psc(q)SystemError: <built-in method psc of polypy.Polynomial object at 0xb6804220> returned a result with an error set
Machine:
Cmake:
cmake .. -DCMAKE_INSTALL_PREFIX=/home/dejan/install/ -DCMAKE_BUILD_TYPE=Debug -DPython_ADDITIONAL_VERSIONS=3
Error:
The main issue is in
libpoly/python/utils3.c
Line 50 in 3c7812e
PyLong_AsLong
is called without checking for overflow. Same happens in Python 2 but for some reason it doesn't throw an exception.The text was updated successfully, but these errors were encountered: