Opened 10 months ago

Last modified 10 months ago

#1426 assigned defect

test-finalizers may break in interpreted mode when importing posix

Reported by: sjamaan Owned by: felix
Priority: major Milestone: 5.1
Component: core libraries Version: 5.0
Keywords: gc, finalizers Cc:
Estimated difficulty: insane

Description

I've seen the final assertion in tests/test-finalizers.scm fail under CHICKEN 5 when you add (import (chicken posix)) to the top.

It fails because n has value 0 at the end instead of the expected 1, which means the bump procedure (which is registered as a finalizer on the string constant) wasn't run.

I haven't been able to reproduce this consistently, so this may also affect CHICKEN 4.

Change History (3)

comment:1 Changed 10 months ago by sjamaan

  • Owner changed from sjamaan to felix
  • Status changed from new to assigned

comment:2 Changed 10 months ago by felix

I can not reproduce this. I tried changing the nursery size, but nothing happens.

If someone can, try replacing the final constant string with something dynamically generated (say, (make-string 100)). Does the error still occur?

comment:3 Changed 10 months ago by felix

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.