Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on build: double free or corruption (out) SIGABRT: abort PC=0x7f7464f01e97 m=0 sigcode=18446744073709551610 signal arrived during cgo execution #37916

Sarke opened this issue Sep 26, 2018 · 8 comments


Copy link

@Sarke Sarke commented Sep 26, 2018


See error below.

Steps to reproduce the issue:

  1. sudo docker build -t site-watcher .

Describe the results you received:

double free or corruption (out)
SIGABRT: abort
PC=0x7f3e05499e97 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 +0x41 fp=0xc42004fcc0 sp=0xc42004fc90
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/ +0x60 fp=0xc42004fcf8 sp=0xc42004fcc0, 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/ +0x217 fp=0xc42004fda0 sp=0xc42004fcf8*Secretservice).List(0x77e548, 0xc42004fe88, 0x410022, 0xc420012320)
	<autogenerated>:4 +0x46 fp=0xc42004fde0 sp=0xc42004fda0, 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/ +0x3e fp=0xc42004fe68 sp=0xc42004fde0, 0x77e548, 0x7ffd71137855, 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/ +0x16d fp=0xc42004fed8 sp=0xc42004fe68, 0x77e548)
	/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/ +0x1cb fp=0xc42004ff58 sp=0xc42004fed8
	/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
	/usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc42004ffe0 sp=0xc42004ff88
	/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc42004ffe8 sp=0xc42004ffe0

goroutine 17 [syscall, locked to thread]:
	/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1

rax    0x0
rbx    0x7ffd711368c0
rcx    0x7f3e05499e97
rdx    0x0
rdi    0x2
rsi    0x7ffd71136650
rbp    0x7ffd711369c0
rsp    0x7ffd71136650
r8     0x0
r9     0x7ffd71136650
r10    0x8
r11    0x246
r12    0x7ffd711368c0
r13    0x1000
r14    0x0
r15    0x30
rip    0x7f3e05499e97
rflags 0x246
cs     0x33
fs     0x0
gs     0x0
Sending build context to Docker daemon  18.43kB
Step 1/8 : FROM node:10-slim
 ---> c33688dea543

Rest of build proceeds normally.

Describe the results you expected:
Not seeing the error info.

Additional information you deem important (e.g. issue happens only occasionally):
It takes about 20 seconds before the output above appears. It happens every time, and I've tried with different projects.

Output of docker version:

Docker version 18.06.1-ce, build e68fc7a

same thing happened with an earlier version

Docker version 17.12.1-ce, build 7390fc6

Output of docker info:

Containers: 2
 Running: 1
 Paused: 0
 Stopped: 1
Images: 15
Server Version: 18.06.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
  Profile: default
Kernel Version: 4.15.0-33-generic
Operating System: Ubuntu 18.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 31.35GiB
Name: peter-office
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Experimental: false
Insecure Registries:
Live Restore Enabled: false

WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.):

Copy link

@Sarke Sarke commented Sep 26, 2018

This appears to be the same issue: docker/docker-credential-helpers#103

Copy link

@Sarke Sarke commented Sep 26, 2018

@aidanh010 found the problem:
docker/docker-credential-helpers#103 (comment)

$ sudo apt remove golang-docker-credential-helpers
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  docker-compose golang-docker-credential-helpers python-docker
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 2,438 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 276129 files and directories currently installed.)
Removing docker-compose (1.17.1-2) ...
Removing python-docker (2.5.1-1) ...
Removing python-dockerpycreds (0.2.1-1) ...
Removing golang-docker-credential-helpers (0.5.0-2) ...
Processing triggers for man-db (2.8.3-2) ...

Build runs fine after that.

Shame it removes docker-compose as well.

Copy link

@thaJeztah thaJeztah commented Sep 26, 2018

@Sarke did you install your version of docker from the official docker package repositories, or from the distro (Ubuntu) repository? The golang-docker-credential-helpers package is not part of the official docker packages, so wondering if your docker version is also built by the distro packagers, and something is funky with those builds

Copy link

@Sarke Sarke commented Sep 26, 2018

@thaJeztah for docker I used the official bionic repo, as per the documentation.

However, for docker-compose, which depends on golang-docker-credential-helpers, it comes from the official Ubuntu repo.

$ apt-cache showpkg golang-docker-credential-helpers

Package: golang-docker-credential-helpers
0.5.0-2 (/var/lib/apt/lists/ (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/
                  MD5: 644749d414f966cf290307b53116aed8
 Description Language: 
                 File: /var/lib/apt/lists/
                  MD5: 644749d414f966cf290307b53116aed8
 Description Language: en
                 File: /var/lib/apt/lists/
                  MD5: 644749d414f966cf290307b53116aed8

Reverse Depends: 
0.5.0-2 - libc6 (2 2.14) libglib2.0-0 (2 2.28.0) libsecret-1-0 (2 0.7) golang-docker-credential-helpers:i386 (32 (null)) 
0.5.0-2 - 
Reverse Provides: 

$ dpkg -s golang-docker-credential-helpers

Package: golang-docker-credential-helpers
Status: install ok installed
Priority: extra
Section: devel
Installed-Size: 1435
Maintainer: Ubuntu Developers <>
Architecture: amd64
Source: golang-github-docker-docker-credential-helpers
Version: 0.5.0-2
Depends: libc6 (>= 2.14), libglib2.0-0 (>= 2.28.0), libsecret-1-0 (>= 0.7)
Description: Use native stores to safeguard Docker credentials
 The docker-credential-helpers package is a suite of programs to use
 the built-in OS native stores to keep Docker credentials safe.
 This package contains the command-line executables.
Original-Maintainer: Debian Go Packaging Team <>
Built-Using: golang-1.8 (= 1.8.1-1ubuntu3)

Copy link

@Sarke Sarke commented Sep 26, 2018

Installing docker-compose using pip seems to work fine, and doesn't cause the golang-docker-credential-helpers deb to be installed. So all is well, but it's a workaround.

$ pip install docker-compose

Collecting docker-compose
  Downloading (126kB)
    100% |████████████████████████████████| 133kB 2.0MB/s 
Collecting six<2,>=1.3.0 (from docker-compose)
Collecting backports.ssl-match-hostname>=3.5; python_version < "3.5" (from docker-compose)
Collecting docopt<0.7,>=0.6.1 (from docker-compose)
Collecting docker<4.0,>=3.4.1 (from docker-compose)
  Downloading (125kB)
    100% |████████████████████████████████| 133kB 2.0MB/s 
Collecting ipaddress>=1.0.16; python_version < "3.3" (from docker-compose)
Collecting PyYAML<4,>=3.10 (from docker-compose)
  Downloading (270kB)
    100% |████████████████████████████████| 276kB 2.0MB/s 
Collecting dockerpty<0.5,>=0.4.1 (from docker-compose)
Collecting requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1 (from docker-compose)
  Downloading (88kB)
    100% |████████████████████████████████| 92kB 2.5MB/s 
Collecting enum34<2,>=1.0.4; python_version < "3.4" (from docker-compose)
Collecting cached-property<2,>=1.2.0 (from docker-compose)
Collecting jsonschema<3,>=2.5.1 (from docker-compose)
Collecting texttable<0.10,>=0.9.0 (from docker-compose)
Collecting websocket-client<1.0,>=0.32.0 (from docker-compose)
  Downloading (198kB)
    100% |████████████████████████████████| 204kB 1.8MB/s 
Collecting docker-pycreds>=0.3.0 (from docker<4.0,>=3.4.1->docker-compose)
Collecting idna<2.7,>=2.5 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose)
  Downloading (56kB)
    100% |████████████████████████████████| 61kB 1.6MB/s 
Collecting urllib3<1.23,>=1.21.1 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose)
  Downloading (132kB)
    100% |████████████████████████████████| 133kB 1.7MB/s 
Collecting certifi>=2017.4.17 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose)
  Downloading (147kB)
    100% |████████████████████████████████| 153kB 2.7MB/s 
Collecting chardet<3.1.0,>=3.0.2 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose)
  Downloading (133kB)
    100% |████████████████████████████████| 143kB 2.6MB/s 
Collecting functools32; python_version == "2.7" (from jsonschema<3,>=2.5.1->docker-compose)
Building wheels for collected packages: backports.ssl-match-hostname, docopt, PyYAML, dockerpty, texttable, functools32
  Running bdist_wheel for backports.ssl-match-hostname ... done
  Stored in directory: /home/peter/.cache/pip/wheels/99/7e/f7/a88a9bcf7a3bd6b12cf6a74eee8c89746aaa02f71ab7b33939
  Running bdist_wheel for docopt ... done
  Stored in directory: /home/peter/.cache/pip/wheels/9b/04/dd/7daf4150b6d9b12949298737de9431a324d4b797ffd63f526e
  Running bdist_wheel for PyYAML ... done
  Stored in directory: /home/peter/.cache/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f
  Running bdist_wheel for dockerpty ... done
  Stored in directory: /home/peter/.cache/pip/wheels/e5/1e/86/bd0a97a0907c6c654af654d5875d1d4383dd1f575f77cee4aa
  Running bdist_wheel for texttable ... done
  Stored in directory: /home/peter/.cache/pip/wheels/99/1e/2b/8452d3a48dad98632787556a0f2f90d56703b39cdf7d142dd1
  Running bdist_wheel for functools32 ... done
  Stored in directory: /home/peter/.cache/pip/wheels/b5/18/32/77a1030457155606ba5e3ec3a8a57132b1a04b1c4f765177b2
Successfully built backports.ssl-match-hostname docopt PyYAML dockerpty texttable functools32
Installing collected packages: six, backports.ssl-match-hostname, docopt, docker-pycreds, ipaddress, idna, urllib3, certifi, chardet, requests, websocket-client, docker, PyYAML, dockerpty, enum34, cached-property, functools32, jsonschema, texttable, docker-compose
Successfully installed PyYAML-3.13 backports.ssl-match-hostname- cached-property-1.5.1 certifi-2018.8.24 chardet-3.0.4 docker-3.5.0 docker-compose-1.22.0 docker-pycreds-0.3.0 dockerpty-0.4.1 docopt-0.6.2 enum34-1.1.6 functools32-3.2.3.post2 idna-2.6 ipaddress-1.0.22 jsonschema-2.6.0 requests-2.18.4 six-1.11.0 texttable-0.9.1 urllib3-1.22 websocket-client-0.53.0

$ docker-compose --version

docker-compose version 1.22.0, build f46880f

Copy link

@aidanbh aidanbh commented Sep 30, 2018

Filed a bug with Ubuntu a few weeks ago, still waiting for response:

Copy link

@thaJeztah thaJeztah commented Jan 7, 2019

Looks like a fix for this was merged in the docker-credentials-helpers repository, but is not yet in the v0.6.1 release; docker/docker-credential-helpers#29

Copy link

@thaJeztah thaJeztah commented Jul 4, 2019

docker/docker-credential-helpers#29 was merged, and is part of v0.6.2 of the credential helpers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants