Skip to content

Crashes on instrumentPython : panic: runtime error: index out of range [0] with length 0 #260

@lyysm

Description

@lyysm

docker-compsoe.yml

services:
  node-agent:
    restart: always
    image: ghcr.io/coroot/coroot-node-agent:1.27.0
    # pull_policy: always
    privileged: true
    pid: "host"
    volumes:
      - /sys/kernel/tracing:/sys/kernel/tracing
      - /sys/kernel/debug:/sys/kernel/debug
      - /sys/fs/cgroup:/host/sys/fs/cgroup
      - ./data:/data
    command:
      - '--collector-endpoint=http://192.168.0.10:8080'
      - '--cgroupfs-root=/host/sys/fs/cgroup'
      - '--wal-dir=/data'

kernel: 5.10.0-60.43.0.72.oe2203.x86_64

Log Output:

node-agent-1  | I1206 15:29:28.311861  281376 registry.go:368] "ignoring" cg="" pid=68
node-agent-1  | I1206 15:29:28.311883  281376 registry.go:363] calculated container id 84 ->  ->
node-agent-1  | I1206 15:29:28.311888  281376 registry.go:368] "ignoring" cg="" pid=84
node-agent-1  | panic: runtime error: index out of range [0] with length 0
node-agent-1  |
node-agent-1  | goroutine 647 [running]:
node-agent-1  | github.com/coroot/coroot-node-agent/containers.(*Process).instrumentPython(0xc00036f3f0, {0xc00026ce00?, 0x1?, 0xc001be8f90?}, 0xc000ab1b80)
node-agent-1  | 	/tmp/src/containers/process.go:113 +0x2e5
node-agent-1  | github.com/coroot/coroot-node-agent/containers.(*Process).instrument(0xc00036f3f0, 0xc000ab1b80)
node-agent-1  | 	/tmp/src/containers/process.go:89 +0x192
node-agent-1  | created by github.com/coroot/coroot-node-agent/containers.NewProcess in goroutine 46
node-agent-1  | 	/tmp/src/containers/process.go:56 +0x112
node-agent-1 exited with code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions