Goroutine error when running on load test.

1,263 views
Skip to first unread message

nupur....@indiamart.com

unread,
Jun 22, 2017, 10:21:06 AM6/22/17
to golang-nuts
I am getting the following error when my services are being load tested.
I am new to goroutines and may be missing something in my implementation.
My service on being hit is running 2 goroutines that call an http request. After both return , the response from both http requests is returned into a channel.
What could be the possible reason of the following stack trace of error??


goroutine 64597 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb982a005c0, 0x72, 0xeab)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc430c4fa38, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc430c4fa38, 0xc426a1af51, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc430c4f9d0, 0xc426a1af51, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc42fd64840, 0xc426a1af51, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc426a1af40)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 64554 [chan send, 4 minutes]:
wservce/models.getEnquiryDetails(0xc42c475680, 0xc42c4756e0, 0xc42f720a7a, 0x6, 0x1003ee0, 0xc4312c0400)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:474 +0x77c
created by wservce/models.findSupplierOrBuyer
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:91 +0x244

goroutine 36920 [chan receive]:
wservce/models.buyerDetails(0xc421db1e2a, 0x6, 0xc421db1e1f, 0x2, 0xc42033fe10, 0x10, 0xc42033ff30, 0xf, 0x1003ee0, 0xc426142400, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:214 +0x34a
wservce/models.(*UserDashboard).GetDashboardDetails(0xc42885fce0, 0x1003ee0, 0xc426142400, 0xc42033ff30, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:69 +0x322
wservce/controllers.Request.Dashboard(0x1003ee0, 0xc426142400, 0xc425a6f980, 0x14, 0xc4204c1305, 0x11, 0xc4204c1300, 0x4, 0xc42033ff30, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/controllers/users.go:144 +0xe41
wservce/controllers.(*Request).Dashboard(0xc4294d1260, 0x0, 0x0)
<autogenerated>:6 +0x69
reflect.Value.call(0xabac40, 0xc4294d1260, 0xa93, 0xadc9f5, 0x4, 0xc425e71828, 0x0, 0x0, 0xc425f1b960, 0x13, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:434 +0x91f
reflect.Value.Call(0xabac40, 0xc4294d1260, 0xa93, 0xc425e71828, 0x0, 0x0, 0xc4294d1260, 0xa93, 0xf)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:302 +0xa4
main.callController(0x1003ee0, 0xc426142400, 0xc425a6f980, 0x14, 0xc4204c1305, 0x11, 0xc4204c1300, 0x4, 0xc42033ff30, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:86 +0x15b
main.handler(0x7fb990b955e0, 0xc426142400, 0xc428af7700)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:68 +0x28c
net/http.HandlerFunc.ServeHTTP(0xb0b940, 0x7fb990b955e0, 0xc426142400, 0xc428af7700)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:30 +0x112
net/http.HandlerFunc.ServeHTTP(0xc420157c80, 0x1000420, 0xc42a05d420, 0xc428af7700)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:38 +0x4d
net/http.HandlerFunc.ServeHTTP(0xc42017f9e0, 0x1000420, 0xc42a05d420, 0xc428af7700)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
net/http.(*ServeMux).ServeHTTP(0x10274a0, 0x1000420, 0xc42a05d420, 0xc428af7700)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2238 +0x130
net/http.serverHandler.ServeHTTP(0xc42008edc0, 0x1000420, 0xc42a05d420, 0xc428af7700)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc4285566e0, 0x1000b60, 0xc4283f7e80)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2668 +0x2ce

goroutine 67223 [select, 3 minutes]:
net/http.(*persistConn).writeLoop(0xc4312ee7e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/transport.go:1704 +0x43a
created by net/http.(*Transport).dialConn
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/transport.go:1118 +0xa5a

goroutine 64553 [select, 3 minutes]:
net/http.(*persistConn).roundTrip(0xc4312cc000, 0xc42f537780, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/transport.go:1898 +0x974
net/http.(*Transport).RoundTrip(0xff1380, 0xc42c459600, 0xff1380, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/transport.go:391 +0x74c
net/http.send(0xc42c459600, 0xff9960, 0xff1380, 0x0, 0x0, 0x0, 0x0, 0x8, 0xc42fc4fe38, 0x4132f8)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/client.go:249 +0x162
net/http.(*Client).send(0x10275e0, 0xc42c459600, 0x0, 0x0, 0x0, 0xc42fc4fe38, 0x0, 0x1, 0xc42f721260)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/client.go:173 +0x108
net/http.(*Client).Do(0x10275e0, 0xc42c459600, 0xc430212180, 0x7f, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/client.go:595 +0x254
wservce/models.getBuyleadDisplayData(0xc42c475620, 0xc42c4756e0, 0xc42f720a7a, 0x6, 0xc42f720a6f, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:561 +0x1d2
created by wservce/models.findSupplierOrBuyer
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:90 +0x1de

goroutine 64538 [chan receive, 4 minutes]:
wservce/models.findSupplierOrBuyer(0xc42f720a7a, 0x6, 0x0, 0x0, 0xc4312c32d0, 0xf, 0xc42f720a6f, 0x2, 0x1003ee0, 0xc4312c0400, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:92 +0x292
wservce/models.(*UserDashboard).GetDashboardDetails(0xc430ce8310, 0x1003ee0, 0xc4312c0400, 0xc4312c32d0, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:67 +0xfd
wservce/controllers.Request.Dashboard(0x1003ee0, 0xc4312c0400, 0xc42f4cbbe0, 0x13, 0xc42f537105, 0x11, 0xc42f537100, 0x4, 0xc4312c32d0, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/controllers/users.go:144 +0xe41
wservce/controllers.(*Request).Dashboard(0xc42c475560, 0x0, 0x0)
<autogenerated>:6 +0x69
reflect.Value.call(0xabac40, 0xc42c475560, 0xa93, 0xadc9f5, 0x4, 0xc422787828, 0x0, 0x0, 0xc42fc4fda8, 0x13, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:434 +0x91f
reflect.Value.Call(0xabac40, 0xc42c475560, 0xa93, 0xc422787828, 0x0, 0x0, 0xc42c475560, 0xa93, 0xf)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:302 +0xa4
main.callController(0x1003ee0, 0xc4312c0400, 0xc42f4cbbe0, 0x13, 0xc42f537105, 0x11, 0xc42f537100, 0x4, 0xc4312c32d0, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:86 +0x15b
main.handler(0x7fb990b955e0, 0xc4312c0400, 0xc42c97d100)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:68 +0x28c
net/http.HandlerFunc.ServeHTTP(0xb0b940, 0x7fb990b955e0, 0xc4312c0400, 0xc42c97d100)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:30 +0x112
net/http.HandlerFunc.ServeHTTP(0xc420157c80, 0x1000420, 0xc42d8a4b60, 0xc42c97d100)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:38 +0x4d
net/http.HandlerFunc.ServeHTTP(0xc42017f9e0, 0x1000420, 0xc42d8a4b60, 0xc42c97d100)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
net/http.(*ServeMux).ServeHTTP(0x10274a0, 0x1000420, 0xc42d8a4b60, 0xc42c97d100)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2238 +0x130
net/http.serverHandler.ServeHTTP(0xc42008edc0, 0x1000420, 0xc42d8a4b60, 0xc42c97d100)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc4310c2320, 0x1000b60, 0xc426a1a680)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2668 +0x2ce

goroutine 36937 [chan send, 2 minutes]:
wservce/models.getProdWeBuyData(0xc428debce0, 0xc428debda0, 0xc42034226a, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:531 +0x38c
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 64552 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb9829ffc00, 0x72, 0xdc4)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc430c4e7d8, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc430c4e7d8, 0xc426a1a6d1, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc430c4e770, 0xc426a1a6d1, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc42fd64700, 0xc426a1a6d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc426a1a6c0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 36923 [chan receive]:
wservce/models.buyerDetails(0xc421d331ca, 0x6, 0xc421d331bf, 0x2, 0xc42033e000, 0x10, 0xc42033e120, 0xf, 0x1003ee0, 0xc42bd81c00, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:214 +0x34a
wservce/models.(*UserDashboard).GetDashboardDetails(0xc42885ecb0, 0x1003ee0, 0xc42bd81c00, 0xc42033e120, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:69 +0x322
wservce/controllers.Request.Dashboard(0x1003ee0, 0xc42bd81c00, 0xc425a6fd00, 0x14, 0xc4203f9f65, 0x11, 0xc4203f9f60, 0x4, 0xc42033e120, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/controllers/users.go:144 +0xe41
wservce/controllers.(*Request).Dashboard(0xc4293fb620, 0x0, 0x0)
<autogenerated>:6 +0x69
reflect.Value.call(0xabac40, 0xc4293fb620, 0xa93, 0xadc9f5, 0x4, 0xc42646b828, 0x0, 0x0, 0xc425f1b780, 0x13, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:434 +0x91f
reflect.Value.Call(0xabac40, 0xc4293fb620, 0xa93, 0xc42646b828, 0x0, 0x0, 0xc4293fb620, 0xa93, 0xf)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:302 +0xa4
main.callController(0x1003ee0, 0xc42bd81c00, 0xc425a6fd00, 0x14, 0xc4203f9f65, 0x11, 0xc4203f9f60, 0x4, 0xc42033e120, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:86 +0x15b
main.handler(0x7fb990b955e0, 0xc42bd81c00, 0xc428af7a00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:68 +0x28c
net/http.HandlerFunc.ServeHTTP(0xb0b940, 0x7fb990b955e0, 0xc42bd81c00, 0xc428af7a00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:30 +0x112
net/http.HandlerFunc.ServeHTTP(0xc420157c80, 0x1000420, 0xc42a05d260, 0xc428af7a00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:38 +0x4d
net/http.HandlerFunc.ServeHTTP(0xc42017f9e0, 0x1000420, 0xc42a05d260, 0xc428af7a00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
net/http.(*ServeMux).ServeHTTP(0x10274a0, 0x1000420, 0xc42a05d260, 0xc428af7a00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2238 +0x130
net/http.serverHandler.ServeHTTP(0xc42008edc0, 0x1000420, 0xc42a05d260, 0xc428af7a00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc428556820, 0x1000b60, 0xc4284b2480)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2668 +0x2ce

goroutine 36910 [chan receive, 3 minutes]:
wservce/models.buyerDetails(0xc421bcbb8a, 0x6, 0xc421bcbb7f, 0x2, 0xc420361bb0, 0x10, 0xc420361ce0, 0xf, 0x1003ee0, 0xc42bd81400, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:213 +0x2cc
wservce/models.(*UserDashboard).GetDashboardDetails(0xc428775b20, 0x1003ee0, 0xc42bd81400, 0xc420361ce0, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:69 +0x322
wservce/controllers.Request.Dashboard(0x1003ee0, 0xc42bd81400, 0xc425be7200, 0x14, 0xc420453c65, 0x11, 0xc420453c60, 0x4, 0xc420361ce0, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/controllers/users.go:144 +0xe41
wservce/controllers.(*Request).Dashboard(0xc429283ce0, 0x0, 0x0)
<autogenerated>:6 +0x69
reflect.Value.call(0xabac40, 0xc429283ce0, 0xa93, 0xadc9f5, 0x4, 0xc425ffd828, 0x0, 0x0, 0xc425f1b510, 0x13, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:434 +0x91f
reflect.Value.Call(0xabac40, 0xc429283ce0, 0xa93, 0xc425ffd828, 0x0, 0x0, 0xc429283ce0, 0xa93, 0xf)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:302 +0xa4
main.callController(0x1003ee0, 0xc42bd81400, 0xc425be7200, 0x14, 0xc420453c65, 0x11, 0xc420453c60, 0x4, 0xc420361ce0, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:86 +0x15b
main.handler(0x7fb990b955e0, 0xc42bd81400, 0xc4288faf00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:68 +0x28c
net/http.HandlerFunc.ServeHTTP(0xb0b940, 0x7fb990b955e0, 0xc42bd81400, 0xc4288faf00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:30 +0x112
net/http.HandlerFunc.ServeHTTP(0xc420157c80, 0x1000420, 0xc42a05d0a0, 0xc4288faf00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:38 +0x4d
net/http.HandlerFunc.ServeHTTP(0xc42017f9e0, 0x1000420, 0xc42a05d0a0, 0xc4288faf00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
net/http.(*ServeMux).ServeHTTP(0x10274a0, 0x1000420, 0xc42a05d0a0, 0xc4288faf00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2238 +0x130
net/http.serverHandler.ServeHTTP(0xc42008edc0, 0x1000420, 0xc42a05d0a0, 0xc4288faf00)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc424850b40, 0x1000b60, 0xc4248ca380)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2668 +0x2ce

goroutine 36911 [chan receive, 3 minutes]:
wservce/models.buyerDetails(0xc42198a86a, 0x6, 0xc42198a85f, 0x2, 0xc420378af0, 0x10, 0xc420378ca0, 0xf, 0x1003ee0, 0xc42c0bc800, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:213 +0x2cc
wservce/models.(*UserDashboard).GetDashboardDetails(0xc428854af0, 0x1003ee0, 0xc42c0bc800, 0xc420378ca0, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:69 +0x322
wservce/controllers.Request.Dashboard(0x1003ee0, 0xc42c0bc800, 0xc425be7260, 0x14, 0xc420321fe5, 0x11, 0xc420321fe0, 0x4, 0xc420378ca0, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/controllers/users.go:144 +0xe41
wservce/controllers.(*Request).Dashboard(0xc42919ec00, 0x0, 0x0)
<autogenerated>:6 +0x69
reflect.Value.call(0xabac40, 0xc42919ec00, 0xa93, 0xadc9f5, 0x4, 0xc420a65828, 0x0, 0x0, 0xc4259057e8, 0x13, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:434 +0x91f
reflect.Value.Call(0xabac40, 0xc42919ec00, 0xa93, 0xc420a65828, 0x0, 0x0, 0xc42919ec00, 0xa93, 0xf)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/reflect/value.go:302 +0xa4
main.callController(0x1003ee0, 0xc42c0bc800, 0xc425be7260, 0x14, 0xc420321fe5, 0x11, 0xc420321fe0, 0x4, 0xc420378ca0, 0xf, ...)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:86 +0x15b
main.handler(0x7fb990b955e0, 0xc42c0bc800, 0xc4288fb400)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/launch.go:68 +0x28c
net/http.HandlerFunc.ServeHTTP(0xb0b940, 0x7fb990b955e0, 0xc42c0bc800, 0xc4288fb400)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:30 +0x112
net/http.HandlerFunc.ServeHTTP(0xc420157c80, 0x1000420, 0xc428c99b20, 0xc4288fb400)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/github.com/newrelic/go-agent/instrumentation.go:38 +0x4d
net/http.HandlerFunc.ServeHTTP(0xc42017f9e0, 0x1000420, 0xc428c99b20, 0xc4288fb400)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1942 +0x44
net/http.(*ServeMux).ServeHTTP(0x10274a0, 0x1000420, 0xc428c99b20, 0xc4288fb400)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2238 +0x130
net/http.serverHandler.ServeHTTP(0xc42008edc0, 0x1000420, 0xc428c99b20, 0xc4288fb400)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2568 +0x92
net/http.(*conn).serve(0xc424850be0, 0x1000b60, 0xc4248cb600)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:1825 +0x612
created by net/http.(*Server).Serve
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:2668 +0x2ce

goroutine 36988 [chan send, 2 minutes]:
wservce/models.getRFQData(0xc429033200, 0xc4290332c0, 0xc4204d21da, 0x6, 0xc4204d21cf, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 36989 [chan send, 2 minutes]:
wservce/models.getProdWeBuyData(0xc429033260, 0xc429033320, 0xc4204d21da, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:531 +0x38c
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 43406 [chan send, 4 minutes]:
wservce/models.getRFQData(0xc42e000e40, 0xc42e000f00, 0xc4211a4efa, 0x6, 0xc4211a4eef, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 37029 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb982a438d8, 0x72, 0xf7c)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc4285b7258, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc4285b7258, 0xc4284b3fd1, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc4285b71f0, 0xc4284b3fd1, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc425904c98, 0xc4284b3fd1, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc4284b3fc0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 69218 [chan send, 1 minutes]:
wservce/models.getProdWeBuyData(0xc42ed5ed20, 0xc42ed5f0e0, 0xc421949d0a, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:531 +0x38c
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 69185 [chan send]:
wservce/models.getRFQData(0xc42ed5ecc0, 0xc42ed5f080, 0xc421949d0a, 0x6, 0xc421949cff, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:511 +0x3cc
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 37040 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb982a43d58, 0x72, 0xf76)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc4284b4d18, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc4284b4d18, 0xc4248cadd1, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc4284b4cb0, 0xc4248cadd1, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc425f1a7d0, 0xc4248cadd1, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc4248cadc0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 37023 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb9829ff540, 0x72, 0xe87)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc428445028, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc428445028, 0xc424992291, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc428444fc0, 0xc424992291, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc4259047e8, 0xc424992291, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc424992280)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 69174 [chan send]:
wservce/models.getProdWeBuyData(0xc42ee89bc0, 0xc42ed721e0, 0xc421a3137a, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:542 +0x2ea
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 69173 [chan send, 1 minutes]:
wservce/models.getRFQData(0xc42ee89b00, 0xc42ee89f80, 0xc421a3137a, 0x6, 0xc421a3136f, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 69263 [chan send, 1 minutes]:
wservce/models.getProdWeBuyData(0xc42e3ce9c0, 0xc42e3cea80, 0xc421d331ca, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:531 +0x38c
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 69160 [chan send]:
wservce/models.getRFQData(0xc42ee59680, 0xc42ee59740, 0xc42605558a, 0x6, 0xc42605557f, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:511 +0x3cc
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 37091 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb982a3cbc0, 0x72, 0xe7c)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc4285b6848, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc4285b6848, 0xc4283f7ed1, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc4285b67e0, 0xc4283f7ed1, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc425904c40, 0xc4283f7ed1, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc4283f7ec0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 69242 [chan send, 3 minutes]:
wservce/models.getProdWeBuyData(0xc42eccf020, 0xc42eccf1a0, 0xc421bcbb8a, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:542 +0x2ea
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 69241 [chan send, 1 minutes]:
wservce/models.getRFQData(0xc42eccefc0, 0xc42eccf140, 0xc421bcbb8a, 0x6, 0xc421bcbb7f, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 37068 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb9829ff780, 0x72, 0xf51)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc4284b5488, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc4284b5488, 0xc424adedd1, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc4284b5420, 0xc424adedd1, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc425f1a818, 0xc424adedd1, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc424adedc0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 69267 [chan send]:
wservce/models.getProdWeBuyData(0xc42e3dd260, 0xc42e3dd3e0, 0xc421c8a77a, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:542 +0x2ea
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 69266 [chan send, 1 minutes]:
wservce/models.getRFQData(0xc42e3dcf60, 0xc42e3dd380, 0xc421c8a77a, 0x6, 0xc421c8a76f, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 37078 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb982a00200, 0x72, 0xf46)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc4285b6b58, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc4285b6b58, 0xc4284b24d1, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc4285b6af0, 0xc4284b24d1, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc425904c50, 0xc4284b24d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc4284b24c0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 37085 [IO wait, 4 minutes]:
net.runtime_pollWait(0x7fb982a00800, 0x72, 0xf73)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/runtime/netpoll.go:164 +0x59
net.(*pollDesc).wait(0xc4285b6e68, 0x72, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:75 +0x38
net.(*pollDesc).waitRead(0xc4285b6e68, 0xc4284b2cd1, 0x1)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_poll_runtime.go:80 +0x34
net.(*netFD).Read(0xc4285b6e00, 0xc4284b2cd1, 0x1, 0x1, 0x0, 0xffbaa0, 0xff67e0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/fd_unix.go:250 +0x1b7
net.(*conn).Read(0xc425904c80, 0xc4284b2cd1, 0x1, 0x1, 0x0, 0x0, 0x0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/net.go:181 +0x70
net/http.(*connReader).backgroundRead(0xc4284b2cc0)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:656 +0x58
created by net/http.(*connReader).startBackgroundRead
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/go/src/net/http/server.go:652 +0xdf

goroutine 69306 [chan send, 1 minutes]:
wservce/models.getProdWeBuyData(0xc42eb2fec0, 0xc42eb2ff80, 0xc421db1e2a, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:531 +0x38c
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 69305 [chan send]:
wservce/models.getRFQData(0xc42eb2fe60, 0xc42eb2ff20, 0xc421db1e2a, 0x6, 0xc421db1e1f, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:511 +0x3cc
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 40643 [chan send, 4 minutes]:
wservce/models.getProdWeBuyData(0xc42cf03da0, 0xc42cf03e60, 0xc42018050a, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:531 +0x38c
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 37970 [chan send, 4 minutes]:
wservce/models.getRFQData(0xc42b34b020, 0xc42b34b0e0, 0xc42039676e, 0x6, 0xc420396763, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 38350 [chan send, 2 minutes]:
wservce/models.getRFQData(0xc42c76ae40, 0xc42c76af00, 0xc420adefea, 0x6, 0xc420adefdf, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 37124 [chan send, 4 minutes]:
wservce/models.getRFQData(0xc4295ce1e0, 0xc4295ce300, 0xc420497aca, 0x6, 0xc420497abf, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232

goroutine 37125 [chan send, 4 minutes]:
wservce/models.getProdWeBuyData(0xc4295ce2a0, 0xc4295ce360, 0xc420497aca, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:531 +0x38c
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 66709 [chan send, 4 minutes]:
wservce/models.getProdWeBuyData(0xc43249bd40, 0xc43249be00, 0xc424a0bd6a, 0x6)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:531 +0x38c
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:212 +0x27e

goroutine 66708 [chan send, 4 minutes]:
wservce/models.getRFQData(0xc43249bce0, 0xc43249bda0, 0xc424a0bd6a, 0x6, 0xc424a0bd5f, 0x2)
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:499 +0x432
created by wservce/models.buyerDetails
/home3/indiamart/public_html/dev-mapi-indiamart-com/go-api/src/src/wservce/models/userDashboard.go:211 +0x232




Ian Lance Taylor

unread,
Jun 22, 2017, 10:39:33 AM6/22/17
to nupur....@indiamart.com, golang-nuts
On Wed, Jun 21, 2017 at 10:49 PM, <nupur....@indiamart.com> wrote:
>
> I am getting the following error when my services are being load tested.
> I am new to goroutines and may be missing something in my implementation.
> My service on being hit is running 2 goroutines that call an http request.
> After both return , the response from both http requests is returned into a
> channel.
> What could be the possible reason of the following stack trace of error??

What caused the stack trace? I would have expected to see something
at the start saying why it was generated, but I didn't.

At first glance it looks like you have a deadlock somewhere. Is there
something reading from the channels?

Ian

Nupur Bansal

unread,
Jun 27, 2017, 12:31:57 AM6/27/17
to golang-nuts, nupur....@indiamart.com
When a load test is run on my service, after about 1000-1500 requests, I get this stack trace. I am unable to resolve why it was generated.
Yes, the output from the service is passed to an output channel and is read through that channel.

I am doing something like this:
package main

import (
    "fmt"
    //"time"
)

func myFunc(done chan string) {
    // Doing something in parallel
    for i := 0; i < 10; i++ {
        fmt.Println(i)
    }
    fmt.Println("Hey! I do useless stuff!")
    done <- "I'm done!" // We send a message on the channel
}

func main() {
    done1 := make(chan string)
    done2 := make(chan string)
    go myFunc(done1)
    go myFunc2(done2)
    msg := <-done1
    msg2 := <-done2
    fmt.Println(msg, msg2)

    fmt.Println("Message received, you were indeed useless..")
}

func myFunc2(done chan string) {
    // Doing something in parallel
    for i := 10; i < 20; i++ {
        fmt.Println(i)
    }
    fmt.Println("Hey! Baby!")
    done <- "I'm again done!" // We send a message on the channel

Dave Cheney

unread,
Jun 27, 2017, 12:34:06 AM6/27/17
to golang-nuts, nupur....@indiamart.com
Your stacktrace is truncated; the crucial part appears at the top of the output starting with 

panic:

or 

runtime error:

Nupur Bansal

unread,
Jun 27, 2017, 5:25:57 AM6/27/17
to golang-nuts, nupur....@indiamart.com
Top part says:

fatal error: concurrent map writes

goroutine 23673 [running]:
runtime.throw(0x95fc7f, 0x15)
    /usr/lib/go/src/runtime/panic.go:566 +0x95 fp=0xc420482708 sp=0xc4204826e8
runtime.mapassign1(0x8cb4c0, 0xc4200e8e10, 0xc420482a88, 0xc420482a68)
    /usr/lib/go/src/runtime/hashmap.go:553 +0x2e1 fp=0xc4204827f0 sp=0xc420482708
wservce/models.findSupplierOrBuyer(0xc42038812e, 0x6, 0x0, 0x0, 0xc42073e270, 0xf, 0xc420388123, 0x2, 0xba9ac0, 0xc42051c800, ...)
    /home/nupur/golang/code/src/wservce/models/userDashboard.go:153 +0xc07 fp=0xc420482e80 sp=0xc4204827f0
wservce/models.(*UserDashboard).GetDashboardDetails(0xc4203622a0, 0xba9ac0, 0xc42051c800, 0xc42073e270, 0xf, 0x1, 0x125)
    /home/nupur/golang/code/src/wservce/models/userDashboard.go:75 +0x14d fp=0xc420483040 sp=0xc420482e80
wservce/controllers.Request.Dashboard(0xba9ac0, 0xc42051c800, 0xc42073e180, 0xf, 0xc4203880f4, 0x40, 0xc4203880f0, 0x3, 0xc42073e270, 0xf, ...)
    /home/nupur/golang/code/src/wservce/controllers/users.go:172 +0x106c fp=0xc420483410 sp=0xc420483040
wservce/controllers.(*Request).Dashboard(0xc4202b8660, 0x0, 0x0)
    <autogenerated>:5 +0x6e fp=0xc420483488 sp=0xc420483410
runtime.call32(0xc4204d09c0, 0xc4205aa060, 0xc420588960, 0x800000018)

Dave Cheney

unread,
Jun 27, 2017, 5:35:03 AM6/27/17
to golang-nuts, nupur....@indiamart.com
You have at least one data race in your program.


Looking at the panic message it looks like your findSupplierOrBuyer method is updating a map that is part of a User's Dashboard. As the parent method is called GetDashboard it is possible that you are sharing the same Dashboard value between mutliple goroutines. 

Have a read of the links above, and start running your tests under the race detector; go test -race.

Nupur Bansal

unread,
Jun 27, 2017, 6:32:12 AM6/27/17
to golang-nuts, nupur....@indiamart.com
It seems my global variables are being accessed concurrently by goroutines and it is causing race condition.

Dave Cheney

unread,
Jun 27, 2017, 6:43:28 AM6/27/17
to golang-nuts, nupur....@indiamart.com
That's what globals do.

Nupur Bansal

unread,
Jun 27, 2017, 7:42:48 AM6/27/17
to golang-nuts, nupur....@indiamart.com
Thanks..resolved this issue.
Reply all
Reply to author
Forward
0 new messages