Cython itself doesn't impose any limits, but it does inherit whatever limit exists in the C complier and runtime. The variance may be due to whatever else happens to be placed on the stack. On Sat, Jan 6, 2018 at 10:57 PM, Dan Stromberg <drsalists@gmail.com> wrote:
I'm getting a weird segfault from a tiny function (SSCCE) using cython with python 2.7. I'm seeing something similar with cython and python 3.5, though I did not create an SSCCE for 3.5.
This same code used to work with slightly older cythons and pythons, and a slightly older version of Linux Mint.
The code is at http://stromberg.dnsalias.org/svn/why-is-python-slow/trunk (more specifically at http://stromberg.dnsalias.org/svn/why-is-python-slow/trunk/tst.pyx )
In short, cdef'ing a list of doubles with about a million elements, and using only the 0th element once, segfaults - but cdef'ing a slightly smaller array does not segfault under otherwise identical conditions.
Any suggestions? Does Cython have a limit on the max size of a stack frame?
Thanks! I quite like cython. _______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel