Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

hypercli crash #257

@pmatos

Description

@pmatos

While trying to run a simple image hypercli crashed:

% hyper run -a STDOUT b518f40fb56b pmatos
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x7e2671]

goroutine 23 [running]:
github.com/hyperhq/hypercli/pkg/stdcopy.StdCopy(0xf357c0, 0xc42000e018, 0x0, 0x0, 0xf33c40, 0xc420378d20, 0x0, 0x0, 0x0)
        /home/lei/src/github.com/hyperhq/hypercli/pkg/stdcopy/stdcopy.go:161 +0x3a1
github.com/hyperhq/hypercli/api/client.(*DockerCli).holdHijackedConnection.func1(0xc420392900, 0xf357c0, 0xc42000e018, 0xc42039a4c0, 0xc4203967e0, 0x0, 0x0, 0xc420392960)
        /home/lei/src/github.com/hyperhq/hypercli/api/client/hijack.go:20 +0x86
created by github.com/hyperhq/hypercli/api/client.(*DockerCli).holdHijackedConnection
        /home/lei/src/github.com/hyperhq/hypercli/api/client/hijack.go:24 +0x177

Same run with debug info:

% hyper -l debug run -a STDOUT b518f40fb56b pmatos
DEBU[0004] Error sending signal: Error response from daemon: Container 03978cf44f8eae444703b8c9eab93921d1fa32a2e9bc672dec623ae24d59e476 is not running 
DEBU[0011] framesize: 83                                
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x7e2671]

goroutine 25 [running]:
github.com/hyperhq/hypercli/pkg/stdcopy.StdCopy(0xf357c0, 0xc42000e018, 0x0, 0x0, 0xf33c40, 0xc4203826c0, 0x0, 0x0, 0x0)
        /home/lei/src/github.com/hyperhq/hypercli/pkg/stdcopy/stdcopy.go:161 +0x3a1
github.com/hyperhq/hypercli/api/client.(*DockerCli).holdHijackedConnection.func1(0xc42038cc00, 0xf357c0, 0xc42000e018, 0xc420394770, 0xc420390900, 0x0, 0x0, 0xc42038cc00)
        /home/lei/src/github.com/hyperhq/hypercli/api/client/hijack.go:20 +0x86
created by github.com/hyperhq/hypercli/api/client.(*DockerCli).holdHijackedConnection
        /home/lei/src/github.com/hyperhq/hypercli/api/client/hijack.go:24 +0x177

Version:

% hyper --version  
Hyper version 1.10.16, build 860cca2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions