Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Cody Attributions panic #60439

@daxmc99

Description

@daxmc99

Several panics were observed in the Attributions code of Cody

runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x24d60b1]

at github.com/sourcegraph/sourcegraph/internal/codygateway.(*client).Attribution ( internal/codygateway/client.go:144 )
at github.com/sourcegraph/sourcegraph/cmd/frontend/internal/guardrails/attribution.(*gatewayProxy).SnippetAttribution ( cmd/frontend/internal/guardrails/attribution/attribution.go:85 )
at github.com/sourcegraph/sourcegraph/cmd/frontend/internal/completions.Init.func2.NewAttributionTest.func1 ( cmd/frontend/internal/guardrails/init.go:104 )
at github.com/sourcegraph/sourcegraph/internal/guardrails.(*completionsFilter).runAttribution ( internal/guardrails/attribution_filter.go:178 )

https://console.cloud.google.com/errors/detail/CMG3u6v_yZqUtgE;time=P1D?project=src-747bc765eb31a4873e4b

And

runtime error: index out of range [43] with length 30

at compress/flate.(*huffmanBitWriter).indexTokens ( GOROOT/src/compress/flate/huffman_bit_writer.go:548 )
at compress/flate.(*huffmanBitWriter).writeBlock ( GOROOT/src/compress/flate/huffman_bit_writer.go:437 )
at compress/flate.(*compressor).writeBlock ( GOROOT/src/compress/flate/deflate.go:170 )
at compress/flate.(*compressor).deflate ( GOROOT/src/compress/flate/deflate.go:408 )
at compress/flate.(*compressor).syncFlush ( GOROOT/src/compress/flate/deflate.go:558 )
at compress/flate.(*Writer).Flush ( GOROOT/src/compress/flate/deflate.go:725 )
at compress/gzip.(*Writer).Flush ( GOROOT/src/compress/gzip/gzip.go:221 )
at github.com/NYTimes/gziphandler.(*GzipResponseWriter).Flush ( external/com_github_nytimes_gziphandler/gzip.go:260 )
at github.com/sourcegraph/sourcegraph/internal/search/streaming/http.(*Writer).EventBytes ( internal/search/streaming/http/writer.go:109 )
at github.com/sourcegraph/sourcegraph/internal/search/streaming/http.(*Writer).Event ( internal/search/streaming/http/writer.go:63 )
at github.com/sourcegraph/sourcegraph/internal/completions/httpapi.newCompletionsHandler.newSwitchingResponseHandler.newStreamingResponseHandler.func4.3 ( internal/completions/httpapi/handler.go:241 )
at github.com/sourcegraph/sourcegraph/internal/guardrails.(*completionsFilter).send ( internal/guardrails/attribution_filter.go:151 )
at github.com/sourcegraph/sourcegraph/internal/guardrails.(*completionsFilter).runAttribution ( internal/guardrails/attribution_filter.go:184 )

https://console.cloud.google.com/errors/detail/CI2nv--BlPiswwE;time=P1D?project=src-747bc765eb31a4873e4b

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions