Skip to content

Instantly share code, notes, and snippets.

@lechat
Last active February 17, 2022 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lechat/db427d5a77cd6e04bf2094643cf4a15e to your computer and use it in GitHub Desktop.
Save lechat/db427d5a77cd6e04bf2094643cf4a15e to your computer and use it in GitHub Desktop.
BuildBuddy stack trace
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x1000583]
goroutine 448 [running]:
github.com/buildbuddy-io/buildbuddy/enterprise/server/composable_cache.(*composableCache).WithIsolation(0xc000723620, {0x96e1030, 0xc0007b5920}, 0xc0003b8580, {0x0, 0x0})
enterprise/server/composable_cache/composable_cache.go:35 +0x43
github.com/buildbuddy-io/buildbuddy/server/remote_cache/namespace.ActionCache(...)
server/remote_cache/namespace/namespace.go:14
github.com/buildbuddy-io/buildbuddy/server/remote_cache/action_cache_server.(*ActionCacheServer).GetActionResult(0xc0002d3620, {0x96e1030, 0xc0007b58c0}, 0xc0007ec000)
server/remote_cache/action_cache_server/action_cache_server.go:131 +0x113
github.com/buildbuddy-io/buildbuddy/proto/remote_execution._ActionCache_GetActionResult_Handler.func1({0x96e1030, 0xc0007b58c0}, {0x1c23c80, 0xc0007ec000})
bazel-out/k8-opt/bin/proto/remote_execution_go_proto_/github.com/buildbuddy-io/buildbuddy/proto/remote_execution/remote_execution.pb.go:5664 +0x78
github.com/buildbuddy-io/buildbuddy/server/util/grpc_server.propagateInvocationIDToSpanUnaryServerInterceptor.func1({0x96e1030, 0xc0007b58c0}, {0x1c23c80, 0xc0007ec000}, 0x0, 0xc0004b8768)
server/util/grpc_server/grpc_server.go:66 +0x53
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b58c0}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1116 +0x5b
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.UnaryServerInterceptor.func1({0x96e1030, 0xc0007b57d0}, {0x1c23c80, 0xc0007ec000}, 0xc000406f80, 0xc0008c0d80)
external/io_opentelemetry_go_contrib_instrumentation_google_golang_org_grpc_otelgrpc/interceptor.go:325 +0x61c
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b57d0}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1119 +0x83
github.com/buildbuddy-io/buildbuddy/server/rpc/filters.contextReplacingUnaryServerInterceptor.func1({0x96e1030, 0xc0007b5650}, {0x1c23c80, 0xc0007ec000}, 0xc0007b5650, 0xc0008c0d80)
server/rpc/filters/filters.go:54 +0x4d
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b5650}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1119 +0x83
github.com/buildbuddy-io/buildbuddy/server/rpc/filters.roleAuthUnaryServerInterceptor.func1({0x96e1030, 0xc0007b5650}, {0x1c23c80, 0xc0007ec000}, 0xc000406f80, 0xc0008c0d80)
server/rpc/filters/filters.go:147 +0x184
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b5650}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1119 +0x83
github.com/buildbuddy-io/buildbuddy/server/rpc/filters.contextReplacingUnaryServerInterceptor.func1({0x96e1030, 0xc0007b5650}, {0x1c23c80, 0xc0007ec000}, 0x198b020, 0xc0008c0d80)
server/rpc/filters/filters.go:54 +0x4d
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b5650}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1119 +0x83
github.com/buildbuddy-io/buildbuddy/server/rpc/filters.requestContextProtoUnaryServerInterceptor.func1({0x96e1030, 0xc0007b5620}, {0x1c23c80, 0xc0007ec000}, 0xc0001e9940, 0xc0008c0d80)
server/rpc/filters/filters.go:172 +0xb9
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b5620}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1119 +0x83
github.com/buildbuddy-io/buildbuddy/server/rpc/filters.logRequestUnaryServerInterceptor.func1({0x96e1030, 0xc0007b5620}, {0x1c23c80, 0xc0007ec000}, 0xc000406f80, 0xc0008c0d80)
server/rpc/filters/filters.go:180 +0x89
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b5620}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1119 +0x83
github.com/buildbuddy-io/buildbuddy/server/rpc/filters.contextReplacingUnaryServerInterceptor.func1({0x96e1030, 0xc0007b4f00}, {0x1c23c80, 0xc0007ec000}, 0x4, 0xc0008c0d80)
server/rpc/filters/filters.go:54 +0x4d
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b4f00}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1119 +0x83
github.com/grpc-ecosystem/go-grpc-prometheus.(*ServerMetrics).UnaryServerInterceptor.func1({0x96e1030, 0xc0007b4f00}, {0x1c23c80, 0xc0007ec000}, 0x1be9620, 0xc0008c0d80)
external/com_github_grpc_ecosystem_go_grpc_prometheus/server_metrics.go:107 +0x87
google.golang.org/grpc.chainUnaryInterceptors.func1.1({0x96e1030, 0xc0007b4f00}, {0x1c23c80, 0xc0007ec000})
external/org_golang_google_grpc/server.go:1119 +0x83
google.golang.org/grpc.chainUnaryInterceptors.func1({0x96e1030, 0xc0007b4f00}, {0x1c23c80, 0xc0007ec000}, 0xc000406f80, 0xc0004b8768)
external/org_golang_google_grpc/server.go:1121 +0x12b
github.com/buildbuddy-io/buildbuddy/proto/remote_execution._ActionCache_GetActionResult_Handler({0x1a5f7a0, 0xc0002d3620}, {0x96e1030, 0xc0007b4f00}, 0xc000099f80, 0xc0002d3200)
bazel-out/k8-opt/bin/proto/remote_execution_go_proto_/github.com/buildbuddy-io/buildbuddy/proto/remote_execution/remote_execution.pb.go:5666 +0x138
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0007dc000, {0x9705b10, 0xc0006ab6c0}, 0xc000728c60, 0xc000792420, 0xa53d100, 0x0)
external/org_golang_google_grpc/server.go:1282 +0xccf
google.golang.org/grpc.(*Server).handleStream(0xc0007dc000, {0x9705b10, 0xc0006ab6c0}, 0xc000728c60, 0x0)
external/org_golang_google_grpc/server.go:1616 +0xa2a
google.golang.org/grpc.(*Server).serveStreams.func1.2()
external/org_golang_google_grpc/server.go:921 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
external/org_golang_google_grpc/server.go:919 +0x294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment