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

fatal error: concurrent map read and map write #587

Open
bitmyth opened this issue Apr 11, 2019 · 0 comments
Open

fatal error: concurrent map read and map write #587

bitmyth opened this issue Apr 11, 2019 · 0 comments

Comments

@bitmyth
Copy link

bitmyth commented Apr 11, 2019

[>>>>>] 2019/04/11 16:55:38 DIRECT 127.0.0.1:54635 CONNECT console.aliyun.com:443 [193/1961]
fatal error: concurrent map read and map write

goroutine 13435 [running]:
runtime.throw(0x12f6431, 0x21)
/usr/local/go/src/runtime/panic.go:608 +0x72 fp=0xc0003ebcd0 sp=0xc0003ebca0 pc=0x102bbb2
runtime.mapaccess1_faststr(0x12a1680, 0xc0000947b0, 0xc0002a0160, 0x17, 0x1)
/usr/local/go/src/runtime/map_faststr.go:21 +0x418 fp=0xc0003ebd40 sp=0xc0003ebcd0 pc=0x10130f8
main.(*DomainList).judge(0xc00009e440, 0xc0002d2320, 0xc00010a360)
/Users/gsh/go/src/github.com/netheril96/MEOW/directlist.go:34 +0xed fp=0xc0003ebdd0 sp=0xc0003ebd40 pc=0x124526d
main.(*clientConn).getServerConn(0xc000020300, 0xc00011c090, 0x0, 0x0, 0x0)
/Users/gsh/go/src/github.com/netheril96/MEOW/proxy.go:653 +0x50 fp=0xc0003ebe70 sp=0xc0003ebdd0 pc=0x1256c50
main.(*clientConn).serve(0xc000020300)
/Users/gsh/go/src/github.com/netheril96/MEOW/proxy.go:470 +0x18b fp=0xc0003ebfd8 sp=0xc0003ebe70 pc=0x1254e3b
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0003ebfe0 sp=0xc0003ebfd8 pc=0x1057ef1
created by main.(*httpProxy).Serve
/Users/gsh/go/src/github.com/netheril96/MEOW/proxy.go:181 +0x518

goroutine 1 [semacquire, 169 minutes]:
sync.runtime_Semacquire(0xc0000a6494)
/usr/local/go/src/runtime/sema.go:56 +0x39
sync.(*WaitGroup).Wait(0xc0000a6494)
/usr/local/go/src/sync/waitgroup.go:130 +0x64
main.main()
/Users/gsh/go/src/github.com/netheril96/MEOW/main.go:50 +0x1da

goroutine 20 [sleep, 2 minutes]:
time.Sleep(0x45d964b800)
/usr/local/go/src/runtime/time.go:105 +0x14f
github.com/shadowsocks/shadowsocks-go/shadowsocks.newReqList.func1(0xc0000928e0)
/Users/gsh/go/src/github.com/shadowsocks/shadowsocks-go/shadowsocks/udprelay.go:82 +0x2d
created by github.com/shadowsocks/shadowsocks-go/shadowsocks.newReqList
/Users/gsh/go/src/github.com/shadowsocks/shadowsocks-go/shadowsocks/udprelay.go:80 +0x73

goroutine 24 [IO wait]:
internal/poll.runtime_pollWait(0x4254f00, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc00012af98, 0x72, 0xc000020a00, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc00012af98, 0xffffffffffffff00, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Accept(0xc00012af80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:384 +0x1a0
net.(*netFD).accept(0xc00012af80, 0x4254fd0, 0x2000, 0x2000)
/usr/local/go/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc0000ae0e0, 0xc000113b70, 0xc000113b78, 0x8)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x2e
net.(*TCPListener).Accept(0xc0000ae0e0, 0x12ff468, 0xc000020300, 0xc0000a8300, 0xc000020300)
/usr/local/go/src/net/tcpsock.go:260 +0x47
main.(*httpProxy).Serve(0xc0000a8300, 0xc0000a6494)
/Users/gsh/go/src/github.com/netheril96/MEOW/proxy.go:171 +0x30b
created by main.main
/Users/gsh/go/src/github.com/netheril96/MEOW/main.go:48 +0x1ba

goroutine 13456 [runnable]:
net._C2func_getaddrinfo(0xc00030e3e0, 0x0, 0xc00038e780, 0xc00000e090, 0x0, 0x0, 0x0)
_cgo_gotypes.go:98 +0x55
net.cgoLookupIPCNAME.func1(0xc00030e3e0, 0x0, 0xc00038e780, 0xc00000e090, 0x13, 0x13, 0x1006caf)
/usr/local/go/src/net/cgo_unix.go:149 +0x131
net.cgoLookupIPCNAME(0xc0002a0140, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/cgo_unix.go:149 +0x153

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

1 participant