Summary
test-finalizers may break in interpreted mode when importing posix
Metadata
- Id: a93cffde2b91976949ca572d4618e151b63da23f
- Trac id: 1426
- Type: defect
- Reporter: sjamaan
- Owner: felix
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty: insane
- Resolution: worksforme
- Priority: major
- Milestone: 5.1
- Version: 5.0.0
- Changetime: 2019-04-05 10:52:04 UTC
- Created: 2017-11-21 11:55:25 UTC
- Keywords: gc, finalizers
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.
Changes and comments
[2017-11-21 16:28:03 UTC] sjamaan changed status from new to assigned
[2017-11-21 16:28:03 UTC] sjamaan changed owner from sjamaan to felix
[2017-11-22 19:15:00 UTC] felix wrote:
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?
[2017-11-23 10:56:12 UTC] felix changed milestone from 5.0 to 5.1
[2019-04-05 10:52:04 UTC] sjamaan changed status from assigned to closed
[2019-04-05 10:52:04 UTC] sjamaan set resolution to worksforme
[2019-04-05 10:52:04 UTC] sjamaan wrote:
Let's ignore this for now. It might've been accidentally fixed or not, but if we can't reproduce it it makes no sense to keep this ticket open. We may re-open it later. I've added a comment to the test so we can find the ticket again.