← Back to issue list

build: constrain protobuf

View original Github issue

Metadata

Project
rockcraft
Number
#1096
Type
pull request
State
merged
Author
tigarmo
Labels
—
Created
Updated
Closed

Current evaluation

PR #1096 merged (commit f5ff0119) pinning protobuf to ==6.32.* in pyproject build constraints to dodge the 6.33.x s390x segfault, plus an OSV ignore for GHSA-7gcm-g887-7qv7.

Resolution: closed resolved

Reason: Merged into main as commit f5ff0119 "build: constrain protobuf". The diff adds "protobuf==6.32.*" to the build-constraint dependencies in pyproject.toml (with a comment linking protocolbuffers/protobuf#24103), updates uv.lock to protobuf 6.32.1, and adds [[IgnoredVulns]] GHSA-7gcm-g887-7qv7 in osv-scanner.toml because the upstream s390x fix is unreleased. Review status approved by 2 reviewers.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Version 6.33.* segfaults in s390x when building on Launchpad: ``` Building bash-completion :: + python3 -m craft_cli.completion rockcraft rockcraft.cli:get_app_info :: /tmp/tmpuxak9d5b/scriptlet.sh: line 6: 29574 Segmentation fault (core dumped) python3 -m craft_cli.completion rockcraft rockcraft.cli:get_app_info > $CRAFT_PART_INSTALL/completion.sh 'override-build' in part 'bash-completion' failed with code 139. ``` dmesg output: ``` [ 2101.323998] User process fault: interruption code 0010 ilc:2 in _message.cpython-312-s390x-linux-gnu.so[3ff7e500000+104000] [ 2101.324020] Failing address: 0000000000000000 TEID: 0000000000000800 [ 2101.324023] Fault in primary space mode while using user ASCE. ``` That `_message` shared library is from protobuf. This GH issue seems to match: https://github.com/protocolbuffers/protobuf/issues/24103 So once that's resolved we should try the new protobuf version. <!-- Describe your changes --> --- - [ ] I've followed the [contribution guidelines](https://github.com/canonical/rockcraft/blob/main/CONTRIBUTING.md). - [ ] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [ ] I've successfully run `make lint && make test`. - [ ] I've added or updated any relevant documentation.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved PR #1096 merged (commit f5ff0119) pinning protobuf to ==6.32.* in pyproject build constraints to dodge the 6.33.x s390x segfault, plus an OSV ignore for GHSA-7gcm-g887-7qv7.
stealth/space-bunny-alpha — closed resolved Merged #1096 as f5ff0119, pinning protobuf to 6.32.* to avoid protobuf 6.33.x segfaults in s390x bash-completion builds.
stealth/space-bunny-alpha — closed resolved Merged commit f5ff0119 constrained protobuf below 6.33 to avoid an s390x Launchpad segfault affecting bash-completion builds.
qwen/qwen3.6-35b-a3b — — Merged to constrain the protobuf dependency version, resolving s390x build segfaults caused by protobuf 6.33.*. Approved after review and CI validation.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Constrained protobuf version to prevent s390x build segfaults triggered by release 6.33.*. Temporary workaround applied pending upstream resolution in protobuf issue #24103.

Update history

No update history recorded yet.

Related work

  • Related To: protobuf#24103 (confidence 92%)

    Upstream s390x segfault issue cited as the root cause of the Launchpad build failure.

Related issues

Issue Project State Summary Similarity
#2614 build(deps): downgrade protobuf for s390x segfault charmcraft merged Merged #2614 as 7ab3110f, constraining protobuf below 6.33 to prevent s390x segfaults.
81%