Sigil 0.24.6
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.
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
cond-expandkeeps compound requirements such as(and linux x86-64)intact until it picks a body, in scripts and in compiled library bodies.- Definitions inside the chosen conditional body, including ones a macro generates, are collected under their own identity. A library now publishes the value you defined instead of an unused placeholder, and private helper bindings stay private.
- Foreign functions and callbacks now take up to 16 arguments, up from 8, through sigil-ffi 0.16.6. A signature with 17 or more is rejected when you bind it.
- Reloading a module keeps Sigil's core bootstrap bindings in place.
- External source builds work on stores mounted
nosuidornodev. The sandbox keeps the store's locked mount flags when it remounts read-only and finds the mount by its kernel mount ID, so a covering mount can't hand it the wrong flags. Anoexecstore is refused up front with a message saying what to change. - Builds from a source tarball with no Git history check their version metadata correctly.
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.