[libav-bugs] [Bug 448] New: avserver crashes on startup due to invalid av_freep

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Sat Feb 16 17:39:31 CET 2013


https://bugzilla.libav.org/show_bug.cgi?id=448

           Summary: avserver crashes on startup due to invalid av_freep
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: utilities
        AssignedTo: bugzilla at libav.org
        ReportedBy: t.c.witte at gmail.com


When starting avserver with the stock configuration file, it crashes:
$ avserver -f avserver.conf 
avserver version v9-525-g2c54155, Copyright (c) 2000-2013 the Libav developers
  built on Feb 16 2013 17:25:01 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
*** glibc detected *** avserver: munmap_chunk(): invalid pointer:
0x0000000000b2e205 ***

Valgrind reports:
$ valgrind avserver -f avserver.conf 
==21630== Memcheck, a memory error detector
==21630== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==21630== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==21630== Command: avserver -f avserver.conf
==21630== 
avserver version v9-525-g2c54155, Copyright (c) 2000-2013 the Libav developers
  built on Feb 16 2013 17:25:01 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
==21630== Invalid free() / delete / delete[] / realloc()
==21630==    at 0x4C2A82E: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21630==    by 0x9D724B: av_freep (mem.c:147)
==21630==    by 0x485552: write_option (cmdutils.c:253)
==21630==    by 0x486528: parse_option (cmdutils.c:305)
==21630==    by 0x4866C5: parse_options (cmdutils.c:333)
==21630==    by 0x47A4B2: main (avserver.c:4685)
==21630==  Address 0xb2e205 is not stack'd, malloc'd or (recently) free'd
==21630== 
Sat Feb 16 17:26:40 2013 AVserver started.

I've compiled libav with the following options:
./configure --enable-libvpx --enable-libx264 --enable-gpl

Using:
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
yasm 1.2.0

On a system:
Linux orange 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux

Please let me know if you need more information.

-- 
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