id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	blockedby	blocking	reproduced	analyzed
1706	(win64) avformat/FFMPEG crashed after connection loss to stream server	fekete		"'''Summary of the bug:''' When I stream using ffmpeg libraries or ffmpeg.exe itself and my connection is lost I get crash.

I tried it in Linux as well and it ""crashed"" with unhandled SIGPIPE.

'''How to reproduce:'''
- everything running on windows 7 Professional 64 bit with SP1
- 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). 
- unplugg the ethernet cable (e.g. simulate connection drop).
- 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) :
avformat-54.dll!avformat_get_riff_audio_tags()'''

''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 [http://libav.org/download.html]

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
--enable-version3

''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 --shlibdir=/usr/lib/x86_64-linux-gnu                                                                       
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"	defect	new	normal	avformat	unspecified						0	0
