← Back to issue list

`rockcraft pack` uses all available memory

View original Github issue

Metadata

Project
rockcraft
Number
#122
Type
issue
State
open
Author
gruyaume
Labels
Created
Updated
Closed

Current evaluation

Rockcraft 0.0.1.dev1 (Oct 2022) report that `rockcraft pack` exhausts all system memory and crashes. Maintainer could not reproduce the memory issue; 2026 triage requested updated repro info, but the reporter has not responded in over 6 months.

Suggested action: close stale

Reason: The 2026-02-26 triage comment requested updated repro details (exact repo ref, rockcraft version, LXD profile) and the reporter has not responded for over 6 months (last activity 186 days ago). The original report targets Rockcraft 0.0.1.dev1 from Oct 2022, which is long superseded, and cmatsuoka in Jan 2023 could not reproduce the memory exhaustion, instead hitting a different error ('/root/stage/bin/protoc': No such file or directory) with a non-existent repro branch ('lte2').

Impact: 35 Quick Win: 12.25 Staleness: 65 Complexity: 65 Confidence: 70 Support Request: 20

Issue body

**OVERVIEW** For a given charm, running `rockcraft pack` yields to the process using all the system available memory and crashing. **STEPS TO REPRODUCE** 1. Clone the [repository](https://github.com/gruyaume/magma-orc8r-controller-rock/tree/dev-lte2) 2. Checkout branch `lte2` 3. Run `rockcraft pack` (This command should crash because of an error in the rockcraft.yaml) 4. Run `rockcraft pack` again (This command should crash because of the memory qty being used) **EXECUTION OUTPUT** ``` guillaume@thinkpad:~/PycharmProjects/magma-controller-rock$ rockcraft pack -v Starting Rockcraft 0.0.1.dev1 Logging execution to '/home/guillaume/.cache/rockcraft/log/rockcraft-20221012-202543.853675.log' Launching instance... Starting Rockcraft 0.0.1.dev1 Logging execution to '/tmp/rockcraft.log' Retrieving base ubuntu:18.04 Retrieved base ubuntu:18.04 for amd64 Extracting ubuntu:18.04 Extracted ubuntu:18.04 Initializing parts lifecycle | (51.5s) craft-providers error: Failed to execute pack in instance. Full execution log: '/home/guillaume/.cache/rockcraft/log/rockcraft-20221012-202543.853675.log' ``` **LOGS** ``` 2022-10-12 20:25:43.854 Starting Rockcraft 0.0.1.dev1 2022-10-12 20:25:43.859 Using default provider 'lxd' on linux system 2022-10-12 20:25:43.923 Executing on host: lxc --project default profile show local:default 2022-10-12 20:25:43.969 Using hostname 'rockcraft-magma-orc8r-controller-5129182' 2022-10-12 20:25:43.969 Launching instance... 2022-10-12 20:25:43.969 Executing on host: lxc remote list --format=yaml 2022-10-12 20:25:44.013 Remote 'craft-com.ubuntu.cloud-buildd' already exists. 2022-10-12 20:25:44.013 Executing on host: lxc project list local: --format=yaml 2022-10-12 20:25:44.068 Set LXD instance name to 'rockcraft-magma-orc8r-controller-5129182' 2022-10-12 20:25:44.068 Executing on host: lxc --project rockcraft list local: --format=yaml 2022-10-12 20:25:44.135 Executing on host: lxc --project rockcraft list local: --format=yaml 2022-10-12 20:25:44.208 Executing on host: lxc --project rockcraft start local:rockcraft-magma-orc8r-controller-5129182 2022-10-12 20:25:44.619 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 cat /etc/os-release 2022-10-12 20:25:44.688 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 test -f /etc/craft-instance.conf 2022-10-12 20:25:44.802 Executing on host: lxc --project rockcraft file pull local:rockcraft-magma-orc8r-controller-5129182/etc/craft-instance.conf /home/guillaume/tmp8d3rtujm.tmp-craft/tmp9qajpyea 2022-10-12 20:25:44.867 Instance is compatible with compatibility tag 'rockcraft-buildd-base-v0.0' 2022-10-12 20:25:44.867 Waiting for environment to be ready... 2022-10-12 20:25:44.867 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 systemctl is-system-running 2022-10-12 20:25:45.011 systemctl is-system-running status: starting 2022-10-12 20:25:45.261 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 systemctl is-system-running 2022-10-12 20:25:45.403 systemctl is-system-running status: starting 2022-10-12 20:25:45.653 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 systemctl is-system-running 2022-10-12 20:25:45.751 systemctl is-system-running status: starting 2022-10-12 20:25:46.002 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 systemctl is-system-running 2022-10-12 20:25:46.094 systemctl is-system-running status: starting 2022-10-12 20:25:46.345 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 systemctl is-system-running 2022-10-12 20:25:46.441 systemctl is-system-running status: starting 2022-10-12 20:25:46.693 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 systemctl is-system-running 2022-10-12 20:25:46.811 Waiting for networking to be ready... 2022-10-12 20:25:46.811 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 getent hosts snapcraft.io 2022-10-12 20:25:46.921 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 snap unset system proxy.http 2022-10-12 20:25:47.174 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 snap unset system proxy.https 2022-10-12 20:25:47.416 Installing snap 'rockcraft' with channel=None and classic=True 2022-10-12 20:25:47.416 Installing snap 'rockcraft' from host (classic=True) 2022-10-12 20:25:47.433 Executing in container: lxc --project rockcraft exec local:rockcraft-magma-orc8r-controller-5129182 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin ROCKCRAFT_MANAGED_MODE=1 test -f /etc/craft-instance.conf 2022-10-12 20:25:47.517 Executing on host: lxc --project rockcraft file pull local:rockcraft-magma-orc8r-controller-5129182/etc/craft-instance.conf /home/guillaume/tmp78za9emn.tmp-craft/tmpytjlfxix 2022-10-12 20:25:47.565 Revisions found: host='383', target='383' 2022-10-12 20:25:47.565 Skipping snap injection: target is already up-to-date with revision on host 2022-10-12 20:25:47.565 Emitter: Pausing control of the terminal 2022-10-12 20:27:01.925 Emitter: Resuming control of the terminal 2022-10-12 20:27:04.488 craft-providers error: Failed to execute pack in instance. 2022-10-12 20:27:04.488 Full execution log: '/home/guillaume/.cache/rockcraft/log/rockcraft-20221012-202543.853675.log' ``` ![memory_usage_rockcraft_2](https://user-images.githubusercontent.com/18486508/195471778-20bf816c-958e-4b9c-b66b-aac46bd7ecb9.png)

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 12.25
Staleness: 65
Complexity: 65
Confidence: 70
Support Request: 20
close stale Rockcraft 0.0.1.dev1 (Oct 2022) report that `rockcraft pack` exhausts all system memory and crashes. Maintainer could not reproduce the memory issue; 2026 triage requested updated repro info, but the reporter has not responded in over 6 months.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 60
close stale rockcraft pack crashes due to memory exhaustion on an old branch. Lacks reproducible setup, original reporter unresponsive for years, and no maintainer action since triage request.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 40
Confidence: 85
Support Request: 10
close stale Report of rockcraft pack exhausting system memory and crashing. Issue is over 3 years old, lacks a reproducible setup on current versions, and author has not responded to maintainer requests for updated details.
qwen3.6-35b-a3b-mtp-q6
Staleness: 88
Complexity: 55
Confidence: 88
Support Request: 45
close stale rockcraft pack reportedly consumes all system memory and crashes during initialization. Maintainers could not reproduce it due to missing branch details. Awaiting updated reproduction steps and LXD profile details from the author.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.