{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/24218","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/24218/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/24218/comments","events_url":"https://api.github.com/repos/golang/go/issues/24218/events","html_url":"https://github.com/golang/go/issues/24218","id":301779306,"number":24218,"title":"panic: runtime error: slice bounds out of range","user":{"login":"protheusfr","id":1698825,"avatar_url":"https://avatars2.githubusercontent.com/u/1698825?v=4","gravatar_id":"","url":"https://api.github.com/users/protheusfr","html_url":"https://github.com/protheusfr","followers_url":"https://api.github.com/users/protheusfr/followers","following_url":"https://api.github.com/users/protheusfr/following{/other_user}","gists_url":"https://api.github.com/users/protheusfr/gists{/gist_id}","starred_url":"https://api.github.com/users/protheusfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protheusfr/subscriptions","organizations_url":"https://api.github.com/users/protheusfr/orgs","repos_url":"https://api.github.com/users/protheusfr/repos","events_url":"https://api.github.com/users/protheusfr/events{/privacy}","received_events_url":"https://api.github.com/users/protheusfr/received_events","type":"User","site_admin":false},"labels":[{"id":357033853,"url":"https://api.github.com/repos/golang/go/labels/WaitingForInfo","name":"WaitingForInfo","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-02T14:14:47Z","updated_at":"2018-03-05T13:10:04Z","closed_at":null,"author_association":"NONE","body":"### What version of Go are you using (`go version`)?\r\n`go version go1.10 linux/amd64`\r\n\r\n### Does this issue reproduce with the latest release?\r\nYes, and it appear only on latest release, not present on version 1.9.4\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n```\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/root/.cache/go-build\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/root/go\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/go.1.10\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/lib/go.1.10/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"gcc\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build313800813=/tmp/go-build -gno-record-gcc-switches\"\r\n```\r\n\r\n### What did you do?\r\n\r\nThe issue appear through the usage of Minio GoLang SDK (https://github.com/minio/minio) to upload encrypted file.\r\nThis appear almost randomly (not each time on the same file upload) and appear only when compiled with Go 1.10 (no issue with Go 1.9.4).\r\n\r\n\r\n### What did you expect to see?\r\nNothing more than a confirmation of files uploading.\r\n\r\n### What did you see instead?\r\n\r\n```\r\npanic: runtime error: slice bounds out of range\r\n\r\ngoroutine 933 [running]:\r\nbytes.(*Buffer).grow(0xc420170bd0, 0x200, 0xc4200aa050)\r\n\t/usr/lib/go/src/bytes/buffer.go:139 +0x297\r\nbytes.(*Buffer).ReadFrom(0xc420170bd0, 0xda10c0, 0xc420663460, 0x7f8b73181120, 0xc420170bd0, 0x1)\r\n\t/usr/lib/go/src/bytes/buffer.go:204 +0x48\r\nio.copyBuffer(0xda0020, 0xc420170bd0, 0xda10c0, 0xc420663460, 0x0, 0x0, 0x0, 0xbe0aa0, 0x13, 0x18)\r\n\t/usr/lib/go/src/io/io.go:386 +0x31a\r\nio.Copy(0xda0020, 0xc420170bd0, 0xda10c0, 0xc420663460, 0x10, 0x0, 0x0)\r\n\t/usr/lib/go/src/io/io.go:362 +0x5a\r\nio.CopyN(0xda0020, 0xc420170bd0, 0xda1720, 0xc4202e6000, 0x10, 0x10, 0x0, 0x0)\r\n\t/usr/lib/go/src/io/io.go:338 +0x8b\r\nxxx/xxx/vendor/github.com/minio/minio-go/pkg/encrypt.(*CBCSecureMaterials).Read(0xc420376480, 0xc445120000, 0x24000000, 0x24000000, 0xca40, 0x0, 0x0)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/370414019","html_url":"https://github.com/golang/go/issues/24218#issuecomment-370414019","issue_url":"https://api.github.com/repos/golang/go/issues/24218","id":370414019,"user":{"login":"protheusfr","id":1698825,"avatar_url":"https://avatars2.githubusercontent.com/u/1698825?v=4","gravatar_id":"","url":"https://api.github.com/users/protheusfr","html_url":"https://github.com/protheusfr","followers_url":"https://api.github.com/users/protheusfr/followers","following_url":"https://api.github.com/users/protheusfr/following{/other_user}","gists_url":"https://api.github.com/users/protheusfr/gists{/gist_id}","starred_url":"https://api.github.com/users/protheusfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protheusfr/subscriptions","organizations_url":"https://api.github.com/users/protheusfr/orgs","repos_url":"https://api.github.com/users/protheusfr/repos","events_url":"https://api.github.com/users/protheusfr/events{/privacy}","received_events_url":"https://api.github.com/users/protheusfr/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T13:10:04Z","updated_at":"2018-03-05T13:10:04Z","author_association":"NONE","body":"@bradfitz I will you know if I found a way to provide a simple code to reproduce.\r\nIn the meantime we had revert to Go 1.9.4 (where the issue isn't present)."}}
{"actor":{"display_login":"protheusfr"}}