https://bugzilla.redhat.com/show_bug.cgi?id=1258822

            Bug ID: 1258822
           Summary: The docker build command produces panic
           Product: Fedora
           Version: 21
         Component: docker-io
          Severity: high
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]



Description of problem:

The `docker build` command panics. The command prints "" after few steps of the
docker build.

Client version: 1.7.1.fc21
Client API version: 1.19
Package Version (client): docker-io-1.7.1-3.git33de319.fc21.x86_64
Go version (client): go1.4.2
Git commit (client): 33de319/1.7.1
OS/Arch (client): linux/amd64
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
lease number of selected component (if applicable):

Steps to Reproduce:
1. git clone https://github.com/openshift/jenkins
2. cd jenkins
3. make build

Actual results:

Step 0 : FROM centos:centos7
 ---> 7322fbe74aa5
Step 1 : MAINTAINER Ben Parees <[email protected]>
 ---> Using cache
 ---> 15996a891236
Step 2 : ENV JENKINS_VERSION 1.609 HOME /var/lib/jenkins JENKINS_HOME
/var/lib/jenkins
 ---> Using cache
 ---> 53337e305e98
Step 3 : LABEL k8s.io.description "Jenkins is a continuous integration server"
k8s.io.display-name "Jenkins 1.609" openshift.io.expose-services "8080:http"
openshift.io.tags "jenkins,jenkins1,ci"
 ---> Using cache
 ---> 17d72d6b80b9
Step 4 : EXPOSE 8080 50000
 ---> Using cache
 ---> a8ffe929cb51
Step 5 : RUN curl http://pkg.jenkins-ci.org/redhat/jenkins.repo -o
/etc/yum.repos.d/jenkins.repo &&     rpm --import
http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key &&     yum install -y tar
zip unzip java-1.8.0-openjdk jenkins-1.609 &&     yum clean all  &&     chmod
og+rw /var/lib/jenkins &&     curl -L
https://github.com/openshift/origin/releases/download/v1.0.2/openshift-origin-v1.0.2-325c7b7-linux-amd64.tar.gz
| tar -zx &&     mv oc /usr/local/bin &&     rm oadm &&     rm openshift
 ---> Running in 0455b7d5be68
unexpected EOF
Makefile:18: recipe for target 'build' failed
make: *** [build] Error 1


Interesting bits from the `journalctl -u docker`:

Sep 01 11:15:12 openshiftdev.local docker[1543]: 2015/09/01 11:15:12 http:
panic serving @: runtime error: slice bounds out of range
Sep 01 11:15:12 openshiftdev.local docker[1543]: goroutine 708 [running]:
Sep 01 11:15:12 openshiftdev.local docker[1543]: net/http.func·011()
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/usr/lib/golang/src/net/http/server.go:1130 +0xbb fp=0xc208a8ea40
sp=0xc208a8e960
Sep 01 11:15:12 openshiftdev.local docker[1543]: runtime.call16(0xc208a8fef0,
0xc20819c1b0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/usr/lib/golang/src/runtime/asm_amd64.s:401 +0x45 fp=0xc208a8ea58
sp=0xc208a8ea40
Sep 01 11:15:12 openshiftdev.local docker[1543]: runtime.gopanic(0xb89f60,
0xc20802a010)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/usr/lib/golang/src/runtime/panic.go:387 +0x3a8 fp=0xc208a8eac0 sp=0xc208a8ea58
Sep 01 11:15:12 openshiftdev.local docker[1543]: runtime.panicslice()
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/usr/lib/golang/src/runtime/panic.go:18 +0x4e fp=0xc208a8eae8 sp=0xc208a8eac0
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/pkg/systemd.RegisterMachine(0xc20877da81, 0x13,
0xc208da8bc0, 0x40, 0x5acd, 0xc65450, 0x1, 0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/pkg/systemd/register.go:33
+0x624 fp=0xc208a8ec28 sp=0xc208a8eae8
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/daemon.(*Container).registerMachine(0xc2080b34a0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/daemon/container_linux.go:1044
+0xa4 fp=0xc208a8ed00 sp=0xc208a8ec28
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/daemon.(*Container).waitForStart(0xc2080b34a0, 0x0,
0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/daemon/container.go:761
+0x2e6 fp=0xc208a8ee30 sp=0xc208a8ed00
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/daemon.(*Container).Start(0xc2080b34a0, 0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/daemon/container.go:295
+0x4cd fp=0xc208a8ef40 sp=0xc208a8ee30
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/builder.(*Builder).run(0xc2089baf00, 0xc2080b34a0,
0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/internals.go:605
+0x11b fp=0xc208a8f060 sp=0xc208a8ef40
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/builder.run(0xc2089baf00, 0xc208686c00, 0x3, 0x4, 0x0,
0xc2085e5c00, 0x1e6, 0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/dispatchers.go:348
+0x8d5 fp=0xc208a8f200 sp=0xc208a8f060
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/builder.(*Builder).dispatch(0xc2089baf00, 0x5,
0xc2084ddc80, 0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/evaluator.go:342
+0xdae fp=0xc208a8f418 sp=0xc208a8f200
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/builder.(*Builder).Run(0xc2089baf00, 0x7feff5f0e5c8,
0xc2086e6c70, 0x0, 0x0, 0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/evaluator.go:177
+0x4b5 fp=0xc208a8f598 sp=0xc208a8f418
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/builder.Build(0xc2080b42a0, 0xc208858410, 0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/builder/job.go:174
+0x7f2 fp=0xc208a8f7b8 sp=0xc208a8f598
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/api/server.(*Server).postBuild(0xc2080fc3c0,
0xc2081289c7, 0x4, 0x7feff5ef6490, 0xc208695180, 0xc208858340, 0xc2087e5e30,
0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/api/server/server.go:1346
+0xe99 fp=0xc208a8f990 sp=0xc208a8f7b8
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/api/server.*Server.(github.com/docker/docker/api/server.postBuild)·fm(0xc2081289c7,
0x4, 0x7feff5ef6490, 0xc208695180, 0xc208858340, 0xc2087e5e30, 0x0, 0x0)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/api/server/server.go:1606
+0x7b fp=0xc208a8f9e0 sp=0xc208a8f990
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/docker/docker/api/server.func·008(0x7feff5ef6490, 0xc208695180,
0xc208858340)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/_build/src/github.com/docker/docker/api/server/server.go:1566
+0xacd fp=0xc208a8fb88 sp=0xc208a8f9e0
Sep 01 11:15:12 openshiftdev.local docker[1543]:
net/http.HandlerFunc.ServeHTTP(0xc2080fddc0, 0x7feff5ef6490, 0xc208695180,
0xc208858340)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/usr/lib/golang/src/net/http/server.go:1265 +0x41 fp=0xc208a8fba8
sp=0xc208a8fb88
Sep 01 11:15:12 openshiftdev.local docker[1543]:
github.com/gorilla/mux.(*Router).ServeHTTP(0xc208103270, 0x7feff5ef6490,
0xc208695180, 0xc208858340)
Sep 01 11:15:12 openshiftdev.local docker[1543]:
/builddir/build/BUILD/docker-33de3192f50bc95ecd3b9583ce5a1ad65000c470/vendor/src/github.com/gorilla/mux/mux.go:98
+0x297 fp=0xc208a8fcb0 sp=0xc208a8fba8



Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to