[Cython] PATCH: Serious temp unpacking bug
Stefan Behnel
stefan_ml at behnel.de
Sun Apr 26 08:12:59 CEST 2009
Dag Sverre Seljebotn wrote:
> As the web servers appears to be down at the moment, I'm posting it here
> for the moment.
>
> This is the bug reported recently. It's related to a problem in
> allocate_temps of SequenceNode (basically two nodes could get the same
> temp), and has likely been there for a long time.
>
> It hits some nested tuple unpacking cases depending on the number of
> variables in the nested vs. outer tuple.
>
> The refnanny catches a segfault on trivial code like this:
>
> def g():
> return ((3, 2), 1, 0)
>
> def func2():
> (a, b), c, d = g()
>
>
> Of course, the whole function which was buggy has disappeared in
> cython-unstable. So this is kind of depressing :-) But at least now
> 0.11.2 isn't blocked by having to merge -unstable.
http://trac.cython.org/cython_trac/ticket/298
Closed as "fixed" in 0.11.2.
Stefan
More information about the Cython-dev
mailing list