[Python-apps-team] Bug#797424: cython: Compiler crash in MarkOverflowingArithmetic

Jakub Wilk jwilk at debian.org
Sun Aug 30 16:48:35 UTC 2015


Package: cython
Version: 0.22.1-2

$ cython test.pyx

Error compiling Cython file:
------------------------------------------------------------
...
DEF X = 0x811C9DC5U
cdef void f():
    cdef unsigned int x = X
        ^
------------------------------------------------------------

test.pyx:3:9: Compiler crash in MarkOverflowingArithmetic

ModuleNode.body = StatListNode(test.pyx:2:5)
StatListNode.stats[0] = CFuncDefNode(test.pyx:2:5,
    args = [...]/0,
    modifiers = [...]/0,
    visibility = u'private')
CFuncDefNode.body = StatListNode(test.pyx:3:9)
StatListNode.stats[0] = SingleAssignmentNode(test.pyx:3:9,
    first = True)

Compiler crash traceback from this point on:
  File "Cython/Compiler/Visitor.py", line 173, in Cython.Compiler.Visitor.TreeVisitor._visit (Cython/Compiler/Visitor.c:4478)
    return handler_method(obj)
  File "/usr/lib/python2.7/dist-packages/Cython/Compiler/TypeInference.py", line 320, in visit_SingleAssignmentNode
    self.visit_assignment(node.lhs, node.rhs)
  File "/usr/lib/python2.7/dist-packages/Cython/Compiler/TypeInference.py", line 314, in visit_assignment
    and Utils.long_literal(rhs.value)):
  File "/usr/lib/python2.7/dist-packages/Cython/Utils.py", line 316, in long_literal
    value = str_to_number(value)
  File "/usr/lib/python2.7/dist-packages/Cython/Utils.py", line 310, in str_to_number
    value = int(value, 0)
ValueError: invalid literal for int() with base 0: '2166136261L'


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.1.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages cython depends on:
ii  libc6   2.19-19
ii  python  2.7.9-1

-- 
Jakub Wilk
-------------- next part --------------
DEF X = 0x811C9DC5U
cdef void f():
    cdef unsigned int x = X


More information about the Python-apps-team mailing list