Skip to content

zig func_start: main.zig stuck at 18 found functions, unaffected by #1419's extern/quoted-identifier fix #1426

Closed

Description

@squid-protocol

Summary

Follow-up to #1419 (fix in flight, PR pending). #1419's fix (extern/export calling-convention
prefix + @"..."-quoted identifier support) correctly resolves its other two named repro cases
(zig/Compilation.zig's @"resume", bun/napi.zig's quoted V8-mangled symbol names -- both now
found), but its PRIMARY repro case does not improve:

// language-crucible/data/zig/zig/main.zig:5662
extern "c" fn ZigClang_main(argc: c_int, argv: [*:null]?[*:0]u8) c_int;

ZigClang_main (and ZigClangIsLLVMUsingSeparateLibcxx, ZigLlvmAr_main in the same file) are
still not found after the #1419 fix, even though:

This means whatever is suppressing these specific matches in main.zig is a separate,
pre-existing mechanism, not the extern-callconv/quoted-identifier gap #1419 targeted. Candidates
not yet investigated: something about this specific 7529-line file's earlier content interacting
with a shielding/slicing step (comment/string shield exhaustion, a ReDoS-safety early-bailout,
_slice_by_braces losing sync earlier in the file, etc.) -- needs its own root-cause pass, not
guessed at here.

Suggested next step

Bisect main.zig (e.g. binary-search truncated copies of the file, or diff GitGalaxy's raw
function_data output against tree-sitter's per-file function list for just this file) to find
where the pipeline stops finding real functions, rather than assuming it's the same class of bug
as #1419.

Scope note

This only affects func_start/args/class_start name-extraction accuracy (the extraction-
gauntlet pillar from epic #813), not GitGalaxy's risk-scoring rules, which are unaffected.

Activity

  1. added
    bug
    testing
    core-engine
    threat: false-negative
    on Aug 13, 2026
  2. added this to the v2.4.8 milestone on Aug 16, 2026
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

    bugcore-enginepriority: mediumtestingthreat: false-negative

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions