[FFmpeg-trac] #5869(ffserver:new): ffserver crash when GET sdp file

FFmpeg trac at avcodec.org
Wed Sep 28 21:02:58 EEST 2016


#5869: ffserver crash when GET sdp file
-------------------------------------+------------------------------------
             Reporter:  korovkin     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  ffserver
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by korovkin):

 fair point. here is the crash running with `lldb` on :
 `origin/release/3.1`


 the regression was probably introduced somewhere between
 `origin/release/3.0` and `origin/release/3.1`, as with
 `origin/release/3.0` it seems to be working.

 {{{
 git describe
 n3.1.3-5-g8b21b44
 lldb – ../ffserver_g -d -f ffmpeg.rtp.conf
 (lldb) target create "../ffserver_g"
 Current executable set to '../ffserver_g' (x86_64).
 (lldb) settings set – target.run-args "-d" "-f" "ffmpeg.rtp.conf"
 (lldb) run
 Process 72859 launched: '../ffserver_g' (x86_64)
 ffserver version n3.1.3-5-g8b21b44 Copyright (c) 2000-2016 the FFmpeg
 developers
 built with Apple LLVM version 8.0.0 (clang-800.0.38)
 configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-
 libfreetype --enable-libmp3lame --enable-libvorbis --enable-libvpx
 --enable-libx264 --enable-libxvid --enable-ffplay --enable-libfdk-aac
 --enable-libfaac
 libavutil 55. 28.100 / 55. 28.100
 libavcodec 57. 48.101 / 57. 48.101
 libavformat 57. 41.100 / 57. 41.100
 libavdevice 57. 0.101 / 57. 0.101
 libavfilter 6. 47.100 / 6. 47.100
 libswscale 4. 1.100 / 4. 1.100
 libswresample 2. 1.100 / 2. 1.100
 libpostproc 54. 0.100 / 54. 0.100
 Wed Sep 28 10:57:39 2016 FFserver started.
 Wed Sep 28 10:57:43 2016 127.0.0.1 - - New connection: GET /live_001.sdp
 ffserver_g was compiled with optimization - stepping may behave oddly;
 variables may not be available.
 Process 72859 stopped
 thread #1: tid = 0xba3df7, 0x0000000100b689c1
 ffserver_g`av_freep(arg=0x0000000000000010) + 1 at mem.c:247, queue =
 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1,
 address=0x10)
 frame #0: 0x0000000100b689c1 ffserver_g`av_freep(arg=0x0000000000000010) +
 1 at mem.c:247 [opt]
 244
 Unknown macro: { 245 void *val; 246 -> 247 memcpy(&val, arg, sizeof(val));
 248 memcpy(arg, &(void *){ NULL }, sizeof(val)); 249 av_free(val); 250 }
 (lldb) bt
 thread #1: tid = 0xba3df7, 0x0000000100b689c1
 ffserver_g`av_freep(arg=0x0000000000000010) + 1 at mem.c:247, queue =
 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1,
 address=0x10)
 frame #0: 0x0000000100b689c1 ffserver_g`av_freep(arg=0x0000000000000010) +
 1 at mem.c:247 [opt]
 frame #1: 0x000000010078f4f7 ffserver_g`avcodec_parameters_from_context
 [inlined] codec_parameters_reset(par=0x0000000000000000) + 12 at
 utils.c:4020 [opt]
 frame #2: 0x000000010078f4eb
 ffserver_g`avcodec_parameters_from_context(par=0x0000000000000000,
 codec=0x0000000102810c00) + 11 at utils.c:4080 [opt]
 frame #3: 0x0000000100016399
 ffserver_g`prepare_sdp_description(stream=<unavailable>,
 pbuffer=<unavailable>, my_ip=(s_addr = 0)) + 473 at ffserver.c:2999 [opt]
 frame #4: 0x0000000100014d09 ffserver_g`handle_connection + 558 at
 ffserver.c:1688 [opt]
 frame #5: 0x0000000100014adb ffserver_g`handle_connection(c=<unavailable>)
 + 17739 at ffserver.c:1006 [opt]
 frame #6: 0x000000010000fb3c ffserver_g`main [inlined] http_server + 47 at
 ffserver.c:777 [opt]
 frame #7: 0x000000010000fb0d ffserver_g`main(argc=<unavailable>,
 argv=<unavailable>) + 4205 at ffserver.c:4032 [opt]
 frame #8: 0x00007fff912855ad libdyld.dylib`start + 1
 frame #9: 0x00007fff912855ad libdyld.dylib`start + 1
 (lldb)
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5869#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list