[svn:parrot] r43743 - branches/gc_encapsulate/src/runcore

bacek at svn.parrot.org bacek at svn.parrot.org
Sun Feb 7 06:10:29 UTC 2010


Author: bacek
Date: Sun Feb  7 06:10:29 2010
New Revision: 43743
URL: https://trac.parrot.org/parrot/changeset/43743

Log:
Return early from trace to avoid crash on invalid pointer.

Modified:
   branches/gc_encapsulate/src/runcore/trace.c

Modified: branches/gc_encapsulate/src/runcore/trace.c
==============================================================================
--- branches/gc_encapsulate/src/runcore/trace.c	Sun Feb  7 05:24:00 2010	(r43742)
+++ branches/gc_encapsulate/src/runcore/trace.c	Sun Feb  7 06:10:29 2010	(r43743)
@@ -122,6 +122,7 @@
     }
     if (PObj_on_free_list_TEST(pmc)) {
         Parrot_io_eprintf(debugger, "**************** PMC is on free list *****\n");
+        return;
     }
     if (pmc->vtable->pmc_class == pmc) {
         STRING * const name = trace_class_name(interp, pmc);


More information about the parrot-commits mailing list