Branch: Tag:

2008-01-28

2008-01-28 15:17:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

The integer subtype doesn't survive being in a mapping anymore.
Added some extra debug checks.

Rev: src/program.c:1.643

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.642 2008/01/26 22:34:23 mast Exp $ + || $Id: program.c,v 1.643 2008/01/28 15:17:23 grubba Exp $   */      #include "global.h"
1605:    struct svalue *tmp=low_mapping_string_lookup(resolve_cache,ident);    if(tmp)    { -  if(!(SAFE_IS_ZERO(tmp) && tmp->subtype==1)) +  if (!SAFE_IS_ZERO(tmp))    return mkconstantsvaluenode(tmp);       return 0;
2657:    /* Make sure to break the circularity... */    struct program *parent = p->parent;    p->parent = NULL; +  if (!parent->refs) { +  dump_program_tables(p, 2); +  Pike_fatal("Program parent is dead.\n"); +  }    free_program(parent);    }