{"action":"created","issue":{"url":"https://api.github.com/repos/fluent/fluent-bit/issues/113","repository_url":"https://api.github.com/repos/fluent/fluent-bit","labels_url":"https://api.github.com/repos/fluent/fluent-bit/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluent-bit/issues/113/comments","events_url":"https://api.github.com/repos/fluent/fluent-bit/issues/113/events","html_url":"https://github.com/fluent/fluent-bit/issues/113","id":180637834,"number":113,"title":"segfault caused by out_stdout","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":4,"created_at":"2016-10-03T13:16:47Z","updated_at":"2016-10-04T07:30:53Z","closed_at":null,"body":"I tested 15047b7866a6938d6e6574bad853b9840e691151 and Segfault occurs.\r\n(By the way, Default log level is `debug` in that commit. Is it intentional?)\r\n \r\n## How to reproduce \r\n\r\n* $ fluent-bit -i cpu -o stdout\r\n* wait a minute\r\n\r\n~~On the other hand, segfault is not happened when output is `out_null`.~~\r\n\r\n## gdb log\r\nIt is caused by `src/flb_task.c`.\r\n\r\n```gdb\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x0000000000417e53 in flb_task_retry_clean (task=0x6d3f90, data=0x3a3298f040)\r\n    at /home/taka/git/oss/pull_req/fluentbit_env/fluent-bit/src/flb_task.c:124\r\n124\t    o_ins = out_th->o_ins;\r\n```\r\n\r\nFull log is\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 stdout -f 1\r\nStarting program: /home/taka/git/oss/pull_req/fluentbit_env/fluent-bit/build/bin/fluent-bit -i cpu -o stdout -f 1\r\n[Thread debugging using libthread_db enabled]\r\n[New Thread 0x2aaaaacc1700 (LWP 27777)]\r\nFluent-Bit v0.9.0\r\nCopyright (C) Treasure Data\r\n\r\n[2016/10/03 22:07:00] [ info] [engine] started\r\n[2016/10/03 22:07:00] [debug] [router] default match rule cpu.0:stdout.0\r\n[2016/10/03 22:07:02] [debug] [task] created task=0x6d3f90 OK\r\n[0] cpu.0: [1475500021, {\"cpu_p\"=>4.000000, \"user_p\"=>1.000000, \"system_p\"=>3.000000, \"cpu0.p_cpu\"=>4.000000, \"cpu0.p_user\"=>1.000000, \"cpu0.p_system\"=>3.000000}]\r\n[2016/10/03 22:07:03] [debug] [task] created task=0x6d41f0 OK\r\n[0] cpu.0: [1475500022, {\"cpu_p\"=>0.000000, \"user_p\"=>0.000000, \"system_p\"=>0.000000, \"cpu0.p_cpu\"=>0.000000, \"cpu0.p_user\"=>0.000000, \"cpu0.p_system\"=>0.000000}]\r\n[2016/10/03 22:07:04] [debug] [task] created task=0x6d4320 OK\r\n[0] cpu.0: [1475500023, {\"cpu_p\"=>2.000000, \"user_p\"=>1.000000, \"system_p\"=>1.000000, \"cpu0.p_cpu\"=>2.000000, \"cpu0.p_user\"=>1.000000, \"cpu0.p_system\"=>1.000000}]\r\n[2016/10/03 22:07:05] [debug] [task] created task=0x6d4470 OK\r\n[0] cpu.0: [1475500024, {\"cpu_p\"=>1.000000, \"user_p\"=>1.000000, \"system_p\"=>0.000000, \"cpu0.p_cpu\"=>1.000000, \"cpu0.p_user\"=>1.000000, \"cpu0.p_system\"=>0.000000}]\r\n[2016/10/03 22:07:06] [debug] [task] created task=0x6d45e0 OK\r\n[0] cpu.0: [1475500025, {\"cpu_p\"=>4.000000, \"user_p\"=>2.000000, \"system_p\"=>2.000000, \"cpu0.p_cpu\"=>4.000000, \"cpu0.p_user\"=>2.000000, \"cpu0.p_system\"=>2.000000}]\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x0000000000417e53 in flb_task_retry_clean (task=0x6d3f90, data=0x3a3298f040)\r\n    at /home/taka/git/oss/pull_req/fluentbit_env/fluent-bit/src/flb_task.c:124\r\n124\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/251314751","html_url":"https://github.com/fluent/fluent-bit/issues/113#issuecomment-251314751","issue_url":"https://api.github.com/repos/fluent/fluent-bit/issues/113","id":251314751,"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-04T07:30:53Z","updated_at":"2016-10-04T07:30:53Z","body":"@nokute78 I will keep this ticket open until final confirmation."}}
{"actor":{"display_login":"edsiper"}}