I can look into this in more detail later, but I seem to remember an issue with gitlab runner from a while back where some innocuous-looking line in gitlab-runner’s .bash_profile was causing issues which remind me a bit of this.
If you have permissions to do so, you could try temporarily moving ~gitlab-runner/.bash_profile.
(I assume you’re using a standard runner which is set up to run as user gitlab-runner).