Skip to content

Found "panic: runtime error" sometimes in support-scheduler #5364

@cherrycl

Description

@cherrycl

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: support-scheduler

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description and Minimal Reproduction [REQUIRED]

This error was encountered while running TAF tests. It appears to occur after a job is created.
So far, I have been unable to reproduce this issue manually. Even when running the TAF tests, the failure is intermittent and does not happen every time.

🔥 Exception or Error




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

goroutine 1003 [running]:
github.com/edgexfoundry/edgex-go/internal/support/scheduler/infrastructure.(*manager).addNewJob.func1({0xfc, 0x69, 0x61, 0x9f, 0x96, 0xe7, 0x40, 0x8a, 0xb7, 0xe8, ...}, ...)
        github.com/edgexfoundry/edgex-go/internal/support/scheduler/infrastructure/manager.go:270 +0x126
reflect.Value.call({0x55a0352ade20?, 0xc0001f6420?, 0xc0001dd680?}, {0x55a034e981c7, 0x4}, {0xc0002f9830, 0x2, 0x55a035345be0?})
        reflect/value.go:581 +0xcc6
reflect.Value.Call({0x55a0352ade20?, 0xc0001f6420?, 0x200bb435f4ac8?}, {0xc0002f9830?, 0x7fbb8a2af5c0?, 0x10?})
        reflect/value.go:365 +0xb9
github.com/go-co-op/gocron/v2.callJobFuncWithParams({0x55a0352ade20?, 0xc0001f6420?}, {0xc0001ddbe0, 0x2, 0xc0001d87c0?})
        github.com/go-co-op/gocron/v2@v2.17.0/util.go:28 +0x245
github.com/go-co-op/gocron/v2.(*executor).runJob(_, {{0x55a035422ad0, 0xc0003518b0}, {0x55a035422ad0, 0xc000351860}, 0xc0001b4c70, {0xfc, 0x69, 0x61, 0x9f, ...}, ...}, ...)
        github.com/go-co-op/gocron/v2@v2.17.0/executor.go:440 +0xce5
github.com/go-co-op/gocron/v2.(*executor).start.func1.1({{0x55a035422ad0, 0xc0003518b0}, {0x55a035422ad0, 0xc000351860}, 0xc0001b4c70, {0xfc, 0x69, 0x61, 0x9f, 0x96, ...}, ...})
        github.com/go-co-op/gocron/v2@v2.17.0/executor.go:228 +0x6f
created by github.com/go-co-op/gocron/v2.(*executor).start.func1 in goroutine 1002
        github.com/go-co-op/gocron/v2@v2.17.0/executor.go:227 +0x6f3

🌍 Your Environment

Deployment Environment: ubuntu/arm64, redhat/x86

EdgeX Version [REQUIRED]: main

Anything else relevant?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Palau Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions