Closed ztt19851213 closed 10 months ago
Duplicated to #3773 and fixed in SRS 5. Please upgrade to SRS 5.0.
I have looked at the 3773 issue, the phenomenon is the same, but when I look at the srs log and my code, the publish stream has been going on for several minutes, and there has been no reload srs operation, the log shows everything is normal, yet it just crashed.
TRANS_BY_GPT4
Please description your issue here
SRS Version: 4.0.251
SRS Log: Did not see any issues in the srs log, the call stack is as follows:
Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) frame 4
4 0x0000000000501a1f in SrsHlsMuxer::is_segment_absolutely_overflow() ()
(gdb)?p current Undefined command: "". Try "help". (gdb) p current $1 = 0
bool SrsHlsMuxer::is_segment_absolutely_overflow() { // @see https://github.com/ossrs/srs/issues/151#issuecomment-83553950 srs_assert(current);
}
main config for srs.
@see full.conf for detail config.
listen 1935; max_connections ; srs_log_tank file; srs_log_level info; srs_log_file /var/log/cloudland/srs.log; query_latest_version off; http_api { enabled on; listen 1985; raw_api { enabled on; allow_reload on; allow_query on; allow_update on; } } http_server { enabled on; listen 9080; dir ./objs/nginx/html; } stats { network 0; disk sda sdb xvda xvdb; } vhost defaultVhost { tcp_nodelay on; min_latency on; http_remux { enabled on; mount [vhost]/raw/[app]/[stream].flv; } hls { enabled on; hls_path ./objs/nginx/html/raw; hls_fragment 3; hls_window 15; hls_dispose 15; hls_wait_keyframe on; hls_m3u8_file [app]/[stream].m3u8; hls_ts_file [app]/[stream]-[seq].ts; hls_cleanup off; } publish { mr off; } play { mw_latency 100; gop_cache on; queue_length 10; } http_hooks { enabled on; on_publish http://127.0.0.1:3002/api/rest/v1/live/stream/publish; on_unpublish http://127.0.0.1:3002/api/rest/v1/live/stream/unpublish; on_play http://127.0.0.1:3002/api/rest/v1/live/stream/play; on_stop http://127.0.0.1:3002/api/rest/v1/live/stream/stop; onhls http://127.0.0.1:3002/api/rest/v1/live/stream/hls; } transcode live { enabled on; ffmpeg /usr/cloudland/srs/ffmpeg/bin/ffmpeg; engine sd { enabled on; vcodec libx264; vbitrate 512; vfps 25; vwidth 640; vheight 360; vthreads 4; vprofile high; vpreset veryfast; acodec copy; output rtmp://127.0.0.1:[port]/live?vhost=localvhost/[stream][engine]; } engine hd { enabled on; vcodec libx264; vbitrate 1024; vfps 25; vwidth 1280; vheight 720; vthreads 4; vprofile high; vpreset veryfast; acodec copy; output rtmp://127.0.0.1:[port]/live?vhost=localvhost/[stream]_[engine]; } } } vhost localvhost { tcp_nodelay on; min_latency on; http_remux { enabled on; mount [vhost]/transcode/[app]/[stream].flv; } hls { enabled on; hls_path ./objs/nginx/html/transcode; hls_fragment 3; hls_window 15; hls_dispose 15; hls_wait_keyframe on; hls_m3u8_file [app]/[stream].m3u8; hls_ts_file [app]/[stream]-[seq].ts; hls_cleanup off; } publish { mr off; } play { mw_latency 100; gop_cache on; queue_length 10; } http_hooks { enabled on; on_play http://127.0.0.1:3002/api/rest/v1/live/stream/play; on_stop http://127.0.0.1:3002/api/rest/v1/live/stream/stop; on_hls http://127.0.0.1:3002/api/rest/v1/live/stream/hls; } }