Repository navigation
2026.12.6.2: a closed reader ends mcpp by SIGPIPE on musl; a tip stands apart from a block of results; a root's override holds against the platform's version group - #1046
Merged
Conversation
…IPE, not in std::terminate, on musl
… sentence; remove names the full identity; toolchain list sizes its columns by their cells; the info card cuts a row at the terminal's edge
…project's choice in every request and in the check after the walk; a selected member's overrides answer its build; two differing overrides are refused (mcpp#1045)
…e 2026.12.6.1 prints it; a Termux userland that never unpacks is named, and the app's start is repeated
…mcpplibs.os 0.4.10 asks for the openkal 0.26.2 family, which 0.32.1's version group refused
…kal rows' platform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2026.12.6.2 is the fix of a defect the real verification of 2026.12.6.1 found: on Linux, a text over 256 bytes whose reader is gone ends mcpp in
std::terminateinstead of by SIGPIPE.Measured. The released
mcpp-2026.12.6.1-linux-x86_64(musl, static) with a standard output whose reader has closed:mcpp --help,mcpp --agent-skill-doc,mcpp build --agent-skill-doc,mcpp self env --format jsonandmcpp --protocol-versioneach end by SIGABRT withterminate called after throwing an instance of 'std::system_error'(30 of 30 runs for--help). 2026.12.4.1 does the same for the last four;--helpreached it in 2026.12.6.1, where mcpplibs.cmdline 0.4.0 prints the help as one text. main's CI found it (e2e 941) after the merge of #1044.Cause. libstdc++ 16's
std::printon musl formats into a 256-byte buffer and writes it when it fills; when that write is refused it throws without resetting the buffer, and~_File_sink() noexcept(false)writes the buffer again while the exception unwinds. The second exception during unwinding isstd::terminate; mcpp's handler forstd::system_error(end_for_closed_output, SIGPIPE after the ordered finish) is never reached. A glibc build takes the other sink and does not show it. A 15-line program reproduces it (musl: SIGABRT; glibc: the handler runs).Fix.
mcpp::ui::document(text)writes a whole result through the ui's one writer (onefwrite; a closed reader ends mcpp by SIGPIPE in order): the JSON envelopes (wire::emit), the protocol document, the package sheet,self explain, the completion script,emit surface,emit sbom,emit xpkg, the build database's text, the xpkg Lua ofpublish, the cache's JSON, and the test records.write_out: onefwrite, one exception.Tests. e2e 941 B:
--help, two sheets, a JSON envelope and--protocol-version, each with a closed reader, end by SIGPIPE and print noterminate. A locally builtx86_64-linux-muslstatic mcpp passes all five; its--helpis byte-identical to the glibc build's. GCC and LLVM 23.1.3 builds pass.e2e 1066. The index now holds mcpplibs.os 0.4.10, which the case's pattern
0\.4\.[2-9]did not match (macOS LLVM job:Merged mcpplibs.os 0.4.10 ⨯ 0.4.1 → v0.4.1, the merge itself right); the pattern takes any 0.4.x above 0.4.1.Output layout (the report and tip rules of SPEC-012 §3.1).
tip:stands one blank line below a block of results (a report, a list, a card); after a one-line result it follows the line; in a pipe the text is unchanged.tip:stays lower-case, a label of the family oferror:,warning:,note:,help:; a capitalisedName:is a report's section.mcpp info <name> shows a package; mcpp add <name> adds itaftersearch(the table a package goes to is the lineaddprints),mcpp info <id> --fetch adds <rows>afterinfo,mcpp build installs it for the build programs, the tests and mcpp runafter adding a tool.mcpp removenames the full identity, asadddoes.toolchain listsizes its columns by their widest cell (a long target or toolchain ran into the next column) and writes-for a row with no toolchain (the envelope keeps its value); its Toolchains rows carry no trailing spaces. Theinfocard cuts a row at the terminal's edge with..., assearchdoes.A root's override of a member of the platform's version group (mcpp#1045). docs/05 states that an override of a package the group lists is taken, with a warning naming the group's version. The root's own request was taken so, but a dependency's request for the package was still pinned to the group and refused, and the check after the walk refused the version the override had chosen: the warning announced a choice the build then rejected.
override = trueis the project's choice against the group's default (SPEC-013 §7.5 v1.18): every request of the package, a dependency's too, takes it; the check after the walk accepts the chosen version; the warningdependency/override-groupis said once, and not at all when the override chooses the group's version.[workspace.dependencies], and the tables of each member the build selects, a member being the root of its build, as[workspace.xlings.overrides]already reads it. Before, a member's override answered its own request only.^1.0.0builds and runs with one warning; a selected member's override under-pbuilds; two members with differing overrides under--workspaceare refused naming both. docs/05 (en, zh) and the CHANGELOG follow.Fresh install. The run for 2026.12.6.1 failed on four jobs at one assertion: the template's provenance line (
namespace=mcpplibs name=imgui), which 2026.12.6.1 prints with--verboseonly; the steps now pass--verbose, as e2e cli/templates does. The Termux app sandbox failed with no userland 300 s after the app's start (run-as: exec failed for …/usr/bin/env), reported as if mcpp had printed nothing; the start is repeated each minute for up to 600 s, and a userland that never appears is named.The default platform: openkal-platform 0.32.3. mcpplibs.os 0.4.10 (mcpp-index#995, published during this PR's CI) asks for the openkal 0.26.2 family (openkal-linux >=0.27.4, openkal-macos >=0.24.3, openkal-windows >=0.23.3); 0.32.1's version group names 0.27.2, 0.24.1 and 0.23.1, so the canary's
cxx x86_64-windows-musl testcell, whose test graph takesmcpplibs.os ^0.4.7, was refused (openkal-windows is requested as '>=0.23.3, <0.24.0' by mcpplibs.os@0.4.10, and the platform openkal-platform 0.32.1 is a version group). openkal-platform 0.32.3 differs from 0.32.1 by that family, openkal-image 0.7.4 and openkal-musl 0.30.6 only, and requires mcpp >=2026.11.17.1. Measured locally: a project withmcpplibs.osbuilt--target x86_64-windows-muslis refused by 2026.12.6.1 with that message and builds with this tree (Platform openkal-platform 0.32.3 (built-in, hosted)). The released 2026.12.6.1 keeps the refusal on those rows; its tip names the platform release that admits the request. The target rows' snapshot (tests/fixtures/target-rows.snapshot) records the new platform; the three canaries pass with it.