[pypy-dev] Weird C code in crashing code line

Armin Rigo arigo at tunes.org
Thu Oct 11 09:25:17 CEST 2012


Hi Stefan,

On Thu, Oct 11, 2012 at 7:41 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> it crashes in line 606 of obmalloc.c, which reads as follows:
>
>     583    block *bp;
>     [...]
>     604         bp = pool->freeblock;
>     605         assert(bp != NULL);
>     606         if ((pool->freeblock = *(block **)bp) != NULL) {
>
> The cast looks a bit smelly to me. Could someone who knows that code please
> take a look to see if it makes any sense?

This obmalloc.c is straight from CPython.  It's very unlikely at this
point to contain problems.


A bientôt,

Armin.


More information about the pypy-dev mailing list