{"action":"created","issue":{"url":"https://api.github.com/repos/fluent/fluent-bit/issues/123","repository_url":"https://api.github.com/repos/fluent/fluent-bit","labels_url":"https://api.github.com/repos/fluent/fluent-bit/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluent-bit/issues/123/comments","events_url":"https://api.github.com/repos/fluent/fluent-bit/issues/123/events","html_url":"https://github.com/fluent/fluent-bit/issues/123","id":186281704,"number":123,"title":"Segfault caused by retry","user":{"login":"nokute78","id":16795275,"avatar_url":"https://avatars.githubusercontent.com/u/16795275?v=3","gravatar_id":"","url":"https://api.github.com/users/nokute78","html_url":"https://github.com/nokute78","followers_url":"https://api.github.com/users/nokute78/followers","following_url":"https://api.github.com/users/nokute78/following{/other_user}","gists_url":"https://api.github.com/users/nokute78/gists{/gist_id}","starred_url":"https://api.github.com/users/nokute78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nokute78/subscriptions","organizations_url":"https://api.github.com/users/nokute78/orgs","repos_url":"https://api.github.com/users/nokute78/repos","events_url":"https://api.github.com/users/nokute78/events{/privacy}","received_events_url":"https://api.github.com/users/nokute78/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"edsiper","id":369718,"avatar_url":"https://avatars.githubusercontent.com/u/369718?v=3","gravatar_id":"","url":"https://api.github.com/users/edsiper","html_url":"https://github.com/edsiper","followers_url":"https://api.github.com/users/edsiper/followers","following_url":"https://api.github.com/users/edsiper/following{/other_user}","gists_url":"https://api.github.com/users/edsiper/gists{/gist_id}","starred_url":"https://api.github.com/users/edsiper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsiper/subscriptions","organizations_url":"https://api.github.com/users/edsiper/orgs","repos_url":"https://api.github.com/users/edsiper/repos","events_url":"https://api.github.com/users/edsiper/events{/privacy}","received_events_url":"https://api.github.com/users/edsiper/received_events","type":"User","site_admin":false},"assignees":[{"login":"edsiper","id":369718,"avatar_url":"https://avatars.githubusercontent.com/u/369718?v=3","gravatar_id":"","url":"https://api.github.com/users/edsiper","html_url":"https://github.com/edsiper","followers_url":"https://api.github.com/users/edsiper/followers","following_url":"https://api.github.com/users/edsiper/following{/other_user}","gists_url":"https://api.github.com/users/edsiper/gists{/gist_id}","starred_url":"https://api.github.com/users/edsiper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsiper/subscriptions","organizations_url":"https://api.github.com/users/edsiper/orgs","repos_url":"https://api.github.com/users/edsiper/repos","events_url":"https://api.github.com/users/edsiper/events{/privacy}","received_events_url":"https://api.github.com/users/edsiper/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-10-31T13:21:21Z","updated_at":"2016-10-31T16:29:45Z","closed_at":null,"body":"\r\n## How to reproduce \r\n\r\n\r\n\r\n1.  `$ bin/fluent-bit -i cpu -o forward -f 1`\r\n2.  (wait a minute)\r\n\r\nThis issue also happens with `in_http`.\r\nThe point is \"offline\" not to communicate fluentd/http server.\r\n\r\n## gdb log\r\n\r\nout_th is NULL when segfault is happened.\r\n```\r\nsrc/flb_task.c:81\r\n81\t    o_ins = out_th->o_ins;\r\n```\r\n\r\n```gdb\r\n$ gdb bin/fluent-bit \r\nGNU gdb (GDB) Red Hat Enterprise Linux (7.2-90.el6)\r\nCopyright (C) 2010 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"x86_64-redhat-linux-gnu\".\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>...\r\nReading symbols from /home/taka/git/oss/pull_req/fluentbit_env/fluent-bit/build/bin/fluent-bit...done.\r\n(gdb) run -i cpu -o http -vvv -f 1\r\nStarting program: /home/taka/git/oss/pull_req/fluentbit_env/fluent-bit/build/bin/fluent-bit -i cpu -o http -vvv -f 1\r\n[Thread debugging using libthread_db enabled]\r\n[New Thread 0x2aaaaacc1700 (LWP 28315)]\r\nFluent-Bit v0.9.0\r\nCopyright (C) Treasure Data\r\n\r\n[2016/10/31 22:14:01] [ info] [engine] started\r\n[2016/10/31 22:14:01] [error] [TLS] Invalid CA file: /etc/ssl/certs/ca-certificates.crt\r\n[2016/10/31 22:14:01] [debug] [router] default match rule cpu.0:http.0\r\n[2016/10/31 22:14:02] [trace] [in_cpu] CPU 1.00%\r\n[2016/10/31 22:14:03] [debug] [task] created task=0x6ea280 OK\r\n[2016/10/31 22:14:03] [trace] [engine dispatch] task #0 created 0x6ea280\r\n[2016/10/31 22:14:03] [trace] [thread 0x6ea320] created (custom data at 0x6ea348, size=64\r\n[2016/10/31 22:14:03] [trace] [upstream] connection in process\r\n[2016/10/31 22:14:03] [trace] [in_cpu] CPU 5.00%\r\n[2016/10/31 22:14:03] [trace] [engine] resuming thread=0x6ea320\r\n[2016/10/31 22:14:03] [error] [io] TCP connection failed: 127.0.0.1:80\r\n[2016/10/31 22:14:03] [error] [out_http] no upstream connections available\r\n[2016/10/31 22:14:03] [trace] [engine] [task event] task_id=0 thread_id=0 return=RETRY\r\n[2016/10/31 22:14:03] [trace] [thread] destroy thread=0x6ea320\r\n[2016/10/31 22:14:03] [debug] [sched] retry=0x6f2620 0 in 6 seconds\r\n[2016/10/31 22:14:04] [debug] [task] created task=0x6f0610 OK\r\n[2016/10/31 22:14:04] [trace] [engine dispatch] task #1 created 0x6f0610\r\n[2016/10/31 22:14:04] [trace] [thread 0x6f05a0] created (custom data at 0x6f05c8, size=64\r\n[2016/10/31 22:14:04] [trace] [upstream] connection in process\r\n[2016/10/31 22:14:04] [trace] [in_cpu] CPU 6.00%\r\n[2016/10/31 22:14:04] [trace] [engine] resuming thread=0x6f05a0\r\n[2016/10/31 22:14:04] [error] [io] TCP connection failed: 127.0.0.1:80\r\n[2016/10/31 22:14:04] [error] [out_http] no upstream connections available\r\n[2016/10/31 22:14:04] [trace] [engine] [task event] task_id=1 thread_id=0 return=RETRY\r\n[2016/10/31 22:14:04] [trace] [thread] destroy thread=0x6f05a0\r\n[2016/10/31 22:14:04] [debug] [sched] retry=0x6f0740 1 in 2 seconds\r\n[2016/10/31 22:14:05] [debug] [task] created task=0x6f0800 OK\r\n[2016/10/31 22:14:05] [trace] [engine dispatch] task #2 created 0x6f0800\r\n[2016/10/31 22:14:05] [trace] [thread 0x6f06d0] created (custom data at 0x6f06f8, size=64\r\n[2016/10/31 22:14:05] [trace] [upstream] connection in process\r\n[2016/10/31 22:14:05] [trace] [in_cpu] CPU 3.00%\r\n[2016/10/31 22:14:05] [trace] [engine] resuming thread=0x6f06d0\r\n[2016/10/31 22:14:05] [error] [io] TCP connection failed: 127.0.0.1:80\r\n[2016/10/31 22:14:05] [error] [out_http] no upstream connections available\r\n[2016/10/31 22:14:05] [trace] [engine] [task event] task_id=2 thread_id=0 return=RETRY\r\n[2016/10/31 22:14:05] [trace] [thread] destroy thread=0x6f06d0\r\n[2016/10/31 22:14:05] [debug] [sched] retry=0x6f0950 2 in 5 seconds\r\n[2016/10/31 22:14:06] [trace] [thread 0x6f08e0] created (custom data at 0x6f0908, size=64\r\n[2016/10/31 22:14:06] [trace] [upstream] connection in process\r\n[2016/10/31 22:14:06] [debug] [task] created task=0x6f0b50 OK\r\n[2016/10/31 22:14:06] [trace] [engine dispatch] task #3 created 0x6f0b50\r\n[2016/10/31 22:14:06] [trace] [thread 0x6f05a0] created (custom data at 0x6f05c8, size=64\r\n[2016/10/31 22:14:06] [trace] [upstream] connection in process\r\n[2016/10/31 22:14:06] [trace] [in_cpu] CPU 3.00%\r\n[2016/10/31 22:14:06] [trace] [engine] resuming thread=0x6f08e0\r\n[2016/10/31 22:14:06] [error] [io] TCP connection failed: 127.0.0.1:80\r\n[2016/10/31 22:14:06] [error] [out_http] no upstream connections available\r\n[2016/10/31 22:14:06] [trace] [engine] resuming thread=0x6f05a0\r\n[2016/10/31 22:14:06] [error] [io] TCP connection failed: 127.0.0.1:80\r\n[2016/10/31 22:14:06] [error] [out_http] no upstream connections available\r\n[2016/10/31 22:14:06] [trace] [engine] [task event] task_id=1 thread_id=1 return=RETRY\r\n[2016/10/31 22:14:06] [trace] [thread] destroy thread=0x6f08e0\r\n[2016/10/31 22:14:06] [debug] [sched] retry=0x6f0740 1 in 20 seconds\r\n[2016/10/31 22:14:06] [trace] [engine] [task event] task_id=3 thread_id=0 return=RETRY\r\n[2016/10/31 22:14:06] [trace] [thread] destroy thread=0x6f05a0\r\n[2016/10/31 22:14:06] [debug] [sched] retry=0x6f0a60 3 in 9 seconds\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x000000000041a615 in flb_task_retry_create (task=0x6ea280, data=0x0) at /home/taka/git/oss/pull_req/fluentbit_env/fluent-bit/src/flb_task.c:81\r\n81\t    o_ins = out_th->o_ins;\r\nMissing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 zlib-1.2.3-29.el6.x86_64\r\n(gdb) \r\n```"},"comment":{"url":"https://api.github.com/repos/fluent/fluent-bit/issues/comments/257343673","html_url":"https://github.com/fluent/fluent-bit/issues/123#issuecomment-257343673","issue_url":"https://api.github.com/repos/fluent/fluent-bit/issues/123","id":257343673,"user":{"login":"edsiper","id":369718,"avatar_url":"https://avatars.githubusercontent.com/u/369718?v=3","gravatar_id":"","url":"https://api.github.com/users/edsiper","html_url":"https://github.com/edsiper","followers_url":"https://api.github.com/users/edsiper/followers","following_url":"https://api.github.com/users/edsiper/following{/other_user}","gists_url":"https://api.github.com/users/edsiper/gists{/gist_id}","starred_url":"https://api.github.com/users/edsiper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsiper/subscriptions","organizations_url":"https://api.github.com/users/edsiper/orgs","repos_url":"https://api.github.com/users/edsiper/repos","events_url":"https://api.github.com/users/edsiper/events{/privacy}","received_events_url":"https://api.github.com/users/edsiper/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T16:29:45Z","updated_at":"2016-10-31T16:29:45Z","body":"troubleshooting."}}
{"actor":{"display_login":"edsiper"}}