-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: openonu-adapter
-
Labels:None
-
Story Points:2
An exception intermittently occurs during the scale tests while processing the ONU indications.
Below is the exception report :
{"level":"debug","ts":"2023-06-15T10:33:44.751Z","caller":"common/utils.go:113","msg":"FSM state change","instanceId":"vstack1-adapter-openonu-voltha-adapter-openonu-6f7b78b6d7-vm96l","pkg":"common","src state":"UlStDisabled","dst state":"UlStStarting","device-id":"c956fa7d-ec3a-4279-ab7f-e81f8872e1e2","FSM name":"MibUpload","event name":"UlEvStart"} \{"level":"debug","ts":"2023-06-15T10:33:44.751Z","caller":"core/device_handler.go:2117","msg":"MibSyncFsm","instanceId":"vstack1-adapter-openonu-voltha-adapter-openonu-6f7b78b6d7-vm96l","pkg":"core","state":"UlStStarting","device-id":"c956fa7d-ec3a-4279-ab7f-e81f8872e1e2"} \{"level":"debug","ts":"2023-06-15T10:33:44.751Z","caller":"mib/mib_sync.go:102","msg":"MibSync FSM","instanceId":"vstack1-adapter-openonu-voltha-adapter-openonu-6f7b78b6d7-vm96l","pkg":"mib","Start MibTemplate processing in State":"UlStResettingMib","device-id":"c956fa7d-ec3a-4279-ab7f-e81f8872e1e2"} panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x158 pc=0x10ec2a5] goroutine 81753 [running]: github.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.(*OnuDeviceEntry).enterResettingMibState(0xc002cb9880, 0x1691360, 0xc0083f6f60, 0xc003d53180) /go/src/internal/pkg/mib/mib_sync.go:105 +0x465 github.com/opencord/voltha-openonu-adapter-go/internal/pkg/mib.NewOnuDeviceEntry.func3(0xc003d53180) /go/src/internal/pkg/mib/onu_device_entry.go:357 +0x46 github.com/looplab/fsm.(*FSM).enterStateCallbacks(0xc007c9a960, 0xc003d53180) /go/src/vendor/github.com/looplab/fsm/fsm.go:403 +0x102 github.com/looplab/fsm.(*FSM).Event.func1() /go/src/vendor/github.com/looplab/fsm/fsm.go:308 +0x9e github.com/looplab/fsm.transitionerStruct.transition(...) /go/src/vendor/github.com/looplab/fsm/fsm.go:354 github.com/looplab/fsm.(*FSM).doTransition(...) /go/src/vendor/github.com/looplab/fsm/fsm.go:339 github.com/looplab/fsm.(*FSM).Event(0xc007c9a960, 0x14b519c, 0xc, 0x0, 0x0, 0x0, 0x0, 0x0) /go/src/vendor/github.com/looplab/fsm/fsm.go:322 +0x608 github.com/opencord/voltha-openonu-adapter-go/internal/pkg/core.(*deviceHandler).createInterface(0xc002cb8700, 0x1691360, 0xc007f483c0, 0xc005904d80, 0xf, 0xc007f48450) /go/src/internal/pkg/core/device_handler.go:2121 +0xc5c github.com/opencord/voltha-openonu-adapter-go/internal/pkg/core.(*OpenONUAC).OnuIndication(0xc000702a80, 0x1691360, 0xc007f483c0, 0xc00683c940, 0x13bd840, 0x12dda00, 0x169a490) /go/src/internal/pkg/core/openonu.go:906 +0x747 github.com/opencord/voltha-openonu-adapter-go/internal/pkg/core.(*OpenONUACInterAdapter).OnuIndication(0xc000168510, 0x1691360, 0xc007f483c0, 0xc00683c940, 0xc000168510, 0x15347a0, 0xc000165d50) /go/src/internal/pkg/core/openonuInterAdapter.go:52 +0x4c github.com/opencord/voltha-protos/v5/go/onu_inter_adapter_service._OnuInterAdapterService_OnuIndication_Handler.func1(0x1691360, 0xc007f483c0, 0x13f0fe0, 0xc00683c940, 0x23fba60, 0x1691360, 0xc007f483c0, 0x16a21e0) /go/src/vendor/github.com/opencord/voltha-protos/v5/go/onu_inter_adapter_service/onu_inter_adapter_service.pb.go:246 +0x89 github.com/opencord/voltha-lib-go/v7/pkg/grpc.mkServerInterceptor.func1(0x1691360, 0xc007f483c0, 0x13f0fe0, 0xc00683c940, 0xc007f40a20, 0xc0052d5b30, 0x0, 0x16a21e0, 0x0, 0x0) /go/src/vendor/github.com/opencord/voltha-lib-go/v7/pkg/grpc/server.go:158 +0x63 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x1691360, 0xc007f483c0, 0x13f0fe0, 0xc00683c940, 0x14b9f20, 0xd, 0x15175e7, 0x3f) /go/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25 +0x63 github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing.UnaryServerInterceptor.func1(0x1691360, 0xc007f48390, 0x13f0fe0, 0xc00683c940, 0xc007f40a20, 0xc007f40a40, 0xd2b45a, 0x139b600, 0xc007f40a60, 0xc007f40a20) /go/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing/server_interceptors.go:38 +0x119 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x1691360, 0xc007f48390, 0x13f0fe0, 0xc00683c940, 0xc000100c00, 0x0, 0xc0079d19e0, 0x40e0f8) /go/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25 +0x63 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1(0x1691360, 0xc007f48390, 0x13f0fe0, 0xc00683c940, 0xc007f40a20, 0xc0052d5b30, 0xc008824a50, 0x49a346, 0x13c7aa0, 0xc007f48390) /go/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34 +0xd7 github.com/opencord/voltha-protos/v5/go/onu_inter_adapter_service._OnuInterAdapterService_OnuIndication_Handler(0x13bd840, 0xc000168510, 0x1691360, 0xc007f48390, 0xc005904d20, 0xc0005465d0, 0x1691360, 0xc007f48390, 0xc00357b4a0, 0x48) /go/src/vendor/github.com/opencord/voltha-protos/v5/go/onu_inter_adapter_service/onu_inter_adapter_service.pb.go:248 +0x150 google.golang.org/grpc.(*Server).processUnaryRPC(0xc000186480, 0x169f4d8, 0xc00017fc80, 0xc000f79b00, 0xc0007a7ec0, 0x1e90760, 0xc00683c900, 0x0, 0x0) /go/src/vendor/google.golang.org/grpc/server.go:1007 +0x482 google.golang.org/grpc.(*Server).handleStream(0xc000186480, 0x169f4d8, 0xc00017fc80, 0xc000f79b00, 0xc00683c900) /go/src/vendor/google.golang.org/grpc/server.go:1287 +0xd4c google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc00140c430, 0xc000186480, 0x169f4d8, 0xc00017fc80, 0xc000f79b00) /go/src/vendor/google.golang.org/grpc/server.go:722 +0xab created by google.golang.org/grpc.(*Server).serveStreams.func1 /go/src/vendor/google.golang.org/grpc/server.go:720 +0xa5