Skip to content

Commit 1e82158

Browse files
committed
fix(qualification): avoid mutable Glibc stderr in exact consumer
1 parent 0c1c358 commit 1e82158

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎Documentation/Architecture/Release1.4/Qualification.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,13 @@ source remains identical; final C5 qualification will use the integration head.
7979
The inherited 168 corpus rows and auxiliary binding modes still need their complete
8080
mode-specific dispositions. Arithmetic and advanced filters have separate gates.
8181
No simulator/device, Linux or WASI CLI success is inferred from this local run.
82+
83+
84+
Hosted C2 Linux runs on x86_64/ARM64 passed 256 root functions/199 parameter cases,
85+
ASan/TSan safety and the 53 CLI subprocess cases, then the comparator failed to
86+
compile: Glibc's mutable `stderr` global is not concurrency-safe in async main.
87+
The qualification tool now writes bounded failure text through
88+
FileHandle.standardError. No unsafe annotation/flag or library behavior changed.
89+
Failed run 38593758299 and its actual compiler log are retained; a fresh hosted
90+
run is required before Linux closure. Local comparator rebuild and all 38 C2
91+
vectors verify the diagnostic-only fix on the supported Mac.

‎Tools/CLIQualification/Sources/CLIExactCompare/Main.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private struct Bytes: AsyncSequence {
4747
}
4848
guard try await iterator.next() == nil else { throw NSError(domain: "qualification", code: 1) }
4949
print("NATIVE_EXACT_COMPARE passed values=\(count)")
50-
} catch { fputs("NATIVE_EXACT_COMPARE failed\n", stderr); exit(1) }
50+
} catch { FileHandle.standardError.write(Data("NATIVE_EXACT_COMPARE failed\n".utf8)); exit(1) }
5151
}
5252
private static func bounded(_ path: String) throws -> [UInt8] {
5353
let handle = try FileHandle(forReadingFrom: URL(fileURLWithPath: path))

0 commit comments

Comments
 (0)