Skip to content

's5cmd run' crashes with SIGSEGV #619

@fventuri-availity

Description

@fventuri-availity

We have a script that uses s5cmd run to copy files from our local storage to AWS S3 every night.

For the last few nights s5cmd run has been crashing with this error message:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x9d460e]

goroutine 355482 [running]:
github.com/peak/s5cmd/command.Copy.doUpload({0xc000b08460, 0xc000b08500, {0xb1772c, 0x2}, {0xc000330820, 0xcd}, 0x0, 0x0, 0x0, 0x0, ...}, ...)
	/home/runner/work/s5cmd/s5cmd/command/cp.go:616 +0x92e
github.com/peak/s5cmd/command.Copy.prepareUploadTask.func1()
	/home/runner/work/s5cmd/s5cmd/command/cp.go:499 +0xf3
github.com/peak/s5cmd/parallel.(*Manager).Run.func1()
	/home/runner/work/s5cmd/s5cmd/parallel/parallel.go:57 +0x8a
created by github.com/peak/s5cmd/parallel.(*Manager).Run
	/home/runner/work/s5cmd/s5cmd/parallel/parallel.go:53 +0xca

This problem might be similar to the one described here: #559

Thanks,
Franco Venturi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions