Is oggvideotools completely broken now (Was: Patches for your oggvideotools)

Petter Reinholdtsen pere at hungry.com
Tue May 24 08:33:32 UTC 2016


Hi.

I was planning a new upload of oggvideotools to Debian today, but ran
into a fatal problem.  Not quite sure what changed to trigger this, but
the new version of package is not uploadable.  The self testing we do in
the Debian package during build, running "oggSlideshow
/usr/share/pixmaps/debian-logo.png", no longer work.  While debugging it
with valgrind, I discovered an uninitialized value, fixed with this
patch:

--- oggvideotools-0.9.orig/src/ovt_theora/theoraStreamParameter.cpp
+++ oggvideotools-0.9/src/ovt_theora/theoraStreamParameter.cpp
@@ -5,6 +5,7 @@
 #include "log.h"
 
 TheoraStreamParameter::TheoraStreamParameter()
+  : colorspace(unspecified)
 {
 }

Please include in a future version.  It did not help with the crash, but
got rid of a valgrind warning.

The self testing during the build crashes like this:

*** Error in `/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow': double free or corruption (!prev): 0x00000000021be2e0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x71fc5)[0x7f69e82cafc5]
/lib/x86_64-linux-gnu/libc.so.6(+0x77966)[0x7f69e82d0966]
/lib/x86_64-linux-gnu/libc.so.6(+0x7814e)[0x7f69e82d114e]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZN17OggPacketInternalD2Ev+0x29)[0x44f817]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZN9__gnu_cxx13new_allocatorI17OggPacketInternalE7destroyIS1_EEvPT_+0x1c)[0x44a9e6]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt16allocator_traitsISaI17OggPacketInternalEE7destroyIS0_EEvRS1_PT_+0x23)[0x44a9b9]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt23_Sp_counted_ptr_inplaceI17OggPacketInternalSaIS0_ELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv+0x37)[0x44a8a3]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv+0x42)[0x43b126]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev+0x27)[0x43ac55]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt12__shared_ptrI17OggPacketInternalLN9__gnu_cxx12_Lock_policyE2EED1Ev+0x1c)[0x43abd2]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt10shared_ptrI17OggPacketInternalED1Ev+0x18)[0x43abee]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt10_List_nodeISt10shared_ptrI17OggPacketInternalEED2Ev+0x1c)[0x449690]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZN9__gnu_cxx13new_allocatorISt10_List_nodeISt10shared_ptrI17OggPacketInternalEEE7destroyIS5_EEvPT_+0x1c)[0x4496b0]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt7__cxx114listISt10shared_ptrI17OggPacketInternalESaIS3_EE8_M_eraseESt14_List_iteratorIS3_E+0x53)[0x44953d]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt7__cxx114listISt10shared_ptrI17OggPacketInternalESaIS3_EE5eraseESt20_List_const_iteratorIS3_E+0x53)[0x454af9]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZNSt7__cxx114listISt10shared_ptrI17OggPacketInternalESaIS3_EE5eraseESt20_List_const_iteratorIS3_ES7_+0x4d)[0x454571]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZN16OggStreamEncoder10createPageEj+0x59e)[0x453ebc]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZN16OggStreamEncoderlsESt10shared_ptrI17OggPacketInternalE+0x15d)[0x4537fb]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_ZN9StreamMuxlsERSt10shared_ptrI17OggPacketInternalE+0x129)[0x43e5db]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_Z15oggSlideshowCmdiPPc+0x1d34)[0x439ba5]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(main+0x35)[0x43a290]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f69e82795f0]
/home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow(_start+0x29)[0x437b39]
======= Memory map: ========
00400000-0047b000 r-xp 00000000 fe:04 2294620                            /home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow
0067a000-0067c000 r--p 0007a000 fe:04 2294620                            /home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow
0067c000-0067d000 rw-p 0007c000 fe:04 2294620                            /home/pere/src/debian/xiph/oggvideotools/obj-x86_64-linux-gnu/src/binaries/oggSlideshow
0215c000-023a3000 rw-p 00000000 00:00 0                                  [heap]
7f69e0000000-7f69e0021000 rw-p 00000000 00:00 0 
7f69e0021000-7f69e4000000 ---p 00000000 00:00 0 
7f69e5667000-7f69e5bf6000 rw-p 00000000 00:00 0 
7f69e5bf6000-7f69e5bfb000 r-xp 00000000 fe:06 2651460                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f69e5bfb000-7f69e5dfa000 ---p 00005000 fe:06 2651460                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f69e5dfa000-7f69e5dfb000 r--p 00004000 fe:06 2651460                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f69e5dfb000-7f69e5dfc000 rw-p 00005000 fe:06 2651460                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f69e5dfc000-7f69e5dff000 r-xp 00000000 fe:06 2674285                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f69e5dff000-7f69e5ffe000 ---p 00003000 fe:06 2674285                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f69e5ffe000-7f69e5fff000 r--p 00002000 fe:06 2674285                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f69e5fff000-7f69e6000000 rw-p 00003000 fe:06 2674285                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f69e6000000-7f69e600b000 r-xp 00000000 fe:06 2672276                    /usr/lib/x86_64-linux-gnu/libjbig.so.0
7f69e600b000-7f69e620b000 ---p 0000b000 fe:06 2672276                    /usr/lib/x86_64-linux-gnu/libjbig.so.0
7f69e620b000-7f69e620c000 r--p 0000b000 fe:06 2672276                    /usr/lib/x86_64-linux-gnu/libjbig.so.0
7f69e620c000-7f69e620f000 rw-p 0000c000 fe:06 2672276                    /usr/lib/x86_64-linux-gnu/libjbig.so.0
7f69e620f000-7f69e6231000 r-xp 00000000 fe:06 3299235                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f69e6231000-7f69e6430000 ---p 00022000 fe:06 3299235                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f69e6430000-7f69e6431000 r--p 00021000 fe:06 3299235                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f69e6431000-7f69e6432000 rw-p 00022000 fe:06 3299235                    /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7f69e6432000-7f69e6434000 r-xp 00000000 fe:06 3300600                    /lib/x86_64-linux-gnu/libdl-2.22.so
7f69e6434000-7f69e6634000 ---p 00002000 fe:06 3300600                    /lib/x86_64-linux-gnu/libdl-2.22.so
7f69e6634000-7f69e6635000 r--p 00002000 fe:06 3300600                    /lib/x86_64-linux-gnu/libdl-2.22.so
7f69e6635000-7f69e6636000 rw-p 00003000 fe:06 3300600                    /lib/x86_64-linux-gnu/libdl-2.22.so
7f69e6636000-7f69e6657000 r-xp 00000000 fe:06 2652733                    /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f69e6657000-7f69e6856000 ---p 00021000 fe:06 2652733                    /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f69e6856000-7f69e6857000 r--p 00020000 fe:06 2652733                    /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f69e6857000-7f69e6858000 rw-p 00021000 fe:06 2652733                    /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f69e6858000-7f69e6870000 r-xp 00000000 fe:06 3304089                    /lib/x86_64-linux-gnu/libpthread-2.22.so
7f69e6870000-7f69e6a6f000 ---p 00018000 fe:06 3304089                    /lib/x86_64-linux-gnu/libpthread-2.22.so
7f69e6a6f000-7f69e6a70000 r--p 00017000 fe:06 3304089                    /lib/x86_64-linux-gnu/libpthread-2.22.so
7f69e6a70000-7f69e6a71000 rw-p 00018000 fe:06 3304089                    /lib/x86_64-linux-gnu/libpthread-2.22.so
7f69e6a71000-7f69e6a75000 rw-p 00000000 00:00 0 
7f69e6a75000-7f69e6a9b000 r-xp 00000000 fe:06 3299251                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f69e6a9b000-7f69e6c9b000 ---p 00026000 fe:06 3299251                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f69e6c9b000-7f69e6c9d000 r--p 00026000 fe:06 3299251                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f69e6c9d000-7f69e6c9e000 rw-p 00028000 fe:06 3299251                    /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7f69e6c9e000-7f69e6cf9000 r-xp 00000000 fe:06 2650969                    /usr/lib/x86_64-linux-gnu/libwebp.so.5.0.4
7f69e6cf9000-7f69e6ef9000 ---p 0005b000 fe:06 2650969                    /usr/lib/x86_64-linux-gnu/libwebp.so.5.0.4
7f69e6ef9000-7f69e6efa000 r--p 0005b000 fe:06 2650969                    /usr/lib/x86_64-linux-gnu/libwebp.so.5.0.4
7f69e6efa000-7f69e6efc000 rw-p 0005c000 fe:06 2650969                    /usr/lib/x86_64-linux-gnu/libwebp.so.5.0.4
7f69e6efc000-7f69e6efd000 rw-p 00000000 00:00 0 
7f69e6efd000-7f69e6f6d000 r-xp 00000000 fe:06 2652636                    /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4
7f69e6f6d000-7f69e716d000 ---p 00070000 fe:06 2652636                    /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4
7f69e716d000-7f69e716e000 r--p 00070000 fe:06 2652636                    /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4
7f69e716e000-7f69e7171000 rw-p 00071000 fe:06 2652636                    /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.4
7f69e7171000-7f69e72ad000 r-xp 00000000 fe:06 2651473                    /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f69e72ad000-7f69e74ac000 ---p 0013c000 fe:06 2651473                    /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f69e74ac000-7f69e74ae000 r--p 0013b000 fe:06 2651473                    /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f69e74ae000-7f69e74b3000 rw-p 0013d000 fe:06 2651473                    /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f69e74b3000-7f69e74b4000 rw-p 00000000 00:00 0 
7f69e74b4000-7f69e74c5000 r-xp 00000000 fe:06 2672005                    /usr/lib/x86_64-linux-gnu/libXpm.so.4.11.0
7f69e74c5000-7f69e76c4000 ---p 00011000 fe:06 2672005                    /usr/lib/x86_64-linux-gnu/libXpm.so.4.11.0
7f69e76c4000-7f69e76c5000 r--p 00010000 fe:06 2672005                    /usr/lib/x86_64-linux-gnu/libXpm.so.4.11.0
7f69e76c5000-7f69e76c6000 rw-p 00011000 fe:06 2672005                    /usr/lib/x86_64-linux-gnu/libXpm.so.4.11.0
7f69e76c6000-7f69e771e000 r-xp 00000000 fe:06 2651955                    /usr/lib/x86_64-linux-gnu/libjpeg.so.62.1.0
7f69e771e000-7f69e791d000 ---p 00058000 fe:06 2651955                    /usr/lib/x86_64-linux-gnu/libjpeg.so.62.1.0
7f69e791d000-7f69e791e000 r--p 00057000 fe:06 2651955                    /usr/lib/x86_64-linux-gnu/libjpeg.so.62.1.0
7f69e791e000-7f69e791f000 rw-p 00058000 fe:06 2651955                    /usr/lib/x86_64-linux-gnu/libjpeg.so.62.1.0
7f69e791f000-7f69e79c7000 r-xp 00000000 fe:06 2650548                    /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.3
7f69e79c7000-7f69e7bc7000 ---p 000a8000 fe:06 2650548                    /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.3
7f69e7bc7000-7f69e7bcd000 r--p 000a8000 fe:06 2650548                    /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.3
7f69e7bcd000-7f69e7bce000 rw-p 000ae000 fe:06 2650548                    /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.3
7f69e7bce000-7f69e7c0a000 r-xp 00000000 fe:06 2651398                    /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7f69e7c0a000-7f69e7e09000 ---p 0003c000 fe:06 2651398                    /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7f69e7e09000-7f69e7e0b000 r--p 0003b000 fe:06 2651398                    /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7f69e7e0b000-7f69e7e0c000 rw-p 0003d000 fe:06 2651398                    /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7f69e7e0c000-7f69e7e3d000 r-xp 00000000 fe:06 2650742                    /usr/lib/x86_64-linux-gnu/libpng16.so.16.21.0
7f69e7e3d000-7f69e803c000 ---p 00031000 fe:06 2650742                    /usr/lib/x86_64-linux-gnu/libpng16.so.16.21.0
7f69e803c000-7f69e803d000 r--p 00030000 fe:06 2650742                    /usr/lib/x86_64-linux-gnu/libpng16.so.16.21.0
7f69e803d000-7f69e803e000 rw-p 00031000 fe:06 2650742                    /usr/lib/x86_64-linux-gnu/libpng16.so.16.21.0
7f69e803e000-7f69e8058000 r-xp 00000000 fe:06 3311242                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f69e8058000-7f69e8257000 ---p 0001a000 fe:06 3311242                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f69e8257000-7f69e8258000 r--p 00019000 fe:06 3311242                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f69e8258000-7f69e8259000 rw-p 0001a000 fe:06 3311242                    /lib/x86_64-linux-gnu/libz.so.1.2.8
7f69e8259000-7f69e83f4000 r-xp 00000000 fe:06 3300596                    /lib/x86_64-linux-gnu/libc-2.22.so
7f69e83f4000-7f69e85f3000 ---p 0019b000 fe:06 3300596                    /lib/x86_64-linux-gnu/libc-2.22.so
7f69e85f3000-7f69e85f7000 r--p 0019a000 fe:06 3300596                    /lib/x86_64-linux-gnu/libc-2.22.so
7f69e85f7000-7f69e85f9000 rw-p 0019e000 fe:06 3300596                    /lib/x86_64-linux-gnu/libc-2.22.so
7f69e85f9000-7f69e85fd000 rw-p 00000000 00:00 0 
7f69e85fd000-7f69e8613000 r-xp 00000000 fe:06 3300568                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f69e8613000-7f69e8812000 ---p 00016000 fe:06 3300568                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f69e8812000-7f69e8813000 rw-p 00015000 fe:06 3300568                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f69e8813000-7f69e8910000 r-xp 00000000 fe:06 3300601                    /lib/x86_64-linux-gnu/libm-2.22.so
7f69e8910000-7f69e8b0f000 ---p 000fd000 fe:06 3300601                    /lib/x86_64-linux-gnu/libm-2.22.so
7f69e8b0f000-7f69e8b10000 r--p 000fc000 fe:06 3300601                    /lib/x86_64-linux-gnu/libm-2.22.so
7f69e8b10000-7f69e8b11000 rw-p 000fd000 fe:06 3300601                    /lib/x86_64-linux-gnu/libm-2.22.so
7f69e8b11000-7f69e8c82000 r-xp 00000000 fe:06 2650690                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7f69e8c82000-7f69e8e81000 ---p 00171000 fe:06 2650690                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7f69e8e81000-7f69e8e8b000 r--p 00170000 fe:06 2650690                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7f69e8e8b000-7f69e8e8d000 rw-p 0017a000 fe:06 2650690                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22
7f69e8e8d000-7f69e8e91000 rw-p 00000000 00:00 0 
7f69e8e91000-7f69e8ed1000 r-xp 00000000 fe:06 2651015                    /usr/lib/x86_64-linux-gnu/libgd.so.3.0.20201
7f69e8ed1000-7f69e90d1000 ---p 00040000 fe:06 2651015                    /usr/lib/x86_64-linux-gnu/libgd.so.3.0.20201
7f69e90d1000-7f69e90d7000 r--p 00040000 fe:06 2651015                    /usr/lib/x86_64-linux-gnu/libgd.so.3.0.20201
7f69e90d7000-7f69e90f6000 rw-p 00046000 fe:06 2651015                    /usr/lib/x86_64-linux-gnu/libgd.so.3.0.20201
7f69e90f6000-7f69e90fa000 rw-p 00000000 00:00 0 
7f69e90fa000-7f69e9187000 r-xp 00000000 fe:06 2650785                    /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11
7f69e9187000-7f69e9386000 ---p 0008d000 fe:06 2650785                    /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11
7f69e9386000-7f69e93a2000 r--p 0008c000 fe:06 2650785                    /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11
7f69e93a2000-7f69e93a3000 rw-p 000a8000 fe:06 2650785                    /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2.0.11
7f69e93a3000-7f69e93ce000 r-xp 00000000 fe:06 2651663                    /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
7f69e93ce000-7f69e95cd000 ---p 0002b000 fe:06 2651663                    /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
7f69e95cd000-7f69e95ce000 r--p 0002a000 fe:06 2651663                    /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
7f69e95ce000-7f69e95cf000 rw-p 0002b000 fe:06 2651663                    /usr/lib/x86_64-linux-gnu/libvorbis.so.0.4.8
7f69e95cf000-7f69e95d6000 r-xp 00000000 fe:06 2680180                    /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
7f69e95d6000-7f69e97d6000 ---p 00007000 fe:06 2680180                    /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
7f69e97d6000-7f69e97d7000 r--p 00007000 fe:06 2680180                    /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
7f69e97d7000-7f69e97d8000 rw-p 00008000 fe:06 2680180                    /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2
7f69e97d8000-7f69e97f1000 r-xp 00000000 fe:06 2654053                    /usr/lib/x86_64-linux-gnu/libtheoradec.so.1.1.4
7f69e97f1000-7f69e99f1000 ---p 00019000 fe:06 2654053                    /usr/lib/x86_64-linux-gnu/libtheoradec.so.1.1.4
7f69e99f1000-7f69e99f2000 r--p 00019000 fe:06 2654053                    /usr/lib/x86_64-linux-gnu/libtheoradec.so.1.1.4
7f69e99f2000-7f69e99f3000 rw-p 0001a000 fe:06 2654053                    /usr/lib/x86_64-linux-gnu/libtheoradec.so.1.1.4
7f69e99f3000-7f69e9a31000 r-xp 00000000 fe:06 2654061                    /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2
7f69e9a31000-7f69e9c30000 ---p 0003e000 fe:06 2654061                    /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2
7f69e9c30000-7f69e9c31000 r--p 0003d000 fe:06 2654061                    /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2
7f69e9c31000-7f69e9c32000 rw-p 0003e000 fe:06 2654061                    /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2
7f69e9c32000-7f69e9c54000 r-xp 00000000 fe:06 3300588                    /lib/x86_64-linux-gnu/ld-2.22.so
7f69e9c77000-7f69e9e2d000 rw-p 00000000 00:00 0 
7f69e9e4f000-7f69e9e53000 rw-p 00000000 00:00 0 
7f69e9e53000-7f69e9e54000 r--p 00021000 fe:06 3300588                    /lib/x86_64-linux-gnu/ld-2.22.so
7f69e9e54000-7f69e9e55000 rw-p 00022000 fe:06 3300588                    /lib/x86_64-linux-gnu/ld-2.22.so
7f69e9e55000-7f69e9e56000 rw-p 00000000 00:00 0 
7ffc15610000-7ffc15631000 rw-p 00000000 00:00 0                          [stack]
7ffc1573b000-7ffc1573d000 r-xp 00000000 00:00 0                          [vdso]
7ffc1573d000-7ffc1573f000 r--p 00000000 00:00 0                          [vvar]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

Running the test under valgrind give the following error (several more,
only including the first):

==12978== Invalid read of size 2
==12978==    at 0x4C2E7A0: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018)
==12978==    by 0x453C11: OggStreamEncoder::createPage(unsigned int) (oggStreamEncoder.cpp:282)
==12978==    by 0x453917: OggStreamEncoder::flush() (oggStreamEncoder.cpp:221)
==12978==    by 0x453793: OggStreamEncoder::operator<<(std::shared_ptr<OggPacketInternal>) (oggStreamEncoder.cpp:182)
==12978==    by 0x43D8A1: StreamMux::insertHeader() (streamMux.cpp:94)
==12978==    by 0x43E45A: StreamMux::configureStreams(std::vector<StreamConfig, std::allocator<StreamConfig> >&) (streamMux.cpp:306)
==12978==    by 0x438A10: oggSlideshowCmd(int, char**) (oggSlideshow.cpp:280)
==12978==    by 0x43A28F: main (oggSlideshow.cpp:508)
==12978==  Address 0x924a750 is 0 bytes inside a block of size 256 free'd
==12978==    at 0x4C2BDDF: realloc (vg_replace_malloc.c:785)
==12978==    by 0x52952A3: oggpackB_write (in /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2)
==12978==    by 0x4E54E16: ??? (in /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2)
==12978==    by 0x4E4D425: ??? (in /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2)
==12978==    by 0x4E53AB0: th_encode_flushheader (in /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2)
==12978==    by 0x4478C0: TheoraEncoder::createHeader(std::vector<std::shared_ptr<OggPacketInternal>, std::allocator<std::shared_ptr<OggPacketInternal> > >&, std::vector<OggComment, std::allocator<OggComment> >&) (theoraEncoder.cpp:66)
==12978==    by 0x447DAB: TheoraEncoder::configureEncoder(StreamConfig&, std::vector<OggComment, std::allocator<OggComment> >&) (theoraEncoder.cpp:173)
==12978==    by 0x43898B: oggSlideshowCmd(int, char**) (oggSlideshow.cpp:262)
==12978==    by 0x43A28F: main (oggSlideshow.cpp:508)
==12978==  Block was alloc'd at
==12978==    at 0x4C29C0F: malloc (vg_replace_malloc.c:299)
==12978==    by 0x5294EA4: oggpack_writeinit (in /usr/lib/x86_64-linux-gnu/libogg.so.0.8.2)
==12978==    by 0x4E52594: th_encode_alloc (in /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1.1.2)
==12978==    by 0x447D68: TheoraEncoder::configureEncoder(StreamConfig&, std::vector<OggComment, std::allocator<OggComment> >&) (theoraEncoder.cpp:166)
==12978==    by 0x43898B: oggSlideshowCmd(int, char**) (oggSlideshow.cpp:262)
==12978==    by 0x43A28F: main (oggSlideshow.cpp:508)
==12978== 

Are you aware of this issue?

-- 
Happy hacking
Petter Reinholdtsen



More information about the pkg-xiph-maint mailing list