gobuffalo / events

Buffalo framework events management
MIT License
16 stars 3 forks source link

fatal error: concurrent map iteration and map write #4

Closed paganotoni closed 5 years ago

paganotoni commented 5 years ago

Description

There are some cases where buffalo panics while reloading the app with fatal error: concurrent map iteration and map write.

Steps to Reproduce the Problem

I don't have this clear, it just happens some times, maybe some race condition.

Actual Behavior

This is the stack track i see in the console.

``` fatal error: concurrent map iteration and map write goroutine 450 [running]: runtime.throw(0x18c5527, 0x26) /usr/local/Cellar/go/1.11.2/libexec/src/runtime/panic.go:608 +0x72 fp=0xc000895200 sp=0xc0008951d0 pc=0x102c642 runtime.mapiternext(0xc0008952e8) /usr/local/Cellar/go/1.11.2/libexec/src/runtime/map.go:790 +0x525 fp=0xc000895288 sp=0xc000895200 pc=0x1010865 runtime.mapiterinit(0x17cb880, 0xc0005f8cf0, 0xc0008952e8) /usr/local/Cellar/go/1.11.2/libexec/src/runtime/map.go:780 +0x1c4 fp=0xc0008952a8 sp=0xc000895288 pc=0x1010244 github.com/gobuffalo/buffalo.(*DefaultContext).Data(0xc000409b90, 0xc0005f4be0) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/default_context.go:224 +0x9c fp=0xc000895358 sp=0xc0008952a8 pc=0x165b61c github.com/gobuffalo/buffalo.(*DefaultContext).MarshalJSON(0xc000409b90, 0x187ec00, 0xc000409b90, 0x2414238, 0xc000409b90, 0x1) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/default_context.go:264 +0x4e fp=0xc000895428 sp=0xc000895358 pc=0x165bc1e encoding/json.marshalerEncoder(0xc0000e6580, 0x187ec00, 0xc000409b90, 0x16, 0xc000890100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:453 +0xb7 fp=0xc0008954a8 sp=0xc000895428 pc=0x1305637 encoding/json.(*encodeState).reflectValue(0xc0000e6580, 0x187ec00, 0xc000409b90, 0x16, 0x1ef0100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:333 +0x82 fp=0xc0008954e0 sp=0xc0008954a8 pc=0x1304d22 encoding/json.(*encodeState).marshal(0xc0000e6580, 0x187ec00, 0xc000409b90, 0x70000c0000d0100, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:305 +0xf4 fp=0xc000895528 sp=0xc0008954e0 pc=0x13047d4 encoding/json.Marshal(0x187ec00, 0xc000409b90, 0x16, 0x18795a0, 0xc000409b90, 0x199, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:160 +0x52 fp=0xc0008955a0 sp=0xc000895528 pc=0x13040a2 github.com/gobuffalo/mapi.Mapi.MarshalJSON(0xc0002febd0, 0x1820a60, 0xc0002febd0, 0x20cb810, 0xc0002febd0, 0xc0000d1001) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/mapi@v1.0.1/mapi.go:64 +0x1ba fp=0xc000895700 sp=0xc0008955a0 pc=0x131561a encoding/json.marshalerEncoder(0xc0000e64d0, 0x1820a60, 0xc0002febd0, 0x15, 0xc0002f0100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:453 +0xb7 fp=0xc000895780 sp=0xc000895700 pc=0x1305637 encoding/json.(*encodeState).reflectValue(0xc0000e64d0, 0x1820a60, 0xc0002febd0, 0x15, 0xc0002f0100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:333 +0x82 fp=0xc0008957b8 sp=0xc000895780 pc=0x1304d22 encoding/json.interfaceEncoder(0xc0000e64d0, 0x17c7aa0, 0xc0005c60a0, 0x94, 0xc0005c0100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:619 +0xab fp=0xc000895800 sp=0xc0008957b8 pc=0x1306f7b encoding/json.(*mapEncoder).encode(0xc0000bc048, 0xc0000e64d0, 0x17cb880, 0xc0002fed20, 0x15, 0x17c0100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:692 +0x37b fp=0xc000895970 sp=0xc000895800 pc=0x1307adb encoding/json.(*mapEncoder).encode-fm(0xc0000e64d0, 0x17cb880, 0xc0002fed20, 0x15, 0xc000060100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:708 +0x64 fp=0xc0008959b0 sp=0xc000895970 pc=0x1311a24 encoding/json.(*encodeState).reflectValue(0xc0000e64d0, 0x17cb880, 0xc0002fed20, 0x15, 0x1800100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:333 +0x82 fp=0xc0008959e8 sp=0xc0008959b0 pc=0x1304d22 encoding/json.(*encodeState).marshal(0xc0000e64d0, 0x17cb880, 0xc0002fed20, 0x5cbf0100, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:305 +0xf4 fp=0xc000895a30 sp=0xc0008959e8 pc=0x13047d4 encoding/json.Marshal(0x17cb880, 0xc0002fed20, 0x18a992b, 0x7, 0xc0000d1068, 0xc000067b68, 0x106d5bb) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:160 +0x52 fp=0xc000895aa8 sp=0xc000895a30 pc=0x13040a2 github.com/gobuffalo/events.Event.MarshalJSON(0x18ad791, 0xb, 0x0, 0x0, 0xc0002febd0, 0x1993b00, 0xc0004fd0e0, 0x100bce3, 0x17e8c00, 0x185d560, ...) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/event.go:43 +0x10a fp=0xc000895b20 sp=0xc000895aa8 pc=0x13c310a github.com/gobuffalo/events.(*Event).MarshalJSON(0xc000031280, 0x185d560, 0xc000031280, 0x20cb7f0, 0xc000031280, 0x1) :1 +0x5f fp=0xc000895b90 sp=0xc000895b20 pc=0x13c50df encoding/json.marshalerEncoder(0xc0000e6420, 0x185d560, 0xc000031280, 0x99, 0xc000060100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:453 +0xb7 fp=0xc000895c10 sp=0xc000895b90 pc=0x1305637 encoding/json.(*encodeState).reflectValue(0xc0000e6420, 0x185d560, 0xc000031280, 0x99, 0x1800100) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:333 +0x82 fp=0xc000895c48 sp=0xc000895c10 pc=0x1304d22 encoding/json.(*encodeState).marshal(0xc0000e6420, 0x185d560, 0xc000031280, 0x100, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:305 +0xf4 fp=0xc000895c90 sp=0xc000895c48 pc=0x13047d4 encoding/json.Marshal(0x185d560, 0xc000031280, 0x185d560, 0xc000031280, 0x187a920, 0x1, 0xc0003de180) /usr/local/Cellar/go/1.11.2/libexec/src/encoding/json/encode.go:160 +0x52 fp=0xc000895d08 sp=0xc000895c90 pc=0x13040a2 github.com/gobuffalo/events.LoadPlugins.func1.1.1.1(0x18ad791, 0xb, 0x0, 0x0, 0xc0002febd0, 0x1993b00, 0xc0004fd0e0) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/plugins.go:39 +0xac fp=0xc000895e78 sp=0xc000895d08 pc=0x13c463c github.com/gobuffalo/events.(*manager).Emit.func1.1.1() /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/manager.go:87 +0x4c fp=0xc000895ec0 sp=0xc000895e78 pc=0x13c41cc github.com/markbates/safe.Run.func1(0x8, 0x18e3ae8) /Users/paganotoni/go/pkg/mod/github.com/markbates/safe@v1.0.1/safe.go:12 +0x24 fp=0xc000895ed0 sp=0xc000895ec0 pc=0x13162d4 github.com/markbates/safe.RunE(0xc00061f710, 0x0, 0x0) /Users/paganotoni/go/pkg/mod/github.com/markbates/safe@v1.0.1/safe.go:32 +0x55 fp=0xc000895ef8 sp=0xc000895ed0 pc=0x1316265 github.com/markbates/safe.Run(0xc00061f748, 0x102bc31, 0x18e4c98) /Users/paganotoni/go/pkg/mod/github.com/markbates/safe@v1.0.1/safe.go:11 +0x49 fp=0xc000895f30 sp=0xc000895ef8 pc=0x13161e9 github.com/gobuffalo/events.(*manager).Emit.func1.1(0x18ad791, 0xb, 0x0, 0x0, 0xc0002febd0, 0x1993b00, 0xc0004fd0e0, 0xc0001d0000) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/manager.go:86 +0x96 fp=0xc000895fa0 sp=0xc000895f30 pc=0x13c4276 runtime.goexit() /usr/local/Cellar/go/1.11.2/libexec/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc000895fa8 sp=0xc000895fa0 pc=0x1059e71 created by github.com/gobuffalo/events.(*manager).Emit.func1 /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/manager.go:85 +0x1b7 goroutine 1 [chan receive]: github.com/gobuffalo/buffalo.(*App).Serve(0xc000488c00, 0x0, 0x1, 0x1, 0x0, 0x0) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/server.go:94 +0x4b2 main.main() /Users/paganotoni/go/src/github.com/paganotoni/zekito/main.go:11 +0x38 goroutine 4 [syscall]: os/signal.signal_recv(0x0) /usr/local/Cellar/go/1.11.2/libexec/src/runtime/sigqueue.go:139 +0x9f os/signal.loop() /usr/local/Cellar/go/1.11.2/libexec/src/os/signal/signal_unix.go:23 +0x22 created by os/signal.init.0 /usr/local/Cellar/go/1.11.2/libexec/src/os/signal/signal_unix.go:29 +0x41 goroutine 34 [select]: database/sql.(*DB).connectionOpener(0xc00039e0c0, 0x199dac0, 0xc00038e180) /usr/local/Cellar/go/1.11.2/libexec/src/database/sql/sql.go:1001 +0xe8 created by database/sql.OpenDB /usr/local/Cellar/go/1.11.2/libexec/src/database/sql/sql.go:671 +0x15d goroutine 35 [select]: database/sql.(*DB).connectionResetter(0xc00039e0c0, 0x199dac0, 0xc00038e180) /usr/local/Cellar/go/1.11.2/libexec/src/database/sql/sql.go:1014 +0xfb created by database/sql.OpenDB /usr/local/Cellar/go/1.11.2/libexec/src/database/sql/sql.go:672 +0x193 goroutine 371 [IO wait]: internal/poll.runtime_pollWait(0x20c30e8, 0x72, 0xc000565858) /usr/local/Cellar/go/1.11.2/libexec/src/runtime/netpoll.go:173 +0x66 internal/poll.(*pollDesc).wait(0xc00019b318, 0x72, 0xffffffffffffff00, 0x1995320, 0x1eb0918) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a internal/poll.(*pollDesc).waitRead(0xc00019b318, 0xc00032e000, 0x1000, 0x1000) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d internal/poll.(*FD).Read(0xc00019b300, 0xc00032e000, 0x1000, 0x1000, 0x0, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_unix.go:169 +0x1d6 net.(*netFD).Read(0xc00019b300, 0xc00032e000, 0x1000, 0x1000, 0xc00038ea80, 0xc000565968, 0x129c5a0) /usr/local/Cellar/go/1.11.2/libexec/src/net/fd_unix.go:202 +0x4f net.(*conn).Read(0xc00000e278, 0xc00032e000, 0x1000, 0x1000, 0x0, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/net/net.go:177 +0x68 net/http.(*connReader).Read(0xc0005f8720, 0xc00032e000, 0x1000, 0x1000, 0x104a538, 0x105b6f0, 0xc000565a48) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:786 +0xfc bufio.(*Reader).fill(0xc0002fc120) /usr/local/Cellar/go/1.11.2/libexec/src/bufio/bufio.go:100 +0x106 bufio.(*Reader).ReadSlice(0xc0002fc120, 0xc000167d0a, 0x203000, 0x10595e2, 0x104a538, 0x105b6f0, 0x203000) /usr/local/Cellar/go/1.11.2/libexec/src/bufio/bufio.go:341 +0x36 bufio.(*Reader).ReadLine(0xc0002fc120, 0xc000167d00, 0x100, 0xf8, 0x1890d80, 0x0, 0xc0001f9c00) /usr/local/Cellar/go/1.11.2/libexec/src/bufio/bufio.go:370 +0x34 net/textproto.(*Reader).readLineSlice(0xc0005f8750, 0xc000078c01, 0xc000565b98, 0x100e0f8, 0x100, 0x1890d80) /usr/local/Cellar/go/1.11.2/libexec/src/net/textproto/reader.go:55 +0x6f net/textproto.(*Reader).ReadLine(0xc0005f8750, 0xc000167d00, 0x0, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/net/textproto/reader.go:36 +0x2b net/http.readRequest(0xc0002fc120, 0x0, 0xc000167d00, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/request.go:958 +0x8c net/http.(*conn).readRequest(0xc0002e90e0, 0x199dac0, 0xc00038ea00, 0x0, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:966 +0x162 net/http.(*conn).serve(0xc0002e90e0, 0x199dac0, 0xc00038ea00) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:1788 +0x49e created by net/http.(*Server).Serve /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:2851 +0x2f5 goroutine 66 [select]: github.com/markbates/sigtx.WithCancel.func1(0xc00027c000, 0xc0002e7fe0, 0x199dac0, 0xc00038fc00) /Users/paganotoni/go/pkg/mod/github.com/markbates/sigtx@v1.0.0/context.go:14 +0xb7 created by github.com/markbates/sigtx.WithCancel /Users/paganotoni/go/pkg/mod/github.com/markbates/sigtx@v1.0.0/context.go:13 +0xe1 goroutine 67 [chan receive]: github.com/gobuffalo/buffalo.(*App).Serve.func1(0x199dac0, 0xc00038fc00, 0xc000488c00, 0xc0001f1500, 0xc0002e7fd0, 0x1, 0x1) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/server.go:47 +0x60 created by github.com/gobuffalo/buffalo.(*App).Serve /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/server.go:45 +0x395 goroutine 69 [IO wait]: internal/poll.runtime_pollWait(0x20c3018, 0x72, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/runtime/netpoll.go:173 +0x66 internal/poll.(*pollDesc).wait(0xc00019a018, 0x72, 0xc0000b2000, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a internal/poll.(*pollDesc).waitRead(0xc00019a018, 0xffffffffffffff00, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d internal/poll.(*FD).Accept(0xc00019a000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_unix.go:384 +0x1a0 net.(*netFD).accept(0xc00019a000, 0x104ac1a, 0x105b6f0, 0xc000495d80) /usr/local/Cellar/go/1.11.2/libexec/src/net/fd_unix.go:238 +0x42 net.(*TCPListener).accept(0xc0005a0000, 0x17931a0, 0x18e4a78, 0xc000495dd0) /usr/local/Cellar/go/1.11.2/libexec/src/net/tcpsock_posix.go:139 +0x2e net.(*TCPListener).AcceptTCP(0xc0005a0000, 0xc000495df8, 0x1088466, 0x5c325854) /usr/local/Cellar/go/1.11.2/libexec/src/net/tcpsock.go:247 +0x47 net/http.tcpKeepAliveListener.Accept(0xc0005a0000, 0xc000495e48, 0x18, 0xc0004b4780, 0x12a5e85) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:3232 +0x2f net/http.(*Server).Serve(0xc0002fa0d0, 0x199b8c0, 0xc0005a0000, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:2826 +0x22f net/http.(*Server).ListenAndServe(0xc0002fa0d0, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:2764 +0xb6 github.com/gobuffalo/buffalo/servers.(*Simple).Start(0xc000390328, 0x199dac0, 0xc00038fc00, 0x19935c0, 0xc000488c00, 0x0, 0x0) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/servers/simple.go:23 +0x4c github.com/gobuffalo/buffalo.(*App).Serve.func3(0x199dac0, 0xc00038fc00, 0xc000488c00, 0x1998a00, 0xc000390328) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/server.go:88 +0x5b created by github.com/gobuffalo/buffalo.(*App).Serve /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/server.go:87 +0x46b goroutine 45 [semacquire]: sync.runtime_SemacquireMutex(0xc00050ebe4, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/runtime/sema.go:71 +0x3d sync.(*Mutex).Lock(0xc00050ebe0) /usr/local/Cellar/go/1.11.2/libexec/src/sync/mutex.go:134 +0xff sync.(*RWMutex).Lock(0xc00050ebe0) /usr/local/Cellar/go/1.11.2/libexec/src/sync/rwmutex.go:93 +0x2d github.com/gobuffalo/buffalo.(*DefaultContext).Data(0xc000409b90, 0xc0005f8cf0) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/default_context.go:222 +0x44 github.com/gobuffalo/buffalo.defaultErrorHandler(0x1f4, 0x1993b00, 0xc0004fd0e0, 0x19a5b00, 0xc000409b90, 0xc000410690, 0x0) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/errors.go:191 +0xb26 github.com/gobuffalo/buffalo.(*App).defaultErrorMiddleware.func1(0x19a5b00, 0xc000409b90, 0x3, 0xc0001b2a60) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/errors.go:110 +0x263 github.com/gobuffalo/buffalo.RouteInfo.ServeHTTP(0x18a4842, 0x3, 0xc0001b2a60, 0x13, 0xc0000f3590, 0x41, 0xc000369040, 0x13, 0x1f15730, 0x0, ...) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/route_info.go:108 +0x378 github.com/gorilla/mux.(*Router).ServeHTTP(0xc000126700, 0x1998980, 0xc000725000, 0xc000167f00) /Users/paganotoni/go/pkg/mod/github.com/gorilla/mux@v1.6.2/mux.go:162 +0xf1 github.com/markbates/refresh/refresh/web.ErrorChecker.func1(0x1998980, 0xc000725000, 0xc000167c00) /Users/paganotoni/go/pkg/mod/github.com/markbates/refresh@v1.4.11/refresh/web/web.go:23 +0xaf net/http.HandlerFunc.ServeHTTP(0xc000725060, 0x1998980, 0xc000725000, 0xc000167c00) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:1964 +0x44 github.com/gobuffalo/buffalo.(*App).ServeHTTP(0xc000488c00, 0x199b540, 0xc00033c000, 0xc000167c00) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/buffalo@v0.13.12/server.go:126 +0x153 net/http.serverHandler.ServeHTTP(0xc0002fa0d0, 0x199b540, 0xc00033c000, 0xc000167c00) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:2741 +0xab net/http.(*conn).serve(0xc0001cc000, 0x199dac0, 0xc000030240) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:1847 +0x646 created by net/http.(*Server).Serve /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:2851 +0x2f5 goroutine 372 [IO wait]: internal/poll.runtime_pollWait(0x20c2f48, 0x72, 0xc000559e58) /usr/local/Cellar/go/1.11.2/libexec/src/runtime/netpoll.go:173 +0x66 internal/poll.(*pollDesc).wait(0xc00032a018, 0x72, 0xffffffffffffff00, 0x1995320, 0x1eb0918) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_poll_runtime.go:85 +0x9a internal/poll.(*pollDesc).waitRead(0xc00032a018, 0xc0004f8900, 0x1, 0x1) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d internal/poll.(*FD).Read(0xc00032a000, 0xc0004f8911, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/internal/poll/fd_unix.go:169 +0x1d6 net.(*netFD).Read(0xc00032a000, 0xc0004f8911, 0x1, 0x1, 0xc0000302d8, 0xc000559f68, 0x13c4180) /usr/local/Cellar/go/1.11.2/libexec/src/net/fd_unix.go:202 +0x4f net.(*conn).Read(0xc00000e018, 0xc0004f8911, 0x1, 0x1, 0x0, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/net/net.go:177 +0x68 net/http.(*connReader).backgroundRead(0xc0004f8900) /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:676 +0x5a created by net/http.(*connReader).startBackgroundRead /usr/local/Cellar/go/1.11.2/libexec/src/net/http/server.go:672 +0xd2 goroutine 386 [syscall]: syscall.Syscall6(0x7, 0x1231f, 0xc000897bb4, 0x0, 0xc0001b81b0, 0x0, 0x0, 0xc0001b81b0, 0x0, 0xc0004b2000) /usr/local/Cellar/go/1.11.2/libexec/src/syscall/asm_darwin_amd64.s:41 +0x5 syscall.wait4(0x1231f, 0xc000897bb4, 0x0, 0xc0001b81b0, 0x90, 0x18882e0, 0x1795901) /usr/local/Cellar/go/1.11.2/libexec/src/syscall/zsyscall_darwin_amd64.go:34 +0x7b syscall.Wait4(0x1231f, 0xc000897c04, 0x0, 0xc0001b81b0, 0x0, 0x3, 0x3) /usr/local/Cellar/go/1.11.2/libexec/src/syscall/syscall_bsd.go:129 +0x51 os.(*Process).wait(0xc000594390, 0x6, 0x7, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/os/exec_unix.go:38 +0x7b os.(*Process).Wait(0xc000594390, 0x18e46f0, 0x18e46f8, 0x18e46e8) /usr/local/Cellar/go/1.11.2/libexec/src/os/exec.go:125 +0x2b os/exec.(*Cmd).Wait(0xc000592000, 0x0, 0x0) /usr/local/Cellar/go/1.11.2/libexec/src/os/exec/exec.go:465 +0x5b os/exec.(*Cmd).Run(0xc000592000, 0xf, 0xc000897d78) /usr/local/Cellar/go/1.11.2/libexec/src/os/exec/exec.go:309 +0x5c github.com/gobuffalo/events.LoadPlugins.func1.1.1.1(0x18b620d, 0x15, 0x0, 0x0, 0xc0000aad80, 0x0, 0x0) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/plugins.go:48 +0x2e4 github.com/gobuffalo/events.(*manager).Emit.func1.1.1() /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/manager.go:87 +0x4c github.com/markbates/safe.Run.func1(0x8, 0x18e3ae8) /Users/paganotoni/go/pkg/mod/github.com/markbates/safe@v1.0.1/safe.go:12 +0x24 github.com/markbates/safe.RunE(0xc000159710, 0x0, 0x0) /Users/paganotoni/go/pkg/mod/github.com/markbates/safe@v1.0.1/safe.go:32 +0x55 github.com/markbates/safe.Run(0xc000159748, 0x102bc31, 0x18e4c98) /Users/paganotoni/go/pkg/mod/github.com/markbates/safe@v1.0.1/safe.go:11 +0x49 github.com/gobuffalo/events.(*manager).Emit.func1.1(0x18b620d, 0x15, 0x0, 0x0, 0xc0000aad80, 0x0, 0x0, 0xc0001d0000) /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/manager.go:86 +0x96 created by github.com/gobuffalo/events.(*manager).Emit.func1 /Users/paganotoni/go/pkg/mod/github.com/gobuffalo/events@v1.1.8/manager.go:85 +0x1b7 === ```

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

``` ### Buffalo Version v0.14.0-alpha.4 ### App Information Pwd=/Users/paganotoni/go/src/github.com/paganotoni/zekito Root=/Users/paganotoni/go/src/github.com/paganotoni/zekito GoPath=/Users/paganotoni/go PackagePkg=github.com/paganotoni/zekito ActionsPkg=github.com/paganotoni/zekito/actions ModelsPkg=github.com/paganotoni/zekito/models GriftsPkg=github.com/paganotoni/zekito/grifts WithModules=true Name=zekito Bin=bin/zekito VCS=git WithPop=true WithSQLite=false WithDep=false WithWebpack=true WithNodeJs=true WithYarn=true WithDocker=true WithGrifts=true AsWeb=true AsAPI=false ### Go Version go version go1.11.2 darwin/amd64 ### Go Env GOARCH="amd64" GOBIN="" GOCACHE="/Users/paganotoni/Library/Caches/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/paganotoni/go" GOPROXY="http://athens.wawand.co" GORACE="" GOROOT="/usr/local/Cellar/go/1.11.2/libexec" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.11.2/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/paganotoni/go/src/github.com/paganotoni/zekito/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/gg/jnd1lf7s6zx38rcybmddnw3h0000gn/T/go-build419814094=/tmp/go-build -gno-record-gcc-switches -fno-common" ### Node Version v11.4.0 ### NPM Version 6.5.0 ### Yarn Version 1.12.3 ### PostgreSQL Version pg_ctl (PostgreSQL) 11.0 ### MySQL Version MySQL Not Found ### SQLite Version 3.24.0 2018-06-04 14:10:15 95fbac39baaab1c3a84fdfc82ccb7f42398b2e92f18a2a57bce1d4a713cbaapl ### Dep Version could not find a Gopkg.toml file ### Dep Status could not find a Gopkg.toml file ### go.mod module github.com/paganotoni/zekito require ( github.com/codegangsta/negroni v1.0.0 // indirect github.com/corpix/uarand v0.0.0 // indirect github.com/duffn/name v1.0.0 github.com/dustin/go-humanize v1.0.0 github.com/gobuffalo/buffalo v0.13.12 github.com/gobuffalo/buffalo-heroku v1.0.4 // indirect github.com/gobuffalo/buffalo-pop v1.3.0 github.com/gobuffalo/envy v1.6.11 github.com/gobuffalo/fizz v1.5.0 // indirect github.com/gobuffalo/mw-csrf v0.0.0-20180802151833-446ff26e108b github.com/gobuffalo/mw-forcessl v0.0.0-20180802152810-73921ae7a130 github.com/gobuffalo/mw-i18n v0.0.0-20181027200759-09e0c99be4d3 github.com/gobuffalo/mw-paramlogger v0.0.0-20181005191442-d6ee392ec72e github.com/gobuffalo/mw-tokenauth v0.0.0-20181227153927-0ac66122b3fa // indirect github.com/gobuffalo/packr v1.21.9 github.com/gobuffalo/pop v4.9.4+incompatible github.com/gobuffalo/suite v2.6.0+incompatible github.com/gobuffalo/uuid v2.0.5+incompatible github.com/gobuffalo/validate v2.0.3+incompatible github.com/gofrs/uuid v3.1.0+incompatible github.com/icrowley/fake v0.0.0-20180203215853-4178557ae428 github.com/jinzhu/now v0.0.0-20181116074157-8ec929ed50c3 github.com/markbates/grift v1.0.5 github.com/matcornic/hermes/v2 v2.0.1 github.com/microcosm-cc/bluemonday v1.0.2 // indirect github.com/paganotoni/mailopen v1.0.3 github.com/paganotoni/postmark-sender v1.0.1 github.com/pkg/errors v0.8.0 github.com/sirupsen/logrus v1.2.0 github.com/spf13/afero v1.2.0 // indirect github.com/ugorji/go/codec v0.0.0-20181209151446-772ced7fd4c2 // indirect github.com/ungerik/go-gravatar v0.0.0-20120802094239-6ab22628222a github.com/unrolled/secure v0.0.0-20181221173256-0d6b5bb13069 goji.io v2.0.0+incompatible // indirect golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9 golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 // indirect golang.org/x/sys v0.0.0-20181228144115-9a3f9b0469bb // indirect golang.org/x/tools v0.0.0-20181221235234-d00ac6d27372 // indirect google.golang.org/appengine v1.4.0 // indirect ) ```
markbates commented 5 years ago

Fixed with v1.1.9