-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azcopy.exe : panic: runtime error: invalid memory address or nil pointer dereference when copying disks across regions #2404
Comments
The panic should be resolved by the above PR and will be release as part of our next release, which should allow you to see the url that is causing an error parsing |
Closing this for now as this will be resolved as part of our next release. |
This is still an issue in 10.23.0. I'm using SAS for both source and destination. `panic: runtime error: invalid memory address or nil pointer dereference goroutine 1 [running]: |
@bfox-sugarshot from the stack trace this looks unrelated to the original issue. Please open a new issue with more details so we can investigate further. |
Thank you |
Which version of the AzCopy was used?
Note: The version is visible when running AzCopy without any argument
Tested using Azcopy Version 10.21.0 & 10.15.0
Which platform are you using? (ex: Windows, Mac, Linux)
Tested using Windows and Cloud Shell
"azure-cli": "2.53.0",
What command did you run?
Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.
.\azcopy.exe copy $sourceSASURI $targetSASURI --blob-type PageBlob
What problem was encountered?
Operation failed with the following Error:
.\azcopy.exe : panic: runtime error: invalid memory address or nil pointer dereference
At line:1 char:1
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x2b2620]
goroutine 1 [running]:
net/url.(*URL).String(0x0)
C:/hostedtoolcache/windows/go/1.19.12/x64/src/net/url/url.go:807 +0x40
github.com/Azure/azure-storage-azcopy/v10/cmd.copyHandlerUtil.ConstructCommandStringFromArgs({})
D:/a/1/s/cmd/copyUtil.go:111 +0x407
github.com/Azure/azure-storage-azcopy/v10/cmd.init.2.func2(0xc000319680?, {0xc000363100?, 0x2?, 0x4?})
D:/a/1/s/cmd/copy.go:1937 +0x1d6
github.com/spf13/cobra.(*Command).execute(0xc000319680, {0xc0003630c0, 0x4, 0x4})
C:/Users/VssAdministrator/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:860 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0x1580340)
C:/Users/VssAdministrator/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
C:/Users/VssAdministrator/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
github.com/Azure/azure-storage-azcopy/v10/cmd.Execute({0xc0000ea900?, 0xc00006c110?}, {0xc0000ea940?, 0xd3935d?}, 0x74?, {0x4b348e4a, 0x4e38, 0xb342, {0x55, 0xc0, ...}})
D:/a/1/s/cmd/root.go:189 +0x106
main.main()
D:/a/1/s/main.go:84 +0x4ea
How can we reproduce the problem in the simplest way?
Issue is reproducible on different subscriptions and different disks following the sample script attached.
Have you found a mitigation/solution?
We moved the disks to different region using Azure Storage explorer which seems to work with no issues.
azcopy_issue.txt
The text was updated successfully, but these errors were encountered: