Sigil 0.24.6

release

A reliability release for native code and local builds. Programs that pass Sigil procedures to C as callbacks, or call GObject-heavy libraries, should upgrade: a garbage collection could free a callback C still meant to call, or corrupt rest arguments after a native call returned. sigil deps keeps dependency identities straight across path, redirected and scoped packages, and conditional definitions in libraries publish the value you defined.

Download 0.24.6Get started

Native callbacks stay alive while C holds them

A procedure passed to C through c-callback is now kept alive until the callback is released, even when your program drops the pointer wrapper. This covers anonymous wrappers and procedures that capture local variables. Before, a garbage collection could free the procedure while a C library still planned to call it, and the next call landed in freed memory. sigil-ffi 0.16.6 carries the fix, and the 0.24.6 toolchain pins it.

Rest arguments survive garbage collection

A finished native call could leave stale roots for its rest-argument list, and an overlapping later call could then read freed memory. It showed up as garbled strings in GObject-heavy code under a small nursery. Rest arguments are now released as soon as the call returns.

sigil deps keeps dependency identities straight

A path dependency whose directory name differs from its declared name: used to build with its embedded modules silently missing from the executable. It is now refused with a message naming both. Registry packages installed through a redirect keep their canonical dependency graph, and scoped transitive dependencies such as sigil/sigil-crypto now appear in the local index. A runtime dependency graph that can't be completed fails the build instead of writing a partial index.

Installed dependencies that are copied directories rather than symlinks are now included in native build graphs, with their native initializers and their own dependencies. Before, they were silently left out.

Fixes

Warm native rebuilds now have a regression test for package cache reuse. A report of unchanged modules recompiling on a 0.24.5 candidate does not reproduce on this release.