Opened 12 months ago

Last modified 12 months ago

#10708 new defect

Segfault in static build when seeking into HTTP input file

Reported by: John Sterling Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords:
Cc: John P. Kiffmeyer Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by John Sterling)

For static Linux builds of ffmpeg versions 6.0 and later, a segfault occurs when processing an HTTP input file with a seek (possibly related to range requests or multiple requests against a URL?). For example, when capturing a single frame at 30 seconds as an image from an MP4 URL. If requesting the first frame, or if requesting from an HTTP server which does not support byte-range requests, the segfault does not occur.

I have reproduced this in 6.0.1, 6.1, and git-master, both from source and using builds from https://www.johnvansickle.com/ffmpeg/ but cannot reproduce with 5.1.4. Building from source with a plain ./configure (not including --extra-ldexeflags="-static") does not exhibit the behavior.

Here is a Dockerfile which produces a build from git-master:

FROM debian:bullseye
RUN apt update && apt install -y --no-install-recommends \
    autoconf \
    automake \
    build-essential \
    ca-certificates \
    cmake \
    gdb \
    git \
    yasm
RUN update-ca-certificates
RUN git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git
RUN cd ffmpeg && \
    ./configure --extra-ldexeflags="-static" && \
    make -j8

And running the resulting container, here is an example command causing the crash:

$ docker run -it --rm ffmpeg-test                 
root@622d21927980:/# cd ffmpeg
root@622d21927980:/ffmpeg# ./ffmpeg -ss 30 -i http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4 -map 0:v -frames:v 1 -update 1 -y test.jpg
ffmpeg version 5.1.git Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --extra-ldexeflags=-static
  libavutil      58. 32.100 / 58. 32.100
  libavcodec     60. 35.100 / 60. 35.100
  libavformat    60. 18.100 / 60. 18.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 14.100 /  9. 14.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2013-12-16T17:44:39.000000Z
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
    composer        : Sacha Goedegebure
  Duration: 00:10:34.60, start: 0.000000, bitrate: 3481 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:39.000000Z
      handler_name    : GPAC ISO Video Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:42.000000Z
      handler_name    : GPAC ISO Audio Handler
      vendor_id       : [0][0][0][0]
  Stream #0:2[0x3](und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:42.000000Z
      handler_name    : GPAC ISO Audio Handler
      vendor_id       : [0][0][0][0]
    Side data:
      audio service type: main
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Segmentation fault
root@622d21927980:/ffmpeg#

Output from including -report:

ffmpeg started on 2023-11-29 at 19:49:40
Report written to "ffmpeg-20231129-194940.log"
Log level: 48
Command line:
./ffmpeg -report -ss 30 -i http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4 -map 0:v -frames:v 1 -update 1 -y test.jpg
ffmpeg version 5.1.git Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --extra-ldexeflags=-static
  libavutil      58. 32.100 / 58. 32.100
  libavcodec     60. 35.100 / 60. 35.100
  libavformat    60. 18.100 / 60. 18.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 14.100 /  9. 14.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '30'.
Reading option '-i' ... matched as output url with argument 'http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:v'.
Reading option '-frames:v' ... matched as option 'frames' (set the number of frames to output) with argument '1'.
Reading option '-update' ... matched as AVOption 'update' with argument '1'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'test.jpg' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4.
Applying option ss (set the start time offset) with argument 30.
Successfully parsed a group of options.
Opening an input file: http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4.
[AVFormatContext @ 0x351dd00] Opening 'http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4' for reading
[http @ 0x351e580] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy,data'
[tcp @ 0x3522400] Original list of addresses:
[tcp @ 0x3522400] Address 13.224.214.57 port 80
[tcp @ 0x3522400] Address 13.224.214.101 port 80
[tcp @ 0x3522400] Address 13.224.214.45 port 80
[tcp @ 0x3522400] Address 13.224.214.93 port 80
[tcp @ 0x3522400] Interleaved list of addresses:
[tcp @ 0x3522400] Address 13.224.214.57 port 80
[tcp @ 0x3522400] Address 13.224.214.101 port 80
[tcp @ 0x3522400] Address 13.224.214.45 port 80
[tcp @ 0x3522400] Address 13.224.214.93 port 80
[tcp @ 0x3522400] Starting connection attempt to 13.224.214.57 port 80
[tcp @ 0x3522400] Successfully connected to 13.224.214.57 port 80
[http @ 0x351e580] request: GET /assets/bbb_1080.mp4 HTTP/1.1
User-Agent: Lavf/60.18.100
Accept: */*
Range: bytes=0-
Connection: close
Host: acrowe.sandbox.frame.io
Icy-MetaData: 1


[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] Setting codecpar->delay to 2 for stream st: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] Unknown dref type 0x206c7275 size 12
[tcp @ 0x3535300] Original list of addresses:
[tcp @ 0x3535300] Address 13.224.214.57 port 80
[tcp @ 0x3535300] Address 13.224.214.101 port 80
[tcp @ 0x3535300] Address 13.224.214.45 port 80
[tcp @ 0x3535300] Address 13.224.214.93 port 80
[tcp @ 0x3535300] Interleaved list of addresses:
[tcp @ 0x3535300] Address 13.224.214.57 port 80
[tcp @ 0x3535300] Address 13.224.214.101 port 80
[tcp @ 0x3535300] Address 13.224.214.45 port 80
[tcp @ 0x3535300] Address 13.224.214.93 port 80
[tcp @ 0x3535300] Starting connection attempt to 13.224.214.57 port 80
[tcp @ 0x3535300] Successfully connected to 13.224.214.57 port 80
[http @ 0x351e580] request: GET /assets/bbb_1080.mp4 HTTP/1.1
User-Agent: Lavf/60.18.100
Accept: */*
Range: bytes=276134889-
Connection: close
Host: acrowe.sandbox.frame.io
Icy-MetaData: 1


[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] Reconfiguring buffers to size 5619538
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] Before avformat_find_stream_info() pos: 276134913 bytes read:237270 seeks:1 nb_streams:3
[h264 @ 0x3525a00] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x3525a00] Decoding VUI
[h264 @ 0x3525a00] nal_unit_type: 8(PPS), nal_ref_idc: 3
For transform of length 128, inverse, mdct_float, flags: [aligned, out_of_place], found 3 matches:
    1: mdct_inv_float_avx2 - type: mdct_float, len: [16, ∞], factors[2]: [2, any], flags: [aligned, out_of_place, inv_only], prio: 544
    2: mdct_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: 96
    3: mdct_naive_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: -130976
For transform of length 64, inverse, fft_float, flags: [aligned, inplace, preshuf, asm_call], found 3 matches:
    1: fft_sr_asm_float_avx2 - type: fft_float, len: [64, 131072], factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], prio: 480
    2: fft_sr_asm_float_fma3 - type: fft_float, len: [64, 131072], factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], prio: 448
    3: fft_sr_asm_float_avx - type: fft_float, len: [64, 131072], factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], prio: 416
Transform tree:
    mdct_inv_float_avx2 - type: mdct_float, len: 128, factors[2]: [2, any], flags: [aligned, out_of_place, inv_only]
        fft_sr_asm_float_avx2 - type: fft_float, len: 64, factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call]
For transform of length 256, inverse, mdct_float, flags: [aligned, out_of_place], found 3 matches:
    1: mdct_inv_float_avx2 - type: mdct_float, len: [16, ∞], factors[2]: [2, any], flags: [aligned, out_of_place, inv_only], prio: 544
    2: mdct_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: 96
    3: mdct_naive_inv_float_c - type: mdct_float, len: [2, ∞], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: -130976
For transform of length 128, inverse, fft_float, flags: [aligned, inplace, preshuf, asm_call], found 3 matches:
    1: fft_sr_asm_float_avx2 - type: fft_float, len: [64, 131072], factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], prio: 480
    2: fft_sr_asm_float_fma3 - type: fft_float, len: [64, 131072], factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], prio: 448
    3: fft_sr_asm_float_avx - type: fft_float, len: [64, 131072], factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call], prio: 416
Transform tree:
    mdct_inv_float_avx2 - type: mdct_float, len: 256, factors[2]: [2, any], flags: [aligned, out_of_place, inv_only]
        fft_sr_asm_float_avx2 - type: fft_float, len: 128, factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call]
[tcp @ 0x3550ac0] Original list of addresses:
[tcp @ 0x3550ac0] Address 13.224.214.57 port 80
[tcp @ 0x3550ac0] Address 13.224.214.101 port 80
[tcp @ 0x3550ac0] Address 13.224.214.45 port 80
[tcp @ 0x3550ac0] Address 13.224.214.93 port 80
[tcp @ 0x3550ac0] Interleaved list of addresses:
[tcp @ 0x3550ac0] Address 13.224.214.57 port 80
[tcp @ 0x3550ac0] Address 13.224.214.101 port 80
[tcp @ 0x3550ac0] Address 13.224.214.45 port 80
[tcp @ 0x3550ac0] Address 13.224.214.93 port 80
[tcp @ 0x3550ac0] Starting connection attempt to 13.224.214.57 port 80
[tcp @ 0x3550ac0] Successfully connected to 13.224.214.57 port 80
[http @ 0x351e580] request: GET /assets/bbb_1080.mp4 HTTP/1.1
User-Agent: Lavf/60.18.100
Accept: */*
Range: bytes=236997-
Connection: close
Host: acrowe.sandbox.frame.io
Icy-MetaData: 1


[h264 @ 0x3525a00] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x3525a00] Decoding VUI
[h264 @ 0x3525a00] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x3525a00] nal_unit_type: 6(SEI), nal_ref_idc: 0
[h264 @ 0x3525a00] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x3525a00] Format yuv420p chosen by get_format().
[h264 @ 0x3525a00] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0x3525a00] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x351dd00] After avformat_find_stream_info() pos: 305350 bytes read:306402 seeks:2 frames:38
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2013-12-16T17:44:39.000000Z
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
    composer        : Sacha Goedegebure
  Duration: 00:10:34.60, start: 0.000000, bitrate: 3481 kb/s
  Stream #0:0[0x1](und), 16, 1/30000: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:39.000000Z
      handler_name    : GPAC ISO Video Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und), 21, 1/48000: Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:42.000000Z
      handler_name    : GPAC ISO Audio Handler
      vendor_id       : [0][0][0][0]
  Stream #0:2[0x3](und), 1, 1/48000: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:42.000000Z
      handler_name    : GPAC ISO Audio Handler
      vendor_id       : [0][0][0][0]
    Side data:
      audio service type: main
Successfully opened the file.
Parsing a group of options: output url test.jpg.
Applying option map (set input stream mapping) with argument 0:v.
Applying option frames:v (set the number of frames to output) with argument 1.
Successfully parsed a group of options.
Opening an output file: test.jpg.
[out#0/image2 @ 0x35315c0] Adding streams from explicit maps...
[vost#0:0/mjpeg @ 0x354ffc0] Created video stream from input stream 0:0
detected 12 logical cores
[h264 @ 0x35e7740] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x35e7740] Decoding VUI
[h264 @ 0x35e7740] nal_unit_type: 8(PPS), nal_ref_idc: 3
Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help

Running in gdb:

root@622d21927980:/ffmpeg# gdb ./ffmpeg_g 
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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_g...
(gdb) r -ss 30 -i http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4 -map 0:v -frames:v 1 -update 1 -y test.jpg
Starting program: /ffmpeg/ffmpeg_g -ss 30 -i http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4 -map 0:v -frames:v 1 -update 1 -y test.jpg
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
ffmpeg version 5.1.git Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --extra-ldexeflags=-static
  libavutil      58. 32.100 / 58. 32.100
  libavcodec     60. 35.100 / 60. 35.100
  libavformat    60. 18.100 / 60. 18.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 14.100 /  9. 14.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://acrowe.sandbox.frame.io/assets/bbb_1080.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2013-12-16T17:44:39.000000Z
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
    composer        : Sacha Goedegebure
  Duration: 00:10:34.60, start: 0.000000, bitrate: 3481 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:39.000000Z
      handler_name    : GPAC ISO Video Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:42.000000Z
      handler_name    : GPAC ISO Audio Handler
      vendor_id       : [0][0][0][0]
  Stream #0:2[0x3](und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:42.000000Z
      handler_name    : GPAC ISO Audio Handler
      vendor_id       : [0][0][0][0]
    Side data:
      audio service type: main
[New Thread 0x7ffff7597700 (LWP 58)]
[New Thread 0x7ffff6d96700 (LWP 59)]
[New Thread 0x7ffff6595700 (LWP 60)]
[New Thread 0x7ffff5d94700 (LWP 61)]
[New Thread 0x7ffff5593700 (LWP 62)]
[New Thread 0x7ffff4d92700 (LWP 63)]
[New Thread 0x7ffff4591700 (LWP 64)]
[New Thread 0x7ffff3d90700 (LWP 65)]
[New Thread 0x7ffff358f700 (LWP 66)]
[New Thread 0x7ffff2d8e700 (LWP 67)]
[New Thread 0x7ffff258d700 (LWP 68)]
[New Thread 0x7ffff1d8c700 (LWP 69)]
[New Thread 0x7ffff158b700 (LWP 70)]
[New Thread 0x7ffff0d8a700 (LWP 71)]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[New Thread 0x7fffebfff700 (LWP 72)]

Thread 16 "dmx0:mov,mp4,m4" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffebfff700 (LWP 72)]
0x00007ffff7fe5298 in internal_getent (stream=stream@entry=0x7fffdc000b60, result=result@entry=0x7fffebff6a70, buffer=buffer@entry=0x7fffebff6ed0 "", buflen=buflen@entry=1024, 
    errnop=errnop@entry=0x7fffebfff6b0, herrnop=herrnop@entry=0x7fffebfff6e8, af=0) at nss_files/files-XXX.c:173
173     nss_files/files-XXX.c: No such file or directory.
(gdb) bt
#0  0x00007ffff7fe5298 in internal_getent (stream=stream@entry=0x7fffdc000b60, result=result@entry=0x7fffebff6a70, buffer=buffer@entry=0x7fffebff6ed0 "", buflen=buflen@entry=1024, 
    errnop=errnop@entry=0x7fffebfff6b0, herrnop=herrnop@entry=0x7fffebfff6e8, af=0) at nss_files/files-XXX.c:173
#1  0x00007ffff7fe6544 in _nss_files_gethostbyname4_r (name=0x7fffebff7470 "acrowe.sandbox.frame.io", pat=0x7fffebff6bc8, buffer=0x7fffebff6ed0 "", buflen=1024, errnop=0x7fffebfff6b0, herrnop=0x7fffebfff6e8, 
    ttlp=0x0) at nss_files/files-hosts.c:400
#2  0x0000000001354d16 in gaih_inet.constprop ()
#3  0x0000000001355b95 in getaddrinfo ()
#4  0x0000000000864658 in tcp_open (h=0x7fffe4000ec0, uri=0x7fffe4000f20 "tcp://acrowe.sandbox.frame.io:80", flags=<optimized out>) at libavformat/tcp.c:203
#5  0x000000000074066e in ffurl_connect (uc=0x7fffe4000ec0, options=options@entry=0x7fffebffcea8) at libavformat/avio.c:204
#6  0x0000000000740929 in ffurl_open_whitelist (puc=puc@entry=0x2ed5448, filename=filename@entry=0x7fffebff91d0 "tcp://acrowe.sandbox.frame.io:80", flags=flags@entry=3, int_cb=int_cb@entry=0x2ed5370, 
    options=options@entry=0x7fffebffcea8, whitelist=0x2ed7dc0 "http,https,tls,rtp,tcp,udp,crypto,httpproxy,data", blacklist=0x0, parent=0x2ed5340) at libavformat/avio.c:341
#7  0x00000000007904ce in http_open_cnx_internal (h=h@entry=0x2ed5340, options=options@entry=0x7fffebffcea8) at libavformat/http.c:267
#8  0x000000000079160a in http_open_cnx (h=0x2ed5340, options=0x7fffebffcea8) at libavformat/http.c:381
#9  0x0000000000791db9 in http_seek_internal (h=0x2ed5340, off=11385326, whence=<optimized out>, force_reconnect=<optimized out>) at libavformat/http.c:1953
#10 0x0000000000741f09 in avio_seek (s=0x2ee2fc0, offset=11385326, whence=<optimized out>) at libavformat/aviobuf.c:353
#11 0x00000000007c4b3a in mov_read_packet (s=0x2ed4a80, pkt=0x7fffe4000900) at libavformat/mov.c:8948
#12 0x000000000075a0b5 in ff_read_packet (s=s@entry=0x2ed4a80, pkt=pkt@entry=0x7fffe4000900) at libavformat/demux.c:576
#13 0x000000000075a943 in read_frame_internal (s=0x2ed4a80, pkt=0x7fffe4000900) at libavformat/demux.c:1264
#14 0x000000000075b60d in av_read_frame (s=0x2ed4a80, pkt=0x7fffe4000900) at libavformat/demux.c:1473
#15 0x000000000049751f in input_thread (arg=0x2ed48c0) at fftools/ffmpeg_demux.c:552
#16 0x00000000012c9977 in start_thread (arg=<optimized out>) at pthread_create.c:477
#17 0x00000000013590cf in clone ()
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0x7ffff7fe5278 to 0x7ffff7fe52b8:
   0x00007ffff7fe5278 <internal_getent+104>:    push   %rsp
   0x00007ffff7fe5279 <internal_getent+105>:    lock (bad) 
   0x00007ffff7fe527b <internal_getent+107>:    decl   -0x77(%rbp)
   0x00007ffff7fe527e <internal_getent+110>:    out    %eax,$0x48
   0x00007ffff7fe5280 <internal_getent+112>:    mov    (%rax),%esi
   0x00007ffff7fe5282 <internal_getent+114>:    mov    %rax,%r13
   0x00007ffff7fe5285 <internal_getent+117>:    jmp    0x7ffff7fe5294 <internal_getent+132>
   0x00007ffff7fe5287 <internal_getent+119>:    nopw   0x0(%rax,%rax,1)
   0x00007ffff7fe5290 <internal_getent+128>:    add    $0x1,%r15
   0x00007ffff7fe5294 <internal_getent+132>:    movsbq (%r15),%rdx
=> 0x00007ffff7fe5298 <internal_getent+136>:    testb  $0x20,0x1(%rsi,%rdx,2)
   0x00007ffff7fe529d <internal_getent+141>:    jne    0x7ffff7fe5290 <internal_getent+128>
   0x00007ffff7fe529f <internal_getent+143>:    test   %dl,%dl
   0x00007ffff7fe52a1 <internal_getent+145>:    je     0x7ffff7fe5255 <internal_getent+69>
   0x00007ffff7fe52a3 <internal_getent+147>:    cmp    $0x23,%dl
   0x00007ffff7fe52a6 <internal_getent+150>:    je     0x7ffff7fe5255 <internal_getent+69>
   0x00007ffff7fe52a8 <internal_getent+152>:    mov    0x18(%rsp),%rax
   0x00007ffff7fe52ad <internal_getent+157>:    movl   $0x16,(%rax)
   0x00007ffff7fe52b3 <internal_getent+163>:    cmp    %r15,0x20(%rsp)
End of assembler dump.
(gdb) info all-registers
rax            0x7fffebfff618      140737152808472
rbx            0x14                20
rcx            0x7fffdc000d54      140736884378964
rdx            0x31                49
rsi            0x0                 0
rdi            0x7fffebff6ef0      140737152773872
rbp            0x7fffebff6ed0      0x7fffebff6ed0
rsp            0x7fffebff69a0      0x7fffebff69a0
r8             0x4                 4
r9             0x7fffdc000080      140736884375680
r10            0x6f                111
r11            0x246               582
r12            0x7fffebff6ef0      140737152773872
r13            0x7fffebfff618      140737152808472
r14            0x7fffdc000b60      140736884378464
r15            0x7fffebff6ef0      140737152773872
rip            0x7ffff7fe5298      0x7ffff7fe5298 <internal_getent+136>
eflags         0x10207             [ CF PF IF RF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
st0            <invalid float value> (raw 0xffff1010101010101010)
st1            <invalid float value> (raw 0xffff1010101010101010)
st2            <invalid float value> (raw 0xffff1010101010101010)
st3            <invalid float value> (raw 0xffff1010101010101010)
st4            <invalid float value> (raw 0xffff1010101010101010)
st5            <invalid float value> (raw 0xffff1010101010101010)
st6            <invalid float value> (raw 0xffff1010101010101010)
st7            <invalid float value> (raw 0xffff1010101010101010)
fctrl          0x37f               895
fstat          0x0                 0
ftag           0xffff              65535
fiseg          0x0                 0
fioff          0x0                 0
foseg          0x0                 0
fooff          0x0                 0
fop            0x0                 0
mxcsr          0x1fa0              [ PE IM DM ZM OM UM PM ]
ymm0           {v16_bfloat16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0xffff, 0xffff, 0xffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x7fffffffffffffff, 0x0, 0x0}, v32_int8 = {0x31, 0x32, 0x37, 0x2e, 0x30, 0x2e, 0x30, 0x2e, 0x31, 0x9, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x0 <repeats 16 times>}, v16_int16 = {0x3231, 0x2e37, 0x2e30, 0x2e30, 0x931, 0x6f6c, 0x6163, 0x686c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x2e373231, 0x2e302e30, 0x6f6c0931, 0x686c6163, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x2e302e302e373231, 0x686c61636f6c0931, 0x0, 0x0}, v2_int128 = {0x686c61636f6c09312e302e302e373231, 0x0}}
ymm1           {v16_bfloat16 = {0x0, 0x0, 0x0, 0xffff, 0xffff, 0xffff, 0xffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x7fffffffffffffff, 0x0, 0x0, 0x0}, v32_int8 = {0x30, 0x2e, 0x30, 0x2e, 0x31, 0x9, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68, 0x6f, 0x73, 0x74, 0xa, 0x0 <repeats 16 times>}, v16_int16 = {0x2e30, 0x2e30, 0x931, 0x6f6c, 0x6163, 0x686c, 0x736f, 0xa74, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x2e302e30, 0x6f6c0931, 0x686c6163, 0xa74736f, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x6f6c09312e302e30, 0xa74736f686c6163, 0x0, 0x0}, v2_int128 = {0xa74736f686c61636f6c09312e302e30, 0x0}}
ymm2           {v16_bfloat16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x8000000000000000, 0x7fffffffffffffff, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0 <repeats 16 times>}, v16_int16 = {0x0, 0x0, 0x0, 0xff00, 0xffff, 0xffff, 0xffff, 0xffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x0, 0xff000000, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xff00000000000000, 0xffffffffffffffff, 0x0, 0x0}, v2_int128 = {0xffffffffffffffffff00000000000000, 0x0}}
ymm3           {v16_bfloat16 = {0x0 <repeats 16 times>}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
ymm4           {v16_bfloat16 = {0x0, 0x0, 0x0 <repeats 14 times>}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0xff, 0x0 <repeats 29 times>}, v16_int16 = {0x0, 0xff, 0x0 <repeats 14 times>}, v8_int32 = {0xff0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xff0000, 0x0, 0x0, 0x0}, v2_int128 = {0xff0000, 0x0}}
ymm5           {v16_bfloat16 = {0x0, 0x0, 0x0, 0xffff, 0x0 <repeats 12 times>}, v8_float = {0x0, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0xffffffffffffffff, 0x0, 0x0, 0x0}, v32_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0xbf, 0x0 <repeats 24 times>}, v16_int16 = {0x0, 0x0, 0x0, 0xbff0, 0x0 <repeats 12 times>}, v8_int32 = {0x0, 0xbff00000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xbff0000000000000, 0x0, 0x0, 0x0}, v2_int128 = {0xbff0000000000000, 0x0}}
ymm6           {v16_bfloat16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0xa0, 0xaa, 0xfa, 0x2, 0x0, 0x0, 0x0, 0x0, 0x20, 0x9f, 0xa9, 0x3, 0x0 <repeats 20 times>}, v16_int16 = {0xaaa0, 0x2fa, 0x0, 0x0, 0x9f20, 0x3a9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x2faaaa0, 0x0, 0x3a99f20, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x2faaaa0, 0x3a99f20, 0x0, 0x0}, v2_int128 = {0x3a99f200000000002faaaa0, 0x0}}
ymm7           {v16_bfloat16 = {0x0 <repeats 16 times>}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
ymm8           {v16_bfloat16 = {0xffff, 0xffff, 0xffff, 0x0, 0x0 <repeats 12 times>}, v8_float = {0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x72, 0x61, 0x6d, 0x65, 0x2e, 0x69, 0x6f, 0x0 <repeats 25 times>}, v16_int16 = {0x6172, 0x656d, 0x692e, 0x6f, 0x0 <repeats 12 times>}, v8_int32 = {0x656d6172, 0x6f692e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x6f692e656d6172, 0x0, 0x0, 0x0}, v2_int128 = {0x6f692e656d6172, 0x0}}
ymm9           {v16_bfloat16 = {0x0 <repeats 16 times>}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x0 <repeats 32 times>}, v16_int16 = {0x0 <repeats 16 times>}, v8_int32 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x0, 0x0, 0x0, 0x0}, v2_int128 = {0x0, 0x0}}
--Type <RET> for more, q to quit, c to continue without paging--
ymm10          {v16_bfloat16 = {0x0, 0x0, 0x0, 0x0, 0xffa5, 0x0, 0xffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x46, 0xcd, 0x7b, 0x37, 0x2f, 0x5a, 0x89, 0xb7, 0xb6, 0xc2, 0x77, 0x37, 0x6b, 0x63, 0x8b, 0xb7, 0x0 <repeats 16 times>}, v16_int16 = {0xcd46, 0x377b, 0x5a2f, 0xb789, 0xc2b6, 0x3777, 0x636b, 0xb78b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x377bcd46, 0xb7895a2f, 0x3777c2b6, 0xb78b636b, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xb7895a2f377bcd46, 0xb78b636b3777c2b6, 0x0, 0x0}, v2_int128 = {0xb78b636b3777c2b6b7895a2f377bcd46, 0x0}}
ymm11          {v16_bfloat16 = {0x0, 0x0, 0xffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x73, 0x9e, 0xcb, 0x36, 0x9c, 0x61, 0xec, 0xb7, 0xb3, 0xec, 0xb4, 0x36, 0x87, 0xf9, 0xeb, 0xb7, 0x0 <repeats 16 times>}, v16_int16 = {0x9e73, 0x36cb, 0x619c, 0xb7ec, 0xecb3, 0x36b4, 0xf987, 0xb7eb, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0x36cb9e73, 0xb7ec619c, 0x36b4ecb3, 0xb7ebf987, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xb7ec619c36cb9e73, 0xb7ebf98736b4ecb3, 0x0, 0x0}, v2_int128 = {0xb7ebf98736b4ecb3b7ec619c36cb9e73, 0x0}}
ymm12          {v16_bfloat16 = {0x0, 0x0, 0xff1c, 0x0, 0x8000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x28, 0xef, 0x5c, 0xb7, 0x64, 0xc3, 0x8a, 0xb6, 0x2e, 0x4a, 0x5b, 0xb7, 0x1d, 0x3f, 0x5b, 0xb6, 0x0 <repeats 16 times>}, v16_int16 = {0xef28, 0xb75c, 0xc364, 0xb68a, 0x4a2e, 0xb75b, 0x3f1d, 0xb65b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xb75cef28, 0xb68ac364, 0xb75b4a2e, 0xb65b3f1d, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xb68ac364b75cef28, 0xb65b3f1db75b4a2e, 0x0, 0x0}, v2_int128 = {0xb65b3f1db75b4a2eb68ac364b75cef28, 0x0}}
ymm13          {v16_bfloat16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x8, 0x86, 0x3, 0xb7, 0x8, 0xb3, 0x81, 0x36, 0xf4, 0xb5, 0xca, 0xb6, 0xa0, 0x76, 0x67, 0x36, 0x0 <repeats 16 times>}, v16_int16 = {0x8608, 0xb703, 0xb308, 0x3681, 0xb5f4, 0xb6ca, 0x76a0, 0x3667, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xb7038608, 0x3681b308, 0xb6cab5f4, 0x366776a0, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x3681b308b7038608, 0x366776a0b6cab5f4, 0x0, 0x0}, v2_int128 = {0x366776a0b6cab5f43681b308b7038608, 0x0}}
ymm14          {v16_bfloat16 = {0x0, 0x0, 0x0, 0x0, 0xffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0xb8, 0x2a, 0x5c, 0xb7, 0xf6, 0xf9, 0x79, 0xb6, 0x1e, 0x65, 0x5a, 0xb7, 0x90, 0xaf, 0x39, 0xb6, 0x0 <repeats 16 times>}, v16_int16 = {0x2ab8, 0xb75c, 0xf9f6, 0xb679, 0x651e, 0xb75a, 0xaf90, 0xb639, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xb75c2ab8, 0xb679f9f6, 0xb75a651e, 0xb639af90, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0xb679f9f6b75c2ab8, 0xb639af90b75a651e, 0x0, 0x0}, v2_int128 = {0xb639af90b75a651eb679f9f6b75c2ab8, 0x0}}
ymm15          {v16_bfloat16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_float = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_double = {0x0, 0x0, 0x0, 0x0}, v32_int8 = {0x11, 0xce, 0xe9, 0xb6, 0x7a, 0xe2, 0x74, 0x36, 0x14, 0xfa, 0xa9, 0xb6, 0xe2, 0x86, 0x5b, 0x36, 0x0 <repeats 16 times>}, v16_int16 = {0xce11, 0xb6e9, 0xe27a, 0x3674, 0xfa14, 0xb6a9, 0x86e2, 0x365b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int32 = {0xb6e9ce11, 0x3674e27a, 0xb6a9fa14, 0x365b86e2, 0x0, 0x0, 0x0, 0x0}, v4_int64 = {0x3674e27ab6e9ce11, 0x365b86e2b6a9fa14, 0x0, 0x0}, v2_int128 = {0x365b86e2b6a9fa143674e27ab6e9ce11, 0x0}}
quit) 
A debugging session is active.

        Inferior 1 [process 54] will be killed.

Quit anyway? (y or n) y
root@622d21927980:/ffmpeg#

Change History (2)

comment:1 by John Sterling, 12 months ago

Description: modified (diff)

comment:2 by John P. Kiffmeyer, 12 months ago

Cc: John P. Kiffmeyer added
Note: See TracTickets for help on using tickets.