Skip to content
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

downloadBlobToBuffer batchTransferOptions.operation function doesn't check for errors after running blobURL.Download #134

Closed
wbh1 opened this issue May 31, 2019 · 3 comments

Comments

@wbh1
Copy link
Contributor

wbh1 commented May 31, 2019

Which version of the SDK was used?

v0.0.0-20181022225951-5152f14ace1c

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

Linux

What problem was encountered?

panic: runtime error: invalid memory address or nil pointer dereference

level=info ts=2019-05-31T03:41:16.250869767Z caller=compact.go:908 msg="start sync of metas"
level=info ts=2019-05-31T03:41:16.522751016Z caller=compact.go:914 msg="start of GC"
level=info ts=2019-05-31T03:41:16.524491465Z caller=compact.go:920 msg="start of compaction"
level=info ts=2019-05-31T03:41:16.615530225Z caller=compact.go:218 msg="compaction iterations done"
level=info ts=2019-05-31T03:41:16.615588744Z caller=compact.go:225 msg="start first pass of downsampling"
level=info ts=2019-05-31T03:41:32.912774859Z caller=compact.go:231 msg="start second pass of downsampling"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9020ee]

goroutine 10395792 [running]:
github.com/Azure/azure-storage-blob-go/azblob.(*DownloadResponse).Body(0x0, 0x0, 0x0, 0x0, 0x0, 0xc00076b408)
	/go/pkg/mod/github.com/!azure/[email protected]/azblob/zz_response_helpers.go:62 +0x24e
github.com/Azure/azure-storage-blob-go/azblob.downloadBlobToBuffer.func1(0x0, 0x745, 0x435901, 0x1260101)
	/go/pkg/mod/github.com/!azure/[email protected]/azblob/highlevel.go:208 +0x162
github.com/Azure/azure-storage-blob-go/azblob.doBatchTransfer.func2(0xc0006b0360, 0xc000419fa8)
	/go/pkg/mod/github.com/!azure/[email protected]/azblob/highlevel.go:329 +0x3b
github.com/Azure/azure-storage-blob-go/azblob.doBatchTransfer.func1(0xc0006b0360, 0xc0006b05a0)
	/go/pkg/mod/github.com/!azure/[email protected]/azblob/highlevel.go:312 +0x3f
created by github.com/Azure/azure-storage-blob-go/azblob.doBatchTransfer
	/go/pkg/mod/github.com/!azure/[email protected]/azblob/highlevel.go:309 +0x191

(This was encountered in the Thanos project )

How can we reproduce the problem in the simplest way?

Make blobURL.Download fail in the downloadBlobToBuffer

Have you found a mitigation/solution?

Yes. I'll submit a PR for this shortly after submitting this issue.

@zezha-msft
Copy link
Contributor

Hi @wbh1, thanks a lot for catching this!

@zezha-msft
Copy link
Contributor

The fix will be deployed with the next release. :shipit:

@wbh1
Copy link
Contributor Author

wbh1 commented Jul 8, 2019

Closing, as this is fixed in v0.7.0

@wbh1 wbh1 closed this as completed Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants