pingostack / pingos

Based on the NGINX/RTMP/HTTP-FLV/HTTP-TS/HLS/HLS+/DASH/H.264/H.265/AAC/MP3/Live/Record/VOD/Push/Pull/Multiple Processes/Dynamic Configuration/Configuration Variables/Console Interface/Notify
https://pingos.io
BSD 3-Clause "New" or "Revised" License
992 stars 275 forks source link

服务core dump #28

Closed steven-tianx closed 4 years ago

steven-tianx commented 4 years ago

hi httpflv的拉流过程中,随机出现服务进程异常重启(core dump) core日志如下: image image image nginx日志如下: 2020/08/06 10:48:52 [info] 33167#0: 93823 http flv live, client timed out (110: Connection timed out), client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 http flv live, cleanup, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 finalize fake session, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 disconnect, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 rtmp close stream filter, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 finalize session, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: *93823 asyn finalize http request, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: 0.0.0.0:80 2020/08/06 10:48:52 [notice] 32285#0: signal 17 (SIGCHLD) received from 33167 2020/08/06 10:48:52 [alert] 32285#0: worker process 33167 exited on signal 11 (core dumped)

im-pingo commented 4 years ago

hi httpflv的拉流过程中,随机出现服务进程异常重启(core dump) core日志如下: image image image nginx日志如下: 2020/08/06 10:48:52 [info] 33167#0: 93823 http flv live, client timed out (110: Connection timed out), client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 http flv live, cleanup, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 finalize fake session, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 disconnect, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 rtmp close stream filter, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: 93823 finalize session, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: , request: "GET /live/b34f586544924ab8a9a9f66f4761672d HTTP/1.0", host: "live2.pptv.com" 2020/08/06 10:48:52 [info] 33167#0: *93823 asyn finalize http request, server: 0.0.0.0:1935, session: 000000000245A680, stream: pptv/live/b34f586544924ab8a9a9f66f4761672d, client: 10.200.20.62, server: 0.0.0.0:80 2020/08/06 10:48:52 [notice] 32285#0: signal 17 (SIGCHLD) received from 33167 2020/08/06 10:48:52 [alert] 32285#0: worker process 33167 exited on signal 11 (core dumped)

http-flv客户端超时后重复触发finalize session导致服务crash,现已修复。