Hi,

Ondrej Certik wrote:
> The closure branch didn't compile our project (Compiler crash in GilCheck):
> 
> $ make
> [ 74%] Built target hermes2d-real
> [ 75%] Cython source
> 
> Error converting Pyrex file to C:
> ------------------------------------------------------------
> ...
>     ctypedef scalar (*BiFormFnVol)(RealFunction *fu, RealFunction *fv,
>             RefMap *ru, RefMap *rv)
> 
>     ctypedef scalar (*LiFormFnVol)(RealFunction *fv, RefMap *rv)
> 
>     cdef BiFormFnVol BF_SYM = <BiFormFnVol> 1
>                              ^
> ------------------------------------------------------------
> 
> /home/ondrej/repos/hermes2d/python/hermes2d/_hermes2d.pxd:110:30:
> Compiler crash in GilCheck
> 
> ModuleNode.body = StatListNode(_hermes2d.pxd:1:0)
> StatListNode.stats[5] = CDefExternNode(_hermes2d.pxd:31:5,
>     include_file = 'hermes2d.h')
> CDefExternNode.body = StatListNode(_hermes2d.pxd:34:4)
> StatListNode.stats[5] = SingleAssignmentNode(_hermes2d.pxd:110:9)
> SingleAssignmentNode.rhs = TypecastNode(_hermes2d.pxd:110:30)
> File 'ExprNodes.py', line 4006, in gil_check: 
> TypecastNode(_hermes2d.pxd:110:30)
> 
> Compiler crash traceback from this point on:
>   File "/home/ondrej/usr/lib/python/Cython/Compiler/ExprNodes.py",
> line 4007, in gil_check
>     if self.type.is_pyobject and self.is_temp:
> AttributeError: 'NoneType' object has no attribute 'is_pyobject'

Thanks for the report (and for testing!). This isn't related to closures,
though. I bet this also fails in cython-unstable, due to the gil-check
refactoring.

http://trac.cython.org/cython_trac/ticket/329

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to