• FFmpeg bootstrap

    From Carl Eugen Hoyos@21:1/5 to All on Fri Mar 16 16:10:01 2018
    Hi!

    https://buildd.debian.org/status/package.php?p=ffmpeg&suite=unstable
    FFmpeg depends on frei0r which depends on opencv, opencv depends on FFmpeg. Please bootstrap FFmpeg without --enable-frei0r as that will run some self-tests that haven't been run on ia64 for several years.

    Thank you, Carl Eugen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jason Duerstock@21:1/5 to ceffmpeg@gmail.com on Mon Jun 3 17:20:01 2019
    Hello again Carl,

    Sorry it took so long to get back to you. I took another stab at
    bootstrapping ffmpeg, and it seems like the bulk of the test errors revolve around src/libavcodec/ituh263enc.c. Specifically:

    $ gdb ./ffmpeg --core=core.1559574121
    GNU gdb (Debian 8.2.50.20190222-1) 8.2.50.20190222-git
    Copyright (C) 2019 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html

    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "ia64-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from ./ffmpeg...
    [New LWP 6314]
    [New LWP 6317]
    [New LWP 6318]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/ia64-linux-gnu/libthread_db.so.1".
    Failed to read a valid object file image from memory.
    Core was generated by `/home/jason/ffmpeg-4.1.3/debian/standard/ffmpeg
    -nostdin -nostats -y -cpuflags'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0 init_mv_penalty_and_fcode (s=0x20000008000f3880) at src/libavcodec/ituh263enc.c:776
    776 s->me.mv_penalty= mv_penalty; // FIXME exact table for MSMPEG4
    & H.263+
    [Current thread is 1 (Thread 0x200000000dbc6c20 (LWP 6314))]
    (gdb) bt
    #0 0x2000000000baeb10 in init_mv_penalty_and_fcode (s=0x20000008000f3880)
    at src/libavcodec/ituh263enc.c:776
    #1 0x2000000000baeb10 in ff_h263_encode_init (s=0x20000008000f3880) at src/libavcodec/ituh263enc.c:774
    #2 0x2000000000bdbda0 in ff_mpv_encode_init (avctx=0x20000008000f3450) at src/libavcodec/mpegvideo_enc.c:983
    #3 0x2000000001848e90 in avcodec_open2 (avctx=0x20000008000f3450, codec=<optimized out>, options=0x20000008000c8450)
    at src/libavcodec/utils.c:930
    #4 0x2000000800052940 in init_output_stream (ost=0x20000008000c82f0, error=0x60000fffff88c510 "", error_len=1024)
    at src/fftools/ffmpeg.c:3525
    #5 0x2000000800056890 in reap_filters (flush=0) at
    src/fftools/ffmpeg.c:1446
    #6 0x2000000800060b20 in transcode_step () at src/fftools/ffmpeg.c:4651
    #7 0x2000000800060b20 in transcode () at src/fftools/ffmpeg.c:4695
    #8 0x200000080000ff20 in main (argc=60, argv=0x60000fffff88d618) at src/fftools/ffmpeg.c:4914
    (gdb) print s->me
    $1 = {avctx = 0x0, skip = 0, co_located_mv = {{0, 0}, {0, 0}, {0, 0}, {0,
    0}}, direct_basis_mv = {{0, 0}, {0, 0}, {0, 0}, {0, 0}},
    scratchpad = 0x0, best_mb = 0x0, temp_mb = {0x0, 0x0}, temp = 0x0,
    best_bits = 0, map = 0x20000008000a4560,
    score_map = 0x20000008000a3e00, map_generation = 0, pre_penalty_factor =
    0, penalty_factor = 0, sub_penalty_factor = 0,
    mb_penalty_factor = 0, flags = 0, sub_flags = 0, mb_flags = 0, pre_pass =
    0, dia_size = 0, xmin = 0, xmax = 0, ymin = 0,
    ymax = 0, pred_x = 0, pred_y = 0, src = {{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0,
    0x0}}, ref = {{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0,
    0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}}, stride = 0,
    uvstride = 0, mc_mb_var_sum_temp = 0, mb_var_sum_temp = 0,
    scene_change_score = 0, hpel_put = 0x0, hpel_avg = 0x0,
    qpel_put = 0x0, qpel_avg = 0x0, mv_penalty = 0x2000000002232bf9 <default_mv_penalty>, current_mv_penalty = 0x0,
    sub_motion_search = 0x0}
    (gdb) print mv_penalty
    $2 = {'\a' <repeats 4097 times>, '\a' <repeats 4097 times>, '\a' <repeats
    4097 times>, '\a' <repeats 4097 times>,
    '\a' <repeats 4097 times>, '\a' <repeats 4097 times>, '\a' <repeats 4097 times>, '\a' <repeats 4097 times>}
    (gdb) print &mv_penalty
    $3 = (uint8_t (*)[8][4097]) 0x200000000206d2e1 <mv_penalty>
    (gdb) print s->me.mv_penalty
    $4 = (uint8_t (*)[4097]) 0x2000000002232bf9 <default_mv_penalty>

    Until we can get you porterbox access, is there any additional debugging information I can provide?

    Jason


    On Sat, Mar 17, 2018 at 8:01 AM Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:

    2018-03-16 23:07 GMT+01:00, Jason Duerstock <jason.duerstock@gmail.com>:
    Hi Carl,

    There are some Java dependencies that will get in the way of the
    dependency chain, but with any luck, Java will get fixed in the next
    couple of weeks.

    Good to know, I had forgotten this dependency.

    In the meantime, I built stage1 manually.

    Thank you!

    I attached the log.

    Unfortunately, it shows many crashes, don't know
    if this will ever work;-(

    If you can provide me with a login to one of the build
    systems, I could have another look.
    (Some other maintainers like hppa offered this in
    the past.)

    Thank you, Carl Eugen


    <div dir="ltr">Hello again Carl,<div><br></div><div>Sorry it took so long to get back to you.  I took another stab at bootstrapping ffmpeg, and it seems like the bulk of the test errors revolve around src/libavcodec/ituh263enc.c.  Specifically:</div><
    <br></div><div><font face="courier new, monospace">$ gdb ./ffmpeg --core=core.1559574121<br>GNU gdb (Debian 8.2.50.20190222-1) 8.2.50.20190222-git<br>Copyright (C) 2019 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later &lt;<
    a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;<br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.<br>Type &quot;show copying&quot; and &quot;
    show warranty&quot; for details.<br>This GDB was configured as &quot;ia64-linux-gnu&quot;.<br>Type &quot;show configuration&quot; for configuration details.<br>For bug reporting instructions, please see:<br>&lt;<a href="http://www.gnu.org/software/gdb/
    bugs/">http://www.gnu.org/software/gdb/bugs/</a>&gt;.<br>Find the GDB manual and other documentation resources online at:<br>    &lt;<a href="http://www.gnu.org/software/gdb/documentation/">http://www.gnu.org/software/gdb/documentation/</a>&gt;.<br><br>
    For help, type &quot;help&quot;.<br>Type &quot;apropos word&quot; to search for commands related to &quot;word&quot;...<br>Reading symbols from ./ffmpeg...<br>[New LWP 6314]<br>[New LWP 6317]<br>[New LWP 6318]<br>[Thread debugging using libthread_db
    enabled]<br>Using host libthread_db library &quot;/lib/ia64-linux-gnu/libthread_db.so.1&quot;.<br>Failed to read a valid object file image from memory.<br>Core was generated by `/home/jason/ffmpeg-4.1.3/debian/standard/ffmpeg -nostdin -nostats -y -
    cpuflags&#39;.<br>Program terminated with signal SIGSEGV, Segmentation fault.<br>#0  init_mv_penalty_and_fcode (s=0x20000008000f3880) at src/libavcodec/ituh263enc.c:776<br>776         s-&gt;me.mv_penalty= mv_penalty; // FIXME exact table for MSMPEG4
    &amp; H.263+<br>[Current thread is 1 (Thread 0x200000000dbc6c20 (LWP 6314))]<br>(gdb) bt<br>#0  0x2000000000baeb10 in init_mv_penalty_and_fcode (s=0x20000008000f3880) at src/libavcodec/ituh263enc.c:776<br>#1  0x2000000000baeb10 in ff_h263_encode_init (
    s=0x20000008000f3880) at src/libavcodec/ituh263enc.c:774<br>#2  0x2000000000bdbda0 in ff_mpv_encode_init (avctx=0x20000008000f3450) at src/libavcodec/mpegvideo_enc.c:983<br>#3  0x2000000001848e90 in avcodec_open2 (avctx=0x20000008000f3450, codec=&lt;
    optimized out&gt;, options=0x20000008000c8450)<br>    at src/libavcodec/utils.c:930<br>#4  0x2000000800052940 in init_output_stream (ost=0x20000008000c82f0, error=0x60000fffff88c510 &quot;&quot;, error_len=1024)<br>    at src/fftools/ffmpeg.c:3525<
    #5  0x2000000800056890 in reap_filters (flush=0) at src/fftools/ffmpeg.c:1446<br>#6  0x2000000800060b20 in transcode_step () at src/fftools/ffmpeg.c:4651<br>#7  0x2000000800060b20 in transcode () at src/fftools/ffmpeg.c:4695<br>#8  
    0x200000080000ff20 in main (argc=60, argv=0x60000fffff88d618) at src/fftools/ffmpeg.c:4914<br>(gdb) print s-&gt;me<br>$1 = {avctx = 0x0, skip = 0, co_located_mv = {{0, 0}, {0, 0}, {0, 0}, {0, 0}}, direct_basis_mv = {{0, 0}, {0, 0}, {0, 0}, {0, 0}},<br> 
    scratchpad = 0x0, best_mb = 0x0, temp_mb = {0x0, 0x0}, temp = 0x0, best_bits = 0, map = 0x20000008000a4560,<br>  score_map = 0x20000008000a3e00, map_generation = 0, pre_penalty_factor = 0, penalty_factor = 0, sub_penalty_factor = 0,<br>  mb_penalty_
    factor = 0, flags = 0, sub_flags = 0, mb_flags = 0, pre_pass = 0, dia_size = 0, xmin = 0, xmax = 0, ymin = 0,<br>  ymax = 0, pred_x = 0, pred_y = 0, src = {{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0,<br>      0x0}
    }, ref = {{0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}, {0x0, 0x0, 0x0, 0x0}}, stride = 0,<br>  uvstride = 0, mc_mb_var_sum_temp = 0, mb_var_sum_temp = 0, scene_change_score = 0, hpel_put = 0x0, hpel_avg = 0x0,<br>  qpel_put = 0x0,
    qpel_avg = 0x0, mv_penalty = 0x2000000002232bf9 &lt;default_mv_penalty&gt;, current_mv_penalty = 0x0,<br>  sub_motion_search = 0x0}<br>(gdb) print mv_penalty<br>$2 = {&#39;\a&#39; &lt;repeats 4097 times&gt;, &#39;\a&#39; &lt;repeats 4097 times&gt;, &#39;
    \a&#39; &lt;repeats 4097 times&gt;, &#39;\a&#39; &lt;repeats 4097 times&gt;,<br>  &#39;\a&#39; &lt;repeats 4097 times&gt;, &#39;\a&#39; &lt;repeats 4097 times&gt;, &#39;\a&#39; &lt;repeats 4097 times&gt;, &#39;\a&#39; &lt;repeats 4097 times&gt;}<br>(gdb)
    print &amp;mv_penalty<br>$3 = (uint8_t (*)[8][4097]) 0x200000000206d2e1 &lt;mv_penalty&gt;<br>(gdb) print s-&gt;me.mv_penalty<br>$4 = (uint8_t (*)[4097]) 0x2000000002232bf9 &lt;default_mv_penalty&gt;<br></font></div><div><br></div><div>Until we can get
    you porterbox access, is there any additional debugging information I can provide?</div><div><br></div><div>Jason</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 17, 2018 at 8:01 AM Carl Eugen Hoyos &
    lt;<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2018-03-16 23:07 GMT+01:00, Jason Duerstock &lt;<a
    href="mailto:jason.duerstock@gmail.com" target="_blank">jason.duerstock@gmail.com</a>&gt;:<br>
    &gt; Hi Carl,<br>
    &gt;<br>
    &gt; There are some Java dependencies that will get in the way of the<br>
    &gt; dependency chain, but with any luck, Java will get fixed in the next<br> &gt; couple of weeks.<br>

    Good to know, I had forgotten this dependency.<br>

    &gt; In the meantime, I built stage1 manually.<br>

    Thank you!<br>

    &gt; I attached the log.<br>

    Unfortunately, it shows many crashes, don&#39;t know<br>
    if this will ever work;-(<br>

    If you can provide me with a login to one of the build<br>
    systems, I could have another look.<br>
    (Some other maintainers like hppa offered this in<br>
    the past.)<br>

    Thank you, Carl Eugen<br>
    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carl Eugen Hoyos@21:1/5 to All on Mon Jun 3 23:00:01 2019
    Am Mo., 3. Juni 2019 um 17:14 Uhr schrieb Jason Duerstock <jason.duerstock@gmail.com>:

    Hello again Carl,

    Sorry it took so long to get back to you. I took another stab at bootstrapping ffmpeg, and it seems like the bulk of the test errors revolve around src/libavcodec/ituh263enc.c. Specifically:

    $ gdb ./ffmpeg --core=core.1559574121
    GNU gdb (Debian 8.2.50.20190222-1) 8.2.50.20190222-git
    Copyright (C) 2019 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "ia64-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from ./ffmpeg...
    [New LWP 6314]
    [New LWP 6317]
    [New LWP 6318]
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/ia64-linux-gnu/libthread_db.so.1". Failed to read a valid object file image from memory.
    Core was generated by `/home/jason/ffmpeg-4.1.3/debian/standard/ffmpeg -nostdin -nostats -y -cpuflags'.
    Program terminated with signal SIGSEGV, Segmentation fault.

    #0 init_mv_penalty_and_fcode (s=0x20000008000f3880) at src/libavcodec/ituh263enc.c:776
    776 s->me.mv_penalty= mv_penalty; // FIXME exact table for MSMPEG4 & H.263+

    What surprises me a little is that this line is not part of init_mv_penalty_and_fcode().

    Do you see the same crash if you add --disable-optimizations to configure?

    Carl Eugen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)