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

runtime: fatal error: unexpected signal during runtime execution #24824

Closed
levilk opened this issue Apr 12, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@levilk
Copy link

commented Apr 12, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.10.1 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/opt/gopath"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build304788662=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I tried to execute the following command:
peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric-samples/chaincode/chaincode_example02/go

I've built a custom network with hyperledger/fabric-samples/fabric-ca using the included scripts.
All command was run inside docker container. After i've succesfully built the network i added a new peer to it. The following error occured when i've tried to install the chaincode above.
I've started a network 4-5 times and the error seemed to be random. Sometimes the network crashed with the other peers as well, sometimes just with the new peer.

The docker-compose files:
Original network:
version: '2'

networks:
fabric-ca:

services:

rca-org0:
container_name: rca-org0
image: yeasy/hyperledger-fabric-ca:latest
command: /bin/bash -c '/scripts/start-root-ca.sh 2>&1 | tee /data/logs/rca-org0.log'
environment:
- FABRIC_CA_SERVER_HOME=/etc/hyperledger/fabric-ca
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_CSR_CN=rca-org0
- FABRIC_CA_SERVER_CSR_HOSTS=rca-org0
- FABRIC_CA_SERVER_DEBUG=true
- BOOTSTRAP_USER_PASS=rca-org0-admin:rca-org0-adminpw
- TARGET_CERTFILE=/data/org0-ca-cert.pem
- FABRIC_ORGS=org0
volumes:
- ./scripts:/scripts
- ./data:/data
networks:
- fabric-ca

setup:
container_name: setup
image: yeasy/hyperledger-fabric:latest
command: /bin/bash -c '/scripts/setup-fabric.sh 2>&1 | tee /data/logs/setup.log; sleep 99999'
volumes:
- ./scripts:/scripts
- ./data:/data
networks:
- fabric-ca
depends_on:
- rca-org0

orderer1-org0:
container_name: orderer1-org0
image: yeasy/hyperledger-fabric-orderer-plus:latest
environment:
- FABRIC_CA_CLIENT_HOME=/etc/hyperledger/orderer
- FABRIC_CA_CLIENT_TLS_CERTFILES=/data/org0-ca-cert.pem
- ENROLLMENT_URL=https://orderer1-org0:orderer1-org0pw@rca-org0:7054
- ORDERER_HOME=/etc/hyperledger/orderer
- ORDERER_HOST=orderer1-org0
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/data/genesis.block
- ORDERER_GENERAL_LOCALMSPID=org0MSP
- ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/orderer/msp
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/etc/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/etc/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/data/org0-ca-cert.pem]
- ORDERER_GENERAL_TLS_CLIENTAUTHREQUIRED=true
- ORDERER_GENERAL_TLS_CLIENTROOTCAS=[/data/org0-ca-cert.pem]
- ORDERER_GENERAL_LOGLEVEL=debug
- ORDERER_DEBUG_BROADCASTTRACEDIR=data/logs
- ORG=org0
- ORG_ADMIN_CERT=/data/orgs/org0/msp/admincerts/cert.pem
command: /bin/bash -c '/scripts/start-orderer.sh 2>&1 | tee /data/logs/orderer1-org0.log'
volumes:
- ./scripts:/scripts
- ./data:/data
networks:
- fabric-ca
depends_on:
- setup

peer1-org0:
container_name: peer1-org0
image: yeasy/hyperledger-fabric-peer-plus:latest
environment:
- FABRIC_CA_CLIENT_HOME=/opt/gopath/src/github.com/hyperledger/fabric/peer
- FABRIC_CA_CLIENT_TLS_CERTFILES=/data/org0-ca-cert.pem
- ENROLLMENT_URL=https://peer1-org0:peer1-org0pw@rca-org0:7054
- PEER_NAME=peer1-org0
- PEER_HOME=/opt/gopath/src/github.com/hyperledger/fabric/peer
- PEER_HOST=peer1-org0
- PEER_NAME_PASS=peer1-org0:peer1-org0pw
- CORE_PEER_ID=peer1-org0
- CORE_PEER_ADDRESS=peer1-org0:7051
- CORE_PEER_LOCALMSPID=org0MSP
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/msp
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_fabric-ca
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/data/org0-ca-cert.pem
- CORE_PEER_TLS_CLIENTAUTHREQUIRED=true
- CORE_PEER_TLS_CLIENTROOTCAS_FILES=/data/org0-ca-cert.pem
- CORE_PEER_TLS_CLIENTCERT_FILE=/data/tls/peer1-org0-client.crt
- CORE_PEER_TLS_CLIENTKEY_FILE=/data/tls/peer1-org0-client.key
- CORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1-org0:7051
- CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
- ORG=org0
- ORG_ADMIN_CERT=/data/orgs/org0/msp/admincerts/cert.pem
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: /bin/bash -c '/scripts/start-peer.sh 2>&1 | tee /data/logs/peer1-org0.log'
volumes:
- ./scripts:/scripts
- ./data:/data
- /var/run:/host/var/run
networks:
- fabric-ca
depends_on:
- setup
- rca-org0
- orderer1-org0

peer2-org0:
container_name: peer2-org0
image: yeasy/hyperledger-fabric-peer-plus:latest
environment:
- FABRIC_CA_CLIENT_HOME=/opt/gopath/src/github.com/hyperledger/fabric/peer
- FABRIC_CA_CLIENT_TLS_CERTFILES=/data/org0-ca-cert.pem
- ENROLLMENT_URL=https://peer2-org0:peer2-org0pw@rca-org0:7054
- PEER_NAME=peer2-org0
- PEER_HOME=/opt/gopath/src/github.com/hyperledger/fabric/peer
- PEER_HOST=peer2-org0
- PEER_NAME_PASS=peer2-org0:peer2-org0pw
- CORE_PEER_ID=peer2-org0
- CORE_PEER_ADDRESS=peer2-org0:7051
- CORE_PEER_LOCALMSPID=org0MSP
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/msp
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_fabric-ca
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/data/org0-ca-cert.pem
- CORE_PEER_TLS_CLIENTAUTHREQUIRED=true
- CORE_PEER_TLS_CLIENTROOTCAS_FILES=/data/org0-ca-cert.pem
- CORE_PEER_TLS_CLIENTCERT_FILE=/data/tls/peer2-org0-client.crt
- CORE_PEER_TLS_CLIENTKEY_FILE=/data/tls/peer2-org0-client.key
- CORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer2-org0:7051
- CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
- ORG=org0
- ORG_ADMIN_CERT=/data/orgs/org0/msp/admincerts/cert.pem
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: /bin/bash -c '/scripts/start-peer.sh 2>&1 | tee /data/logs/peer2-org0.log'
volumes:
- ./scripts:/scripts
- ./data:/data
- /var/run:/host/var/run
networks:
- fabric-ca
depends_on:
- setup
- rca-org0
- orderer1-org0

run:
container_name: run
image: yeasy/hyperledger-fabric:latest
environment:
- GOPATH=/opt/gopath
command: /bin/bash -c 'sleep 3;/scripts/run-fabric.sh 2>&1 | tee /data/logs/run.log; sleep 99999'
volumes:
- ./scripts:/scripts
- ./data:/data
- /home/levi/fabric-samples:/opt/gopath/src/github.com/hyperledger/fabric-samples
- /usr/local/go/src/github.com/hyperledger/fabric:/opt/gopath/src/github.com/hyperledger/fabric
networks:
- fabric-ca
depends_on:
- orderer1-org0
- peer1-org0
- peer2-org0

New peer's:
version: '2'

networks:
fabric-ca:

services:

peer3-org0:
container_name: peer3-org0
image: yeasy/hyperledger-fabric-peer-plus:latest
environment:
- FABRIC_CA_CLIENT_HOME=/opt/gopath/src/github.com/hyperledger/fabric/peer
- FABRIC_CA_CLIENT_TLS_CERTFILES=/data/org0-ca-cert.pem
- ENROLLMENT_URL=https://peer3-org0:peer3-org0pw@rca-org0:7054
- PEER_NAME=peer3-org0
- PEER_HOME=/opt/gopath/src/github.com/hyperledger/fabric/peer
- PEER_HOST=peer3-org0
- PEER_NAME_PASS=peer3-org0:peer3-org0pw
- CORE_PEER_ID=peer3-org0
- CORE_PEER_ADDRESS=peer3-org0:7051
- CORE_PEER_LOCALMSPID=org0MSP
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/msp
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=net_fabric-ca
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/data/org0-ca-cert.pem
- CORE_PEER_TLS_CLIENTAUTHREQUIRED=true
- CORE_PEER_TLS_CLIENTROOTCAS_FILES=/data/org0-ca-cert.pem
- CORE_PEER_TLS_CLIENTCERT_FILE=/data/tls/peer3-org0-client.crt
- CORE_PEER_TLS_CLIENTKEY_FILE=/data/tls/peer3-org0-client.key
- CORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer3-org0:7051
- CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
- ORG=org0
- ORG_ADMIN_CERT=/data/orgs/org0/msp/admincerts/cert.pem
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: /bin/bash -c '/scripts/addPeer.sh 2>&1 | tee /data/logs/peer3-org0.log'
volumes:
- ./scripts:/scripts
- ./data:/data
- /var/run:/host/var/run
networks:
- fabric-ca

The plus after the yeasy's images only contains the fabric-ca-client installation.

What did you expect to see?

Response 200: Installed chaincode remotly ok.

What did you see instead?

Installing chaincode on peer3-org0 ...
2018-04-12 12:27:40.505 UTC [grpc] Printf -> DEBU 001 dialing to target with scheme: ""
2018-04-12 12:27:40.505 UTC [grpc] Printf -> DEBU 002 ccResolverWrapper: sending new addresses to cc: [{peer3-org0:7051 0 }]
2018-04-12 12:27:40.506 UTC [grpc] Printf -> DEBU 003 ClientConn switching balancer to "pick_first"
2018-04-12 12:27:40.506 UTC [grpc] Printf -> DEBU 004 pickfirstBalancer: HandleSubConnStateChange: 0xc4202f1910, CONNECTING
2018-04-12 12:27:40.515 UTC [grpc] Printf -> DEBU 005 pickfirstBalancer: HandleSubConnStateChange: 0xc4202f1910, READY
2018-04-12 12:27:40.515 UTC [msp] GetDefaultSigningIdentity -> DEBU 006 Obtaining default signing identity
2018-04-12 12:27:40.515 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 007 Using default escc
2018-04-12 12:27:40.515 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 008 Using default vscc
2018-04-12 12:27:40.515 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 009 java chaincode disabled
2018-04-12 12:27:40.841 UTC [golang-platform] getCodeFromFS -> DEBU 00a getCodeFromFS github.com/hyperledger/fabric-samples/chaincode/chaincode_example02/go
2018-04-12 12:27:41.453 UTC [golang-platform] func1 -> DEBU 00b Discarding GOROOT package fmt
2018-04-12 12:27:41.453 UTC [golang-platform] func1 -> DEBU 00c Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-04-12 12:27:41.453 UTC [golang-platform] func1 -> DEBU 00d Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-04-12 12:27:41.453 UTC [golang-platform] func1 -> DEBU 00e Discarding GOROOT package strconv
2018-04-12 12:27:41.453 UTC [golang-platform] GetDeploymentPayload -> DEBU 00f done
2018-04-12 12:27:41.453 UTC [container] WriteFileToPackage -> DEBU 010 Writing file to tarball: src/github.com/hyperledger/fabric-samples/chaincode/chaincode_example02/go/chaincode_example02.go
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xe5 pc=0x7fdf084187f8]

runtime stack:
runtime.throw(0xf2ee8f, 0x2a)
/usr/local/go/src/runtime/panic.go:616 +0x81
runtime.sigpanic()
/usr/local/go/src/runtime/signal_unix.go:372 +0x28e

goroutine 1 [syscall]:
runtime.cgocall(0xbde8cb, 0xc4201a8a78, 0xf2d3ea)
/usr/local/go/src/runtime/cgocall.go:128 +0x64 fp=0xc4201a8a30 sp=0xc4201a89f8 pc=0x402364
os/user._Cfunc_mygetpwuid_r(0x3e8, 0xc4202fdad0, 0x7fdef00008c0, 0x400, 0xc42000e6d8, 0x0)
_cgo_gotypes.go:170 +0x4d fp=0xc4201a8a78 sp=0xc4201a8a30 pc=0x90580d
os/user.lookupUnixUid.func1.1(0x7fdf000003e8, 0xc4202fdad0, 0x7fdef00008c0, 0x400, 0xc42000e6d8, 0xc4201a8b08)
/usr/local/go/src/os/user/cgo_lookup_unix.go:100 +0x13f fp=0xc4201a8ab8 sp=0xc4201a8a78 pc=0x9073ef
os/user.lookupUnixUid.func1(0x10)
/usr/local/go/src/os/user/cgo_lookup_unix.go:100 +0x50 fp=0xc4201a8af8 sp=0xc4201a8ab8 pc=0x907490
os/user.retryWithBuffer(0xc42032f370, 0xc4201a8be8, 0xc42032f370, 0xe767c0)
/usr/local/go/src/os/user/cgo_lookup_unix.go:253 +0x3b fp=0xc4201a8b58 sp=0xc4201a8af8 pc=0x9068bb
os/user.lookupUnixUid(0x3e8, 0x0, 0x0, 0x0)
/usr/local/go/src/os/user/cgo_lookup_unix.go:96 +0x130 fp=0xc4201a8c20 sp=0xc4201a8b58 pc=0x905d40
os/user.lookupUserId(0xc4202fbf00, 0x4, 0x0, 0x481cd4, 0x3e8)
/usr/local/go/src/os/user/cgo_lookup_unix.go:86 +0x73 fp=0xc4201a8c58 sp=0xc4201a8c20 pc=0x905bd3
os/user.LookupId(0xc4202fbf00, 0x4, 0x4, 0x0, 0x0)
/usr/local/go/src/os/user/lookup.go:41 +0x51 fp=0xc4201a8ca8 sp=0xc4201a8c58 pc=0x9051d1
archive/tar.statUnix(0xfe0ba0, 0xc420315520, 0xc4202829a0, 0x16dd880, 0x106)
/usr/local/go/src/archive/tar/stat_unix.go:39 +0x4c1 fp=0xc4201a8d28 sp=0xc4201a8ca8 pc=0x910f01
archive/tar.FileInfoHeader(0xfe0ba0, 0xc420315520, 0xc42007fa40, 0x6d, 0x0, 0x0, 0x7fdf08e27d60)
/usr/local/go/src/archive/tar/common.go:699 +0x491 fp=0xc4201a8ea8 sp=0xc4201a8d28 pc=0x90a3d1
github.com/hyperledger/fabric/core/container/util.WriteStreamToPackage(0xfc9940, 0xc4202f3e60, 0xc42007fa40, 0x6d, 0xc42007fa4c, 0x61, 0xc42020bc00, 0xc4201a9138, 0x4110e9)
/go/src/github.com/hyperledger/fabric/core/container/util/writer.go:181 +0x18b fp=0xc4201a9060 sp=0xc4201a8ea8 pc=0x951e6b
github.com/hyperledger/fabric/core/container/util.WriteFileToPackage(0xc42007fa40, 0x6d, 0xc42007fa4c, 0x61, 0xc42020bc00, 0x0, 0x0)
/go/src/github.com/hyperledger/fabric/core/container/util/writer.go:171 +0x3aa fp=0xc4201a9178 sp=0xc4201a9060 pc=0x951c3a
github.com/hyperledger/fabric/core/chaincode/platforms/golang.(*Platform).GetDeploymentPayload(0x1701dc8, 0xc420331120, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/hyperledger/fabric/core/chaincode/platforms/golang/platform.go:473 +0x1346 fp=0xc4201a99c0 sp=0xc4201a9178 pc=0x95a336
github.com/hyperledger/fabric/core/chaincode/platforms.GetDeploymentPayload(0xc420331120, 0x0, 0x0, 0xf0c08e, 0xe, 0xc42024aaa0)
/go/src/github.com/hyperledger/fabric/core/chaincode/platforms/platforms.go:80 +0x89 fp=0xc4201a9a08 sp=0xc4201a99c0 pc=0x95fb59
github.com/hyperledger/fabric/core/container.GetChaincodePackageBytes(0xc420331120, 0x0, 0x0, 0xc4202fb750, 0x6, 0xc4200f931c)
/go/src/github.com/hyperledger/fabric/core/container/vm.go:100 +0x96 fp=0xc4201a9a50 sp=0xc4201a9a08 pc=0xb6af56
github.com/hyperledger/fabric/peer/chaincode.getChaincodeDeploymentSpec(0xc420331120, 0xc420331101, 0x0, 0x0, 0xf06f00)
/go/src/github.com/hyperledger/fabric/peer/chaincode/common.go:57 +0x115 fp=0xc4201a9ac0 sp=0xc4201a9a50 pc=0xb84245
github.com/hyperledger/fabric/peer/chaincode.genChaincodeDeploymentSpec(0xc4200e1b00, 0x7ffec0d433f2, 0x4, 0x7ffec0d433fa, 0x3, 0x8020103, 0x0, 0xc4201a9c70)
/go/src/github.com/hyperledger/fabric/peer/chaincode/install.go:100 +0xab fp=0xc4201a9b68 sp=0xc4201a9ac0 pc=0xb882ab
github.com/hyperledger/fabric/peer/chaincode.chaincodeInstall(0xc4200e1b00, 0x0, 0x0, 0xc4202fd410, 0x0, 0x0)
/go/src/github.com/hyperledger/fabric/peer/chaincode/install.go:165 +0x155 fp=0xc4201a9c58 sp=0xc4201a9b68 pc=0xb889c5
github.com/hyperledger/fabric/peer/chaincode.installCmd.func1(0xc4200e1b00, 0xc420295d40, 0x0, 0x6, 0x0, 0x0)
/go/src/github.com/hyperledger/fabric/peer/chaincode/install.go:44 +0x54 fp=0xc4201a9c98 sp=0xc4201a9c58 pc=0xb8d834
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0xc4200e1b00, 0xc420295c80, 0x6, 0x6, 0xc4200e1b00, 0xc420295c80)
/go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:698 +0x46d fp=0xc4201a9d40 sp=0xc4201a9c98 pc=0xb5185d
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1696700, 0x11, 0xc42024a6a8, 0x5)
/go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:783 +0x2e4 fp=0xc4201a9e70 sp=0xc4201a9d40 pc=0xb51fd4
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x1696700, 0x19, 0xc4200360b5)
/go/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:736 +0x2b fp=0xc4201a9ea0 sp=0xc4201a9e70 pc=0xb51ccb
main.main()
/go/src/github.com/hyperledger/fabric/peer/main.go:100 +0x567 fp=0xc4201a9f88 sp=0xc4201a9ea0 pc=0xbd9717
runtime.main()
/usr/local/go/src/runtime/proc.go:198 +0x212 fp=0xc4201a9fe0 sp=0xc4201a9f88 pc=0x42e0f2
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc4201a9fe8 sp=0xc4201a9fe0 pc=0x45bba1

goroutine 8 [select]:
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*ccResolverWrapper).watcher(0xc4202fc0f0)
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/resolver_conn_wrapper.go:108 +0x182
created by github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*ccResolverWrapper).start
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/resolver_conn_wrapper.go:94 +0x3f

goroutine 7 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:139 +0xa6
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x22
created by os/signal.init.0
/usr/local/go/src/os/signal/signal_unix.go:28 +0x41

goroutine 9 [select]:
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*ccBalancerWrapper).watcher(0xc420221040)
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/balancer_conn_wrappers.go:122 +0x14a
created by github.com/hyperledger/fabric/vendor/google.golang.org/grpc.newCCBalancerWrapper
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/balancer_conn_wrappers.go:113 +0x14c

goroutine 10 [select]:
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*addrConn).transportMonitor(0xc4202b0b40)
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:1224 +0x235
github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*addrConn).connect.func1(0xc4202b0b40)
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:827 +0x1b5
created by github.com/hyperledger/fabric/vendor/google.golang.org/grpc.(*addrConn).connect
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/clientconn.go:818 +0xe1

goroutine 16 [IO wait]:
internal/poll.runtime_pollWait(0x7fdf08e27f00, 0x72, 0xc420068970)
/usr/local/go/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc4202fe798, 0x72, 0xffffffffffffff00, 0xfcd340, 0x169f928)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:85 +0x9b
internal/poll.(*pollDesc).waitRead(0xc4202fe798, 0xc420300800, 0x400, 0x400)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc4202fe780, 0xc420300800, 0x400, 0x400, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:157 +0x17d
net.(*netFD).Read(0xc4202fe780, 0xc420300800, 0x400, 0x400, 0x8, 0x8, 0x3f3)
/usr/local/go/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc42000e5a8, 0xc420300800, 0x400, 0x400, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:176 +0x6a
crypto/tls.(*block).readFromUntil(0xc4202fca20, 0x7fdf08e306e0, 0xc42000e5a8, 0x5, 0xc42000e5a8, 0x0)
/usr/local/go/src/crypto/tls/conn.go:493 +0x96
crypto/tls.(*Conn).readRecord(0xc42020aa80, 0xf54a17, 0xc42020aba0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:595 +0xe0
crypto/tls.(*Conn).Read(0xc42020aa80, 0xc42033a000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:1156 +0x100
bufio.(*Reader).Read(0xc4202f3320, 0xc420282818, 0x9, 0x9, 0x30, 0x28, 0xe632c0)
/usr/local/go/src/bufio/bufio.go:216 +0x238
io.ReadAtLeast(0xfc9940, 0xc4202f3320, 0xc420282818, 0x9, 0x9, 0x9, 0xc420068df0, 0x400f1e, 0xc420068e9f)
/usr/local/go/src/io/io.go:309 +0x86
io.ReadFull(0xfc9940, 0xc4202f3320, 0xc420282818, 0x9, 0x9, 0x8747e4, 0xc4202fd620, 0xc4202f0004)
/usr/local/go/src/io/io.go:327 +0x58
github.com/hyperledger/fabric/vendor/golang.org/x/net/http2.readFrameHeader(0xc420282818, 0x9, 0x9, 0xfc9940, 0xc4202f3320, 0x0, 0x0, 0xc4202fd620, 0x0)
/go/src/github.com/hyperledger/fabric/vendor/golang.org/x/net/http2/frame.go:237 +0x7b
github.com/hyperledger/fabric/vendor/golang.org/x/net/http2.(*Framer).ReadFrame(0xc4202827e0, 0xc4202fd620, 0xc4202fd600, 0x0, 0x0)
/go/src/github.com/hyperledger/fabric/vendor/golang.org/x/net/http2/frame.go:492 +0xa4
github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.(*http2Client).reader(0xc420261080)
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:1195 +0xe1
created by github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.newHTTP2Client
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:273 +0xbf1

goroutine 18 [select]:
github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.loopyWriter(0xfddcc0, 0xc420221100, 0xc4202fd3b0, 0xc420069fb8)
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/transport.go:748 +0x368
github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.newHTTP2Client.func3(0xc420261080)
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:305 +0x5e
created by github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.newHTTP2Client
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:304 +0xd42

goroutine 19 [select]:
github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.(*http2Client).keepalive(0xc420261080)
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:1345 +0x137
created by github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport.newHTTP2Client
/go/src/github.com/hyperledger/fabric/vendor/google.golang.org/grpc/transport/http2_client.go:309 +0xdb5

@andybons andybons added this to the Go1.11 milestone Apr 12, 2018

@andybons

This comment has been minimized.

Copy link
Member

commented Apr 12, 2018

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jul 9, 2018

This looks like a NULL pointer dereference in C code, specifically in the function getpwuid_r while looking up UID 1000. Does a simple C function executing that call work in your Docker container?

@levilk

This comment has been minimized.

Copy link
Author

commented Jul 13, 2018

Unfortunatelly I can't reproduce the error above or test functions. The environment no longer exist.

@levilk levilk closed this Jul 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.