docker-credential-helpers: strange errors on docker build
Hi,
if I just do docker build . I get the following output printed:
double free or corruption (out)
SIGABRT: abort
PC=0x7ffbb579ce97 m=0 sigcode=18446744073709551610
signal arrived during cgo execution
goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4afd50, 0xc42004fcc0, 0xc42004fce8)
/usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc42004fc90 sp=0xc42004fc50
github.com/docker/docker-credential-helpers/secretservice._Cfunc_free(0x10d7990)
github.com/docker/docker-credential-helpers/secretservice/_obj/_cgo_gotypes.go:111 +0x41 fp=0xc42004fcc0 sp=0xc42004fc90
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List.func5(0x10d7990)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:96 +0x60 fp=0xc42004fcf8 sp=0xc42004fcc0
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List(0x0, 0x756060, 0xc4200123c0)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:97 +0x217 fp=0xc42004fda0 sp=0xc42004fcf8
github.com/docker/docker-credential-helpers/secretservice.(*Secretservice).List(0x77e548, 0xc42004fe88, 0x410022, 0xc420012320)
<autogenerated>:4 +0x46 fp=0xc42004fde0 sp=0xc42004fda0
github.com/docker/docker-credential-helpers/credentials.List(0x756ba0, 0x77e548, 0x7560e0, 0xc42000e018, 0x0, 0x10)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:145 +0x3e fp=0xc42004fe68 sp=0xc42004fde0
github.com/docker/docker-credential-helpers/credentials.HandleCommand(0x756ba0, 0x77e548, 0x7ffca6c99fb5, 0x4, 0x7560a0, 0xc42000e010, 0x7560e0, 0xc42000e018, 0x40e398, 0x4d35c0)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:60 +0x16d fp=0xc42004fed8 sp=0xc42004fe68
github.com/docker/docker-credential-helpers/credentials.Serve(0x756ba0, 0x77e548)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:41 +0x1cb fp=0xc42004ff58 sp=0xc42004fed8
main.main()
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/secretservice/cmd/main_linux.go:9 +0x4f fp=0xc42004ff88 sp=0xc42004ff58
runtime.main()
/usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc42004ffe0 sp=0xc42004ff88
runtime.goexit()
/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc42004ffe8 sp=0xc42004ffe0
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1
I am using Ubuntu 18.04 with docker version:
Client:
Version: 18.05.0-ce
API version: 1.37
Go version: go1.9.5
Git commit: f150324
Built: Wed May 9 22:16:13 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.05.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: f150324
Built: Wed May 9 22:14:23 2018
OS/Arch: linux/amd64
Experimental: true
Maybe this could be related to #23 but I don’t have much knowledge of go.
Worth to mention: the docker build is not aborted and continues but this output is confusing.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 62
- Comments: 48 (1 by maintainers)
answer by aidanh010 ( dpkg -r --force-depends golang-docker-credential-helpers ) worked for me, and no need to restart the docker service.
I don’t think there is a link to
docker-composeother than on Ubuntu where installing compose pulls in thegolang-docker-credential-helpersdependency, triggering the issue to start appearing. Removing the credentials helper package withdpkg -r --force-dependsremoves this issue and leavesdocker-composeworking fine. For a more practical workaround install withpipor script on Docker’s docs site.edit: link to Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/docker-compose/+bug/1792824
“dpkg -r --force-depends golang-docker-credential-helpers” worked for me too 😃
For me the problem went away after installing the following packages:
sudo apt install gnupg2 pass gpgInstalled Docker packages:
Ubuntu version:
“dpkg -r --force-depends golang-docker-credential-helpers” workes for me.
The same error on Ubuntu 18.04 using Docker version 18.06.1-ce, build e68fc7a: (The command works fine, despite the error.) The error appears after docker-compose (v 1.17.1-2) installation. Removing docker-compose resolves this issue.
See: https://github.com/moby/moby/issues/34048
As hinted by this gentleman, installing gnome-keyring fixes the error, on an ubuntu… server!! (18.04)
Same here on Ubuntu 18.04 using Docker version 18.06.0-ce , but when I uninstall docker-compose , the problem was resolved , (sudo apt-get remove docker-compose) , I think there is link between docker-compose and the problem.
Before anyone comments with a me too comment please test the current state of master. PR #29 should have resolved this. It may need back-porting to the distro packages.
Uninstalling system wide docker-compose and install it via pip3 works for me on Ubuntu 18.04.1 LTS.
I have the same error using Kubuntu 18.04 with
docker version:We solved it on out machine with
sudo apt-get install pass gnupg2You should do
pip3 install --user docker-composeinstead so you don’t screw up your system librariesThe recommended way to install pip is through get pip
So instead I’d do(SEE EDIT2):
EDIT: Directly piping get-pip into python results in a warning and might cause problems in the future. updated the install routine.
EDIT2: better install docker-compose as recommended
You can even install it on your Calculator via a COM connection. The point is that the preferred way is with pip3 without sudo if possible.
Same here on Ubuntu 18.04
r$ docker version Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Wed Jun 20 21:43:51 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm
Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.5 Git commit: 9ee9f40 Built: Wed Jun 20 21:42:00 2018 OS/Arch: linux/amd64 Experimental: false
r$ docker build . free(): invalid pointer SIGABRT: abort PC=0x7f838bbb4e97 m=0 sigcode=18446744073709551610 signal arrived during cgo execution
goroutine 1 [syscall, locked to thread]: runtime.cgocall(0x4afd50, 0xc420049cc0, 0xc420049ce8) /usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc420049c90 sp=0xc420049c50 github.com/docker/docker-credential-helpers/secretservice._Cfunc_free(0x1509270) github.com/docker/docker-credential-helpers/secretservice/_obj/_cgo_gotypes.go:111 +0x41 fp=0xc420049cc0 sp=0xc420049c90 github.com/docker/docker-credential-helpers/secretservice.Secretservice.List.func5(0x1509270) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:96 +0x60 fp=0xc420049cf8 sp=0xc420049cc0 github.com/docker/docker-credential-helpers/secretservice.Secretservice.List(0x0, 0x756060, 0xc420018350) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:97 +0x217 fp=0xc420049da0 sp=0xc420049cf8 github.com/docker/docker-credential-helpers/secretservice.(*Secretservice).List(0x77e548, 0xc420049e88, 0x410022, 0xc4200182a0) <autogenerated>:4 +0x46 fp=0xc420049de0 sp=0xc420049da0 github.com/docker/docker-credential-helpers/credentials.List(0x756ba0, 0x77e548, 0x7560e0, 0xc42000e018, 0x0, 0x10) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:145 +0x3e fp=0xc420049e68 sp=0xc420049de0 github.com/docker/docker-credential-helpers/credentials.HandleCommand(0x756ba0, 0x77e548, 0x7ffec8d80794, 0x4, 0x7560a0, 0xc42000e010, 0x7560e0, 0xc42000e018, 0x40e398, 0x4d35c0) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:60 +0x16d fp=0xc420049ed8 sp=0xc420049e68 github.com/docker/docker-credential-helpers/credentials.Serve(0x756ba0, 0x77e548) /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:41 +0x1cb fp=0xc420049f58 sp=0xc420049ed8 main.main() /build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/secretservice/cmd/main_linux.go:9 +0x4f fp=0xc420049f88 sp=0xc420049f58 runtime.main() /usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc420049fe0 sp=0xc420049f88 runtime.goexit() /usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420049fe8 sp=0xc420049fe0
goroutine 17 [syscall, locked to thread]: runtime.goexit() /usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1
rax 0x0 rbx 0x7ffec8d7f820 rcx 0x7f838bbb4e97 rdx 0x0 rdi 0x2 rsi 0x7ffec8d7f5b0 rbp 0x7ffec8d7f920 rsp 0x7ffec8d7f5b0 r8 0x0 r9 0x7ffec8d7f5b0 r10 0x8 r11 0x246 r12 0x7ffec8d7f820 r13 0x1000 r14 0x0 r15 0x30 rip 0x7f838bbb4e97 rflags 0x246 cs 0x33 fs 0x0 gs 0x0 Sending build context to Docker daemon 3.305MB
I was able to fix by removing the
aptinstalled docker-compose, and using thecurlinstructions to install on the docker website https://docs.docker.com/compose/install/.Probably get dinged for this answer. Was getting same
cgo executionerror too, and just like above, built it anyway too. Not sure why; but added $USER to docker group.sudo usermod -a -G docker $USERThen completely shut down and restarted. Got rid of need for sudo (which I expected); but error went away too.Also getting a very similar error, using Ubuntu 18.04. The command works fine, despite the error.
Ubuntu:
Docker:
You don’t have to remove the package, just remove the execute permission:
‘dpkg -r --force-depends golang-docker-credential-helpers’ worked for me too! 😃
Also filed on the Ubuntu launchpad bug tracker as https://bugs.launchpad.net/ubuntu/+source/golang-github-docker-docker-credential-helpers/+bug/1813003 .
@sveinse We ran them in production for several months without any issues at all from this. Granted that’s not formal proof that it doesn’t cause any, but it doesn’t seem that this error causes any issues to the built images.
I’m seeing the exact same thing on Ubuntu 18.04
Dockerfile