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

Parca v0.22 panic in arrow/array #5033

Open
gites opened this issue Aug 28, 2024 · 1 comment
Open

Parca v0.22 panic in arrow/array #5033

gites opened this issue Aug 28, 2024 · 1 comment

Comments

@gites
Copy link

gites commented Aug 28, 2024

After upgrading Parca to v0.22 (and Parca Agent to v0.32) I'm seeing it constantly crashing with this panic:

{"addr":":7070","caller":"server.go:90","level":"info","msg":"starting server","name":"parca","ts":"2024-08-28T13:22:01.970854348Z"}
panic: arrow/array: index out of range

goroutine 121997 [running]:
github.com/apache/arrow/go/v16/arrow/array.(*Binary).Value(...)
        github.com/apache/arrow/go/[email protected]/arrow/array/binary.go:56
github.com/parca-dev/parca/pkg/profile.serializedArrowLocationSize(0xc02b1cd7a0?, 0x4c?, 0x0?, 0x0, 0x0, {0xc02d379980?, 0x3?, 0x1?}, {0x0, 0x0, ...}, ...)
        github.com/parca-dev/parca/pkg/profile/encode.go:397 +0xe38
github.com/parca-dev/parca/pkg/profile.EncodeArrowLocation(0x7de3aebae4f3f38e, 0x1, 0x0, 0x0, 0x0, {0xc02d379980, 0x3, 0x3?}, {0x0, 0x0, ...}, ...)
        github.com/parca-dev/parca/pkg/profile/encode.go:296 +0x125
github.com/parca-dev/parca/pkg/normalizer.(*arrowToInternalConverter).AddLocationsRecordV1(0xc02b1cdf28, {0xc00a27d240?, 0x0?}, {0x5b6cf30, 0xc00fae8db0})
        github.com/parca-dev/parca/pkg/normalizer/arrow.go:587 +0x150b
github.com/parca-dev/parca/pkg/normalizer.(*arrowToInternalConverter).AddLocationsRecord(0xc02b1cdf28, {0x5b444a0, 0xc0375a42a0}, {0x5b6cf30, 0xc00fae8db0})
        github.com/parca-dev/parca/pkg/normalizer/arrow.go:130 +0x189
github.com/parca-dev/parca/pkg/profilestore.(*ProfileColumnStore).write(0xc0016d0420, {0x5b444a0, 0xc0375a42a0}, {0x5b5ddf8, 0xc03e5934e0})
        github.com/parca-dev/parca/pkg/profilestore/profilecolumnstore.go:270 +0x9ac
github.com/parca-dev/parca/pkg/profilestore.(*ProfileColumnStore).Write.func1()
        github.com/parca-dev/parca/pkg/profilestore/profilecolumnstore.go:180 +0x30
created by github.com/parca-dev/parca/pkg/profilestore.(*ProfileColumnStore).Write in goroutine 121996
        github.com/parca-dev/parca/pkg/profilestore/profilecolumnstore.go:179 +0x11f

Parca cmd options:

        - /parca
        - --config-path=/etc/parca/parca.yaml
        - --cors-allowed-origins=*
        - --enable-persistence
        - --storage-path=/data
        - --storage-enable-wal
        - --storage-index-on-disk
        - --debuginfo-cache-dir=/debug
        - --log-format=json
        - --log-level=info
        - --insecure
        - --profile-share-server=none
        - --debuginfod-upstream-servers=none

parca.yaml

object_storage:
  bucket:
    type: s3
    config:
      aws_sdk_auth: true
      bucket: <bucket-name>
      endpoint: s3.us-west-2.amazonaws.com
      region: us-west-2
      insecure: false
      signature_version2: false

scrape_configs: null

Happy to provide more debug info if needed.

@metalmatze
Copy link
Member

Thanks for reporting. We'll look into that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants