[Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread René Rex
Hello

The attached code creates a segfault with Cython 0.14.1. A workaround
is to use a real function instead of lambda. Using the normal python
interpreter the same code works flawlessly.

Here are my build commands:

cython --embed vectorizeBug.pyx
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O0 -Wall -fPIC
-lpython2.6 -I/usr/include/python2.6 -o vectorizeBug vectorizeBug.c

-- 
René Rex
TU Braunschweig
Bioinformatics & Biochemistry
Langer Kamp 19 b
38106 Braunschweig
Phone: +49-531-391-8315
(gdb) run
Starting program: /home/user/Desktop/vecBug/vectorizeBug 
[Thread debugging using libthread_db enabled]
[ 2.  2.  2.]

Program received signal SIGSEGV, Segmentation fault.
0x7797b208 in ?? () from /usr/lib/libpython2.6.so.1.0
(gdb) backtrace 
#0  0x7797b208 in ?? () from /usr/lib/libpython2.6.so.1.0
#1  0x7797b590 in PyNumber_Add () from /usr/lib/libpython2.6.so.1.0
#2  0x00401eb5 in __pyx_lambda_funcdef12vectorizeBug_4main_lambda1 
(__pyx_self=0x0, 
__pyx_args=0x77f8f050, __pyx_kwds=0x0) at vectorizeBug.c:586
#3  0x7797abb3 in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#4  0x77a202a9 in PyEval_EvalFrameEx () from 
/usr/lib/libpython2.6.so.1.0
#5  0x77a21468 in PyEval_EvalFrameEx () from 
/usr/lib/libpython2.6.so.1.0
#6  0x77a228b0 in PyEval_EvalCodeEx () from /usr/lib/libpython2.6.so.1.0
#7  0x779a8630 in ?? () from /usr/lib/libpython2.6.so.1.0
#8  0x7797abb3 in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#9  0x7798c5bf in ?? () from /usr/lib/libpython2.6.so.1.0
#10 0x7797abb3 in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#11 0x779e1670 in ?? () from /usr/lib/libpython2.6.so.1.0
#12 0x779d7958 in ?? () from /usr/lib/libpython2.6.so.1.0
#13 0x7797abb3 in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#14 0x00402535 in __pyx_pf_12vectorizeBug_1main (__pyx_self=0x0, 
unused=0x0)
at vectorizeBug.c:689
#15 0x7797abb3 in PyObject_Call () from /usr/lib/libpython2.6.so.1.0
#16 0x004034ff in initvectorizeBug () at vectorizeBug.c:952
#17 0x00403bc7 in main (argc=1, argv=0x7fffdfd8) at 
vectorizeBug.c:1149



vectorizeBug.pyx
Description: Binary data
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Cython paper in Computing in Science & Engineering

2011-04-07 Thread René Rex
Hello

> Agreed. Perhaps you could post the desired BibTeX citation text for
> the official version and a link to the official version right next to
> the preprint?

BibTeX entry for your convecience:

@article{bradshaw2010cython,
  title={{CYTHON: THE BEST OF BOTH WORLDS}},
  author={Bradshaw, R. and Citro, C. and Seljebotn, D.S.},
  journal={CiSE 2011 Special Python Issue},
  pages={25},
  year={2010}
}

- René
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Cython paper in Computing in Science & Engineering

2011-04-07 Thread René Rex
> Looks rather incomplete to me.

Your are right. I got the wrong document. It is from the sage website
and has the same title...
http://sage.math.washington.edu/tmp/stein-cise-comments-may22.pdf#page=29

This should be the correct entry:

@article{behnel2010cython,
  title={{Cython: The best of both worlds}},
  author={Behnel, S. and Bradshaw, R. and Citro, C. and Dalcin, L. and
Seljebotn, D.S. and Smith, K.},
  journal={Computing in Science and Engineering},
  issn={1521-9615},
  year={2010},
  publisher={IEEE Computer Society}
}

- René
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] [cython-users] CiSE Cython paper: Preprint up

2011-04-07 Thread René Rex
> Any more keywords to add?

What about "Python"? ;)

- René
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel