{"action":"reopened","issue":{"url":"https://api.github.com/repos/golang/go/issues/22149","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/22149/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/22149/comments","events_url":"https://api.github.com/repos/golang/go/issues/22149/events","html_url":"https://github.com/golang/go/issues/22149","id":263149853,"number":22149,"title":"internal/poll: crash setting file completion modes on Windows","user":{"login":"noduluz","id":32545411,"avatar_url":"https://avatars3.githubusercontent.com/u/32545411?v=4","gravatar_id":"","url":"https://api.github.com/users/noduluz","html_url":"https://github.com/noduluz","followers_url":"https://api.github.com/users/noduluz/followers","following_url":"https://api.github.com/users/noduluz/following{/other_user}","gists_url":"https://api.github.com/users/noduluz/gists{/gist_id}","starred_url":"https://api.github.com/users/noduluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noduluz/subscriptions","organizations_url":"https://api.github.com/users/noduluz/orgs","repos_url":"https://api.github.com/users/noduluz/repos","events_url":"https://api.github.com/users/noduluz/events{/privacy}","received_events_url":"https://api.github.com/users/noduluz/received_events","type":"User","site_admin":false},"labels":[{"id":373402289,"url":"https://api.github.com/repos/golang/go/labels/NeedsInvestigation","name":"NeedsInvestigation","color":"ededed","default":false},{"id":199753992,"url":"https://api.github.com/repos/golang/go/labels/OS-Windows","name":"OS-Windows","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/56","html_url":"https://github.com/golang/go/milestone/56","labels_url":"https://api.github.com/repos/golang/go/milestones/56/labels","id":2473074,"number":56,"title":"Go1.10","description":"","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":848,"closed_issues":322,"state":"open","created_at":"2017-04-21T19:22:29Z","updated_at":"2017-10-11T05:55:55Z","due_on":"2018-01-31T08:00:00Z","closed_at":null},"comments":12,"created_at":"2017-10-05T14:37:51Z","updated_at":"2017-10-11T05:55:55Z","closed_at":null,"author_association":"NONE","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n\r\n### What version of Go are you using (`go version`)?\r\n1.9 , 1.9.1\r\n\r\n### Does this issue reproduce with the latest release?\r\nyes \r\nIt works with go 1.8.x in windows 10(64)\r\nVersions 1.8.x and 1.9.x work with linux glibc2.22 (leap42.2)\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\nset GOARCH=amd64\r\nset GOBIN=\r\nset GOEXE=.exe\r\nset GOHOSTARCH=amd64\r\nset GOHOSTOS=windows\r\nset GOOS=windows\r\nset GOPATH=C:\\Users\\MZ\\go\r\nset GORACE=\r\nset GOROOT=C:\\Go\r\nset GOTOOLDIR=C:\\Go\\pkg\\tool\\windows_amd64\r\nset GCCGO=gccgo\r\nset CC=gcc\r\nset GOGCCFLAGS=-m64 -mthreads -fmessage-length=0\r\nset CXX=g++\r\nset CGO_ENABLED=1\r\nset PKG_CONFIG=pkg-config\r\nset CGO_CFLAGS=-g -O2\r\nset CGO_CPPFLAGS=\r\nset CGO_CXXFLAGS=-g -O2\r\nset CGO_FFLAGS=-g -O2\r\nset CGO_LDFLAGS=-g -O2\r\n\r\n### What did you do?\r\ncompile , run and send a http request\r\n\r\n// TestFileServer project main.go\r\npackage main\r\n\r\nimport (\r\n\t\"net/http\"\r\n)\r\n\r\nfunc main() {\r\n\thttp.ListenAndServe(\":8080\", http.FileServer(http.Dir(\"/temp\")))\r\n}\r\n\r\n\r\nIf possible, provide a recipe for reproducing the error.\r\nA complete runnable program is good.\r\nA link on play.golang.org is best.\r\n\r\n\r\n### What did you expect to see?\r\nDirectory structure or file contents\r\n\r\n### What did you see instead?\r\nException 0xc0000096 0x0 0x0 0x18000890b\r\nPC=0x18000890b\r\n\r\nsyscall.Syscall(0x7ffce74bbfd0, 0x2, 0x104890, 0x2, 0x0, 0x1e0, 0x66aa20, 0x1)\r\n        c:/go/src/runtime/syscall_windows.go:163 +0x69\r\nsyscall.SetFileCompletionNotificationModes(0x104890, 0x2, 0x69ae71, 0x3)\r\n        c:/go/src/syscall/zsyscall_windows.go:1727 +0x6f\r\ninternal/poll.(*FD).Init(0xc042126000, 0x69ae62, 0x3, 0x6ae780, 0x0, 0x0, 0x64)\r\n        c:/go/src/internal/poll/fd_windows.go:346 +0xf9\r\nos.newFile(0x104890, 0xc04200e0d0, 0x5, 0x69ae62, 0x3, 0x0)\r\n        c:/go/src/os/file_windows.go:57 +0x138\r\nos.openDir(0xc04200e0d0, 0x5, 0x0, 0xc000000000, 0x0)\r\n        c:/go/src/os/file_windows.go:145 +0x2d5\r\nos.OpenFile(0xc04200e0d0, 0x5, 0x0, 0x0, 0x2, 0xc04200e0d0, 0x5)\r\n        c:/go/src/os/file_windows.go:163 +0x198\r\nos.Open(0xc04200e0d0, 0x5, 0x2, 0xc04200e0d0, 0x5)\r\n        c:/go/src/os/file.go:238 +0x4d\r\nnet/http.Dir.Open(0x69b166, 0x5, 0xc04200e074, 0x1, 0x0, 0xc042025ba8, 0x402359, 0xc042025bd0)\r\n        c:/go/src/net/http/fs.go:75 +0x18a\r\nnet/http.(*Dir).Open(0x6cc120, 0xc04200e074, 0x1, 0x0, 0xc042025bf8, 0x4cac74, 0xc042084d80)\r\n        <autogenerated>:1 +0x64\r\nnet/http.serveFile(0x7c48e0, 0xc042104000, 0xc0420fa000, 0x7c1a60, 0x6cc120, 0xc04200e074, 0x1, 0xc042025c01)\r\n        c:/go/src/net/http/fs.go:555 +0xbc\r\nnet/http.(*fileHandler).ServeHTTP(0xc0420449e0, 0x7c48e0, 0xc042104000, 0xc0420fa000)\r\n        c:/go/src/net/http/fs.go:719 +0xb1\r\nnet/http.serverHandler.ServeHTTP(0xc042050a90, 0x7c48e0, 0xc042104000, 0xc0420fa000)\r\n        c:/go/src/net/http/server.go:2619 +0xbb\r\nnet/http.(*conn).serve(0xc042052820, 0x7c4ce0, 0xc042036080)\r\n        c:/go/src/net/http/server.go:1801 +0x724\r\ncreated by net/http.(*Server).Serve\r\n        c:/go/src/net/http/server.go:2720 +0x28f\r\n\r\ngoroutine 1 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x12c4f70, 0x72, 0xc042084b58)\r\n        c:/go/src/runtime/netpoll.go:173 +0x5e\r\ninternal/poll.(*pollDesc).wait(0xc042084c98, 0x72, 0x7bf300, 0x0, 0x0)\r\n        c:/go/src/internal/poll/fd_poll_runtime.go:85 +0xb5\r\ninternal/poll.(*ioSrv).ExecIO(0x7f5c38, 0xc042084b58, 0xc042152000, 0x17, 0x1, 0x0)\r\n        c:/go/src/internal/poll/fd_windows.go:195 +0x13a\r\ninternal/poll.(*FD).acceptOne(0xc042084b40, 0x2bc, 0xc04214a000, 0x2, 0x2, 0xc042084b58, 0xc042077c78, 0xc042077c08, 0x410e0f, 0x10)\r\n        c:/go/src/internal/poll/fd_windows.go:748 +0xae\r\ninternal/poll.(*FD).Accept(0xc042084b40, 0xc042148000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n        c:/go/src/internal/poll/fd_windows.go:782 +0x171\r\nnet.(*netFD).accept(0xc042084b40, 0x6aebc8, 0xc042077d90, 0x40245b)\r\n        c:/go/src/net/fd_windows.go:192 +0x88\r\nnet.(*TCPListener).accept(0xc04207a020, 0x648380, 0xc042077dc0, 0x40112e)\r\n        c:/go/src/net/tcpsock_posix.go:136 +0x35\r\nnet.(*TCPListener).AcceptTCP(0xc04207a020, 0xc042077e08, 0xc042077e10, 0xc042077e00)\r\n        c:/go/src/net/tcpsock.go:234 +0x50\r\nnet/http.tcpKeepAliveListener.Accept(0xc04207a020, 0x6ae5a8, 0xc04213c000, 0x7c4da0, 0xc04206e960)\r\n        c:/go/src/net/http/server.go:3120 +0x36\r\nnet/http.(*Server).Serve(0xc042050a90, 0x7c4960, 0xc04207a020, 0x0, 0x0)\r\n        c:/go/src/net/http/server.go:2695 +0x1b9\r\nnet/http.(*Server).ListenAndServe(0xc042050a90, 0xc042050a90, 0x404401)\r\n        c:/go/src/net/http/server.go:2636 +0xb0\r\nnet/http.ListenAndServe(0x69b175, 0x5, 0x7c0e60, 0xc0420449e0, 0x0, 0xc042077f70)\r\n        c:/go/src/net/http/server.go:2882 +0x86\r\nmain.main()\r\n        C:/Users/MZ/Documents/Go/projects/src/TestFileServer/main.go:10 +0x8a\r\n\r\ngoroutine 4 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x12c4eb0, 0x72, 0x0)\r\n        c:/go/src/runtime/netpoll.go:173 +0x5e\r\ninternal/poll.(*pollDesc).wait(0xc042084ed8, 0x72, 0x7bf300, 0x0, 0x0)\r\n        c:/go/src/internal/poll/fd_poll_runtime.go:85 +0xb5\r\ninternal/poll.(*ioSrv).ExecIO(0x7f5c38, 0xc042084d98, 0x6ae3e0, 0x0, 0x0, 0x0)\r\n        c:/go/src/internal/poll/fd_windows.go:195 +0x13a\r\ninternal/poll.(*FD).Read(0xc042084d80, 0xc0420f2071, 0x1, 0x1, 0x0, 0x0, 0x0)\r\n        c:/go/src/internal/poll/fd_windows.go:439 +0x266\r\nnet.(*netFD).Read(0xc042084d80, 0xc0420f2071, 0x1, 0x1, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/fd_windows.go:151 +0x59\r\nnet.(*conn).Read(0xc04207a030, 0xc0420f2071, 0x1, 0x1, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/net.go:176 +0x74\r\nnet/http.(*connReader).backgroundRead(0xc0420f2060)\r\n        c:/go/src/net/http/server.go:660 +0x69\r\ncreated by net/http.(*connReader).startBackgroundRead\r\n        c:/go/src/net/http/server.go:656 +0xdf\r\n\r\ngoroutine 33 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x12c4df0, 0x72, 0x0)\r\n        c:/go/src/runtime/netpoll.go:173 +0x5e\r\ninternal/poll.(*pollDesc).wait(0xc0420f8158, 0x72, 0x7bf300, 0x0, 0x0)\r\n        c:/go/src/internal/poll/fd_poll_runtime.go:85 +0xb5\r\ninternal/poll.(*ioSrv).ExecIO(0x7f5c38, 0xc0420f8018, 0x6ae3e0, 0x410681, 0xc04212a100, 0x40)\r\n        c:/go/src/internal/poll/fd_windows.go:195 +0x13a\r\ninternal/poll.(*FD).Read(0xc0420f8000, 0xc04212e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        c:/go/src/internal/poll/fd_windows.go:439 +0x266\r\nnet.(*netFD).Read(0xc0420f8000, 0xc04212e000, 0x1000, 0x1000, 0xc0421098c8, 0x5e0fe2, 0x6741a0)\r\n        c:/go/src/net/fd_windows.go:151 +0x59\r\nnet.(*conn).Read(0xc042114000, 0xc04212e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/net.go:176 +0x74\r\nnet/http.(*connReader).Read(0xc0421120c0, 0xc04212e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/http/server.go:753 +0x10c\r\nbufio.(*Reader).fill(0xc04212c000)\r\n        c:/go/src/bufio/bufio.go:97 +0x121\r\nbufio.(*Reader).ReadSlice(0xc04212c000, 0xc042109a0a, 0x4101cd, 0x3bb05f0, 0x0, 0xc042109ab8, 0x410681)\r\n        c:/go/src/bufio/bufio.go:338 +0x33\r\nbufio.(*Reader).ReadLine(0xc04212c000, 0x100, 0xf8, 0x6911a0, 0x1, 0x12200007f8060, 0xf8)\r\n        c:/go/src/bufio/bufio.go:367 +0x3b\r\nnet/textproto.(*Reader).readLineSlice(0xc0421120f0, 0xc042109b20, 0xc042109b20, 0x410e0f, 0x100, 0x6911a0)\r\n        c:/go/src/net/textproto/reader.go:55 +0x77\r\nnet/textproto.(*Reader).ReadLine(0xc0421120f0, 0xc042130000, 0x0, 0xc042109b90, 0x4cb4d9)\r\n        c:/go/src/net/textproto/reader.go:36 +0x32\r\nnet/http.readRequest(0xc04212c000, 0x0, 0xc042130000, 0x0, 0x0)\r\n        c:/go/src/net/http/request.go:925 +0xa0\r\nnet/http.(*conn).readRequest(0xc042118000, 0x7c4ce0, 0xc04212a040, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/http/server.go:933 +0x183\r\nnet/http.(*conn).serve(0xc042118000, 0x7c4ce0, 0xc04212a040)\r\n        c:/go/src/net/http/server.go:1739 +0x515\r\ncreated by net/http.(*Server).Serve\r\n        c:/go/src/net/http/server.go:2720 +0x28f\r\n\r\ngoroutine 49 [IO wait]:\r\ninternal/poll.runtime_pollWait(0x12c4d30, 0x72, 0x0)\r\n        c:/go/src/runtime/netpoll.go:173 +0x5e\r\ninternal/poll.(*pollDesc).wait(0xc042132158, 0x72, 0x7bf300, 0x0, 0x0)\r\n        c:/go/src/internal/poll/fd_poll_runtime.go:85 +0xb5\r\ninternal/poll.(*ioSrv).ExecIO(0x7f5c38, 0xc042132018, 0x6ae3e0, 0x410681, 0xc04212a240, 0x40)\r\n        c:/go/src/internal/poll/fd_windows.go:195 +0x13a\r\ninternal/poll.(*FD).Read(0xc042132000, 0xc042150000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        c:/go/src/internal/poll/fd_windows.go:439 +0x266\r\nnet.(*netFD).Read(0xc042132000, 0xc042150000, 0x1000, 0x1000, 0xc0421458c8, 0x5e0fe2, 0x6741a0)\r\n        c:/go/src/net/fd_windows.go:151 +0x59\r\nnet.(*conn).Read(0xc042138000, 0xc042150000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/net.go:176 +0x74\r\nnet/http.(*connReader).Read(0xc042112180, 0xc042150000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/http/server.go:753 +0x10c\r\nbufio.(*Reader).fill(0xc04212c060)\r\n        c:/go/src/bufio/bufio.go:97 +0x121\r\nbufio.(*Reader).ReadSlice(0xc04212c060, 0xa, 0x0, 0x0, 0x0, 0xc042145ab8, 0x410681)\r\n        c:/go/src/bufio/bufio.go:338 +0x33\r\nbufio.(*Reader).ReadLine(0xc04212c060, 0x100, 0xf8, 0x6911a0, 0x4, 0x22004202a380, 0xf8)\r\n        c:/go/src/bufio/bufio.go:367 +0x3b\r\nnet/textproto.(*Reader).readLineSlice(0xc0421121b0, 0xc042145b20, 0xc042145b20, 0x410e0f, 0x100, 0x6911a0)\r\n        c:/go/src/net/textproto/reader.go:55 +0x77\r\nnet/textproto.(*Reader).ReadLine(0xc0421121b0, 0xc042130100, 0x0, 0xc042145b90, 0x4cb4d9)\r\n        c:/go/src/net/textproto/reader.go:36 +0x32\r\nnet/http.readRequest(0xc04212c060, 0x0, 0xc042130100, 0x0, 0x0)\r\n        c:/go/src/net/http/request.go:925 +0xa0\r\nnet/http.(*conn).readRequest(0xc04213c000, 0x7c4ce0, 0xc04212a180, 0x0, 0x0, 0x0)\r\n        c:/go/src/net/http/server.go:933 +0x183\r\nnet/http.(*conn).serve(0xc04213c000, 0x7c4ce0, 0xc04212a180)\r\n        c:/go/src/net/http/server.go:1739 +0x515\r\ncreated by net/http.(*Server).Serve\r\n        c:/go/src/net/http/server.go:2720 +0x28f\r\nrax     0x0\r\nrbx     0xc04202aa40\r\nrcx     0x104890\r\nrdi     0x3ca000\r\nrsi     0xc0420257f0\r\nrbp     0xc0420257a0\r\nrsp     0x1a0fda0\r\nr8      0x1\r\nr9      0x104890\r\nr10     0x1f\r\nr11     0xbff50\r\nr12     0x0\r\nr13     0xfa\r\nr14     0xfa\r\nr15     0xa\r\nrip     0x18000890b\r\nrflags  0x10246\r\ncs      0x33\r\nfs      0x53\r\ngs      0x2b\r\n"}}
{"actor":{"display_login":"alexbrainman"}}