Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-3967

SIGSEGV in mender-binary-delta-generator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Days in progress:
      1

      Description

      The 1.1.0 mender-binary-delta-generator will fail with a seg fault when the artifact version of one of the inputs is version2.

      ie

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      $ mender-artifact  write rootfs-image -t raspberrypi3 -v 2 --artifact-name 1 -o one.mender --file one.ext4 
      $ mender-artifact  write rootfs-image -t raspberrypi3 -v 3 --artifact-name 2 -o two.mender --file one.ext4 
      $ /work2/dmoseley/mender-binary-delta-1.1.0/x86_64/mender-binary-delta-generator one.mender two.mender -n three
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x67b5ec]
      
      goroutine 1 [running]:
      main.printCmdline(0xc0005277e0, 0xc000610040, 0x2, 0x2)
      	/go/src/github.com/mendersoftware/mender-artifact/cli/mender-artifact/dump.go:187 +0x9c
      main.DumpCommand(0xc00018e2c0, 0x0, 0x0)
      	/go/src/github.com/mendersoftware/mender-artifact/cli/mender-artifact/dump.go:94 +0x53a
      github.com/urfave/cli.HandleAction(0x6cd3e0, 0x73f598, 0xc00018e2c0, 0xc00018e2c0, 0x0)
      	/go/src/github.com/mendersoftware/mender-artifact/vendor/github.com/urfave/cli/app.go:526 +0x11a
      github.com/urfave/cli.Command.Run(0x725b17, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x73149f, 0x1c, 0x0, ...)
      	/go/src/github.com/mendersoftware/mender-artifact/vendor/github.com/urfave/cli/command.go:174 +0x57a
      github.com/urfave/cli.(*App).Run(0xc0001e6000, 0xc0000120a0, 0xa, 0xa, 0x0, 0x0)
      	/go/src/github.com/mendersoftware/mender-artifact/vendor/github.com/urfave/cli/app.go:279 +0x7c7
      main.run(0x1, 0xc000020178)
      	/go/src/github.com/mendersoftware/mender-artifact/cli/mender-artifact/main.go:517 +0x4f
      main.main()
      	/go/src/github.com/mendersoftware/mender-artifact/cli/mender-artifact/main.go:47 +0x22
      
      

        Attachments

          Activity

            People

            • Assignee:
              lluis Lluís Campos
              Reporter:
              drewmoseley Drew Moseley
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel