#1443: Segfaults possibly caused by pool compaction bug
----------------------+-----------------------------------------------------
 Reporter:  jonathan  |       Owner:       
     Type:  bug       |      Status:  new  
 Priority:  major     |   Milestone:       
Component:  GC        |     Version:  trunk
 Severity:  high      |    Keywords:       
     Lang:            |       Patch:       
 Platform:  all       |  
----------------------+-----------------------------------------------------
Changes (by bacek):

  * version:  1.9.0 => trunk


Comment:

 Next patch will **wallpaper** problem:

 {{{

 ba...@icering:~/src/parrot.master$ git diff
 diff --git a/src/gc/alloc_resources.c b/src/gc/alloc_resources.c
 index 9366c90..9d75013 100644
 --- a/src/gc/alloc_resources.c
 +++ b/src/gc/alloc_resources.c
 @@ -452,7 +452,7 @@ compact_pool(PARROT_INTERP,
               * Moving the life bit into the buffer thus also solves this
               * problem easily.
               */
 -            total_size += cur_block->size - cur_block->free;
 +            total_size += cur_block->size; /* - cur_block->free */;
              cur_block   = cur_block->prev;
          }
      }

 }}}

 Main problem - we are using more memory than allocated (for strings). I
 suspect pmc_freeze/allocate_buffer_storage. But I can be totally wrong.

 --
 Bacek

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1443#comment:5>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to