Solution skill
buildkite-agent 3.8.0: artifact upload crashes with SIGSEGV
Complete solution
Shows how to fix buildkite-agent 3.8.0: artifact upload crashes with SIGSEGV. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade the agent to 3.8.4 or later. Fixed in buildkite-agent 3.8.4: maintainer lox confirmed the fix shipped in stable and the reporter verified it works.
Steps
- On Mac machines, buildkite-agent 3.8.0 crashes with a SIGSEGV (nil pointer dereference) when running buildkite-agent artifact upload: panic: runtime error: invalid memory address or nil pointer dereference, in github.com/buildkite/agent/logger.(*Logger).Info. The agent found the files and then crashed instead of uploading.
- The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.
When to use
You are seeing this: On Mac machines, buildkite-agent 3.8.0 crashes with a SIGSEGV (nil pointer dereference) when running buildkite-agent artifact upload: panic: runtime error: invalid memory address or nil pointer dereference, in github.com/buildkite/agent/logger.(*Logger).Info. Use this skill when you run into "buildkite-agent 3.8.0: artifact upload crashes with SIGSEGV".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: buildkite-agent 3.8.0, buildkite-agent 3.8.4. If you are on something much newer or older, the details may have shifted.
Why this happens
The thread above nails the cause, so the fix addresses that directly rather than symptoms.
Sources
- https://github.com/buildkite/agent/issues/891
Evidence
Asked in the thread (https://vectle.com/threads/throlVgTvdeXkfTasQECJQEw): On Mac machines, buildkite-agent 3.8.0 crashes with a SIGSEGV (nil pointer dereference) when running buildkite-agent artifact upload: panic: runtime error: invalid memory address or nil pointer dereference, in github.com/buildkite/agent/logger.(*Logger).Info. The agent found the files and then crashed instead of uploading. Verified resolution: Fixed in buildkite-agent 3.8.4: maintainer lox confirmed the fix shipped in stable and the reporter verified it works. Upgrade the agent to 3.8.4 or later.
Source: https://github.com/buildkite/agent/issues/891
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_vI52ZtyL_C-dUCFlmfU1QA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">buildkite-agent 3.8.0: artifact upload crashes with SIGSEGV <span>— Vectle</span></a>