Skip to content

audit:all reports receiver, FnAbi, and missing marshalling facts for a minimal std.sync import #1174

Closed

Description

@ehartford

audit:all fails for a minimal std.sync import on the verified release compiler at 5dc78b6:

use std.sync
fn main: print("ok")

Run out/release/bin/with analyze repro.w audit:all.

The native integrated validator reports 13,140 facts and eight violations:

sig 249: receiver requirement is not the finalized param[0] effect
sig 250: receiver requirement is not the finalized param[0] effect
call Mutex.enter__receiver__394_4_4 body=787 args=0 param=0: marshaled LLVM type disagrees with FnAbi
call RwLock.enter__receiver__398_4_4 body=804 args=0 param=0: marshaled LLVM type disagrees with FnAbi
call with_free body=1160 bb=0 args=0 param=0: no Codegen marshalling fact
call with_free body=1160 bb=1 args=1 param=0: no Codegen marshalling fact
call with_free body=1161 bb=0 args=0 param=0: no Codegen marshalling fact
call with_free body=1161 bb=1 args=1 param=0: no Codegen marshalling fact

Expected: ordinary stdlib imports satisfy the integrated receiver/effect/ABI checks. D6 requires a single FnAbi descriptor shared by call and callee paths. This report does not yet distinguish incorrect descriptors/marshalling from incorrect audit facts; both need tracing through the integrated matrix and native codegen branch before editing.

Found while auditing #1172's cancellation regression, then reproduced independently on the unchanged verified compiler with the two-line source above. No workaround or exemption was added. Logs: out/with-get-investigation/audit-sync-minimal.log and return-temps-matrix-baseline-audit.log.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): does not reproduce.

    $ cat main.w
    use std.sync
    fn main: print("ok")
    $ with analyze main.w audit:all
    compiler-analysis-audit: facts=22840 violations=0 ok
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions