[libav-bugs] [Bug 358] New: (win64) avformat (?) crashed after connection loss to stream server

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Fri Aug 31 14:55:07 CEST 2012


           Summary: (win64) avformat (?) crashed after connection loss to
                    stream server
           Product: Libav
           Version: git HEAD
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: fekete at monogram.sk

Created attachment 347
  --> https://bugzilla.libav.org/attachment.cgi?id=347
gdb output of the unhandled SIGPIPE in the linux

=== Summary of the bug ===

When I stream using libav libraries and my connection is lost I get crash.

Test with ffmpeg.exe proved same behavior on both windows and Linux, different
only in consequences.

=== How to reproduce ===

1) everything running on windows 7 Professional 64 bit with SP1
2) for the test I used Adobe flash server, dacast, wowza, ustream, livestream,
showcaster start streaming with ffmpeg (or use software which utilize the
(ffmpeg's set of libraries).
3) unplug the ethernet cable (e.g. simulate connection drop).
4) in few moments I have crash (no special info is given except : unhandled
exception at <address> (avformat-54.dll) : Access violation writting location

callstack has only 1 entry (rest is just some addresses) :

what I think it's going on is, that part of the ffmpeg is trying to send data
(RTMP Send) but it does not handled WSAECONNABORTED WinSock? Error properly
(10053), so it keeps writing to something that is not a valid socket anymore.

=== Versions ===
windows 7 : 

Windows Nightly Builds/64 bit windows build taken from

build flags :
--enable-runtime-cpudetect --enable-cross-compile --enable-w32threads
--prefix=/usr --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--target-os=mingw32 --sysroot=/usr/x86_64-w64-mingw32 --enable-gpl
--enable-librtmp --enable-libx264 --enable-libmp3lame --enable-libvorbis
--enable-memalign-hack --enable-shared --enable-libvpx --enable-libvo-aacenc

Linux Debian testing 64bit :
ffmpeg version 0.11.1 
built on Jul 31 2012 16:16:27 with gcc 4.7.1 
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security '
--extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared
--enable-libmp3lame --enable-gpl --enable-nonfree --disable-decoder=libdirac
--enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid
--enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264
--enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger
--disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg
--enable-libvpx --enable-librtmp --enable-avfilter --enable-libfreetype
--enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc
--enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda
--enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r
--enable-openssl --enable-libass --enable-libdc1394 --disable-altivec
--disable-armv5te --disable-armv6 --disable-vis
libavutil 51. 54.100 / 51. 54.100 
libavcodec 54. 23.100 / 54. 23.100 
libavformat 54. 6.100 / 54. 6.100 
libavdevice 54. 0.100 / 54. 0.100 
libavfilter 2. 77.100 / 2. 77.100 
libswscale 2. 1.100 / 2. 1.100 
libswresample 0. 15.100 / 0. 15.100 
libpostproc 52. 0.100 / 52. 0.100

Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the libav-bugs mailing list