Skip to content

Instantly share code, notes, and snippets.

@klaxa
Created August 17, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klaxa/13143d5f782eba28671e to your computer and use it in GitHub Desktop.
Save klaxa/13143d5f782eba28671e to your computer and use it in GitHub Desktop.
[klaxa@neu]~/Development/ffmpeg/ffmpeg% valgrind ./ffserver_g -f doc/ffserver.conf -loglevel trace
==6887== Memcheck, a memory error detector
==6887== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==6887== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==6887== Command: ./ffserver_g -f doc/ffserver.conf -loglevel trace
==6887==
ffserver version N-74443-g941b6a5 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC) 20150212 (Red Hat 4.9.2-6)
configuration: --disable-stripping --enable-debug --disable-optimizations --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libpulse --enable-libvorbis --enable-libvpx --enable-libx264 --enable-openssl --enable-gpl --enable-nonfree
libavutil 54. 30.100 / 54. 30.100
libavcodec 56. 57.100 / 56. 57.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 33.100 / 5. 33.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
doc/ffserver.conf:164: Setting default value for video bit rate tolerance = 16000. Use NoDefaults to disable it.
doc/ffserver.conf:164: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it.
doc/ffserver.conf:164: Setting default value for video max rate = 128000. Use NoDefaults to disable it.
doc/ffserver.conf:219: Setting default value for audio sample rate = 22050. Use NoDefaults to disable it.
doc/ffserver.conf:219: Setting default value for audio channel count = 1. Use NoDefaults to disable it.
doc/ffserver.conf:219: Setting default value for video bit rate tolerance = 64000. Use NoDefaults to disable it.
doc/ffserver.conf:219: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it.
doc/ffserver.conf:219: Setting default value for video max rate = 512000. Use NoDefaults to disable it.
HTTP hostname=0.0.0.0
Mon Aug 17 18:36:29 2015 Probing ffm score:101 size:2048
Mon Aug 17 18:36:29 2015 [ffm @ 0x8fd30c0]Format ffm probed with size=2048 and score=101
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe6b40]Setting entry with key 'ab' to value '32000'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe6b40]Setting entry with key 'ac' to value '1'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe6b40]Setting entry with key 'ar' to value '44100'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe8180]Setting entry with key 'b' to value '64000'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe8180]Setting entry with key 'bufsize' to value '327680'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe8180]Setting entry with key 'time_base' to value '1/24'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe8180]Setting entry with key 'video_size' to value '160x128'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe8180]Setting entry with key 'g' to value '12'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe8180]Setting entry with key 'bt' to value '16000'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fe8180]Setting entry with key 'maxrate' to value '128000'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fea640]Setting entry with key 'ab' to value '64000'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fea640]Setting entry with key 'ar' to value '22050'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8fea640]Setting entry with key 'ac' to value '1'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8febd00]Setting entry with key 'time_base' to value '1/15'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8febd00]Setting entry with key 'video_size' to value '352x240'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8febd00]Setting entry with key 'b' to value '256000'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8febd00]Setting entry with key 'bufsize' to value '327680'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8febd00]Setting entry with key 'g' to value '30'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8febd00]Setting entry with key 'bt' to value '64000'
Mon Aug 17 18:36:29 2015 [NULL @ 0x8febd00]Setting entry with key 'maxrate' to value '512000'
Mon Aug 17 18:36:29 2015 [AVIOContext @ 0x8fdba80]Statistics: 4096 bytes read, 0 seeks
Mon Aug 17 18:36:29 2015 [AVIOContext @ 0x8ff9440]Started server.
Mon Aug 17 18:36:29 2015 FFserver started.
Mon Aug 17 18:36:29 2015 [AVIOContext @ 0x8ff9440]server fd=3
Mon Aug 17 18:36:30 2015 [AVIOContext @ 0x8ff9440]server fd=3
Mon Aug 17 18:36:31 2015 [AVIOContext @ 0x8ff9440]server fd=3
Mon Aug 17 18:36:32 2015 [AVIOContext @ 0x8ff9440]server fd=3
Mon Aug 17 18:36:33 2015 [tcp @ 0x8fffa00]accepted fd=4
==6887== Syscall param socketcall.getpeername(name) points to unaddressable byte(s)
==6887== at 0x7238FD7: getpeername (in /usr/lib64/libc-2.20.so)
==6887== by 0x578F15: tcp_accept (tcp.c:196)
==6887== by 0x4475F9: ffurl_accept (avio.c:218)
==6887== by 0x488E26: http_accept (http.c:553)
==6887== by 0x4475F9: ffurl_accept (avio.c:218)
==6887== by 0x44B040: avio_accept (aviobuf.c:1029)
==6887== by 0x414FF4: new_http_connection (ffserver.c:857)
==6887== by 0x41485F: http_server (ffserver.c:702)
==6887== by 0x41D6A3: main (ffserver.c:3955)
==6887== Address 0x8fffa38 is 0 bytes after a block of size 56 alloc'd
==6887== at 0x4C2BD84: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==6887== by 0x4C2BE4C: posix_memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==6887== by 0x11A2371: av_malloc (mem.c:97)
==6887== by 0x11A2610: av_mallocz (mem.c:254)
==6887== by 0x4471D9: url_alloc_for_protocol (avio.c:143)
==6887== by 0x44787B: ffurl_alloc (avio.c:282)
==6887== by 0x578E40: tcp_accept (tcp.c:186)
==6887== by 0x4475F9: ffurl_accept (avio.c:218)
==6887== by 0x488E26: http_accept (http.c:553)
==6887== by 0x4475F9: ffurl_accept (avio.c:218)
==6887== by 0x44B040: avio_accept (aviobuf.c:1029)
==6887== by 0x414FF4: new_http_connection (ffserver.c:857)
==6887==
Mon Aug 17 18:36:33 2015 [tcp @ 0x8fffa00]got peer name (len:16)
Mon Aug 17 18:36:33 2015 [tcp @ 0x8fffa00]host=127.0.0.1, port=55560
Mon Aug 17 18:36:33 2015 [http @ 0x8feef80]Peer address: 127.0.0.1:55560
Mon Aug 17 18:36:33 2015 [AVIOContext @ 0x8ff9440]Accepted client
Mon Aug 17 18:36:33 2015 0x100007f08d90002: ==6887== Invalid read of size 1
==6887== at 0x11A5DAE: av_opt_get (opt.c:731)
==6887== by 0x4150CB: new_http_connection (ffserver.c:872)
==6887== by 0x41485F: http_server (ffserver.c:702)
==6887== by 0x41D6A3: main (ffserver.c:3955)
==6887== Address 0x100007f08d90002 is not stack'd, malloc'd or (recently) free'd
==6887==
==6887==
==6887== Process terminating with default action of signal 11 (SIGSEGV)
==6887== General Protection Fault
==6887== at 0x11A5DAE: av_opt_get (opt.c:731)
==6887== by 0x4150CB: new_http_connection (ffserver.c:872)
==6887== by 0x41485F: http_server (ffserver.c:702)
==6887== by 0x41D6A3: main (ffserver.c:3955)
==6887==
==6887== HEAP SUMMARY:
==6887== in use at exit: 438,419 bytes in 2,899 blocks
==6887== total heap usage: 3,395 allocs, 496 frees, 571,115 bytes allocated
==6887==
==6887== LEAK SUMMARY:
==6887== definitely lost: 144 bytes in 2 blocks
==6887== indirectly lost: 0 bytes in 0 blocks
==6887== possibly lost: 0 bytes in 0 blocks
==6887== still reachable: 438,275 bytes in 2,897 blocks
==6887== suppressed: 0 bytes in 0 blocks
==6887== Rerun with --leak-check=full to see details of leaked memory
==6887==
==6887== For counts of detected and suppressed errors, rerun with: -v
==6887== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
zsh: segmentation fault (core dumped) valgrind ./ffserver_g -f doc/ffserver.conf -loglevel trace
[klaxa@neu]~/Development/ffmpeg/ffmpeg%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment