Skip to content

Azcopy "panic: runtime error: invalid memory address or nil pointer dereference" when copying from S3 to Azure storage account #3308

@sjoerdhooft

Description

@sjoerdhooft

Which version of the AzCopy was used?

10.31

Which platform are you using? (ex: Windows, Mac, Linux)

Windows

What command did you run?

.\azcopy1031.exe copy "https://s3.eu-central-1.amazonaws.com/mys3bucket/PRD/" https://mystorageaccount.blob.core.windows.net/myblobcontainer?sv=2024-11-04&ss=b&srt=co&sp=rwdlaciytfx&se=2026-12-31T15:59:00Z&st=2025-11-28T07:44:00Z&spr=https&sig=** --include-pattern "filestore-PRD-20251125-2224.all.out.gz.enc" --recursive=true

What problem was encountered?

INFO: Scanning...
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x11e4771]

goroutine 1 [running]:
github.com/Azure/azure-storage-azcopy/v10/common.(*ServiceClient).FileServiceClient(...)
        D:/a/_work/1/s/common/util.go:279
github.com/Azure/azure-storage-azcopy/v10/cmd.getShareProtocolType({0x1a23798, 0xc00052e570}, 0x0, {{0xc00004c2d0, 0x3a}, {0x0, 0x0}, {0x0, 0x0}}, 0x0)
        D:/a/_work/1/s/cmd/flagsValidation.go:364 +0x171
github.com/Azure/azure-storage-azcopy/v10/cmd.validateShareProtocolCompatibility({0x1a23798?, 0xc00052e570?}, {{0xc00004c2d0, 0x3a}, {0x0, 0x0}, {0x0, 0x0}}, 0x17a1f13?, 0x1, ...)
        D:/a/_work/1/s/cmd/flagsValidation.go:323 +0x77
github.com/Azure/azure-storage-azcopy/v10/cmd.validateProtocolCompatibility({0x1a23798, 0xc00052e570}, 0x603, {{0xc00004c2d0, 0x3a}, {0x0, 0x0}, {0x0, 0x0}}, {{0xc0005265c0, ...}, ...}, ...)
        D:/a/_work/1/s/cmd/flagsValidation.go:413 +0x128
github.com/Azure/azure-storage-azcopy/v10/cmd.(*CookedCopyCmdArgs).processCopyJobPartOrders(0xc000563408)
        D:/a/_work/1/s/cmd/copy.go:1199 +0x1189
github.com/Azure/azure-storage-azcopy/v10/cmd.(*CookedCopyCmdArgs).process(0xc000563408)
        D:/a/_work/1/s/cmd/copy.go:798 +0x7b
github.com/Azure/azure-storage-azcopy/v10/cmd.init.2.func2(0xc0003f4908, {0xc00081a2d0?, 0x2?, 0x17a14c0?})
        D:/a/_work/1/s/cmd/copy.go:1652 +0x292
github.com/spf13/cobra.(*Command).execute(0xc0003f4908, {0xc00081a280, 0x5, 0x5})
        C:/Users/cloudtest/go/pkg/mod/github.com/spf13/[email protected]/command.go:989 +0xabb
github.com/spf13/cobra.(*Command).ExecuteC(0x27ff380)
        C:/Users/cloudtest/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x44f
github.com/spf13/cobra.(*Command).Execute(...)
        C:/Users/cloudtest/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041
github.com/Azure/azure-storage-azcopy/v10/cmd.InitializeAndExecute()
        D:/a/_work/1/s/cmd/root.go:279 +0x1a
main.main()
        D:/a/_work/1/s/main.go:34 +0x2f

How can we reproduce the problem in the simplest way?

Run the command above to copy from S3 storage to azure storage account.

Have you found a mitigation/solution?

Version 10.30 works perfect with exactly the same credentials and command.

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