bridgecrewio / yor

Extensible auto-tagger for your IaC files. The ultimate way to link entities in the cloud back to the codified resource which created it.
https://www.yor.io
Apache License 2.0
808 stars 123 forks source link

fatal error: concurrent map writes #420

Closed Paxilein closed 8 months ago

Paxilein commented 1 year ago

Describe the bug fatal error: concurrent map writes

To Reproduce Steps to reproduce the behavior:

  1. Run: yor tag --tag-local-modules --skip-tags yor_trace --directory .
  2. Sometimes it works, and sometimes it has the fatal error...

Expected behavior No fatal error...

Screenshots N/A

Desktop (please complete the following information):

Additional context 2023-08-28T22:01:47.8067049Z ========================== Starting Command Output =========================== 2023-08-28T22:01:47.8082194Z [command]/usr/bin/bash /home/vsts/work/_temp/4c1c27d1-d96a-4690-834d-fe391fe6737c.sh 2023-08-28T22:01:47.8135704Z ##[debug]yorMode: git & tags.json 2023-08-28T22:01:47.8136329Z ##[command]/tmp/yor tag --tag-local-modules --skip-tags yor_trace --directory . 2023-08-28T22:01:56.0487490Z 2023/08/28 22:01:56 [WARNING] failed to install provider "azapi" for directory . because of errors no provider exists with the given name 2023-08-28T22:02:02.4822731Z 2023/08/28 22:02:02 [WARNING] failed to parse terraform block because failed to find tags attribute name for resource type time_sleep 2023-08-28T22:02:02.6556337Z fatal error: concurrent map writes 2023-08-28T22:02:02.6631082Z 2023-08-28T22:02:02.6631785Z goroutine 107 [running]: 2023-08-28T22:02:02.6634117Z github.com/go-git/go-git/v5/plumbing/format/idxfile.(MemoryIndex).FindOffset(0xc00068a000, {0x18, 0x4, 0xcb, 0x45, 0x6b, 0x24, 0x3d, 0xd7, 0xa3, ...}) 2023-08-28T22:02:02.6634789Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/format/idxfile/idxfile.go:133 +0x177 2023-08-28T22:02:02.6635457Z github.com/go-git/go-git/v5/plumbing/format/packfile.(Packfile).getObjectType(0xc000ac67d0, 0xc001736f00) 2023-08-28T22:02:02.6636186Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/format/packfile/packfile.go:157 +0x99 2023-08-28T22:02:02.6638073Z github.com/go-git/go-git/v5/plumbing/format/packfile.(Packfile).getNextObject(0xc000ac67d0, 0xc001736f00, {0xe, 0xef, 0x24, 0xa7, 0x11, 0xa2, 0xc7, 0xd4, ...}) 2023-08-28T22:02:02.6638655Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/format/packfile/packfile.go:250 +0x356 2023-08-28T22:02:02.6639159Z github.com/go-git/go-git/v5/plumbing/format/packfile.(Packfile).objectAtOffset(0xc000ac67d0, 0x0?, {0xe, 0xef, 0x24, 0xa7, 0x11, 0xa2, 0xc7, 0xd4, ...}) 2023-08-28T22:02:02.6639608Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/format/packfile/packfile.go:200 +0x13b 2023-08-28T22:02:02.6640014Z github.com/go-git/go-git/v5/plumbing/format/packfile.(Packfile).GetByOffset(0xc000ac67d0, 0x17e18d5185b0d29?) 2023-08-28T22:02:02.6640435Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/format/packfile/packfile.go:91 +0x94 2023-08-28T22:02:02.6640869Z github.com/go-git/go-git/v5/storage/filesystem.(ObjectStorage).decodeObjectAt(0xc000000d38, 0xc000ac67d0, 0xc046a74554?) 2023-08-28T22:02:02.6641288Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/storage/filesystem/object.go:467 +0x105 2023-08-28T22:02:02.6641781Z github.com/go-git/go-git/v5/storage/filesystem.(ObjectStorage).getFromPackfile(0xc000000d38, {0xe, 0xef, 0x24, 0xa7, 0x11, 0xa2, 0xc7, 0xd4, 0x29, ...}, ...) 2023-08-28T22:02:02.6642205Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/storage/filesystem/object.go:448 +0x2ca 2023-08-28T22:02:02.6642666Z github.com/go-git/go-git/v5/storage/filesystem.(ObjectStorage).EncodedObject(0xc000000d38, 0x3, {0xe, 0xef, 0x24, 0xa7, 0x11, 0xa2, 0xc7, 0xd4, ...}) 2023-08-28T22:02:02.6643088Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/storage/filesystem/object.go:317 +0x66 2023-08-28T22:02:02.6643550Z github.com/go-git/go-git/v5/plumbing/object.GetBlob({0x2d5ea50?, 0xc000000d20?}, {0xe, 0xef, 0x24, 0xa7, 0x11, 0xa2, 0xc7, 0xd4, ...}) 2023-08-28T22:02:02.6644189Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/object/blob.go:23 +0x3f 2023-08-28T22:02:02.6645153Z github.com/go-git/go-git/v5/plumbing/object.(Tree).File(0xc000ac6500, {0xc00160eac0, 0x32}) 2023-08-28T22:02:02.6795203Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/object/tree.go:79 +0xa7 2023-08-28T22:02:02.6796497Z github.com/go-git/go-git/v5/plumbing/object.(Commit).File(0xc00177f720?, {0xc00160eac0, 0x32}) 2023-08-28T22:02:02.6797086Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/object/commit.go:141 +0x86 2023-08-28T22:02:02.6797919Z github.com/go-git/go-git/v5.parentsContainingPath({0xc00160eac0, 0x32}, 0xc001742000) 2023-08-28T22:02:02.6798600Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/references.go:130 +0x1e5 2023-08-28T22:02:02.6800492Z github.com/go-git/go-git/v5.walkGraph(0xc00177f8c0, 0xc00177f8a8, 0xc001742000, {0xc00160eac0, 0x32}) 2023-08-28T22:02:02.6801045Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/references.go:81 +0xab 2023-08-28T22:02:02.6801500Z github.com/go-git/go-git/v5.references(0x134c360?, {0xc00160eac0, 0x32}) 2023-08-28T22:02:02.6801970Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/references.go:30 +0xe9 2023-08-28T22:02:02.6802633Z github.com/go-git/go-git/v5.(blame).fillRevs(...) 2023-08-28T22:02:02.6804810Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/blame.go:167 2023-08-28T22:02:02.6805279Z github.com/go-git/go-git/v5.Blame(0xc001742000, {0xc00160eac0, 0x32}) 2023-08-28T22:02:02.6805744Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/blame.go:68 +0x90 2023-08-28T22:02:02.6806133Z github.com/bridgecrewio/yor/src/common/gitservice.(GitService).GetFileBlame(0xc000506380, {0xc0006bc630, 0x12}) 2023-08-28T22:02:02.6806635Z /actions-runner/_work/yor/yor/src/common/gitservice/git_service.go:167 +0x469 2023-08-28T22:02:02.6807266Z github.com/bridgecrewio/yor/src/common/tagging/gittag.(TagGroup).initFileMapping(0xc0001731f0, {0xc0006bc630, 0x12}) 2023-08-28T22:02:02.6807978Z /actions-runner/_work/yor/yor/src/common/tagging/gittag/git_tag_group.go:64 +0x39 2023-08-28T22:02:02.6808300Z github.com/bridgecrewio/yor/src/common/tagging/gittag.(TagGroup).CreateTagsForBlock(0xc0001731f0, {0x2d66fe8, 0xc0007771e0}) 2023-08-28T22:02:02.6808686Z /actions-runner/_work/yor/yor/src/common/tagging/gittag/git_tag_group.go:74 +0x5a 2023-08-28T22:02:02.6808949Z github.com/bridgecrewio/yor/src/common/runner.(Runner).TagFile(0xc0000c7ad0, {0xc0006bc630, 0x12}) 2023-08-28T22:02:02.6809290Z /actions-runner/_work/yor/yor/src/common/runner/runner.go:196 +0x8ce 2023-08-28T22:02:02.6809539Z github.com/bridgecrewio/yor/src/common/runner.(Runner).worker(0x0?, 0x0?, 0x0?) 2023-08-28T22:02:02.6809862Z /actions-runner/_work/yor/yor/src/common/runner/runner.go:113 +0x45 2023-08-28T22:02:02.6810118Z created by github.com/bridgecrewio/yor/src/common/runner.(Runner).TagDirectory 2023-08-28T22:02:02.6810436Z /actions-runner/_work/yor/yor/src/common/runner/runner.go:138 +0x125 2023-08-28T22:02:02.6810554Z 2023-08-28T22:02:02.6810687Z goroutine 1 [semacquire]: 2023-08-28T22:02:02.6810869Z sync.runtime_Semacquire(0xc000403788?) 2023-08-28T22:02:02.6811174Z /actions-runner/_work/_tool/go/1.19.11/x64/src/runtime/sema.go:62 +0x25 2023-08-28T22:02:02.6811393Z sync.(WaitGroup).Wait(0xc0002ff4a0?) 2023-08-28T22:02:02.6811703Z /actions-runner/_work/_tool/go/1.19.11/x64/src/sync/waitgroup.go:139 +0x52 2023-08-28T22:02:02.6811955Z github.com/bridgecrewio/yor/src/common/runner.(Runner).TagDirectory(0xc0000c7ad0) 2023-08-28T22:02:02.6812285Z /actions-runner/_work/yor/yor/src/common/runner/runner.go:145 +0x1f4 2023-08-28T22:02:02.6812493Z main.tag(0xc000119200, 0x29cc847?) 2023-08-28T22:02:02.6812753Z /actions-runner/_work/yor/yor/main.go:271 +0x12f 2023-08-28T22:02:02.6812950Z main.tagCommand.func1(0xc0005e66c0?) 2023-08-28T22:02:02.6813203Z /actions-runner/_work/yor/yor/main.go:126 +0x885 2023-08-28T22:02:02.6813425Z github.com/urfave/cli/v2.(Command).Run(0xc000118120, 0xc000556640) 2023-08-28T22:02:02.6813666Z /root/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 +0x5dc 2023-08-28T22:02:02.6814193Z github.com/urfave/cli/v2.(App).RunContext(0xc0005056c0, {0x2d5b200?, 0xc000062958}, {0xc000052070, 0x7, 0x7}) 2023-08-28T22:02:02.6814463Z /root/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 +0xb7d 2023-08-28T22:02:02.6814659Z github.com/urfave/cli/v2.(App).Run(...) 2023-08-28T22:02:02.6814869Z /root/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224 2023-08-28T22:02:02.6815049Z main.main() 2023-08-28T22:02:02.6815294Z /actions-runner/_work/yor/yor/main.go:36 +0x20c 2023-08-28T22:02:02.6815384Z 2023-08-28T22:02:02.6815523Z goroutine 6 [select]: 2023-08-28T22:02:02.6815714Z go.opencensus.io/stats/view.(worker).start(0xc0000b3e50) 2023-08-28T22:02:02.6815936Z /root/go/pkg/mod/go.opencensus.io@v0.22.0/stats/view/worker.go:154 +0xad 2023-08-28T22:02:02.6816244Z created by go.opencensus.io/stats/view.init.0 2023-08-28T22:02:02.6816465Z /root/go/pkg/mod/go.opencensus.io@v0.22.0/stats/view/worker.go:32 +0x85 2023-08-28T22:02:02.6816574Z 2023-08-28T22:02:02.6816713Z goroutine 122 [select]: 2023-08-28T22:02:02.6816926Z google.golang.org/grpc/internal/transport.(Stream).waitOnHeader(0xc0003cdf00) 2023-08-28T22:02:02.6817194Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/transport.go:318 +0x7c 2023-08-28T22:02:02.6817441Z google.golang.org/grpc/internal/transport.(Stream).RecvCompress(...) 2023-08-28T22:02:02.6817694Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/transport.go:333 2023-08-28T22:02:02.6817978Z google.golang.org/grpc.(csAttempt).recvMsg(0xc000e70380, {0x2740640?, 0xc000bf0b80}, 0xc000bf0b80?) 2023-08-28T22:02:02.6818248Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:871 +0xba 2023-08-28T22:02:02.6818479Z google.golang.org/grpc.(clientStream).RecvMsg.func1(0x0?) 2023-08-28T22:02:02.6818699Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:736 +0x25 2023-08-28T22:02:02.6818958Z google.golang.org/grpc.(clientStream).withRetry(0xc000c9d9e0, 0xc000886e88, 0xc000886e58) 2023-08-28T22:02:02.6819219Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:594 +0xd3 2023-08-28T22:02:02.6819473Z google.golang.org/grpc.(clientStream).RecvMsg(0xc000c9d9e0, {0x2740640?, 0xc000bf0b80?}) 2023-08-28T22:02:02.6819730Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:735 +0x11f 2023-08-28T22:02:02.6820104Z github.com/hashicorp/go-plugin/internal/plugin.(gRPCStdioStreamStdioClient).Recv(0xc000d6eef0) 2023-08-28T22:02:02.6820483Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/internal/plugin/grpc_stdio.pb.go:160 +0x4c 2023-08-28T22:02:02.6820914Z github.com/hashicorp/go-plugin.(grpcStdioClient).Run(0xc0012ad200, {0x2d4c040, 0x3c13a20}, {0x2d4c040, 0x3c13a20}) 2023-08-28T22:02:02.6821290Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_stdio.go:132 +0xef 2023-08-28T22:02:02.6821600Z created by github.com/hashicorp/go-plugin.newGRPCClient 2023-08-28T22:02:02.6821931Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_client.go:69 +0x425 2023-08-28T22:02:02.6822046Z 2023-08-28T22:02:02.6822183Z goroutine 26 [IO wait]: 2023-08-28T22:02:02.6822361Z internal/poll.runtime_pollWait(0x7fb14675ff58, 0x72) 2023-08-28T22:02:02.6822684Z /actions-runner/_work/_tool/go/1.19.11/x64/src/runtime/netpoll.go:305 +0x89 2023-08-28T22:02:02.6822929Z internal/poll.(pollDesc).wait(0xc0001e1f80?, 0xc0006b2000?, 0x0) 2023-08-28T22:02:02.6823289Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32 2023-08-28T22:02:02.6823522Z internal/poll.(pollDesc).waitRead(...) 2023-08-28T22:02:02.6823839Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:89 2023-08-28T22:02:02.6824097Z internal/poll.(FD).Read(0xc0001e1f80, {0xc0006b2000, 0x3500, 0x3500}) 2023-08-28T22:02:02.6824446Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_unix.go:167 +0x25a 2023-08-28T22:02:02.6824700Z net.(netFD).Read(0xc0001e1f80, {0xc0006b2000?, 0x50?, 0x7fb147bf3fff?}) 2023-08-28T22:02:02.6825123Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/fd_posix.go:55 +0x29 2023-08-28T22:02:02.6825357Z net.(conn).Read(0xc0001802b8, {0xc0006b2000?, 0x40?, 0x7fb1446f4698?}) 2023-08-28T22:02:02.6825678Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/net.go:183 +0x45 2023-08-28T22:02:02.6825926Z crypto/tls.(atLeastReader).Read(0xc00089c030, {0xc0006b2000?, 0x0?, 0xe653b0?}) 2023-08-28T22:02:02.6826261Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:787 +0x3d 2023-08-28T22:02:02.6826508Z bytes.(Buffer).ReadFrom(0xc0002af778, {0x2d3fca0, 0xc00089c030}) 2023-08-28T22:02:02.6826817Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bytes/buffer.go:202 +0x98 2023-08-28T22:02:02.6827071Z crypto/tls.(Conn).readFromUntil(0xc0002af500, {0x2d4a460?, 0xc0001802b8}, 0x18?) 2023-08-28T22:02:02.6827479Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:809 +0xe5 2023-08-28T22:02:02.6827714Z crypto/tls.(Conn).readRecordOrCCS(0xc0002af500, 0x0) 2023-08-28T22:02:02.6828141Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:616 +0x116 2023-08-28T22:02:02.6828356Z crypto/tls.(Conn).readRecord(...) 2023-08-28T22:02:02.6828640Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:582 2023-08-28T22:02:02.6828886Z crypto/tls.(Conn).Read(0xc0002af500, {0xc000384000, 0x1000, 0x146b4c0?}) 2023-08-28T22:02:02.6829224Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:1315 +0x16f 2023-08-28T22:02:02.6829476Z bufio.(Reader).Read(0xc0005037a0, {0xc0003377e0, 0x9, 0x1479e65?}) 2023-08-28T22:02:02.6829804Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bufio/bufio.go:237 +0x1bb 2023-08-28T22:02:02.6830035Z io.ReadAtLeast({0x2d3f9c0, 0xc0005037a0}, {0xc0003377e0, 0x9, 0x9}, 0x9) 2023-08-28T22:02:02.6830351Z /actions-runner/_work/_tool/go/1.19.11/x64/src/io/io.go:332 +0x9a 2023-08-28T22:02:02.6830544Z io.ReadFull(...) 2023-08-28T22:02:02.6830809Z /actions-runner/_work/_tool/go/1.19.11/x64/src/io/io.go:351 2023-08-28T22:02:02.6831060Z net/http.http2readFrameHeader({0xc0003377e0?, 0x9?, 0xc0003a00f0?}, {0x2d3f9c0?, 0xc0005037a0?}) 2023-08-28T22:02:02.6831430Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:1565 +0x6e 2023-08-28T22:02:02.6831663Z net/http.(http2Framer).ReadFrame(0xc0003377a0) 2023-08-28T22:02:02.6831991Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:1829 +0x95 2023-08-28T22:02:02.6832232Z net/http.(http2clientConnReadLoop).run(0xc000407f98) 2023-08-28T22:02:02.6832551Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:8874 +0x130 2023-08-28T22:02:02.6832785Z net/http.(http2ClientConn).readLoop(0xc000158c00) 2023-08-28T22:02:02.6833107Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:8770 +0x6f 2023-08-28T22:02:02.6833351Z created by net/http.(http2Transport).newClientConn 2023-08-28T22:02:02.6833679Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:7477 +0xaaa 2023-08-28T22:02:02.6833794Z 2023-08-28T22:02:02.6833933Z goroutine 32 [IO wait]: 2023-08-28T22:02:02.6834130Z internal/poll.runtime_pollWait(0x7fb14675fd78, 0x72) 2023-08-28T22:02:02.6834438Z /actions-runner/_work/_tool/go/1.19.11/x64/src/runtime/netpoll.go:305 +0x89 2023-08-28T22:02:02.6834680Z internal/poll.(pollDesc).wait(0xc0001e0300?, 0xc0002b4000?, 0x0) 2023-08-28T22:02:02.6835042Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32 2023-08-28T22:02:02.6835276Z internal/poll.(pollDesc).waitRead(...) 2023-08-28T22:02:02.6835602Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:89 2023-08-28T22:02:02.6835845Z internal/poll.(FD).Read(0xc0001e0300, {0xc0002b4000, 0xa000, 0xa000}) 2023-08-28T22:02:02.6836186Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_unix.go:167 +0x25a 2023-08-28T22:02:02.6836455Z net.(netFD).Read(0xc0001e0300, {0xc0002b4000?, 0xc00079e200?, 0xc0002b4005?}) 2023-08-28T22:02:02.6836788Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/fd_posix.go:55 +0x29 2023-08-28T22:02:02.6837108Z net.(conn).Read(0xc0005509c8, {0xc0002b4000?, 0x1fd4?, 0xc00079e200?}) 2023-08-28T22:02:02.6837646Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/net.go:183 +0x45 2023-08-28T22:02:02.6837909Z crypto/tls.(atLeastReader).Read(0xc000109ae8, {0xc0002b4000?, 0x0?, 0xf6f088?}) 2023-08-28T22:02:02.6838256Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:787 +0x3d 2023-08-28T22:02:02.6838503Z bytes.(Buffer).ReadFrom(0xc0003f25f8, {0x2d3fca0, 0xc000109ae8}) 2023-08-28T22:02:02.6838828Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bytes/buffer.go:202 +0x98 2023-08-28T22:02:02.6839075Z crypto/tls.(Conn).readFromUntil(0xc0003f2380, {0x2d4a460?, 0xc0005509c8}, 0xa000?) 2023-08-28T22:02:02.6839420Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:809 +0xe5 2023-08-28T22:02:02.6839742Z crypto/tls.(Conn).readRecordOrCCS(0xc0003f2380, 0x0) 2023-08-28T22:02:02.6840067Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:616 +0x116 2023-08-28T22:02:02.6840283Z crypto/tls.(Conn).readRecord(...) 2023-08-28T22:02:02.6840567Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:582 2023-08-28T22:02:02.6840975Z crypto/tls.(Conn).Read(0xc0003f2380, {0xc0003b8000, 0x1000, 0x146b4c0?}) 2023-08-28T22:02:02.6841316Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:1315 +0x16f 2023-08-28T22:02:02.6841564Z bufio.(Reader).Read(0xc0004ea4e0, {0xc0004b44a0, 0x9, 0x1479e65?}) 2023-08-28T22:02:02.6841893Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bufio/bufio.go:237 +0x1bb 2023-08-28T22:02:02.6842126Z io.ReadAtLeast({0x2d3f9c0, 0xc0004ea4e0}, {0xc0004b44a0, 0x9, 0x9}, 0x9) 2023-08-28T22:02:02.6842446Z /actions-runner/_work/_tool/go/1.19.11/x64/src/io/io.go:332 +0x9a 2023-08-28T22:02:02.6842646Z io.ReadFull(...) 2023-08-28T22:02:02.6842914Z /actions-runner/_work/_tool/go/1.19.11/x64/src/io/io.go:351 2023-08-28T22:02:02.6843168Z net/http.http2readFrameHeader({0xc0004b44a0?, 0x9?, 0xc0001fc960?}, {0x2d3f9c0?, 0xc0004ea4e0?}) 2023-08-28T22:02:02.6843524Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:1565 +0x6e 2023-08-28T22:02:02.6843756Z net/http.(http2Framer).ReadFrame(0xc0004b4460) 2023-08-28T22:02:02.6844084Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:1829 +0x95 2023-08-28T22:02:02.6844327Z net/http.(http2clientConnReadLoop).run(0xc0006e4f98) 2023-08-28T22:02:02.6844663Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:8874 +0x130 2023-08-28T22:02:02.6844885Z net/http.(http2ClientConn).readLoop(0xc000158f00) 2023-08-28T22:02:02.6845214Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:8770 +0x6f 2023-08-28T22:02:02.6845448Z created by net/http.(http2Transport).newClientConn 2023-08-28T22:02:02.6845787Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:7477 +0xaaa 2023-08-28T22:02:02.6845901Z 2023-08-28T22:02:02.6846044Z goroutine 109 [IO wait]: 2023-08-28T22:02:02.6846239Z internal/poll.runtime_pollWait(0x7fb14675fe68, 0x72) 2023-08-28T22:02:02.6846555Z /actions-runner/_work/_tool/go/1.19.11/x64/src/runtime/netpoll.go:305 +0x89 2023-08-28T22:02:02.6846797Z internal/poll.(pollDesc).wait(0xc000d86e80?, 0xc000f3c000?, 0x0) 2023-08-28T22:02:02.6847167Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32 2023-08-28T22:02:02.6847402Z internal/poll.(pollDesc).waitRead(...) 2023-08-28T22:02:02.6847729Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:89 2023-08-28T22:02:02.6847993Z internal/poll.(FD).Read(0xc000d86e80, {0xc000f3c000, 0x1980, 0x1980}) 2023-08-28T22:02:02.6848336Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_unix.go:167 +0x25a 2023-08-28T22:02:02.6848583Z net.(netFD).Read(0xc000d86e80, {0xc000f3c000?, 0xe67773?, 0x0?}) 2023-08-28T22:02:02.6848912Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/fd_posix.go:55 +0x29 2023-08-28T22:02:02.6849156Z net.(conn).Read(0xc000551030, {0xc000f3c000?, 0x0?, 0xc000887800?}) 2023-08-28T22:02:02.6849564Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/net.go:183 +0x45 2023-08-28T22:02:02.6849794Z crypto/tls.(atLeastReader).Read(0xc000b60000, {0xc000f3c000?, 0x0?, 0x0?}) 2023-08-28T22:02:02.6850128Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:787 +0x3d 2023-08-28T22:02:02.6850368Z bytes.(Buffer).ReadFrom(0xc000dea5f8, {0x2d3fca0, 0xc000b60000}) 2023-08-28T22:02:02.6850694Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bytes/buffer.go:202 +0x98 2023-08-28T22:02:02.6850947Z crypto/tls.(Conn).readFromUntil(0xc000dea380, {0x2d4a460?, 0xc000551030}, 0x0?) 2023-08-28T22:02:02.6851275Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:809 +0xe5 2023-08-28T22:02:02.6851507Z crypto/tls.(Conn).readRecordOrCCS(0xc000dea380, 0x0) 2023-08-28T22:02:02.6851905Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:616 +0x116 2023-08-28T22:02:02.6852118Z crypto/tls.(Conn).readRecord(...) 2023-08-28T22:02:02.6852416Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:582 2023-08-28T22:02:02.6852652Z crypto/tls.(Conn).Read(0xc000dea380, {0xc001628000, 0x1000, 0xe5cfdf?}) 2023-08-28T22:02:02.6852991Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:1315 +0x16f 2023-08-28T22:02:02.6853237Z bufio.(Reader).Read(0xc001603500, {0xc0003f03c0, 0x9, 0xc000887cd8?}) 2023-08-28T22:02:02.6853563Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bufio/bufio.go:237 +0x1bb 2023-08-28T22:02:02.6853811Z io.ReadAtLeast({0x2d3f9c0, 0xc001603500}, {0xc0003f03c0, 0x9, 0x9}, 0x9) 2023-08-28T22:02:02.6854113Z /actions-runner/_work/_tool/go/1.19.11/x64/src/io/io.go:332 +0x9a 2023-08-28T22:02:02.6854303Z io.ReadFull(...) 2023-08-28T22:02:02.6854569Z /actions-runner/_work/_tool/go/1.19.11/x64/src/io/io.go:351 2023-08-28T22:02:02.6854829Z net/http.http2readFrameHeader({0xc0003f03c0?, 0x9?, 0xc000887da0?}, {0x2d3f9c0?, 0xc001603500?}) 2023-08-28T22:02:02.6855190Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:1565 +0x6e 2023-08-28T22:02:02.6855412Z net/http.(http2Framer).ReadFrame(0xc0003f0380) 2023-08-28T22:02:02.6855740Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:1829 +0x95 2023-08-28T22:02:02.6855979Z net/http.(http2clientConnReadLoop).run(0xc000887f98) 2023-08-28T22:02:02.6856307Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:8874 +0x130 2023-08-28T22:02:02.6856543Z net/http.(http2ClientConn).readLoop(0xc001626000) 2023-08-28T22:02:02.6856855Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:8770 +0x6f 2023-08-28T22:02:02.6857090Z created by net/http.(http2Transport).newClientConn 2023-08-28T22:02:02.6857417Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/http/h2_bundle.go:7477 +0xaaa 2023-08-28T22:02:02.6857531Z 2023-08-28T22:02:02.6857672Z goroutine 104 [runnable]: 2023-08-28T22:02:02.6857875Z strconv.ParseUint({0xc000724950, 0xa}, 0xc001f7f668?, 0xea31c9?) 2023-08-28T22:02:02.6858200Z /actions-runner/_work/_tool/go/1.19.11/x64/src/strconv/atoi.go:158 +0x53b 2023-08-28T22:02:02.6858415Z strconv.ParseInt({0xc000724950, 0xa}, 0xa?, 0x40) 2023-08-28T22:02:02.6858723Z /actions-runner/_work/_tool/go/1.19.11/x64/src/strconv/atoi.go:205 +0x92 2023-08-28T22:02:02.6859136Z github.com/go-git/go-git/v5/plumbing/object.(Signature).decodeTimeAndTimeZone(0xc000ac35a8, {0xc00178d75c, 0x10, 0x11}) 2023-08-28T22:02:02.6859539Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/object/object.go:130 +0xb4 2023-08-28T22:02:02.6859942Z github.com/go-git/go-git/v5/plumbing/object.(Signature).Decode(0xc000ac35a8, {0xc00178d727, 0x45, 0x46}) 2023-08-28T22:02:02.6860317Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/object/object.go:107 +0x1bb 2023-08-28T22:02:02.6860714Z github.com/go-git/go-git/v5/plumbing/object.(Commit).Decode(0xc000ac3590, {0x2d607b0, 0xc0004c27c0}) 2023-08-28T22:02:02.6861097Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/object/commit.go:226 +0x63b 2023-08-28T22:02:02.6861591Z github.com/go-git/go-git/v5/plumbing/object.DecodeCommit({0x2d5ea50?, 0xc000000d20}, {0x2d607b0, 0xc0004c27c0}) 2023-08-28T22:02:02.6861979Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/object/commit.go:67 +0x87 2023-08-28T22:02:02.6862430Z github.com/go-git/go-git/v5/plumbing/object.GetCommit({0x2d5ea50, 0xc000000d20}, {0x50, 0x8, 0xd3, 0xf, 0xe9, 0x6c, 0x71, 0xb4, ...}) 2023-08-28T22:02:02.6862820Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/plumbing/object/commit.go:60 +0x6c 2023-08-28T22:02:02.6863137Z github.com/go-git/go-git/v5.(Repository).CommitObject(...) 2023-08-28T22:02:02.6863460Z /root/go/pkg/mod/github.com/go-git/go-git/v5@v5.2.0/repository.go:1334 2023-08-28T22:02:02.6863735Z github.com/bridgecrewio/yor/src/common/gitservice.GetPreviousBlameResult(0xc000506380, {0xc0008fc000, 0xc}) 2023-08-28T22:02:02.6864145Z /actions-runner/_work/yor/yor/src/common/gitservice/blame.go:32 +0x105 2023-08-28T22:02:02.6864440Z github.com/bridgecrewio/yor/src/common/gitservice.NewGitBlame({0xc0012b16b0, 0x2c}, {0xc0008fc000, 0xc}, {0x3?, 0xd4d?}, 0xc0009df100, 0xc000506380) 2023-08-28T22:02:02.6864827Z /actions-runner/_work/yor/yor/src/common/gitservice/blame.go:56 +0x1a5 2023-08-28T22:02:02.6865140Z github.com/bridgecrewio/yor/src/common/gitservice.(GitService).GetBlameForFileLines(0xc000506380, {0xc0008fc000, 0xc}, {0xc0017cfa10?, 0xc0017cfa40?}) 2023-08-28T22:02:02.6865549Z /actions-runner/_work/yor/yor/src/common/gitservice/git_service.go:120 +0x1dd 2023-08-28T22:02:02.6865845Z github.com/bridgecrewio/yor/src/common/tagging/gittag.(TagGroup).CreateTagsForBlock(0xc0001731f0, {0x2d66fe8, 0xc0007f3130}) 2023-08-28T22:02:02.6866237Z /actions-runner/_work/yor/yor/src/common/tagging/gittag/git_tag_group.go:79 +0xed 2023-08-28T22:02:02.6866498Z github.com/bridgecrewio/yor/src/common/runner.(Runner).TagFile(0xc0000c7ad0, {0xc0008fc000, 0xc}) 2023-08-28T22:02:02.6866842Z /actions-runner/_work/yor/yor/src/common/runner/runner.go:196 +0x8ce 2023-08-28T22:02:02.6867095Z github.com/bridgecrewio/yor/src/common/runner.(Runner).worker(0x147186a?, 0x0?, 0x0?) 2023-08-28T22:02:02.6867423Z /actions-runner/_work/yor/yor/src/common/runner/runner.go:113 +0x45 2023-08-28T22:02:02.6867671Z created by github.com/bridgecrewio/yor/src/common/runner.(Runner).TagDirectory 2023-08-28T22:02:02.6867995Z /actions-runner/_work/yor/yor/src/common/runner/runner.go:138 +0x125 2023-08-28T22:02:02.6868099Z 2023-08-28T22:02:02.6868238Z goroutine 145 [IO wait]: 2023-08-28T22:02:02.6868415Z internal/poll.runtime_pollWait(0x7fb14675faa8, 0x72) 2023-08-28T22:02:02.6868739Z /actions-runner/_work/_tool/go/1.19.11/x64/src/runtime/netpoll.go:305 +0x89 2023-08-28T22:02:02.6868982Z internal/poll.(pollDesc).wait(0xc000ba4240?, 0xc000a62000?, 0x1) 2023-08-28T22:02:02.6869336Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32 2023-08-28T22:02:02.6869570Z internal/poll.(pollDesc).waitRead(...) 2023-08-28T22:02:02.6869880Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:89 2023-08-28T22:02:02.6870142Z internal/poll.(FD).Read(0xc000ba4240, {0xc000a62000, 0x10000, 0x10000}) 2023-08-28T22:02:02.6870489Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_unix.go:167 +0x25a 2023-08-28T22:02:02.6870697Z os.(File).read(...) 2023-08-28T22:02:02.6870975Z /actions-runner/_work/_tool/go/1.19.11/x64/src/os/file_posix.go:31 2023-08-28T22:02:02.6871206Z os.(File).Read(0xc000ede030, {0xc000a62000?, 0x18?, 0xc000f3bda8?}) 2023-08-28T22:02:02.6871524Z /actions-runner/_work/_tool/go/1.19.11/x64/src/os/file.go:119 +0x5e 2023-08-28T22:02:02.6871732Z bufio.(Reader).fill(0xc000882f40) 2023-08-28T22:02:02.6872037Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bufio/bufio.go:106 +0xff 2023-08-28T22:02:02.6872259Z bufio.(Reader).ReadSlice(0xc000882f40, 0x0?) 2023-08-28T22:02:02.6872557Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bufio/bufio.go:372 +0x2f 2023-08-28T22:02:02.6872779Z bufio.(Reader).ReadLine(0xc000882f40) 2023-08-28T22:02:02.6873083Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bufio/bufio.go:401 +0x27 2023-08-28T22:02:02.6873518Z github.com/hashicorp/go-plugin.(Client).logStderr(0xc0007f2370, {0x2d4a7c0?, 0xc000ede030?}) 2023-08-28T22:02:02.6873874Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/client.go:968 +0x2ad 2023-08-28T22:02:02.6874168Z created by github.com/hashicorp/go-plugin.(Client).Start 2023-08-28T22:02:02.6874493Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/client.go:604 +0x149e 2023-08-28T22:02:02.6874603Z 2023-08-28T22:02:02.6874753Z goroutine 146 [semacquire]: 2023-08-28T22:02:02.6874926Z sync.runtime_Semacquire(0x0?) 2023-08-28T22:02:02.6875222Z /actions-runner/_work/_tool/go/1.19.11/x64/src/runtime/sema.go:62 +0x25 2023-08-28T22:02:02.6875428Z sync.(WaitGroup).Wait(0x0?) 2023-08-28T22:02:02.6875787Z /actions-runner/_work/_tool/go/1.19.11/x64/src/sync/waitgroup.go:139 +0x52 2023-08-28T22:02:02.6876090Z github.com/hashicorp/go-plugin.(Client).Start.func2() 2023-08-28T22:02:02.6876413Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/client.go:620 +0xcb 2023-08-28T22:02:02.6876720Z created by github.com/hashicorp/go-plugin.(Client).Start 2023-08-28T22:02:02.6877044Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/client.go:607 +0x1510 2023-08-28T22:02:02.6877152Z 2023-08-28T22:02:02.6877289Z goroutine 147 [IO wait]: 2023-08-28T22:02:02.6878413Z internal/poll.runtime_pollWait(0x7fb14675fc88, 0x72) 2023-08-28T22:02:02.6878757Z /actions-runner/_work/_tool/go/1.19.11/x64/src/runtime/netpoll.go:305 +0x89 2023-08-28T22:02:02.6879001Z internal/poll.(pollDesc).wait(0xc000ba4180?, 0xc00097c33a?, 0x1) 2023-08-28T22:02:02.6879357Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32 2023-08-28T22:02:02.6879604Z internal/poll.(pollDesc).waitRead(...) 2023-08-28T22:02:02.6879920Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:89 2023-08-28T22:02:02.6880177Z internal/poll.(FD).Read(0xc000ba4180, {0xc00097c33a, 0xcc6, 0xcc6}) 2023-08-28T22:02:02.6880526Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_unix.go:167 +0x25a 2023-08-28T22:02:02.6880731Z os.(File).read(...) 2023-08-28T22:02:02.6881011Z /actions-runner/_work/_tool/go/1.19.11/x64/src/os/file_posix.go:31 2023-08-28T22:02:02.6881242Z os.(File).Read(0xc000ede018, {0xc00097c33a?, 0xc000087ea0?, 0xe557e5?}) 2023-08-28T22:02:02.6881562Z /actions-runner/_work/_tool/go/1.19.11/x64/src/os/file.go:119 +0x5e 2023-08-28T22:02:02.6881771Z bufio.(Scanner).Scan(0xc000087f40) 2023-08-28T22:02:02.6882079Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bufio/scan.go:214 +0x876 2023-08-28T22:02:02.6882374Z github.com/hashicorp/go-plugin.(Client).Start.func3() 2023-08-28T22:02:02.6882685Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/client.go:653 +0x133 2023-08-28T22:02:02.6882993Z created by github.com/hashicorp/go-plugin.(Client).Start 2023-08-28T22:02:02.6883319Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/client.go:648 +0x15cf 2023-08-28T22:02:02.6883433Z 2023-08-28T22:02:02.6883578Z goroutine 148 [chan receive]: 2023-08-28T22:02:02.6883841Z github.com/hashicorp/go-plugin.(Client).Start.func4.1() 2023-08-28T22:02:02.6884161Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/client.go:666 +0x7f 2023-08-28T22:02:02.6884462Z created by github.com/hashicorp/go-plugin.(Client).Start.func4 2023-08-28T22:02:02.6884786Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/client.go:664 +0x7a 2023-08-28T22:02:02.6884905Z 2023-08-28T22:02:02.6885030Z goroutine 149 [select]: 2023-08-28T22:02:02.6885230Z google.golang.org/grpc.(ccBalancerWrapper).watcher(0xc000bf06c0) 2023-08-28T22:02:02.6885489Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/balancer_conn_wrappers.go:69 +0x8f 2023-08-28T22:02:02.6885734Z created by google.golang.org/grpc.newCCBalancerWrapper 2023-08-28T22:02:02.6885969Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/balancer_conn_wrappers.go:60 +0x1ca 2023-08-28T22:02:02.6886102Z 2023-08-28T22:02:02.6886243Z goroutine 150 [chan receive]: 2023-08-28T22:02:02.6886537Z google.golang.org/grpc.(addrConn).resetTransport(0xc0001ea840) 2023-08-28T22:02:02.6886783Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/clientconn.go:1179 +0x48c 2023-08-28T22:02:02.6887015Z created by google.golang.org/grpc.(addrConn).connect 2023-08-28T22:02:02.6887245Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/clientconn.go:815 +0x136 2023-08-28T22:02:02.6887351Z 2023-08-28T22:02:02.6887490Z goroutine 151 [select]: 2023-08-28T22:02:02.6887791Z github.com/hashicorp/go-plugin.(gRPCBrokerClientImpl).Recv(0xc0007da460?) 2023-08-28T22:02:02.6888121Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_broker.go:231 +0x67 2023-08-28T22:02:02.6888443Z github.com/hashicorp/go-plugin.(GRPCBroker).Run(0xc000932460) 2023-08-28T22:02:02.6888850Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_broker.go:411 +0x44 2023-08-28T22:02:02.6889153Z created by github.com/hashicorp/go-plugin.newGRPCClient 2023-08-28T22:02:02.6889484Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_client.go:61 +0x2c5 2023-08-28T22:02:02.6889598Z 2023-08-28T22:02:02.6889737Z goroutine 152 [select]: 2023-08-28T22:02:02.6889937Z google.golang.org/grpc/internal/transport.(Stream).waitOnHeader(0xc000bcc600) 2023-08-28T22:02:02.6890202Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/transport.go:318 +0x7c 2023-08-28T22:02:02.6890461Z google.golang.org/grpc/internal/transport.(Stream).RecvCompress(...) 2023-08-28T22:02:02.6890714Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/transport.go:333 2023-08-28T22:02:02.6890995Z google.golang.org/grpc.(csAttempt).recvMsg(0xc000e70400, {0x27af5c0?, 0xc000932780}, 0xc000932780?) 2023-08-28T22:02:02.6891263Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:871 +0xba 2023-08-28T22:02:02.6891485Z google.golang.org/grpc.(clientStream).RecvMsg.func1(0x0?) 2023-08-28T22:02:02.6891719Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:736 +0x25 2023-08-28T22:02:02.6891980Z google.golang.org/grpc.(clientStream).withRetry(0xc000c9db00, 0xc000f37e90, 0xc000f37e60) 2023-08-28T22:02:02.6892240Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:590 +0x2f1 2023-08-28T22:02:02.6892495Z google.golang.org/grpc.(clientStream).RecvMsg(0xc000c9db00, {0x27af5c0?, 0xc000932780?}) 2023-08-28T22:02:02.6892737Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:735 +0x11f 2023-08-28T22:02:02.6893103Z github.com/hashicorp/go-plugin/internal/plugin.(gRPCBrokerStartStreamClient).Recv(0xc000694940) 2023-08-28T22:02:02.6893501Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/internal/plugin/grpc_broker.pb.go:132 +0x4c 2023-08-28T22:02:02.6893868Z github.com/hashicorp/go-plugin.(gRPCBrokerClientImpl).StartStream(0xc000bf0780) 2023-08-28T22:02:02.6894222Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_broker.go:194 +0x1d8 2023-08-28T22:02:02.6894516Z created by github.com/hashicorp/go-plugin.newGRPCClient 2023-08-28T22:02:02.6894851Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_client.go:62 +0x305 2023-08-28T22:02:02.6894980Z 2023-08-28T22:02:02.6895110Z goroutine 121 [select]: 2023-08-28T22:02:02.6895297Z google.golang.org/grpc.newClientStream.func5() 2023-08-28T22:02:02.6895522Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:319 +0x92 2023-08-28T22:02:02.6895745Z created by google.golang.org/grpc.newClientStream 2023-08-28T22:02:02.6895956Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:318 +0x1365 2023-08-28T22:02:02.6896076Z 2023-08-28T22:02:02.6896214Z goroutine 154 [IO wait]: 2023-08-28T22:02:02.6896392Z internal/poll.runtime_pollWait(0x7fb14675f9b8, 0x72) 2023-08-28T22:02:02.6896716Z /actions-runner/_work/_tool/go/1.19.11/x64/src/runtime/netpoll.go:305 +0x89 2023-08-28T22:02:02.6896963Z internal/poll.(pollDesc).wait(0xc000e70480?, 0xc000cd6000?, 0x0) 2023-08-28T22:02:02.6897321Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:84 +0x32 2023-08-28T22:02:02.6897556Z internal/poll.(pollDesc).waitRead(...) 2023-08-28T22:02:02.6897932Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_poll_runtime.go:89 2023-08-28T22:02:02.6898193Z internal/poll.(FD).Read(0xc000e70480, {0xc000cd6000, 0xa000, 0xa000}) 2023-08-28T22:02:02.6898540Z /actions-runner/_work/_tool/go/1.19.11/x64/src/internal/poll/fd_unix.go:167 +0x25a 2023-08-28T22:02:02.6898802Z net.(netFD).Read(0xc000e70480, {0xc000cd6000?, 0xc0012acfe0?, 0xc000cd6005?}) 2023-08-28T22:02:02.6899137Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/fd_posix.go:55 +0x29 2023-08-28T22:02:02.6899361Z net.(conn).Read(0xc000ede0a0, {0xc000cd6000?, 0x2000?, 0x0?}) 2023-08-28T22:02:02.6899672Z /actions-runner/_work/_tool/go/1.19.11/x64/src/net/net.go:183 +0x45 2023-08-28T22:02:02.6899987Z crypto/tls.(atLeastReader).Read(0xc000b9c618, {0xc000cd6000?, 0x0?, 0x10000000e670cb?}) 2023-08-28T22:02:02.6900334Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:787 +0x3d 2023-08-28T22:02:02.6900576Z bytes.(Buffer).ReadFrom(0xc000868278, {0x2d3fca0, 0xc000b9c618}) 2023-08-28T22:02:02.6900891Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bytes/buffer.go:202 +0x98 2023-08-28T22:02:02.6901147Z crypto/tls.(Conn).readFromUntil(0xc000868000, {0x2d4a4a0?, 0xc000ede0a0}, 0xa000?) 2023-08-28T22:02:02.6901488Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:809 +0xe5 2023-08-28T22:02:02.6901720Z crypto/tls.(Conn).readRecordOrCCS(0xc000868000, 0x0) 2023-08-28T22:02:02.6902042Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:616 +0x116 2023-08-28T22:02:02.6902243Z crypto/tls.(Conn).readRecord(...) 2023-08-28T22:02:02.6902538Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:582 2023-08-28T22:02:02.6902786Z crypto/tls.(Conn).Read(0xc000868000, {0xc000a88000, 0x8000, 0xc00006a0a0?}) 2023-08-28T22:02:02.6903130Z /actions-runner/_work/_tool/go/1.19.11/x64/src/crypto/tls/conn.go:1315 +0x16f 2023-08-28T22:02:02.6903367Z bufio.(Reader).Read(0xc000ba53e0, {0xc000d96818, 0x9, 0x18?}) 2023-08-28T22:02:02.6903679Z /actions-runner/_work/_tool/go/1.19.11/x64/src/bufio/bufio.go:237 +0x1bb 2023-08-28T22:02:02.6903928Z io.ReadAtLeast({0x2d3f9c0, 0xc000ba53e0}, {0xc000d96818, 0x9, 0x9}, 0x9) 2023-08-28T22:02:02.6904248Z /actions-runner/_work/_tool/go/1.19.11/x64/src/io/io.go:332 +0x9a 2023-08-28T22:02:02.6904438Z io.ReadFull(...) 2023-08-28T22:02:02.6904704Z /actions-runner/_work/_tool/go/1.19.11/x64/src/io/io.go:351 2023-08-28T22:02:02.6904951Z golang.org/x/net/http2.readFrameHeader({0xc000d96818?, 0x9?, 0x3bdf3a0?}, {0x2d3f9c0?, 0xc000ba53e0?}) 2023-08-28T22:02:02.6905348Z /root/go/pkg/mod/golang.org/x/net@v0.0.0-20210428140749-89ef3d95e781/http2/frame.go:237 +0x6e 2023-08-28T22:02:02.6905605Z golang.org/x/net/http2.(Framer).ReadFrame(0xc000d967e0) 2023-08-28T22:02:02.6905971Z /root/go/pkg/mod/golang.org/x/net@v0.0.0-20210428140749-89ef3d95e781/http2/frame.go:492 +0x95 2023-08-28T22:02:02.6906241Z google.golang.org/grpc/internal/transport.(http2Client).reader(0xc000310a80) 2023-08-28T22:02:02.6906508Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/http2_client.go:1265 +0x2e7 2023-08-28T22:02:02.6906769Z created by google.golang.org/grpc/internal/transport.newHTTP2Client 2023-08-28T22:02:02.6907031Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/http2_client.go:300 +0x149f 2023-08-28T22:02:02.6907156Z 2023-08-28T22:02:02.6907293Z goroutine 155 [select]: 2023-08-28T22:02:02.6907508Z google.golang.org/grpc/internal/transport.(controlBuffer).get(0xc000932550, 0x1) 2023-08-28T22:02:02.6907779Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/controlbuf.go:395 +0x115 2023-08-28T22:02:02.6908045Z google.golang.org/grpc/internal/transport.(loopyWriter).run(0xc000ba54a0) 2023-08-28T22:02:02.6908299Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/controlbuf.go:513 +0x85 2023-08-28T22:02:02.6908551Z google.golang.org/grpc/internal/transport.newHTTP2Client.func3() 2023-08-28T22:02:02.6908810Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/http2_client.go:346 +0x6a 2023-08-28T22:02:02.6909133Z created by google.golang.org/grpc/internal/transport.newHTTP2Client 2023-08-28T22:02:02.6909391Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/internal/transport/http2_client.go:344 +0x169c 2023-08-28T22:02:02.6909514Z 2023-08-28T22:02:02.6909651Z goroutine 156 [select]: 2023-08-28T22:02:02.6909823Z google.golang.org/grpc.newClientStream.func5() 2023-08-28T22:02:02.6910046Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:319 +0x92 2023-08-28T22:02:02.6910268Z created by google.golang.org/grpc.newClientStream 2023-08-28T22:02:02.6910490Z /root/go/pkg/mod/google.golang.org/grpc@v1.27.1/stream.go:318 +0x1365 2023-08-28T22:02:02.6910594Z 2023-08-28T22:02:02.6910812Z goroutine 157 [select]: 2023-08-28T22:02:02.6911107Z github.com/hashicorp/go-plugin.(gRPCBrokerClientImpl).StartStream.func1() 2023-08-28T22:02:02.6911442Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_broker.go:181 +0x105 2023-08-28T22:02:02.6911783Z created by github.com/hashicorp/go-plugin.(gRPCBrokerClientImpl).StartStream 2023-08-28T22:02:02.6912131Z /root/go/pkg/mod/github.com/hashicorp/go-plugin@v1.3.0/grpc_broker.go:179 +0x175 2023-08-28T22:02:02.6941659Z ##[error]Bash exited with code '2'.

BHoggs commented 11 months ago

Bumping this. We run Yor automatically at every terraform plan, and we're starting to hit this error all the time. Frustrating as it's interrupting our CI/CD pipelines a lot.

BHoggs commented 10 months ago

Discovered a workaround if anyone else is encountering the same bug. As it's seemingly related to concurrency, setting worker threads to 1 seems to make the issue go away.

export YOR_WORKER_NUM=1
yor tag ...
stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kayman-mk commented 7 months ago

Yeah, same here. About 10% of all jobs are failing. Nice workaround, but this will affect the overall performance, right?

fraserc182 commented 2 months ago

Any fix for this, this is something we run into constantly as well in our CI pipelines.