<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MPEG2 encoder segfault in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779789#M1494</link>
    <description>&lt;P&gt;&lt;BR /&gt;Shaun, &lt;/P&gt;&lt;P&gt;I have a test here. I can see the error you report here. The problem seems that the compiler is generating the incorrect code on the following line ( This line of the code looks fine in the source)&lt;/P&gt;&lt;P&gt;117 IntraQMatrix&lt;I&gt; = DefaultIntraQuantMatrix&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Since GCC compiler can work well, I also tried to compile the source with O0 option ( in the Makefile change CFLAGS = -Wall -O0 fPIC), the sample code also works fine. So possibly you can use -O0 as workaround for build MPEG2 encoder. &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2010 08:15:50 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2010-12-21T08:15:50Z</dc:date>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779781#M1486</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;I'm new to IPP, so I'm probably missing something rather simple. Attached is test code that crashes when instantiating a structure which contains an MPEG2VideoEncoder object and an MPEG2EncoderParam object. The debugger indicates the crash occurs in the MPEG2EncoderParams constructor when it assigns default values to the IntraQMatrix data member:&lt;BR /&gt;&lt;BR /&gt;lnet@I5-desktop$ idbc ./mp2&lt;BR /&gt;Intel Debugger for applications running on IA-32, Version 12.0, Build [1.3842.2.129]&lt;BR /&gt;------------------ &lt;BR /&gt;object file name: ./mp2 &lt;BR /&gt;Reading symbols from /home/lnet/work/mp2/mp2...done.&lt;BR /&gt;(idb) run&lt;BR /&gt;Starting program: /home/lnet/work/mp2/mp2&lt;BR /&gt;[New Thread 3077773568 (LWP 24206)]&lt;BR /&gt;[New Thread 3077773568 (LWP 24206)]&lt;BR /&gt;Program received signal SIGSEGV&lt;BR /&gt;UMC::MPEG2EncoderParams::MPEG2EncoderParams (this=0x87e50a8) at /home/lnet/work/ipp-samples/audio-video-codecs/codec/mpeg2_enc/src/umc_mpeg2_enc_params.cpp:117&lt;BR /&gt;117  IntraQMatrix&lt;I&gt; = DefaultIntraQuantMatrix&lt;I&gt;;&lt;BR /&gt;(idb) where&lt;BR /&gt;#0 0x0804cbdb in UMC::MPEG2EncoderParams::MPEG2EncoderParams (this=0x87e50a8) at /home/lnet/work/ipp-samples/audio-video-codecs/codec/mpeg2_enc/src/umc_mpeg2_enc_params.cpp:117&lt;BR /&gt;#1 0x0804f729 in UMC::MPEG2VideoEncoderBase::MPEG2VideoEncoderBase (this=0x0) at /home/lnet/work/ipp-samples/audio-video-codecs/codec/mpeg2_enc/src/umc_mpeg2_enc.cpp:24&lt;BR /&gt;#2 0x0804ec46 in UMC::MPEG2VideoEncoder::MPEG2VideoEncoder (this=0x340) at /home/lnet/work/ipp-samples/audio-video-codecs/codec/mpeg2_enc/src/umc_mpeg2_video_encoder.cpp:35&lt;BR /&gt;#3 0x0804c801 in Foo::Foo (this=0x87e4d10) in /home/lnet/work/mp2/mp2&lt;BR /&gt;#4 0x0804c798 in main (argc=1, argv=0xbfac5304) at /home/lnet/work/mp2/mp2.cpp:15&lt;BR /&gt;#5 0x005a6ce7 in __libc_start_main () in /lib/libc-2.12.1.so&lt;BR /&gt;#6 0x0804c6a1 in _start () in /home/lnet/work/mp2/mp2&lt;BR /&gt;(idb) &lt;BR /&gt;&lt;BR /&gt;I may be barking up the wrong tree, but it appears the IntraQMatrix should be 16-byte aligned and it is not:&lt;BR /&gt;(idb) print &amp;amp;IntraQMatrix &lt;BR /&gt;$2 = (Ipp16s (*)[64]) 0x87e5178&lt;BR /&gt;(idb) print &amp;amp;IntraQMatrix%16&lt;BR /&gt;$3 = 8&lt;BR /&gt;&lt;BR /&gt;If the Foo structure containing the MPEG2VideoEncoder and MPEG2EncoderParams objects is created on the stack rather than allocated from the heap, the crash does not occur. &lt;BR /&gt;&lt;BR /&gt;I'm running the code on a core I5 machine with 32-bit Ubuntu 10.10 OS:&lt;BR /&gt;uname: Linux I5-desktop 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux&lt;BR /&gt;Compiler: Intel C++ Compiler XE for applications running on IA-32, Version 12.0.0.084 Build 20101006 &lt;BR /&gt;ipp samples: linux 7.0.1.029&lt;BR /&gt;&lt;BR /&gt;Any pointers would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;-Shaun&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Wed, 24 Nov 2010 00:23:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779781#M1486</guid>
      <dc:creator>Shaun_Marko</dc:creator>
      <dc:date>2010-11-24T00:23:52Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779782#M1487</link>
      <description>Hi Shaun,&lt;BR /&gt;&lt;BR /&gt;please check with audio-video-codecs sample how to use UMC object and structures. We do not see crashes in compiled UMC sample code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Wed, 24 Nov 2010 10:30:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779782#M1487</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2010-11-24T10:30:59Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779783#M1488</link>
      <description>Hi Vladmir, &lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. Unfortunately, I'm seeing a crash with the sample code: &lt;BR /&gt;&lt;BR /&gt;lnet@I5-desktop$ idbc ./umc_video_enc_con &lt;BR /&gt;Intel Debugger for applications running on IA-32, Version 12.0, Build [1.3842.2.129]&lt;BR /&gt;------------------ &lt;BR /&gt;object file name: ./umc_video_enc_con &lt;BR /&gt;Reading symbols from /home/lnet/test/umc_video_enc_con...done.&lt;BR /&gt;(idb) run -y img -o video.mpg mpeg2.par&lt;BR /&gt;Starting program: /home/lnet/test/umc_video_enc_con&lt;BR /&gt;[New Thread 3079510272 (LWP 7779)]&lt;BR /&gt;[New Thread 3079510272 (LWP 7779)]&lt;BR /&gt;Program received signal SIGSEGV&lt;BR /&gt;UMC::MPEG2EncoderParams::MPEG2EncoderParams (this=0x9e11628) at /home/lnet/work/ipp-samples/audio-video-codecs/codec/mpeg2_enc/src/umc_mpeg2_enc_params.cpp:117&lt;BR /&gt;117  IntraQMatrix&lt;I&gt; = DefaultIntraQuantMatrix&lt;I&gt;;&lt;BR /&gt;&lt;BR /&gt;My application worked with the 11.1 version of the C++ professional compiler for linux that I used to evaulate the product. The license my company purchased was for the composerxe-2011 version. After installing that and rebuilding with the licensed compiler, may application segfaults.&lt;BR /&gt;&lt;BR /&gt;-Shaun&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Wed, 24 Nov 2010 17:10:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779783#M1488</guid>
      <dc:creator>Shaun_Marko</dc:creator>
      <dc:date>2010-11-24T17:10:36Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779784#M1489</link>
      <description>&lt;BR /&gt;&lt;P&gt;Shaun, &lt;/P&gt;&lt;P&gt;Can you provide the par file, and related input YUV file? &lt;/P&gt;&lt;P&gt;thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2010 07:25:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779784#M1489</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-11-26T07:25:43Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779785#M1490</link>
      <description>The sample application segfaults when using just the mpeg2.par included with the samples, like this:&lt;BR /&gt;./umc_video_enc_con m2 ../../application/umc_video_enc_con/mpeg2.par video.mpg&lt;BR /&gt;Segmentation fault&lt;BR /&gt;&lt;BR /&gt;A program as simple as this segfaults in the same location in the MPEG2EncoderParams constructor:&lt;BR /&gt;&lt;BR /&gt;#include &lt;IPPS.H&gt;&lt;BR /&gt;#include &lt;UMC_DEFS.H&gt;&lt;BR /&gt;#include &lt;UMC_MPEG2_VIDEO_ENCODER.H&gt;&lt;BR /&gt;#include &lt;UMC_SYS_INFO.H&gt;&lt;BR /&gt;#include &lt;VM_SYS_INFO.H&gt;&lt;BR /&gt;#include &lt;IPPVC.H&gt;&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;&lt;BR /&gt;using namespace UMC;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char **argv)&lt;BR /&gt;{&lt;BR /&gt; MPEG2VideoEncoder *encoder = new MPEG2VideoEncoder;&lt;BR /&gt; MPEG2EncoderParams *params = new MPEG2EncoderParams;&lt;BR /&gt;&lt;BR /&gt; std::cout &amp;lt;&amp;lt; params-&amp;gt;gopSize &amp;lt;&amp;lt; std::endl;&lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Shaun&lt;BR /&gt;&lt;BR /&gt;&lt;/IOSTREAM&gt;&lt;/IPPVC.H&gt;&lt;/VM_SYS_INFO.H&gt;&lt;/UMC_SYS_INFO.H&gt;&lt;/UMC_MPEG2_VIDEO_ENCODER.H&gt;&lt;/UMC_DEFS.H&gt;&lt;/IPPS.H&gt;</description>
      <pubDate>Mon, 29 Nov 2010 23:59:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779785#M1490</guid>
      <dc:creator>Shaun_Marko</dc:creator>
      <dc:date>2010-11-29T23:59:25Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779786#M1491</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Shaun,&lt;BR /&gt;&lt;BR /&gt;The code in the line looks fine: codecs/codec/mpeg2_enc/src/umc_mpeg2_enc_params.cpp:117&lt;P&gt;117 IntraQMatrix&lt;I&gt; = DefaultIntraQuantMatrix&lt;I&gt;;&lt;BR /&gt;&lt;BR /&gt;If you use GCC to build the sample, how does it work for you? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2010 07:07:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779786#M1491</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-12-03T07:07:57Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779787#M1492</link>
      <description>Hi Chao,&lt;BR /&gt;&lt;BR /&gt;The GCC build of umc_video_enc_con appears to work fine:&lt;BR /&gt;&lt;BR /&gt;$ ./umc_video_enc_con -n 100 -i /dev/urandom ../../application/umc_video_enc_con/mpeg2.par video.mpg&lt;BR /&gt;Starting MPEG2 encoding /dev/urandom to file video.mpg&lt;BR /&gt;Source video width = 352, height = 288, frameRate = 24.00&lt;BR /&gt;Max frames to encode = 100&lt;BR /&gt;Encoding bit rate = 5300000 bits per second&lt;BR /&gt;0.10.20.30.40.50.60.70.80.90.100.&lt;BR /&gt;Summary:&lt;BR /&gt; Num frames encoded = 100&lt;BR /&gt; Encoding Time = 0.15 sec, 669.73 fps&lt;BR /&gt; Overall Time = 1.97 sec, 50.82 fps&lt;BR /&gt; Average CPU usage = 0.00%&lt;BR /&gt; Encoded Size = 2759608 bytes&lt;BR /&gt; Compression Ratio = 5.51&lt;BR /&gt; EncodedSize/ExpectedSize = 1.00&lt;BR /&gt;&lt;BR /&gt;Incidentally, this test was run on a fresh install of Intel ComposerXE 2011 for linux and the latest IPP samples on Ubuntu 10.4 (32-bit). The ICC build of the umc_video_enc_con sample application still segfaults:&lt;BR /&gt;&lt;BR /&gt;$ ./umc_video_enc_con -n 100 -i /dev/urandom ../../application/umc_video_enc_con/mpeg2.par video.mpg&lt;BR /&gt;Segmentation fault&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;-Shaun&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Dec 2010 17:33:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779787#M1492</guid>
      <dc:creator>Shaun_Marko</dc:creator>
      <dc:date>2010-12-03T17:33:54Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779788#M1493</link>
      <description>Chao, &lt;BR /&gt;&lt;BR /&gt;Have you been able to reproduce this issue? I provided a simple test case that fails on my Linux Ubuntu 10.4 system. &lt;BR /&gt;&lt;BR /&gt;-Shaun</description>
      <pubDate>Fri, 17 Dec 2010 17:08:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779788#M1493</guid>
      <dc:creator>Shaun_Marko</dc:creator>
      <dc:date>2010-12-17T17:08:39Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779789#M1494</link>
      <description>&lt;P&gt;&lt;BR /&gt;Shaun, &lt;/P&gt;&lt;P&gt;I have a test here. I can see the error you report here. The problem seems that the compiler is generating the incorrect code on the following line ( This line of the code looks fine in the source)&lt;/P&gt;&lt;P&gt;117 IntraQMatrix&lt;I&gt; = DefaultIntraQuantMatrix&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Since GCC compiler can work well, I also tried to compile the source with O0 option ( in the Makefile change CFLAGS = -Wall -O0 fPIC), the sample code also works fine. So possibly you can use -O0 as workaround for build MPEG2 encoder. &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 08:15:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779789#M1494</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-12-21T08:15:50Z</dc:date>
    </item>
    <item>
      <title>MPEG2 encoder segfault</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779790#M1495</link>
      <description>Chao, &lt;BR /&gt;&lt;BR /&gt;Thanks for the follow up. I'll run with the GCC compiler or the -O0 optimizations on the Intel compiler until this problem is resolved. Thanks again.&lt;BR /&gt;&lt;BR /&gt;-Shaun&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Dec 2010 18:52:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MPEG2-encoder-segfault/m-p/779790#M1495</guid>
      <dc:creator>Shaun_Marko</dc:creator>
      <dc:date>2010-12-29T18:52:41Z</dc:date>
    </item>
  </channel>
</rss>

