Skip to content

SIGSEGV raise when publishing multi arch container #3450

@madelaney

Description

@madelaney

Describe the bug

In jenkins, using the latest jfrog-cli version 2.102.0, when I try to rebuild and push a multi arch container, I'm getting a SEGSEGV error.

Current behavior

2026-04-22T18:44:19.892Z] 18:44:19 [Warn] Manifest digest mismatch detected. Local image digest: sha256:5618a39bc95cc7fdacccd442b0c087100105ce297f282af8f042347699fc0185, Repository digest: sha256:25dd0540eda89eadce1283cfb5c72edbee7d80d815b295c50d20ef23c824050e
[2026-04-22T18:44:19.892Z] 18:44:19 [Info] Proceeding with SHA-based validation to ensure correct image identification...
[2026-04-22T18:44:20.210Z] panic: runtime error: invalid memory address or nil pointer dereference
[2026-04-22T18:44:20.210Z] [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xb5d2a2]
[2026-04-22T18:44:20.211Z]
[2026-04-22T18:44:20.211Z] goroutine 1 [running]:
[2026-04-22T18:44:20.211Z] github.com/jfrog/jfrog-client-go/artifactory/services/utils.(*ResultItem).ToArtifact(0x0)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/jfrog/jfrog-client-go@v1.55.1-0.20260416101832-c47c1246283b/artifactory/services/utils/searchutil.go:580 +0x42
[2026-04-22T18:44:20.211Z] github.com/jfrog/jfrog-cli-artifactory/artifactory/commands/ocicontainer.(*buildInfoBuilder).createPushBuildProperties(0xc0009925a0, 0xc000908c60, 0xc000ba4810)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/jfrog/jfrog-cli-artifactory@v0.8.1-0.20260416104146-471c3f71ce61/artifactory/commands/ocicontainer/buildinfo.go:544 +0x147
[2026-04-22T18:44:20.211Z] github.com/jfrog/jfrog-cli-artifactory/artifactory/commands/ocicontainer.(*buildInfoBuilder).createBuildInfo(0xc0009925a0, {0x1fd5d07, 0x4}, 0xc000908c60, 0xc000ba4810, {0x0, 0x0})
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/jfrog/jfrog-cli-artifactory@v0.8.1-0.20260416104146-471c3f71ce61/artifactory/commands/ocicontainer/buildinfo.go:463 +0x4aa
[2026-04-22T18:44:20.211Z] github.com/jfrog/jfrog-cli-artifactory/artifactory/commands/ocicontainer.(*RemoteAgentBuildInfoBuilder).Build(0xc0004d8ad0, {0x0, 0x0})
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/jfrog/jfrog-cli-artifactory@v0.8.1-0.20260416104146-471c3f71ce61/artifactory/commands/ocicontainer/remoteagent.go:43 +0xa5
[2026-04-22T18:44:20.211Z] github.com/jfrog/jfrog-cli-artifactory/artifactory/commands/container.(*BuildDockerCreateCommand).Run(0xc0006f1590)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/jfrog/jfrog-cli-artifactory@v0.8.1-0.20260416104146-471c3f71ce61/artifactory/commands/container/buildcreate.go:86 +0x4aa
[2026-04-22T18:44:20.211Z] github.com/jfrog/jfrog-cli-core/v2/common/commands.Exec({0x23aafe0, 0xc0006f1590})
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/v2@v2.60.1-0.20260417224747-1bea4a117b59/common/commands/command.go:40 +0xe5
[2026-04-22T18:44:20.211Z] github.com/jfrog/jfrog-cli-artifactory/artifactory/cli.BuildDockerCreateCmd(0xc00081be00)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/jfrog/jfrog-cli-artifactory@v0.8.1-0.20260416104146-471c3f71ce61/artifactory/cli/cli.go:571 +0x1ae
[2026-04-22T18:44:20.211Z] github.com/jfrog/jfrog-cli-core/v2/plugins/components.convertCommand.getActionFunc.func2(0xc00062d9c0?)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/jfrog/jfrog-cli-core/v2@v2.60.1-0.20260417224747-1bea4a117b59/plugins/components/conversionlayer.go:384 +0x68
[2026-04-22T18:44:20.211Z] github.com/urfave/cli.HandleAction({0x1bafa80?, 0xc0006c6090?}, 0x13?)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/urfave/cli@v1.22.17/app.go:522 +0x50
[2026-04-22T18:44:20.211Z] github.com/urfave/cli.Command.Run({{0x2013192, 0x13}, {0x0, 0x0}, {0xc00005b890, 0x1, 0x1}, {0x209cac3, 0x2f}, {0xc0006c8000, ...}, ...}, ...)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/urfave/cli@v1.22.17/command.go:175 +0x656
[2026-04-22T18:44:20.211Z] github.com/urfave/cli.(*App).RunAsSubcommand(0xc000582a80, 0xc000324b00)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/urfave/cli@v1.22.17/app.go:405 +0xddb
[2026-04-22T18:44:20.211Z] github.com/urfave/cli.Command.startApp({{0x1fd4a31, 0x2}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x2016a92, 0x14}, {0x0, ...}, ...}, ...)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/urfave/cli@v1.22.17/command.go:380 +0xb38
[2026-04-22T18:44:20.211Z] github.com/urfave/cli.Command.Run({{0x1fd4a31, 0x2}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x2016a92, 0x14}, {0x0, ...}, ...}, ...)
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/urfave/cli@v1.22.17/command.go:103 +0x785
[2026-04-22T18:44:20.211Z] github.com/urfave/cli.(*App).Run(0xc0004a2fc0, {0xc000128000, 0x5, 0x5})
[2026-04-22T18:44:20.211Z] /root/go/pkg/mod/github.com/urfave/cli@v1.22.17/app.go:277 +0xb1b
[2026-04-22T18:44:20.211Z] main.execMain()
[2026-04-22T18:44:20.211Z] /var/jenkins_home/workspace/eco-system/release/jfrog-cli-release/temp/jfrog-cli/main.go:155 +0x5c6
[2026-04-22T18:44:20.211Z] main.main()
[2026-04-22T18:44:20.211Z] /var/jenkins_home/workspace/eco-system/release/jfrog-cli-release/temp/jfrog-cli/main.go:79 +0x1c
[2026-04-22T18:44:20.316Z] [Pipeline] }
[2026-04-22T18:44:20.441Z] [Pipeline] // stage
[2026-04-22T18:44:20.504Z] [Pipeline] }
[2026-04-22T18:44:20.589Z] [Pipeline] // node
[2026-04-22T18:44:20.698Z] [Pipeline] End of Pipeline
[2026-04-22T18:44:20.726Z] java.lang.RuntimeException: Running 'jf' command failed with exit code 2
[2026-04-22T18:44:20.726Z] at PluginClassLoader for jfrog//io.jenkins.plugins.jfrog.JfStep$Execution.run(JfStep.java:129)
[2026-04-22T18:44:20.726Z] Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 59a4b5c4-8ac6-4f69-b335-ea1b5578d7fc
[2026-04-22T18:44:20.726Z] Caused: java.lang.RuntimeException: Couldn't execute 'jf' command. RuntimeException: Running 'jf' command failed with exit code 2
[2026-04-22T18:44:20.726Z] at PluginClassLoader for jfrog//io.jenkins.plugins.jfrog.JfStep$Execution.run(JfStep.java:134)
[2026-04-22T18:44:20.726Z] at PluginClassLoader for jfrog//io.jenkins.plugins.jfrog.JfStep$Execution.run(JfStep.java:92)
[2026-04-22T18:44:20.726Z] at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:49)
[2026-04-22T18:44:20.726Z] at PluginClassLoader for opentelemetry-api//io.opentelemetry.context.Context.lambda$wrap$1(Context.java:241)
[2026-04-22T18:44:20.726Z] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
[2026-04-22T18:44:20.726Z] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[2026-04-22T18:44:20.726Z] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[2026-04-22T18:44:20.726Z] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[2026-04-22T18:44:20.726Z] at java.base/java.lang.Thread.run(Thread.java:1583)
[2026-04-22T18:44:22.319Z] [GitHub Checks] GitHub check (name: Jenkins, status: completed) has been published.
[2026-04-22T18:44:23.256Z]
[2026-04-22T18:44:23.256Z] GitHub has been notified of this commit’s build result
[2026-04-22T18:44:23.256Z]
[2026-04-22T18:44:23.256Z] Finished: FAILURE

Reproduction steps

Build a multi arch container, using docker buildx push it to artifactory, then rebuild the image (changing something so the sha is different then the remote) and try pushing.

Expected behavior

I should be able to push a new / rebuilt container without issue.

JFrog CLI version

2.101.0

Operating system type and version

Ubuntu 24.04.2 LTS (amd64)

JFrog Artifactory version

Cloud

JFrog Xray version

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions