Opened 9 years ago

Closed 9 years ago

#4809 closed defect (fixed)

Crash encoding dnxhd

Reported by: Carl Eugen Hoyos Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: crash SIGSEGV dnxhd
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

(gdb) r -f lavfi -i testsrc=s=1440x1080:sar=4/3 -pix_fmt yuv422p -vcodec dnxhd -vb 80M -flags +ildct -f null -
Starting program: ffmpeg_g -f lavfi -i testsrc=s=1440x1080:sar=4/3 -pix_fmt yuv422p -vcodec dnxhd -vb 80M -flags +ildct -f null -
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
ffmpeg version N-74676-gf5258a7 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 58.100 / 56. 58.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 38.100 /  5. 38.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[New Thread 0x7ffff14f0700 (LWP 4185)]
[New Thread 0x7ffff0cef700 (LWP 4186)]
[New Thread 0x7ffff04ee700 (LWP 4187)]
[New Thread 0x7fffefced700 (LWP 4188)]
[New Thread 0x7fffef4ec700 (LWP 4189)]
[New Thread 0x7fffeeceb700 (LWP 4190)]
[New Thread 0x7fffee4ea700 (LWP 4191)]
[New Thread 0x7fffedce9700 (LWP 4192)]
[New Thread 0x7fffed4e8700 (LWP 4193)]
Input #0, lavfi, from 'testsrc=s=1440x1080:sar=4/3':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1440x1080 [SAR 4:3 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
[New Thread 0x7fffec3f7700 (LWP 4194)]
[New Thread 0x7fffebbf6700 (LWP 4195)]
[New Thread 0x7fffeb3f5700 (LWP 4196)]
[New Thread 0x7fffeabf4700 (LWP 4197)]
[New Thread 0x7fffea3f3700 (LWP 4198)]
[New Thread 0x7fffe9bf2700 (LWP 4199)]
[New Thread 0x7fffe93f1700 (LWP 4200)]
[New Thread 0x7fffe8bf0700 (LWP 4201)]
[New Thread 0x7fffe83ef700 (LWP 4202)]
[New Thread 0x7fffe7bee700 (LWP 4203)]
[New Thread 0x7fffe73ed700 (LWP 4204)]
[New Thread 0x7fffe6bec700 (LWP 4205)]
[New Thread 0x7fffe63eb700 (LWP 4206)]
[New Thread 0x7fffe5bea700 (LWP 4207)]
[New Thread 0x7fffe53e9700 (LWP 4208)]
[New Thread 0x7fffe4be8700 (LWP 4209)]
[New Thread 0x7fffe43e7700 (LWP 4210)]
[New Thread 0x7fffe3be6700 (LWP 4211)]
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: dnxhd, yuv422p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-1024, 80000 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.58.100 dnxhd
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> dnxhd (native))
Press [q] to stop, [?] for help

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff51fa918 in __memset_sse2 () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff51fa918 in __memset_sse2 () from /lib64/libc.so.6
#1  0x0000000000706500 in dnxhd_encode_picture (avctx=0x1c47520, pkt=0x7fffffffd3b0,
    frame=0x1dc01e0, got_packet=0x7fffffffd26c) at libavcodec/dnxhdenc.c:1100
#2  0x0000000000b2f786 in avcodec_encode_video2 (avctx=avctx@entry=0x1c47520,
    avpkt=avpkt@entry=0x7fffffffd3b0, frame=frame@entry=0x1dc01e0,
    got_packet_ptr=got_packet_ptr@entry=0x7fffffffd26c) at libavcodec/utils.c:2193
#3  0x000000000048e5a9 in do_video_out (s=0x1c46540, ost=ost@entry=0x1c47340,
    next_picture=next_picture@entry=0x1dc01e0, sync_ipts=<optimized out>) at ffmpeg.c:1198
#4  0x000000000048f847 in reap_filters (flush=0, flush@entry=29640576) at ffmpeg.c:1389
#5  0x0000000000492ade in transcode_step () at ffmpeg.c:3934
#6  transcode () at ffmpeg.c:3977
#7  0x0000000000475ffb in main (argc=<optimized out>, argv=0x7fffffffdc98) at ffmpeg.c:4160

Change History (1)

comment:1 by Michael Niedermayer, 9 years ago

Reproduced by developer: set
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.