Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-1192

panic in RPM package scanner

XMLWordPrintable

       

      panic: runtime error: invalid memory address or nil pointer dereference
      
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xc03126]
      
       
      goroutine 15644 [running]:
      
      github.com/quay/claircore/rpm.(*Scanner).Scan.func1.1(0xc0003294a0, 0x55,
      0x0, 0x0, 0xf94a80, 0xc0012d25a0, 0x0, 0x0)
      
      /go/pkg/mod/
      github.com/quay/claircore@v0.1.13/rpm/packagescanner.go:129 +0x26
      
      path/filepath.walk(0xc00288f220, 0x49, 0xfb4860, 0xc002917860, 0xec7688,
      0x0, 0x0)
      
      /usr/local/go/src/path/filepath/path.go:380 +0x213
      
      path/filepath.walk(0xc001fe5a00, 0x40, 0xfb4860, 0xc002917790, 0xec7688,
      0x0, 0x0)
      
      /usr/local/go/src/path/filepath/path.go:384 +0x2fe
      
      path/filepath.walk(0xc001fe5880, 0x31, 0xfb4860, 0xc002916f70, 0xec7688,
      0x0, 0x0)
      
      /usr/local/go/src/path/filepath/path.go:384 +0x2fe
      
      path/filepath.walk(0xc000275bf0, 0x2d, 0xfb4860, 0xc002916c30, 0xec7688,
      0x0, 0x0)
      
      /usr/local/go/src/path/filepath/path.go:384 +0x2fe
      
      path/filepath.walk(0xc000275b60, 0x27, 0xfb4860, 0xc002916b60, 0xec7688,
      0x0, 0x0)
      
      /usr/local/go/src/path/filepath/path.go:384 +0x2fe
      
      path/filepath.walk(0xc000275ad0, 0x23, 0xfb4860, 0xc002916a90, 0xec7688,
      0x0, 0x0)
      
      /usr/local/go/src/path/filepath/path.go:384 +0x2fe
      
      path/filepath.walk(0xc000347260, 0x1d, 0xfb4860, 0xc000370a90, 0xec7688,
      0x0, 0x0)
      
      /usr/local/go/src/path/filepath/path.go:384 +0x2fe
      
      path/filepath.walk(0xc000a143e0, 0x19, 0xfb4860, 0xc00078f040, 0xec7688,
      0x0, 0xc0028ad160)
      
      /usr/local/go/src/path/filepath/path.go:384 +0x2fe
      
      path/filepath.Walk(0xc000a143e0, 0x19, 0xec7688, 0x18, 0xc002131b00)
      
      /usr/local/go/src/path/filepath/path.go:406 +0x105
      
      github.com/quay/claircore/rpm.(*Scanner).Scan.func1(0xc000a143e0, 0x19,
      0xc00098bc20)
      
      /go/pkg/mod/
      github.com/quay/claircore@v0.1.13/rpm/packagescanner.go:127 +0x45
      
      github.com/quay/claircore/rpm.(*Scanner).Scan(0x14fd098, 0xfae2a0,
      0xc000bde3c0, 0xc000778f60, 0xc002a83400, 0x62, 0x80, 0x0, 0x0)
      
      /go/pkg/mod/
      github.com/quay/claircore@v0.1.13/rpm/packagescanner.go:225 +0x1905
      
      github.com/quay/claircore/internal/indexer/layerscanner.(*result).Do(0xc0028adbf0,
      0xfae2a0, 0xc001eaeb70, 0x7f09d4463d40, 0x14fd098, 0xc000778f60, 0x20, 0x20)
      
      /go/pkg/mod/
      github.com/quay/claircore@v0.1.13/internal/indexer/layerscanner/layerscanner.go:240
      +0x94
      
      github.com/quay/claircore/internal/indexer/layerscanner.(*layerScanner).scanLayer(0xc000779440,
      0xfae2a0, 0xc001eaeb70, 0xc000778f60, 0x7f09d4463d40, 0x14fd098, 0x0, 0x0)
      
      /go/pkg/mod/
      github.com/quay/claircore@v0.1.13/internal/indexer/layerscanner/layerscanner.go:215
      +0x8a9
      
      github.com/quay/claircore/internal/indexer/layerscanner.(*layerScanner).Scan.func1.1(0x0,
      0x0)
      
      /go/pkg/mod/
      github.com/quay/claircore@v0.1.13/internal/indexer/layerscanner/layerscanner.go:174
      +0x145
      
      golang.org/x/sync/errgroup.(*Group).Go.func1(0xc0018360f0, 0xc000d853c0)
      
      /go/pkg/mod/
      golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208/errgroup/errgroup.go:57
      +0x59
      
      created by golang.org/x/sync/errgroup.(*Group).Go
      
      /go/pkg/mod/
      golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208/errgroup/errgroup.go:54
      +0x66
      

              hdonnay Henry Donnay
              hdonnay Henry Donnay
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: