-
Bug
-
Resolution: Done
-
Undefined
-
clair-4.7.2
-
None
-
False
-
-
False
-
-
The following trace is printed in Clair logs:
{"level":"debug","component":"indexer/LayerScanner.scanLayer","scanner":"ruby","layer":"sha256:8413028f0bb3f169d8767f8a7a889c6ecd75e294cdaa8eac5a2b6da92f42ee0c", "manifest":"sha256:b0677fec43aeab6c53ddecf2f41ea3cafa2f50b48f68c72c69d5937d9825b428","state":"ScanLayers","request_id":"cdc975b090146ea3", "kind":"package","time":"2025-01-02T12:48:36Z","message":"layer already scanned"} panic: runtime error: index out of range [0] with length 0 goroutine 1775 [running]: github.com/quay/claircore/osrelease.Parse({0x1415058?, 0xc000f9a540?}, {0x7f0228066198, 0xc000cccf00}) github.com/quay/claircore@v1.5.19/osrelease/scanner.go:210 +0x57c github.com/quay/claircore/debian.findDist({0x1415058, 0xc000f9a540}, {0x140a820?, 0xc000f9a570?}) github.com/quay/claircore@v1.5.19/debian/distributionscanner.go:79 +0xc5 github.com/quay/claircore/debian.(*DistributionScanner).Scan(0x0?, {0x1415058, 0xc000cb6720}, 0xc00092cd20) github.com/quay/claircore@v1.5.19/debian/distributionscanner.go:59 +0x465 github.com/quay/claircore/indexer.(*result).Do(0xc000fe9dd8, {0x1415058, 0xc000cb6720}, {0x7f022b8bc160?, 0x1f0c480}, 0xc0013ac870?) github.com/quay/claircore@v1.5.19/indexer/layerscanner.go:224 +0x23c github.com/quay/claircore/indexer.(*LayerScanner).scanLayer(0xc00088c200, {0x1414fb0, 0xc0015ba4b0}, 0xc00092cd20, {0x7f022b8bc160, 0x1f0c480}) github.com/quay/claircore@v1.5.19/indexer/layerscanner.go:191 +0x3c5 github.com/quay/claircore/indexer.(*LayerScanner).Scan.func1.1() github.com/quay/claircore@v1.5.19/indexer/layerscanner.go:143 +0x10a golang.org/x/sync/errgroup.(*Group).Go.func1() golang.org/x/sync@v0.3.0/errgroup/errgroup.go:75 +0x64 created by golang.org/x/sync/errgroup.(*Group).Go golang.org/x/sync@v0.3.0/errgroup/errgroup.go:72 +0xa5
Issue is resolved by the following PR:
https://github.com/quay/claircore/pull/1456
This JIRA has been created for tracking purposes.
- duplicates
-
CLAIRDEV-124 osrelease: handle completely absent values
-
- Closed
-