livepeer / livepeer/task-runner

Out of bounds panics when processing catalyst callback messages

Open
#136 0 comments 0 reactions 1 assignee View on GitHub

@gioelecerati is already working on this.

Since Feb 2, 2023.

Dominant language
Go
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Related to https://github.com/livepeer/task-runner/issues/130

When I tested the extra MP4 outputs in the status messages i saw these panics:
https://eu-metrics-monitoring.livepeer.monster/grafana/explore?orgId=1&left=%7B%22datasource%22:%22P8E80F9AEF21F6940%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22P8E80F9AEF21F6940%22%7D,%22editorMode%22:%22code%22,%22expr%22:%22%7Bapp%20%3D~%20%5C%22staging-task-runner%5C%22%7D%20%7C%3D%20%5C%22panic%5C%22%22,%22queryType%22:%22range%22%7D%5D,%22range%22:%7B%22from%22:%221675335647235%22,%22to%22:%221675337744323%22%7D%7D

The panic happens [here](https://github.com/livepeer/task-runner/blob/51558d77a00e4e09a23a5f429da5ed3ae9a4baaf/task/upload.go#L216), it seems this function assumes there will only ever be one output element?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.