{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla-services/heka/issues/1983","repository_url":"https://api.github.com/repos/mozilla-services/heka","labels_url":"https://api.github.com/repos/mozilla-services/heka/issues/1983/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/heka/issues/1983/comments","events_url":"https://api.github.com/repos/mozilla-services/heka/issues/1983/events","html_url":"https://github.com/mozilla-services/heka/issues/1983","id":173354986,"number":1983,"title":"The reason for runtime/cgo: pthread_create failed: Resource temporarily unavailable？","user":{"login":"SeeWei1986","id":20559690,"avatar_url":"https://avatars.githubusercontent.com/u/20559690?v=3","gravatar_id":"","url":"https://api.github.com/users/SeeWei1986","html_url":"https://github.com/SeeWei1986","followers_url":"https://api.github.com/users/SeeWei1986/followers","following_url":"https://api.github.com/users/SeeWei1986/following{/other_user}","gists_url":"https://api.github.com/users/SeeWei1986/gists{/gist_id}","starred_url":"https://api.github.com/users/SeeWei1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeeWei1986/subscriptions","organizations_url":"https://api.github.com/users/SeeWei1986/orgs","repos_url":"https://api.github.com/users/SeeWei1986/repos","events_url":"https://api.github.com/users/SeeWei1986/events{/privacy}","received_events_url":"https://api.github.com/users/SeeWei1986/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-26T02:24:40Z","updated_at":"2016-08-26T02:24:40Z","closed_at":null,"body":"HI, the output log of my heka is described as follow. Thus, It is related with kafka server ? \r\n\r\nruntime/cgo: pthread_create failed: Resource temporarily unavailable\r\nSIGABRT: abort\r\nPC=0x7f28881f15f7 m=6\r\n\r\ngoroutine 0 [idle]:\r\n\r\ngoroutine 7 [syscall]:\r\nruntime.notetsleepg(0x11b6138, 0x391a774, 0x0)\r\n\t/work/go/src/runtime/lock_futex.go:205 +0x4e fp=0xc820022738 sp=0xc820022710\r\nruntime.timerproc()\r\n\t/work/go/src/runtime/time.go:209 +0xde fp=0xc8200227c0 sp=0xc820022738\r\nruntime.goexit()\r\n\t/work/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc8200227c8 sp=0xc8200227c0\r\ncreated by runtime.addtimerLocked\r\n\t/work/go/src/runtime/time.go:116 +0x11f\r\n\r\ngoroutine 1 [chan receive, 36 minutes]:\r\ngithub.com/mozilla-services/heka/pipeline.Run(0xc82000c3c0, 0xc8200f8d90)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/pipeline_runner.go:341 +0x1567\r\nmain.main()\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/cmd/hekad/main.go:234 +0x166f\r\n\r\ngoroutine 17 [syscall, 160 minutes, locked to thread]:\r\nruntime.goexit()\r\n\t/work/go/src/runtime/asm_amd64.s:1998 +0x1\r\n\r\ngoroutine 5 [syscall, 36 minutes]:\r\nos/signal.signal_recv(0x7f2889266078)\r\n\t/work/go/src/runtime/sigqueue.go:116 +0x132\r\nos/signal.loop()\r\n\t/work/go/src/os/signal/signal_unix.go:22 +0x18\r\ncreated by os/signal.init.1\r\n\t/work/go/src/os/signal/signal_unix.go:28 +0x37\r\n\r\ngoroutine 19 [select, 2 minutes]:\r\ngithub.com/Shopify/sarama.(*client).backgroundMetadataUpdater(0xc820071e80)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/client.go:553 +0x323\r\ngithub.com/Shopify/sarama.(*client).(github.com/Shopify/sarama.backgroundMetadataUpdater)-fm()\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/client.go:142 +0x20\r\ngithub.com/Shopify/sarama.withRecover(0xc8201a8140)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/utils.go:42 +0x3a\r\ncreated by github.com/Shopify/sarama.NewClient\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/client.go:142 +0x75a\r\n\r\ngoroutine 18 [chan receive, 2 minutes]:\r\ngithub.com/Shopify/sarama.(*Broker).responseReceiver(0xc820182770)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/broker.go:345 +0xdf\r\ngithub.com/Shopify/sarama.(*Broker).(github.com/Shopify/sarama.responseReceiver)-fm()\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/broker.go:98 +0x20\r\ngithub.com/Shopify/sarama.withRecover(0xc8201a8020)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/utils.go:42 +0x3a\r\ncreated by github.com/Shopify/sarama.(*Broker).Open.func1\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/broker.go:98 +0x5db\r\n\r\ngoroutine 9 [chan receive, 160 minutes]:\r\ngithub.com/Shopify/sarama.(*partitionConsumer).dispatcher(0xc8201ae180)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:299 +0x57\r\ngithub.com/Shopify/sarama.(*partitionConsumer).(github.com/Shopify/sarama.dispatcher)-fm()\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:152 +0x20\r\ngithub.com/Shopify/sarama.withRecover(0xc82018e910)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/utils.go:42 +0x3a\r\ncreated by github.com/Shopify/sarama.(*consumer).ConsumePartition\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:152 +0x451\r\n\r\ngoroutine 8 [runnable]:\r\ngithub.com/Shopify/sarama.(*Broker).responseReceiver(0xc8201b2000)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/broker.go:371 +0x6a9\r\ngithub.com/Shopify/sarama.(*Broker).(github.com/Shopify/sarama.responseReceiver)-fm()\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/broker.go:98 +0x20\r\ngithub.com/Shopify/sarama.withRecover(0xc82018e860)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/utils.go:42 +0x3a\r\ncreated by github.com/Shopify/sarama.(*Broker).Open.func1\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/broker.go:98 +0x5db\r\n\r\ngoroutine 10 [chan receive]:\r\ngithub.com/Shopify/sarama.(*partitionConsumer).responseFeeder(0xc8201ae180)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:410 +0x80\r\ngithub.com/Shopify/sarama.(*partitionConsumer).(github.com/Shopify/sarama.responseFeeder)-fm()\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:153 +0x20\r\ngithub.com/Shopify/sarama.withRecover(0xc82018e920)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/utils.go:42 +0x3a\r\ncreated by github.com/Shopify/sarama.(*consumer).ConsumePartition\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:153 +0x4a8\r\n\r\ngoroutine 11 [select]:\r\ngithub.com/Shopify/sarama.(*brokerConsumer).subscriptionManager(0xc82015f7c0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:551 +0x3e9\r\ngithub.com/Shopify/sarama.(*brokerConsumer).(github.com/Shopify/sarama.subscriptionManager)-fm()\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:524 +0x20\r\ngithub.com/Shopify/sarama.withRecover(0xc82018e930)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/utils.go:42 +0x3a\r\ncreated by github.com/Shopify/sarama.(*consumer).newBrokerConsumer\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:524 +0x201\r\n\r\ngoroutine 12 [select]:\r\ngithub.com/Shopify/sarama.(*Broker).sendAndReceive(0xc8201b2000, 0x7f288926cf78, 0xc8201d80b0, 0x7f288926cfb8, 0xc8201a0008, 0x0, 0x0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/broker.go:291 +0x240\r\ngithub.com/Shopify/sarama.(*Broker).Fetch(0xc8201b2000, 0xc8201d80b0, 0xc820037d54, 0x0, 0x0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/broker.go:209 +0xc1\r\ngithub.com/Shopify/sarama.(*brokerConsumer).fetchNewMessages(0xc82015f7c0, 0xc820053e00, 0x0, 0x0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:675 +0x353\r\ngithub.com/Shopify/sarama.(*brokerConsumer).subscriptionConsumer(0xc82015f7c0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:587 +0x3a4\r\ngithub.com/Shopify/sarama.(*brokerConsumer).(github.com/Shopify/sarama.subscriptionConsumer)-fm()\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:525 +0x20\r\ngithub.com/Shopify/sarama.withRecover(0xc82018e940)\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/utils.go:42 +0x3a\r\ncreated by github.com/Shopify/sarama.(*consumer).newBrokerConsumer\r\n\t/work/heka/install/heka/build/heka/src/github.com/Shopify/sarama/consumer.go:525 +0x254\r\n\r\ngoroutine 13 [select, 44 minutes]:\r\ngithub.com/mozilla-services/heka/pipeline.(*foRunner).channelLoop(0xc82010a820, 0x7f288926d7d0, 0xc82007e9a0, 0x7f288926d740, 0xc82000c3c0, 0x0, 0x0, 0x0, 0x0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/plugin_runners.go:1117 +0x810\r\ngithub.com/mozilla-services/heka/pipeline.(*foRunner).Starter(0xc82010a820, 0x7f288926d7d0, 0xc82007e9a0, 0x7f288926d740, 0xc82000c3c0, 0xc82018fb00)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/plugin_runners.go:1242 +0xf00\r\ncreated by github.com/mozilla-services/heka/pipeline.(*foRunner).Start\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/plugin_runners.go:1071 +0xbb4\r\n\r\ngoroutine 14 [runnable]:\r\nfmt.(*pp).fmtString(0xc8201ac000, 0xc17d20, 0x9, 0xc800000073)\r\n\t/work/go/src/fmt/print.go:512\r\nfmt.(*pp).printArg(0xc8201ac000, 0x9e7880, 0xc821012d90, 0x73, 0x0, 0x0)\r\n\t/work/go/src/fmt/print.go:797 +0xd95\r\nfmt.(*pp).doPrintf(0xc8201ac000, 0xc109b0, 0x8, 0xc8201158b0, 0x2, 0x2)\r\n\t/work/go/src/fmt/print.go:1238 +0x1dcd\r\nfmt.Sprintf(0xc109b0, 0x8, 0xc8201158b0, 0x2, 0x2, 0x0, 0x0)\r\n\t/work/go/src/fmt/print.go:203 +0x6f\r\ngithub.com/mozilla-services/heka/plugins.(*RstEncoder).writeAttr(0xc82018dc40, 0xc820184000, 0xc17d20, 0x9, 0xc82019c3c0, 0x1d)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/plugins/rst_encoder.go:43 +0x181\r\ngithub.com/mozilla-services/heka/plugins.(*RstEncoder).Encode(0xc82018dc40, 0xc820070300, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/plugins/rst_encoder.go:83 +0x1d8\r\ngithub.com/mozilla-services/heka/pipeline.(*foRunner).Encode(0xc82010a9c0, 0xc820070300, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/plugin_runners.go:1696 +0xa5\r\ngithub.com/mozilla-services/heka/plugins.(*LogOutput).Run(0xc82018fa20, 0x7f288926d5e8, 0xc82010a9c0, 0x7f288926d740, 0xc82000c3c0, 0x0, 0x0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/plugins/log_output.go:52 +0x1fb\r\ngithub.com/mozilla-services/heka/pipeline.(*foRunner).OldStarter(0xc82010a9c0, 0x7f288926d740, 0xc82000c3c0, 0xc82018fb00)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/plugin_runners.go:1502 +0x9a9\r\ncreated by github.com/mozilla-services/heka/pipeline.(*foRunner).Start\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/plugin_runners.go:1073 +0xc9b\r\n\r\ngoroutine 15 [runnable, locked to thread]:\r\ngithub.com/mozilla-services/heka/sandbox/lua.lookup_field(0xc82103acf0, 0xc821012dc7, 0x6, 0x0, 0x0, 0x4087e3, 0x99a540, 0xc820043818)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/sandbox/lua/lua_sandbox.go:77\r\ngithub.com/mozilla-services/heka/sandbox/lua.go_lua_read_message(0xc820155fc0, 0x7f28740022e8, 0x0, 0x0, 0x0, 0x43139d, 0xc8200439a0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/sandbox/lua/lua_sandbox.go:345 +0x459\r\ngithub.com/mozilla-services/heka/sandbox/lua._cgoexpwrap_fecf2fd76b90_go_lua_read_message(0xc820155fc0, 0x7f28740022e8, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\tgithub.com/mozilla-services/heka/sandbox/lua/_obj/_cgo_gotypes.go:232 +0xa0\r\ngithub.com/mozilla-services/heka/sandbox/lua._Cfunc_process_message(0x7f2874000c00, 0x7f2800000000)\r\n\tgithub.com/mozilla-services/heka/sandbox/lua/_obj/_cgo_gotypes.go:173 +0x3d\r\ngithub.com/mozilla-services/heka/sandbox/lua.(*LuaSandbox).ProcessMessage(0xc820155fc0, 0xc820070300, 0x725)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/sandbox/lua/lua_sandbox.go:759 +0x9c\r\ngithub.com/mozilla-services/heka/sandbox/plugins.(*SandboxFilter).Run(0xc820105540, 0x7f288926d300, 0xc82010a680, 0x7f288926d740, 0xc82000c3c0, 0x0, 0x0)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/sandbox/plugins/sandbox_filter.go:259 +0x108e\r\ngithub.com/mozilla-services/heka/pipeline.(*foRunner).OldStarter(0xc82010a680, 0x7f288926d740, 0xc82000c3c0, 0xc82000c450)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/plugin_runners.go:1499 +0x858\r\ncreated by github.com/mozilla-services/heka/pipeline.(*foRunner).Start\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/plugin_runners.go:1073 +0xc9b\r\n\r\ngoroutine 21 [chan receive]:\r\ngithub.com/mozilla-services/heka/pipeline.(*MatchRunner).run(0xc8201d4800, 0x3e8)\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/router.go:307 +0xe0\r\ncreated by github.com/mozilla-services/heka/pipeline.(*MatchRunner).Start\r\n\t/work/heka/install/heka/build/heka/src/github.com/mozilla-services/heka/pipeline/router.go:360 +0x3f\r\n"}}
{"actor":{"display_login":"SeeWei1986"}}