-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: VOLTHA v2.7
-
Fix Version/s: VOLTHA v2.10
-
Component/s: openonu-adapter
-
Labels:None
-
Story Points:3
-
Epic Link:
Tests in Adtran's POD revealed a problem when trying to start to download the ONU image to the adapter using https. Onu adapter run into crash (from R2.7 release version)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xde6b53]
goroutine 11683 [running]:
github.com/opencord/voltha-openonu-adapter-go/internal/pkg/onuadaptercore.(*adapterDownloadManager).downloadFile(0xc000314f90, 0x1432800, 0xc0008f64e0, 0xc000514190, 0x4c, 0xc00087b264, 0x4, 0xc000380b20, 0x14, 0x0, ...)
/go/src/github.com/opencord/voltha-openonu-adapter-go/internal/pkg/onuadaptercore/adapter_download_manager.go:146 +0xa13
github.com/opencord/voltha-openonu-adapter-go/internal/pkg/onuadaptercore.(*adapterDownloadManager).startDownload(0xc000314f90, 0x1432800, 0xc0008f64e0, 0xc0006ca780, 0x14, 0xc0008f67e0)
/go/src/github.com/opencord/voltha-openonu-adapter-go/internal/pkg/onuadaptercore/adapter_download_manager.go:108 +0x2a4
github.com/opencord/voltha-openonu-adapter-go/internal/pkg/onuadaptercore.(*OpenONUAC).Download_image(0xc0000dc000, 0x1432800, 0xc0008f64e0, 0xc0003eb080, 0xc0006ca780, 0xc0003eb080, 0xc0006ca780, 0x0)
/go/src/github.com/opencord/voltha-openonu-adapter-go/internal/pkg/onuadaptercore/openonu.go:486 +0x265
github.com/opencord/voltha-lib-go/v4/pkg/adapters/common.(*RequestHandlerProxy).Download_image(0xc0003d4e40, 0x1432800, 0xc0008f64e0, 0xc0006fbb00, 0x5, 0x8, 0x0, 0x0, 0x0)
/go/src/github.com/opencord/voltha-openonu-adapter-go/vendor/github.com/opencord/voltha-lib-go/v4/pkg/adapters/common/request_handler.go:568 +0xb2
reflect.Value.call(0x1215720, 0xc0003d4e40, 0x2a13, 0x1232b52, 0x4, 0xc0008f6630, 0x2, 0x2, 0xc0000fbcf0, 0x44f13c, ...)
/usr/local/go/src/reflect/value.go:460 +0x5f6
reflect.Value.Call(0x1215720, 0xc0003d4e40, 0x2a13, 0xc0008f6630, 0x2, 0x2, 0xc0003d4e40, 0x2a13, 0xc0004aefa0)
/usr/local/go/src/reflect/value.go:321 +0xb4
github.com/opencord/voltha-lib-go/v4/pkg/kafka.CallFuncByName(0x1432800, 0xc0008f64e0, 0x1215720, 0xc0003d4e40, 0xc000380640, 0xe, 0xc0000fbf80, 0x1, 0x1, 0x5, ...)
/go/src/github.com/opencord/voltha-openonu-adapter-go/vendor/github.com/opencord/voltha-lib-go/v4/pkg/kafka/kafka_inter_container_library.go:765 +0x338
github.com/opencord/voltha-lib-go/v4/pkg/kafka.(*interContainerProxy).handleMessage(0xc0002f0a50, 0x1432780, 0xc00004a010, 0xc0008f63c0, 0x1215720, 0xc0003d4e40)
/go/src/github.com/opencord/voltha-openonu-adapter-go/vendor/github.com/opencord/voltha-lib-go/v4/pkg/kafka/kafka_inter_container_library.go:892 +0x16d1
created by github.com/opencord/voltha-lib-go/v4/pkg/kafka.(*interContainerProxy).waitForMessages
/go/src/github.com/opencord/voltha-openonu-adapter-go/vendor/github.com/opencord/voltha-lib-go/v4/pkg/kafka/kafka_inter_container_library.go:971 +0x9d