ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.72k stars 5.39k forks source link

Under the condition of network disconnection, SRS often automatically exits. #523

Closed stevexk closed 7 years ago

stevexk commented 9 years ago

SRS version: srs-2.0a2 The company's network is unstable, with intermittent network interruptions. It has been observed that SRS automatically exits during these interruptions. Additionally, other processes in the system are also terminated, although the exact reason for this is currently unknown and can only be speculated to be related to SRS.

SRS usage: Camera streaming (h264+pcmu), transcoded by SRS into h264+aac, with HLS slicing enabled and DVR recording.

There are no obvious errors in the srs.log file, but a segmentation fault is reported in /var/log/syslog.

/var/log/syslog
Nov 11 15:04:05 eyebest rsyslogd: rsyslogd's groupid changed to 104
Nov 11 15:04:05 eyebest rsyslogd: rsyslogd's userid changed to 101
Nov 11 15:04:16 eyebest kernel: [320684.299153] srs[21372]: segfault at 80 ip 0000000000492ed2 sp 00007f9248259c90 error 4 in srs[400000+28e000]
Nov 11 15:04:17 eyebest rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="22236" x-info="http://www.rsyslog.com"] exiting on signal 15.
Nov 11 15:04:17 eyebest rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="22257" x-info="http://www.rsyslog.com"] start
Nov 11 15:04:17 eyebest rsyslogd: rsyslogd's groupid changed to 104
Nov 11 15:04:17 eyebest rsyslogd: rsyslogd's userid changed to 101

SRS.log content (partial):

Please provide the content of the SRS.log file for translation.

[2015-11-11 13:32:45.222][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:32:45.227][trace][8669][186] dvr stream 2121415498 to file /mnt/flvs/live/2121415498/2015-11-11_13/32.flv
[2015-11-11 13:32:47.224][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:32:48.611][trace][8669][206] dvr stream C1201408280001_ff to file /mnt/flvs/live/C1201408280001_ff/2015-11-11_13/32.flv
[2015-11-11 13:32:49.236][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:32:49.531][trace][8669][115] -> ENC time=219009, encoders=1, input=__defaultVhost__/live/2113815136
[2015-11-11 13:32:50.525][trace][8669][109] <- CPB time=199825, okbps=0,0,0, ikbps=290,304,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:32:51.070][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/32.flv.
[2015-11-11 13:32:51.070][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/32.flv
[2015-11-11 13:32:51.166][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:32:52.745][trace][8669][120] -> PLA time=220821, msgs=25, okbps=280,292,0, ikbps=0,0,0, mw=350
[2015-11-11 13:32:53.116][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/32.flv.
[2015-11-11 13:32:53.116][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/32.flv
[2015-11-11 13:32:53.170][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:32:53.594][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/32.flv.
[2015-11-11 13:32:53.594][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/32.flv
[2015-11-11 13:32:55.170][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:32:55.384][trace][8669][179] dvr: always append to when exists, file=/mnt/flvs/live/2121415580/2015-11-11_13/32.flv.
[2015-11-11 13:32:55.384][trace][8669][179] dvr stream 2121415580 to file /mnt/flvs/live/2121415580/2015-11-11_13/32.flv
[2015-11-11 13:32:55.576][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/32.flv.
[2015-11-11 13:32:55.576][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/32.flv
[2015-11-11 13:32:56.443][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/32.flv.
[2015-11-11 13:32:56.443][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/32.flv
[2015-11-11 13:32:57.074][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/32.flv.
[2015-11-11 13:32:57.074][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/32.flv
[2015-11-11 13:32:57.169][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:32:57.435][trace][8669][179] dvr: always append to when exists, file=/mnt/flvs/live/2121415580/2015-11-11_13/32.flv.
[2015-11-11 13:32:57.435][trace][8669][179] dvr stream 2121415580 to file /mnt/flvs/live/2121415580/2015-11-11_13/32.flv
[2015-11-11 13:32:57.536][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/32.flv.
[2015-11-11 13:32:57.536][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/32.flv
[2015-11-11 13:32:59.062][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/32.flv.
[2015-11-11 13:32:59.062][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/32.flv
[2015-11-11 13:32:59.188][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:32:59.396][trace][8669][179] dvr: always append to when exists, file=/mnt/flvs/live/2121415580/2015-11-11_13/32.flv.
[2015-11-11 13:32:59.396][trace][8669][179] dvr stream 2121415580 to file /mnt/flvs/live/2121415580/2015-11-11_13/32.flv
[2015-11-11 13:32:59.592][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/32.flv.
[2015-11-11 13:32:59.592][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/32.flv
[2015-11-11 13:33:01.145][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/33.flv
[2015-11-11 13:33:01.199][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:33:01.452][trace][8669][179] dvr stream 2121415580 to file /mnt/flvs/live/2121415580/2015-11-11_13/33.flv
[2015-11-11 13:33:01.579][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/33.flv
[2015-11-11 13:33:02.303][trace][8669][179] <- CPB time=60002, okbps=0,0,0, ikbps=338,344,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:33:02.621][trace][8669][203] -> PLA time=32238, msgs=27, okbps=210,210,0, ikbps=0,0,0, mw=350
[2015-11-11 13:33:03.222][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:33:05.149][trace][8669][186] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:33:05.466][trace][8669][143] -> HLS time=232009, stream dts=21326400(236960ms), sno=24, ts=2113815136_ff-23.ts, dur=2.13, dva=0p
[2015-11-11 13:33:10.519][trace][8669][114] -> ENC time=240009, encoders=1, input=__defaultVhost__/live/2113815109
[2015-11-11 13:33:10.525][trace][8669][109] <- CPB time=219825, okbps=0,0,0, ikbps=291,304,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:33:11.116][trace][8669][143] dvr stream 2113815136_ff to file /mnt/flvs/live/2113815136_ff/2015-11-11_13/33.flv
[2015-11-11 13:33:11.792][trace][8669][148] dvr stream 2113815109_ff to file /mnt/flvs/live/2113815109_ff/2015-11-11_13/33.flv
[2015-11-11 13:33:21.993][trace][8669][120] -> PLA time=250821, msgs=24, okbps=281,289,0, ikbps=0,0,0, mw=350
[2015-11-11 13:33:22.303][trace][8669][179] <- CPB time=80240, okbps=0,0,0, ikbps=285,216,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:33:29.972][warn][8669][199][62] publish timeout 20000ms, nb_msgs=2547, ret=1011
[2015-11-11 13:33:29.973][trace][8669][199] send SIGTERM to pid=9012
[2015-11-11 13:33:30.213][warn][8669][196][62] publish timeout 20000ms, nb_msgs=4759, ret=1011
[2015-11-11 13:33:30.213][trace][8669][196] cleanup when unpublish
[2015-11-11 13:33:30.213][warn][8669][196][4] client disconnect peer. ret=1004
[2015-11-11 13:33:30.980][trace][8669][199] SIGKILL stop process pid=9012 ok.
[2015-11-11 13:33:30.980][trace][8669][199] cleanup when unpublish
[2015-11-11 13:33:30.980][warn][8669][199][11] client disconnect peer. ret=1004
[2015-11-11 13:33:30.981][warn][8669][203][104] client disconnect peer. ret=1004
[2015-11-11 13:33:30.981][trace][8669][206] cleanup when unpublish
[2015-11-11 13:33:30.981][warn][8669][206][2] client disconnect peer. ret=1004
[2015-11-11 13:33:31.101][trace][8669][121] -> PLA time=259821, msgs=23, okbps=287,333,0, ikbps=0,0,0, mw=350
[2015-11-11 13:33:31.123][trace][8669][187] -> ENC time=259009, encoders=1, input=__defaultVhost__/live/2121415498
[2015-11-11 13:33:33.941][trace][8669][143] <- CPB time=239410, okbps=0,0,0, ikbps=242,275,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:33:42.303][warn][8669][179][62] publish timeout 20000ms, nb_msgs=5544, ret=1011
[2015-11-11 13:33:42.303][trace][8669][179] send SIGTERM to pid=8870
[2015-11-11 13:33:43.309][trace][8669][179] SIGKILL stop process pid=8870 ok.
[2015-11-11 13:33:43.309][trace][8669][179] cleanup when unpublish
[2015-11-11 13:33:43.309][warn][8669][179][11] client disconnect peer. ret=1004
[2015-11-11 13:33:43.309][warn][8669][183][104] client disconnect peer. ret=1004
[2015-11-11 13:33:43.309][trace][8669][192] cleanup when unpublish
[2015-11-11 13:33:43.309][warn][8669][192][9] client disconnect peer. ret=1004
[2015-11-11 13:33:43.459][trace][8669][120] -> PLA time=271823, msgs=28, okbps=279,289,0, ikbps=0,0,0, mw=350
[2015-11-11 13:33:46.133][warn][8669][186][62] publish timeout 20000ms, nb_msgs=5340, ret=1011
[2015-11-11 13:33:46.133][trace][8669][186] send SIGTERM to pid=8927
[2015-11-11 13:33:47.142][trace][8669][186] SIGKILL stop process pid=8927 ok.
[2015-11-11 13:33:47.142][trace][8669][186] cleanup when unpublish
[2015-11-11 13:33:47.142][warn][8669][186][11] client disconnect peer. ret=1004
[2015-11-11 13:33:47.142][warn][8669][190][11] client disconnect peer. ret=1004
[2015-11-11 13:33:47.142][trace][8669][120] -> PLA time=275823, msgs=20, okbps=278,289,0, ikbps=0,0,0, mw=350
[2015-11-11 13:33:50.525][trace][8669][109] <- CPB time=259825, okbps=0,0,0, ikbps=290,272,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:33:51.150][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/33.flv.
[2015-11-11 13:33:51.150][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/33.flv
[2015-11-11 13:33:51.614][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/33.flv.
[2015-11-11 13:33:51.614][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/33.flv
[2015-11-11 13:33:53.100][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/33.flv.
[2015-11-11 13:33:53.101][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/33.flv
[2015-11-11 13:33:53.599][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/33.flv.
[2015-11-11 13:33:53.599][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/33.flv
[2015-11-11 13:33:53.941][trace][8669][143] <- CPB time=259411, okbps=0,0,0, ikbps=242,262,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:33:54.371][trace][8669][148] -> HLS time=280412, stream dts=25784370(286493ms), sno=29, ts=2113815109_ff-28.ts, dur=0.40, dva=0p
[2015-11-11 13:33:55.181][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/33.flv.
[2015-11-11 13:33:55.181][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/33.flv
[2015-11-11 13:33:55.658][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/33.flv.
[2015-11-11 13:33:55.658][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/33.flv
[2015-11-11 13:33:56.785][trace][8669][121] -> PLA time=285823, msgs=24, okbps=291,312,0, ikbps=0,0,0, mw=350
[2015-11-11 13:33:57.088][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/33.flv.
[2015-11-11 13:33:57.088][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/33.flv
[2015-11-11 13:33:57.611][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/33.flv.
[2015-11-11 13:33:57.611][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/33.flv
[2015-11-11 13:33:59.092][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/33.flv.
[2015-11-11 13:33:59.092][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/33.flv
[2015-11-11 13:33:59.591][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/33.flv.
[2015-11-11 13:33:59.591][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/33.flv
[2015-11-11 13:34:01.094][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/34.flv
[2015-11-11 13:34:01.644][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/34.flv
[2015-11-11 13:34:06.795][trace][8669][120] -> PLA time=295824, msgs=26, okbps=278,256,0, ikbps=0,0,0, mw=350
[2015-11-11 13:34:07.522][trace][8669][114] -> ENC time=297012, encoders=1, input=__defaultVhost__/live/2113815109
[2015-11-11 13:34:10.525][trace][8669][109] <- CPB time=279827, okbps=0,0,0, ikbps=289,272,289, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:34:11.196][trace][8669][143] dvr stream 2113815136_ff to file /mnt/flvs/live/2113815136_ff/2015-11-11_13/34.flv
[2015-11-11 13:34:11.800][trace][8669][148] dvr stream 2113815109_ff to file /mnt/flvs/live/2113815109_ff/2015-11-11_13/34.flv
[2015-11-11 13:34:12.762][trace][8669][209] RTMP client ip=211.141.80.99
[2015-11-11 13:34:12.776][trace][8669][209] simple handshake success.
[2015-11-11 13:34:12.790][trace][8669][209] connect app, tcUrl=rtmp://www.hvvu.com:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2015-11-11 13:34:12.790][trace][8669][209] out chunk size to 60000
[2015-11-11 13:34:12.845][trace][8669][209] client identified, type=fmle-publish, stream_name=2121415580, duration=-1.00
[2015-11-11 13:34:12.845][trace][8669][209] source url=/live/2121415580, ip=211.141.80.99, cache=1, is_edge=0, source_id=-1[-1]
[2015-11-11 13:34:12.908][trace][8669][209] encoder thread cid=180, current_cid=209
[2015-11-11 13:34:12.909][trace][8669][209] hls: win=60.00, frag=10.00, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, aof=2.00, floor=0, clean=0, waitk=1, dispose=0
[2015-11-11 13:34:12.909][trace][8669][210] start ffmpeg, log: ./objs/ffmpeg-encoder-__defaultVhost__-live-2121415580.log, params: ./objs/ffmpeg/bin/ffmpeg -f flv -i rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/2121415580 -vcodec copy -acodec libfdk_aac -b:a 16000 -ar 44100 -ac 1 -vol 0 -f flv -y rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/2121415580_ff
[2015-11-11 13:34:12.909][trace][8669][210] vfored ffmpeg encoder engine, pid=9125
[2015-11-11 13:34:12.918][trace][8669][209] start publish mr=0/350, p1stpt=20000, pnt=20000, tcp_nodelay=0, rtcid=211
[2015-11-11 13:34:12.918][error][8669][209][11] aac only support mp3/aac codec. actual=8, ret=3001(Resource temporarily unavailable)
[2015-11-11 13:34:12.918][error][8669][209][11] hls aac demux audio failed. ret=3001(Resource temporarily unavailable)
[2015-11-11 13:34:12.918][warn][8669][209][11] hls process audio message failed, ignore and disable hls. ret=3001
[2015-11-11 13:34:12.919][trace][8669][209] unpublish drop ts segment, sequence_no=0, uri=2121415580-0.ts, duration=0.00, start=0
[2015-11-11 13:34:12.927][trace][8669][213] RTMP client ip=127.0.0.1
[2015-11-11 13:34:12.932][trace][8669][213] complex handshake success
[2015-11-11 13:34:12.971][trace][8669][213] connect app, tcUrl=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2015-11-11 13:34:12.971][trace][8669][213] out chunk size to 60000
[2015-11-11 13:34:13.051][trace][8669][213] ignore AMF0/AMF3 command message.
[2015-11-11 13:34:13.091][trace][8669][213] client identified, type=Play, stream_name=2121415580, duration=-1.00
[2015-11-11 13:34:13.091][trace][8669][213] source url=/live/2121415580, ip=127.0.0.1, cache=1, is_edge=0, source_id=209[209]
[2015-11-11 13:34:13.091][trace][8669][213] dispatch cached gop success. count=0, duration=19
[2015-11-11 13:34:13.091][trace][8669][213] create consumer, queue_size=30.00, jitter=1
[2015-11-11 13:34:13.101][trace][8669][213] mw changed sleep 350=>350, max_msgs=128, esbuf=218750, sbuf 2626560=>218750, realtime=0
[2015-11-11 13:34:13.101][trace][8669][213] start play smi=0.00, mw_sleep=350, mw_enabled=1, realtime=0, tcp_nodelay=0
[2015-11-11 13:34:13.101][trace][8669][214] ignored. set buffer length to 3000
[2015-11-11 13:34:13.377][warn][8669][209][11] VIDEO: stream not monotonically increase, please open mix_correct.
[2015-11-11 13:34:13.377][trace][8669][209] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:34:14.403][trace][8669][148] <- CPB time=279952, okbps=0,0,0, ikbps=231,218,231, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:34:16.059][trace][8669][216] RTMP client ip=127.0.0.1
[2015-11-11 13:34:16.061][trace][8669][216] complex handshake success
[2015-11-11 13:34:16.099][trace][8669][216] connect app, tcUrl=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2015-11-11 13:34:16.099][trace][8669][216] out chunk size to 60000
[2015-11-11 13:34:16.179][trace][8669][216] input chunk size to 60000
[2015-11-11 13:34:16.179][trace][8669][216] client identified, type=fmle-publish, stream_name=2121415580_ff, duration=-1.00
[2015-11-11 13:34:16.179][trace][8669][216] source url=/live/2121415580_ff, ip=127.0.0.1, cache=1, is_edge=0, source_id=-1[-1]
[2015-11-11 13:34:16.259][trace][8669][216] detect a loop cycle, input=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/2121415580_ff, output=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/2121415580_ff_ff, ignore it. ret=3029
[2015-11-11 13:34:16.259][trace][8669][216] hls: win=60.00, frag=10.00, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, aof=2.00, floor=0, clean=0, waitk=1, dispose=0
[2015-11-11 13:34:16.269][trace][8669][216] start publish mr=0/350, p1stpt=20000, pnt=20000, tcp_nodelay=0, rtcid=217
[2015-11-11 13:34:16.317][trace][8669][216] got metadata, width=1280, height=720, vcodec=7, acodec=10
[2015-11-11 13:34:16.317][trace][8669][216] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:34:16.317][trace][8669][216] 4B audio sh, codec(10, profile=LC, 1channels, 0kbps, 44100HZ), flv(16bits, 2channels, 44100HZ)
[2015-11-11 13:34:16.317][warn][8669][216][11] hls timestamp jump 75240=>6210
[2015-11-11 13:34:16.317][error][8669][216][11] avc decode NALU data failed. ret=3001(Resource temporarily unavailable)
[2015-11-11 13:34:16.317][error][8669][216][11] hls codec demux video failed. ret=3001(Resource temporarily unavailable)
[2015-11-11 13:34:16.317][warn][8669][216][11] hls process video message failed, ignore and disable hls. ret=3001
[2015-11-11 13:34:18.817][trace][8669][213] -> PLA time=6000, msgs=21, okbps=309,0,0, ikbps=4,0,0, mw=350
[2015-11-11 13:34:25.595][trace][8669][216] dvr stream 2121415580_ff to file /mnt/flvs/live/2121415580_ff/2015-11-11_13/34.flv
[2015-11-11 13:34:28.903][trace][8669][213] -> PLA time=16000, msgs=24, okbps=331,0,0, ikbps=1,0,0, mw=350
[2015-11-11 13:34:31.532][trace][8669][115] -> ENC time=321012, encoders=1, input=__defaultVhost__/live/2113815136
[2015-11-11 13:34:32.919][trace][8669][209] <- CPB time=0, okbps=1,0,0, ikbps=350,0,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:34:36.269][trace][8669][216] <- CPB time=0, okbps=1,0,0, ikbps=334,0,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:34:38.794][trace][8669][120] -> PLA time=327824, msgs=24, okbps=278,290,278, ikbps=0,0,0, mw=350
[2015-11-11 13:34:44.470][trace][8669][148] -> HLS time=330413, stream dts=30293460(336594ms), sno=34, ts=2113815109_ff-33.ts, dur=0.47, dva=0p
[2015-11-11 13:34:48.773][trace][8669][213] -> PLA time=36000, msgs=26, okbps=333,329,0, ikbps=0,0,0, mw=350
[2015-11-11 13:34:51.230][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/34.flv.
[2015-11-11 13:34:51.230][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/34.flv
[2015-11-11 13:34:52.919][trace][8669][209] <- CPB time=20000, okbps=0,1,0, ikbps=352,346,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:34:53.156][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/34.flv.
[2015-11-11 13:34:53.156][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/34.flv
[2015-11-11 13:34:53.839][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/34.flv.
[2015-11-11 13:34:53.839][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/34.flv
[2015-11-11 13:34:54.789][trace][8669][219] RTMP client ip=211.141.80.99
[2015-11-11 13:34:54.803][trace][8669][219] simple handshake success.
[2015-11-11 13:34:54.809][trace][8669][219] connect app, tcUrl=rtmp://www.hvvu.com:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2015-11-11 13:34:54.810][trace][8669][219] out chunk size to 60000
[2015-11-11 13:34:54.834][trace][8669][219] client identified, type=fmle-publish, stream_name=C1201408280001, duration=-1.00
[2015-11-11 13:34:54.834][trace][8669][219] source url=/live/C1201408280001, ip=211.141.80.99, cache=1, is_edge=0, source_id=-1[-1]
[2015-11-11 13:34:54.861][trace][8669][219] encoder thread cid=200, current_cid=219
[2015-11-11 13:34:54.861][trace][8669][219] hls: win=60.00, frag=10.00, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, aof=2.00, floor=0, clean=0, waitk=1, dispose=0
[2015-11-11 13:34:54.861][trace][8669][220] start ffmpeg, log: ./objs/ffmpeg-encoder-__defaultVhost__-live-C1201408280001.log, params: ./objs/ffmpeg/bin/ffmpeg -f flv -i rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/C1201408280001 -vcodec copy -acodec libfdk_aac -b:a 16000 -ar 44100 -ac 1 -vol 0 -f flv -y rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/C1201408280001_ff
[2015-11-11 13:34:54.861][trace][8669][220] vfored ffmpeg encoder engine, pid=9161
[2015-11-11 13:34:54.861][trace][8669][220] -> ENC time=299015, encoders=1, input=__defaultVhost__/live/C1201408280001
[2015-11-11 13:34:54.871][trace][8669][219] start publish mr=0/350, p1stpt=20000, pnt=20000, tcp_nodelay=0, rtcid=221
[2015-11-11 13:34:54.871][error][8669][219][11] aac only support mp3/aac codec. actual=8, ret=3001(Resource temporarily unavailable)
[2015-11-11 13:34:54.871][error][8669][219][11] hls aac demux audio failed. ret=3001(Resource temporarily unavailable)
[2015-11-11 13:34:54.871][warn][8669][219][11] hls process audio message failed, ignore and disable hls. ret=3001
[2015-11-11 13:34:54.871][trace][8669][219] unpublish drop ts segment, sequence_no=0, uri=C1201408280001-0.ts, duration=0.00, start=0
[2015-11-11 13:34:54.879][trace][8669][223] RTMP client ip=127.0.0.1
[2015-11-11 13:34:54.881][trace][8669][223] complex handshake success
[2015-11-11 13:34:54.892][warn][8669][219][11] VIDEO: stream not monotonically increase, please open mix_correct.
[2015-11-11 13:34:54.892][trace][8669][219] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:34:54.919][trace][8669][223] connect app, tcUrl=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2015-11-11 13:34:54.919][trace][8669][223] out chunk size to 60000
[2015-11-11 13:34:54.999][trace][8669][223] ignore AMF0/AMF3 command message.
[2015-11-11 13:34:55.039][trace][8669][223] client identified, type=Play, stream_name=C1201408280001, duration=-1.00
[2015-11-11 13:34:55.039][trace][8669][223] source url=/live/C1201408280001, ip=127.0.0.1, cache=1, is_edge=0, source_id=219[219]
[2015-11-11 13:34:55.039][trace][8669][223] dispatch cached gop success. count=106, duration=1620
[2015-11-11 13:34:55.039][trace][8669][223] create consumer, queue_size=30.00, jitter=1
[2015-11-11 13:34:55.049][trace][8669][223] mw changed sleep 350=>350, max_msgs=128, esbuf=218750, sbuf 2626560=>218750, realtime=0
[2015-11-11 13:34:55.049][trace][8669][223] start play smi=0.00, mw_sleep=350, mw_enabled=1, realtime=0, tcp_nodelay=0
[2015-11-11 13:34:55.049][trace][8669][224] ignored. set buffer length to 3000
[2015-11-11 13:34:55.504][trace][8669][226] RTMP client ip=127.0.0.1
[2015-11-11 13:34:55.506][trace][8669][226] complex handshake success
[2015-11-11 13:34:55.543][trace][8669][226] connect app, tcUrl=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null
[2015-11-11 13:34:55.543][trace][8669][226] out chunk size to 60000
[2015-11-11 13:34:55.623][trace][8669][226] input chunk size to 60000
[2015-11-11 13:34:55.623][trace][8669][226] client identified, type=fmle-publish, stream_name=C1201408280001_ff, duration=-1.00
[2015-11-11 13:34:55.623][trace][8669][226] source url=/live/C1201408280001_ff, ip=127.0.0.1, cache=1, is_edge=0, source_id=-1[-1]
[2015-11-11 13:34:55.703][trace][8669][226] detect a loop cycle, input=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/C1201408280001_ff, output=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/C1201408280001_ff_ff, ignore it. ret=3029
[2015-11-11 13:34:55.703][trace][8669][226] hls: win=60.00, frag=10.00, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, aof=2.00, floor=0, clean=0, waitk=1, dispose=0
[2015-11-11 13:34:55.713][trace][8669][226] start publish mr=0/350, p1stpt=20000, pnt=20000, tcp_nodelay=0, rtcid=227
[2015-11-11 13:34:55.759][trace][8669][226] got metadata, width=1280, height=720, vcodec=7, acodec=10
[2015-11-11 13:34:55.759][trace][8669][226] 30B video sh,  codec(7, profile=Main, level=3.1, 1536x1280, 0kbps, 0fps, 0s)
[2015-11-11 13:34:55.759][trace][8669][226] 4B audio sh, codec(10, profile=LC, 1channels, 0kbps, 44100HZ), flv(16bits, 2channels, 44100HZ)
[2015-11-11 13:34:55.760][warn][8669][226][11] hls timestamp jump 3445290=>5040
[2015-11-11 13:34:55.760][trace][8669][226] -> HLS time=296015, stream dts=5040(56ms), sno=10, ts=C1201408280001_ff-9.ts, dur=0.00, dva=0p
[2015-11-11 13:34:56.471][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/34.flv.
[2015-11-11 13:34:56.471][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/34.flv
[2015-11-11 13:34:56.617][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/34.flv.
[2015-11-11 13:34:56.617][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/34.flv
[2015-11-11 13:34:57.226][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/34.flv.
[2015-11-11 13:34:57.226][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/34.flv
[2015-11-11 13:34:57.511][trace][8669][209] dvr stream 2121415580 to file /mnt/flvs/live/2121415580/2015-11-11_13/34.flv
[2015-11-11 13:34:59.208][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/34.flv.
[2015-11-11 13:34:59.208][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/34.flv
[2015-11-11 13:34:59.231][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/34.flv.
[2015-11-11 13:34:59.231][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/34.flv
[2015-11-11 13:35:00.384][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/35.flv
[2015-11-11 13:35:00.638][trace][8669][223] -> PLA time=5001, msgs=24, okbps=291,0,0, ikbps=4,0,0, mw=350
[2015-11-11 13:35:01.201][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/35.flv
[2015-11-11 13:35:10.525][trace][8669][109] <- CPB time=339829, okbps=0,0,0, ikbps=287,285,289, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:35:10.710][trace][8669][120] -> PLA time=358828, msgs=26, okbps=276,274,278, ikbps=0,0,0, mw=350
[2015-11-11 13:35:11.456][trace][8669][143] dvr stream 2113815136_ff to file /mnt/flvs/live/2113815136_ff/2015-11-11_13/35.flv
[2015-11-11 13:35:12.072][trace][8669][148] dvr stream 2113815109_ff to file /mnt/flvs/live/2113815109_ff/2015-11-11_13/35.flv
[2015-11-11 13:35:14.403][trace][8669][148] <- CPB time=339956, okbps=0,0,0, ikbps=229,218,231, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:35:14.594][trace][8669][219] dvr stream C1201408280001 to file /mnt/flvs/live/C1201408280001/2015-11-11_13/35.flv
[2015-11-11 13:35:19.522][trace][8669][114] -> ENC time=369016, encoders=1, input=__defaultVhost__/live/2113815109
[2015-11-11 13:35:20.785][trace][8669][121] -> PLA time=369828, msgs=25, okbps=291,291,290, ikbps=0,0,0, mw=350
[2015-11-11 13:35:25.558][trace][8669][216] dvr stream 2121415580_ff to file /mnt/flvs/live/2121415580_ff/2015-11-11_13/35.flv
[2015-11-11 13:35:28.715][trace][8669][226] -> HLS time=329016, stream dts=3223260(35814ms), sno=13, ts=C1201408280001_ff-12.ts, dur=5.74, dva=0p
[2015-11-11 13:35:30.525][trace][8669][109] <- CPB time=359832, okbps=0,0,0, ikbps=288,270,289, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:35:30.684][trace][8669][121] -> PLA time=379828, msgs=23, okbps=290,291,290, ikbps=0,0,0, mw=350
[2015-11-11 13:35:34.403][trace][8669][148] <- CPB time=359957, okbps=0,0,0, ikbps=229,208,231, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:35:34.956][trace][8669][226] dvr stream C1201408280001_ff to file /mnt/flvs/live/C1201408280001_ff/2015-11-11_13/35.flv
[2015-11-11 13:35:44.671][trace][8669][121] -> PLA time=392828, msgs=24, okbps=289,291,290, ikbps=0,0,0, mw=350
[2015-11-11 13:35:45.862][trace][8669][220] -> ENC time=350016, encoders=1, input=__defaultVhost__/live/C1201408280001
[2015-11-11 13:35:49.922][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/35.flv.
[2015-11-11 13:35:49.922][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/35.flv
[2015-11-11 13:35:50.530][trace][8669][107] <- CPB time=379828, okbps=0,0,0, ikbps=301,320,302, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:35:51.217][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/35.flv.
[2015-11-11 13:35:51.217][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/35.flv
[2015-11-11 13:35:51.793][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/35.flv.
[2015-11-11 13:35:51.793][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/35.flv
[2015-11-11 13:35:53.247][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/35.flv.
[2015-11-11 13:35:53.247][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/35.flv
[2015-11-11 13:35:53.705][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/35.flv.
[2015-11-11 13:35:53.705][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/35.flv
[2015-11-11 13:35:54.871][trace][8669][219] <- CPB time=40001, okbps=0,1,0, ikbps=162,230,0, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:35:55.197][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/35.flv.
[2015-11-11 13:35:55.197][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/35.flv
[2015-11-11 13:35:55.749][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/35.flv.
[2015-11-11 13:35:55.749][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/35.flv
[2015-11-11 13:35:57.226][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/35.flv.
[2015-11-11 13:35:57.226][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/35.flv
[2015-11-11 13:35:57.834][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/35.flv.
[2015-11-11 13:35:57.834][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/35.flv
[2015-11-11 13:35:59.242][trace][8669][107] dvr: always append to when exists, file=/mnt/flvs/live/2113815136/2015-11-11_13/35.flv.
[2015-11-11 13:35:59.242][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/35.flv
[2015-11-11 13:35:59.772][trace][8669][109] dvr: always append to when exists, file=/mnt/flvs/live/2113815109/2015-11-11_13/35.flv.
[2015-11-11 13:35:59.775][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/35.flv
[2015-11-11 13:36:01.236][trace][8669][107] dvr stream 2113815136 to file /mnt/flvs/live/2113815136/2015-11-11_13/36.flv
[2015-11-11 13:36:01.768][trace][8669][109] dvr stream 2113815109 to file /mnt/flvs/live/2113815109/2015-11-11_13/36.flv
[2015-11-11 13:36:04.581][trace][8669][120] -> PLA time=412829, msgs=23, okbps=277,282,278, ikbps=0,0,0, mw=350
[2015-11-11 13:36:10.523][trace][8669][114] -> ENC time=420018, encoders=1, input=__defaultVhost__/live/2113815109
[2015-11-11 13:36:10.530][trace][8669][107] <- CPB time=399828, okbps=0,0,0, ikbps=301,289,302, mr=0/350, p1stpt=20000, pnt=20000
[2015-11-11 13:36:11.396][trace][8669][143] dvr stream 2113815136_ff to file /mnt/flvs/live/2113815136_ff/2015-11-11_13/36.flv
[2015-11-11 13:36:11.866][trace][8669][148] dvr stream 2113815109_ff to file /mnt/flvs/live/2113815109_ff/2015-11-11_13/36.flv
[2015-11-11 13:36:12.919][warn][8669][209][62] publish timeout 20000ms, nb_msgs=5520, ret=1011
[2015-11-11 13:36:12.919][trace][8669][209] send SIGTERM to pid=9125
[2015-11-11 13:36:13.925][trace][8669][209] SIGKILL stop process pid=9125 ok.
[2015-11-11 13:36:13.925][trace][8669][209] cleanup when unpublish
[2015-11-11 13:36:13.925][warn][8669][209][11] client disconnect peer. ret=1004
[2015-11-11 13:36:13.925][warn][8669][213][11] client disconnect peer. ret=1004
[2015-11-11 13:36:13.925][trace][8669][216] cleanup when unpublish
[2015-11-11 13:36:13.925][warn][8669][216][9] client disconnect peer. ret=1004
[2015-11-11 13:36:14.145][trace][8669][120] -> PLA time=422830, msgs=27, okbps=277,282,278, ikbps=0,0,0, mw=350
[2015-11-11 13:36:14.619][trace][8669][143] -> HLS time=421018, stream dts=38474460(427494ms), sno=43, ts=2113815136_ff-42.ts, dur=1.07, dva=0p
[2015-11-11 13:36:14.871][warn][8669][219][62] publish timeout 20000ms, nb_msgs=2947, ret=1011
[2015-11-11 13:36:14.871][trace][8669][219] send SIGTERM to pid=9161
[2015-11-11 13:36:15.713][warn][8669][226][62] publish timeout 20000ms, nb_msgs=2594, ret=1011
[2015-11-11 13:36:15.714][trace][8669][226] cleanup when unpublish
[2015-11-11 13:36:15.714][warn][8669][226][2] client disconnect peer. ret=1004
[2015-11-11 13:36:15.863][trace][8669][220] send SIGTERM to pid=9161
[2015-11-11 13:36:15.864][warn][8669][223][104] client disconnect peer. ret=1004
[2015-11-11 13:36:15.869][trace][8669][219] SIGTERM stop process pid=9161 ok.
[2015-11-11 13:36:15.869][trace][8669][219] cleanup when unpublish
[2015-11-11 13:36:15.869][warn][8669][219][9] client disconnect peer. ret=1004
[2015-11-11 13:36:15.943][warn][8669][220][10] ignore kill the encoder failed, pid=32738. ret=1058
[2015-11-11 13:37:01.485][trace][9330][0] srs checking config...
[2015-11-11 13:37:01.485][trace][9330][0] detect intranet address: 127.0.0.1, ifname=lo
[2015-11-11 13:37:01.485][trace][9330][0] retrieve local ipv4 ip=10.174.156.101, index=0
[2015-11-11 13:37:01.485][trace][9330][0] detect intranet address: 10.174.156.101, ifname=eth0
[2015-11-11 13:37:01.485][trace][9330][0] retrieve local ipv4 ip=111.196.34.103, index=1
[2015-11-11 13:37:01.485][trace][9330][0] detect internet address: 111.196.34.103, ifname=eth1
[2015-11-11 13:37:01.485][warn][9330][0][0] stats network use index=0, ip=10.174.156.101
[2015-11-11 13:37:01.485][warn][9330][0][0] stats disk list: sda sdb xvda xvdb 
[2015-11-11 13:37:01.485][trace][9330][0] write log to file ./objs/srs.log
[2015-11-11 13:37:01.485][trace][9330][0] you can: tailf ./objs/srs.log

TRANS_BY_GPT3

stevexk commented 9 years ago

os is ubuntu 14.04

TRANS_BY_GPT3

winlinvip commented 9 years ago

Is there no core file after SegmentFault?

TRANS_BY_GPT3

stevexk commented 9 years ago

I didn't see it. Especially when it comes to streaming. Just now, there was another error. Nov 12 10:46:02 eyebest CRON[15924]: (root) CMD ( find /opt/srs-2.0a2/trunk/objs/nginx/html/live -mmin +5 -exec rm -f {} \;) Nov 12 10:46:08 eyebest kernel: [391595.950229] srs[2200]: segfault at 80 ip 0000000000492ed2 sp 00007f02f66c3c90 error 4 in srs[400000+28e000] Nov 12 10:47:01 eyebest CRON[16021]: (root) CMD ( /opt/srs-2.0a2/trunk/srs_watch.sh) Nov 12 10:47:01 eyebest CRON[16022]: (root) CMD ( find /opt/srs-2.0a2/trunk/objs/nginx/html/live -mmin +5 -exec rm -f {} \;)

TRANS_BY_GPT3

winlinvip commented 9 years ago

Probably you haven't opened the core file. Before starting SRS, use the command: ulimit -c unlimited

TRANS_BY_GPT3

stevexk commented 9 years ago

root@eyebest:/opt/srs-2.0a2/trunk# gdb objs/srs core GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from objs/srs...done. [New LWP 9702]

warning: .dynamic section for "/usr/lib/x86_64-linux-gnu/libstdc++.so.6" is not at the expected address (wrong library or version mismatch?) Core was generated by `./objs/srs -c conf/srs.conf'. Program terminated with signal SIGSEGV, Segmentation fault.

0 0x0000000000492ed2 in SrsEncoder::on_thread_stop (this=0x937190) at src/app/srs_app_encoder.cpp:128

128 ffmpeg->stop(); Traceback (most recent call last): File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in from libstdcxx.v6.printers import register_libstdcxx_printers ImportError: No module named 'libstdcxx' (gdb) bt

0 0x0000000000492ed2 in SrsEncoder::on_thread_stop (this=0x937190) at src/app/srs_app_encoder.cpp:128

1 0x00000000004a208d in SrsReusableThread::on_thread_stop (this=0x91a500) at src/app/srs_app_thread.cpp:465

2 0x00000000004a1593 in internal::SrsThread::thread_cycle (this=0x90fd10) at src/app/srs_app_thread.cpp:232

3 0x00000000004a15f5 in internal::SrsThread::thread_fun (arg=0x90fd10) at src/app/srs_app_thread.cpp:244

4 0x00000000005156c6 in _st_thread_main () at sched.c:327

5 0x0000000000515e36 in st_thread_create (start=0x8c0415, arg=0xfbad8001, joinable=32518, stk_size=1679424119) at sched.c:591

Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb)

winlinvip commented 9 years ago

Seems the thread stop bug #511, please update your code to 2.0.199+ and try again.

winlinvip commented 7 years ago

Dup to #536