{"action":"created","issue":{"url":"https://api.github.com/repos/flavioribeiro/nginx-audio-track-for-hls-module/issues/25","labels_url":"https://api.github.com/repos/flavioribeiro/nginx-audio-track-for-hls-module/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/flavioribeiro/nginx-audio-track-for-hls-module/issues/25/comments","events_url":"https://api.github.com/repos/flavioribeiro/nginx-audio-track-for-hls-module/issues/25/events","html_url":"https://github.com/flavioribeiro/nginx-audio-track-for-hls-module/issues/25","id":54456291,"number":25,"title":"nginx crash with many requests","user":{"login":"jalonsoa","id":266372,"avatar_url":"https://avatars.githubusercontent.com/u/266372?v=3","gravatar_id":"","url":"https://api.github.com/users/jalonsoa","html_url":"https://github.com/jalonsoa","followers_url":"https://api.github.com/users/jalonsoa/followers","following_url":"https://api.github.com/users/jalonsoa/following{/other_user}","gists_url":"https://api.github.com/users/jalonsoa/gists{/gist_id}","starred_url":"https://api.github.com/users/jalonsoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalonsoa/subscriptions","organizations_url":"https://api.github.com/users/jalonsoa/orgs","repos_url":"https://api.github.com/users/jalonsoa/repos","events_url":"https://api.github.com/users/jalonsoa/events{/privacy}","received_events_url":"https://api.github.com/users/jalonsoa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flavioribeiro/nginx-audio-track-for-hls-module/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-01-15T14:42:32Z","updated_at":"2015-01-28T12:44:38Z","closed_at":null,"body":"Hi\r\n  the nginx crash when many clients request audio files. I think that this is a problem about thread safe.\r\n\r\n  Are av libraries (avformat, avcodec and avutil) thread safe ?\r\n\r\n  the bt on nginx crash:\r\n\r\n~~~~\r\n(gdb) bt\r\n#0  0x00007fdd8379cad0 in ?? () from /lib/x86_64-linux-gnu/libc.so.6\r\n#1  0x00007fdd8379d839 in ?? () from /lib/x86_64-linux-gnu/libc.so.6\r\n#2  0x00007fdd854bb25c in av_freep () from /usr/lib/x86_64-linux-gnu/libavutil.so.51\r\n#3  0x00007fdd8659f606 in avformat_free_context () from /usr/lib/x86_64-linux-gnu/libavformat.so.53\r\n#4  0x00007fdd8659f811 in avformat_close_input () from /usr/lib/x86_64-linux-gnu/libavformat.so.53\r\n#5  0x00000000004dd128 in ngx_http_aac_extract_audio (destination=0x1f53da8, outputfmt=..., log=0x1e2c820, pool=<optimized out>, source=...)\r\n    at src/modules/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:236\r\n#6  ngx_http_aac_handler (r=0x1f52e20) at src/modules/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:31\r\n#7  0x000000000044db52 in ngx_http_core_content_phase (r=0x1f52e20, ph=0x1e5b010) at src/http/ngx_http_core_module.c:1407\r\n#8  0x0000000000448325 in ngx_http_core_run_phases (r=0x1f52e20) at src/http/ngx_http_core_module.c:888\r\n#9  0x0000000000454451 in ngx_http_process_request (r=0x1f52e20) at src/http/ngx_http_request.c:1902\r\n#10 0x00000000004553a6 in ngx_http_process_request_line (rev=0x1e86250) at src/http/ngx_http_request.c:1012\r\n#11 0x000000000043d731 in ngx_epoll_process_events (cycle=0x1e1e280, timer=<optimized out>, flags=<optimized out>) at src/event/modules/ngx_epoll_module.c:691\r\n#12 0x00000000004340d7 in ngx_process_events_and_timers (cycle=0x1e1e280) at src/event/ngx_event.c:248\r\n#13 0x000000000043b5c9 in ngx_worker_process_cycle (cycle=0x1e1e280, data=<optimized out>) at src/os/unix/ngx_process_cycle.c:822\r\n#14 0x0000000000439f35 in ngx_spawn_process (cycle=0x1e1e280, proc=0x43b510 <ngx_worker_process_cycle>, data=0x0, name=0x516bde \"worker process\", respawn=0) at src/os/unix/ngx_process.c:198\r\n#15 0x000000000043c9c2 in ngx_reap_children (cycle=0x1e1e280) at src/os/unix/ngx_process_cycle.c:631\r\n#16 ngx_master_process_cycle (cycle=0x1e1e280) at src/os/unix/ngx_process_cycle.c:184\r\n#17 0x0000000000419c0d in main (argc=<optimized out>, argv=<optimized out>) at src/core/nginx.c:407\r\n~~~~"},"comment":{"url":"https://api.github.com/repos/flavioribeiro/nginx-audio-track-for-hls-module/issues/comments/71829196","html_url":"https://github.com/flavioribeiro/nginx-audio-track-for-hls-module/issues/25#issuecomment-71829196","issue_url":"https://api.github.com/repos/flavioribeiro/nginx-audio-track-for-hls-module/issues/25","id":71829196,"user":{"login":"jalonsoa","id":266372,"avatar_url":"https://avatars.githubusercontent.com/u/266372?v=3","gravatar_id":"","url":"https://api.github.com/users/jalonsoa","html_url":"https://github.com/jalonsoa","followers_url":"https://api.github.com/users/jalonsoa/followers","following_url":"https://api.github.com/users/jalonsoa/following{/other_user}","gists_url":"https://api.github.com/users/jalonsoa/gists{/gist_id}","starred_url":"https://api.github.com/users/jalonsoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalonsoa/subscriptions","organizations_url":"https://api.github.com/users/jalonsoa/orgs","repos_url":"https://api.github.com/users/jalonsoa/repos","events_url":"https://api.github.com/users/jalonsoa/events{/privacy}","received_events_url":"https://api.github.com/users/jalonsoa/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T12:44:38Z","updated_at":"2015-01-28T12:44:38Z","body":"Hi Flavio,\r\n  sorry. I'm bussy this week .. ;-( .. yesterday compile new libav for my\r\nmachine (this time I'm sure that have threads support), and recompile nginx\r\nagainst the new lib. Bad news ... nginx crash again.\r\n\r\n  Any idea ?\r\n\r\n(gdb) bt\r\n#0  0x00007ffc914b83c4 in ?? () from /lib/x86_64-linux-gnu/libc.so.6\r\n#1  0x00007ffc9379d650 in av_parser_close () from\r\n/usr/lib/x86_64-linux-gnu/libavcodec.so.56\r\n#2  0x00007ffc944a0d24 in ?? () from\r\n/usr/lib/x86_64-linux-gnu/libavformat.so.56\r\n#3  0x00007ffc944a1137 in ?? () from\r\n/usr/lib/x86_64-linux-gnu/libavformat.so.56\r\n#4  0x00000000004dd0c4 in ngx_http_aac_extract_audio\r\n(destination=0x1916b48, outputfmt=..., log=0x18fdc80, pool=<optimized out>,\r\nsource=...)\r\n    at\r\n/html/src/nginx/nginx-1.7.4/debian/modules/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:245\r\n#5  ngx_http_aac_handler (r=0x1915bd0) at\r\n/html/src/nginx/nginx-1.7.4/debian/modules/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:31\r\n#6  0x000000000044db52 in ngx_http_core_content_phase (r=0x1915bd0,\r\nph=0x189bdb0) at src/http/ngx_http_core_module.c:1407\r\n#7  0x0000000000448325 in ngx_http_core_run_phases (r=0x1915bd0) at\r\nsrc/http/ngx_http_core_module.c:888\r\n#8  0x0000000000454451 in ngx_http_process_request (r=0x1915bd0) at\r\nsrc/http/ngx_http_request.c:1902\r\n#9  0x00000000004553a6 in ngx_http_process_request_line (rev=0x18c8d18) at\r\nsrc/http/ngx_http_request.c:1012\r\n#10 0x000000000043d731 in ngx_epoll_process_events (cycle=0x185f060,\r\ntimer=<optimized out>, flags=<optimized out>) at\r\nsrc/event/modules/ngx_epoll_module.c:691\r\n#11 0x00000000004340d7 in ngx_process_events_and_timers (cycle=0x185f060)\r\nat src/event/ngx_event.c:248\r\n#12 0x000000000043b5c9 in ngx_worker_process_cycle (cycle=0x185f060,\r\ndata=<optimized out>) at src/os/unix/ngx_process_cycle.c:822\r\n#13 0x0000000000439f35 in ngx_spawn_process (cycle=0x185f060, proc=0x43b510\r\n<ngx_worker_process_cycle>, data=0x0, name=0x516b1e \"worker process\",\r\nrespawn=-3)\r\n    at src/os/unix/ngx_process.c:198\r\n#14 0x000000000043b804 in ngx_start_worker_processes (cycle=0x185f060, n=1,\r\ntype=-3) at src/os/unix/ngx_process_cycle.c:368\r\n#15 0x000000000043c486 in ngx_master_process_cycle (cycle=0x185f060) at\r\nsrc/os/unix/ngx_process_cycle.c:140\r\n#16 0x0000000000419c0d in main (argc=<optimized out>, argv=<optimized out>)\r\nat src/core/nginx.c:407\r\n\r\n\r\n\r\nOn Tue, Jan 27, 2015 at 5:50 PM, Flávio Ribeiro <notifications@github.com>\r\nwrote:\r\n\r\n> hey @jalonsoa <https://github.com/jalonsoa> any updates on this?\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/flavioribeiro/nginx-audio-track-for-hls-module/issues/25#issuecomment-71682107>\r\n> .\r\n>"}}