[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FFmpeg bootstrap



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

Reply to: