## What this fixes
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 fix
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
## Why it happens
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.
## Source
https://github.com/buildkite/agent/issues/891