[Python-apps-team] Bug#620859: cython: MemoryError swallows error message
Jakub Wilk
jwilk at debian.org
Mon Apr 4 17:53:30 UTC 2011
Package: cython
Version: 0.14.1-4
Severity: normal
If you raise MemoryError, the error message doesn't show up:
$ cython test_oom.pyx
$ gcc $(python-config --cflags) test_oom.c -shared -o test_oom.so
$ python -c 'import test_oom'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "test_oom.pyx", line 1, in init test_oom (test_oom.c:511)
raise MemoryError('punt')
MemoryError
This used to work fine in 0.12.1-1.1:
$ cython test_oom.pyx
$ gcc $(python-config --cflags) test_oom.c -shared -o test_oom.so
$ python -c 'import test_oom'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "test_oom.pyx", line 1, in init test_oom (test_oom.c:503)
raise MemoryError('punt')
MemoryError: punt
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.38-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
Versions of packages cython depends on:
ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib
ii python 2.6.6-13 interactive high-level object-orie
ii python-support 1.0.12 automated rebuilding support for P
ii python2.6 2.6.6-8+b1 An interactive high-level object-o
Versions of packages cython suggests:
ii gcc 4:4.5.2-5 The GNU C compiler
ii python-dev 2.6.6-13 header files and a static library
--
Jakub Wilk
-------------- next part --------------
raise MemoryError('punt')
More information about the Python-apps-team
mailing list