hscloud/bgpwtf/cccampix
Serge Bazanski 187c4bb60a pgpencryptor: potentially fix crash on encyptor close
We seem to be hitting a bug where the encryptor doesn't initialize
because of a lacking gpg binary, and then crashes on .Close().

This should fix the issue, but is untested.

    goroutine 70 [running]:
    code.hackerspace.pl/hscloud/bgpwtf/cccampix/pgpencryptor/gpg.(*CLIEncryptor).Close(0x0)
            bgpwtf/cccampix/pgpencryptor/gpg/gpg.go:144 +0x22
    main.(*service).Encrypt(0xc000345e00, 0x16d13a0, 0xc00047f260, 0x1688400, 0xc00003d4a0)
            bgpwtf/cccampix/pgpencryptor/main.go:132 +0x6f9
    code.hackerspace.pl/hscloud/bgpwtf/cccampix/proto._PGPEncryptor_Encrypt_Handler(0x133bf00, 0xc000345e00, 0x16c6300, 0xc0000d6000, 0x2247b78, 0xc0001f8000)
            bazel-out/k8-fastbuild/bin/bgpwtf/cccampix/proto/linux_amd64_stripped/ix_go_proto%/code.hackerspace.pl/hscloud/bgpwtf/cccampix/proto/ix.pb.go:1816 +0xad
    google.golang.org/grpc.(*Server).processStreamingRPC(0xc000160c00, 0x16d6ce0, 0xc000161500, 0xc0001f8000, 0xc0004244e0, 0x21b00e0, 0xc0000c6ff0, 0x0, 0x0)
            external/org_golang_google_grpc/server.go:1175 +0xacd
    google.golang.org/grpc.(*Server).handleStream(0xc000160c00, 0x16d6ce0, 0xc000161500, 0xc0001f8000, 0xc0000c6ff0)
            external/org_golang_google_grpc/server.go:1254 +0xcbe
    google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc000404770, 0xc000160c00, 0x16d6ce0, 0xc000161500, 0xc0001f8000)
            external/org_golang_google_grpc/server.go:690 +0x9f
    created by google.golang.org/grpc.(*Server).serveStreams.func1
            external/org_golang_google_grpc/server.go:688 +0xa1
    created by google.golang.org/grpc.(*Server).serveStreams.func1
            external/org_golang_google_grpc/server.go:688 +0xa1

Change-Id: Idd167a120e157005f44d255a61ef13dc80e8eeed
2019-08-22 18:14:02 +02:00
..
frontend bgpwtf/cccampix: draw the rest of the fucking owl 2019-08-11 23:43:25 +02:00
irr bgpwtf/cccampix/irr: limit concurrency 2019-08-03 23:49:43 +02:00
kube bgpwtf/cccampix: cronjobify ripe-sync 2019-08-14 14:33:30 +02:00
octorpki bgpwtf/cccampix: draw the rest of the fucking owl 2019-08-11 23:43:25 +02:00
peeringdb bgpwtf/cccampix/peeringdb: allow multiple routers per peer 2019-08-02 13:39:41 +02:00
pgpencryptor pgpencryptor: potentially fix crash on encyptor close 2019-08-22 18:14:02 +02:00
proto bgpwtf/cccampix: fix da build 2019-08-11 23:51:50 +02:00
verifier bgpwtf/cccampix: draw the rest of the fucking owl 2019-08-11 23:43:25 +02:00
BUILD bgpwtf/cccampix: cronjobify ripe-sync 2019-08-14 14:33:30 +02:00
ripe-sync.py bgpwtf/cccampix: cronjobify ripe-sync 2019-08-14 14:33:30 +02:00