Opened 2 years ago
Last modified 2 years ago
#10052 open defect
ljpeg enc crash
Reported by: | ami_stuff | Owned by: | |
---|---|---|---|
Priority: | important | Component: | undetermined |
Version: | git-master | Keywords: | crash, SIGSEGV |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
(gdb) r -i 1.jpg -s 999x999 -y -vcodec ljpeg out.avi Starting program: ffmpeg_g -i 1.jpg -s 999x999 -y -vcodec ljpeg out.avi [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ffmpeg version N-109101-g822da7a317 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: libavutil 57. 42.100 / 57. 42.100 libavcodec 59. 52.102 / 59. 52.102 libavformat 59. 34.101 / 59. 34.101 libavdevice 59. 8.101 / 59. 8.101 libavfilter 8. 50.100 / 8. 50.100 libswscale 6. 8.112 / 6. 8.112 libswresample 4. 9.100 / 4. 9.100 [mjpeg @ 0x555557141d40] EOI missing, emulating Input #0, jpeg_pipe, from '1.jpg': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 1x1, 25 fps, 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> ljpeg (native)) Press [q] to stop, [?] for help [New Thread 0x7ffff6b9c700 (LWP 28261)] [Thread 0x7ffff6b9c700 (LWP 28261) exited] [New Thread 0x7ffff639b700 (LWP 28262)] [New Thread 0x7ffff5b9a700 (LWP 28263)] [New Thread 0x7ffff5399700 (LWP 28264)] [New Thread 0x7ffff4b98700 (LWP 28265)] [New Thread 0x7fffeffff700 (LWP 28266)] [New Thread 0x7fffef7fe700 (LWP 28267)] [New Thread 0x7fffeeffd700 (LWP 28268)] [New Thread 0x7fffee7fc700 (LWP 28269)] [New Thread 0x7fffedffb700 (LWP 28270)] [New Thread 0x7fffed7fa700 (LWP 28271)] [New Thread 0x7fffecff9700 (LWP 28272)] [New Thread 0x7fffec7f8700 (LWP 28273)] [New Thread 0x7fffebff7700 (LWP 28274)] [New Thread 0x7fffeb7f6700 (LWP 28275)] [New Thread 0x7fffeaff5700 (LWP 28276)] [New Thread 0x7fffea7f4700 (LWP 28277)] [swscaler @ 0x55555715fe00] [swscaler @ 0x55555716d540] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555715fe00] [swscaler @ 0x555557196740] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555715fe00] [swscaler @ 0x5555571be980] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555715fe00] [swscaler @ 0x5555571e7cc0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555715fe00] [swscaler @ 0x555557210c80] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555715fe00] [swscaler @ 0x555557239280] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555715fe00] [swscaler @ 0x5555572625c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555715fe00] [swscaler @ 0x55555728b580] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555715fe00] [swscaler @ 0x5555572b4540] deprecated pixel format used, make sure you did set range correctly [New Thread 0x7fffea7f4700 (LWP 28278)] [Thread 0x7fffea7f4700 (LWP 28277) exited] [Thread 0x7fffeaff5700 (LWP 28276) exited] [Thread 0x7fffeb7f6700 (LWP 28275) exited] [Thread 0x7fffebff7700 (LWP 28274) exited] [Thread 0x7fffec7f8700 (LWP 28273) exited] [Thread 0x7fffecff9700 (LWP 28272) exited] [Thread 0x7fffed7fa700 (LWP 28271) exited] [Thread 0x7fffedffb700 (LWP 28270) exited] [New Thread 0x7fffeaff5700 (LWP 28279)] [New Thread 0x7fffeb7f6700 (LWP 28280)] [New Thread 0x7fffebff7700 (LWP 28281)] [New Thread 0x7fffedffb700 (LWP 28282)] [New Thread 0x7fffed7fa700 (LWP 28283)] [New Thread 0x7fffecff9700 (LWP 28284)] [New Thread 0x7fffec7f8700 (LWP 28285)] [swscaler @ 0x55555716d540] [swscaler @ 0x5555571aca00] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555571b99c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557227140] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557259240] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555571e4c00] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557212700] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x55555719c380] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557290e80] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555572b9780] deprecated pixel format used, make sure you did set range correctly [Thread 0x7fffecff9700 (LWP 28284) exited] [Thread 0x7fffec7f8700 (LWP 28285) exited] [Thread 0x7fffed7fa700 (LWP 28283) exited] [Thread 0x7fffedffb700 (LWP 28282) exited] [New Thread 0x7fffec7f8700 (LWP 28286)] [Thread 0x7fffebff7700 (LWP 28281) exited] [Thread 0x7fffeb7f6700 (LWP 28280) exited] [Thread 0x7fffeaff5700 (LWP 28279) exited] [Thread 0x7fffea7f4700 (LWP 28278) exited] [New Thread 0x7fffecff9700 (LWP 28287)] [New Thread 0x7fffed7fa700 (LWP 28288)] [New Thread 0x7fffedffb700 (LWP 28289)] [New Thread 0x7fffebff7700 (LWP 28290)] [New Thread 0x7fffeb7f6700 (LWP 28291)] [New Thread 0x7fffeaff5700 (LWP 28292)] [New Thread 0x7fffea7f4700 (LWP 28293)] [swscaler @ 0x55555716d540] [swscaler @ 0x5555571aca00] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555571b99c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557227140] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555572533c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555571da9c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555572093c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557193680] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557288cc0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555572b10c0] deprecated pixel format used, make sure you did set range correctly [Thread 0x7fffedffb700 (LWP 28289) exited] [Thread 0x7fffeaff5700 (LWP 28292) exited] [Thread 0x7fffea7f4700 (LWP 28293) exited] [Thread 0x7fffeb7f6700 (LWP 28291) exited] [New Thread 0x7fffea7f4700 (LWP 28294)] [Thread 0x7fffebff7700 (LWP 28290) exited] [Thread 0x7fffed7fa700 (LWP 28288) exited] [Thread 0x7fffecff9700 (LWP 28287) exited] [Thread 0x7fffec7f8700 (LWP 28286) exited] [New Thread 0x7fffeaff5700 (LWP 28295)] [New Thread 0x7fffeb7f6700 (LWP 28296)] [New Thread 0x7fffebff7700 (LWP 28297)] [New Thread 0x7fffedffb700 (LWP 28298)] [New Thread 0x7fffed7fa700 (LWP 28299)] [New Thread 0x7fffecff9700 (LWP 28300)] [New Thread 0x7fffec7f8700 (LWP 28301)] [swscaler @ 0x55555716d540] [swscaler @ 0x5555571aca00] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555571b99c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557227140] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555572533c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555571da9c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555572093c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557193680] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x555557288cc0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x55555716d540] [swscaler @ 0x5555572b10c0] deprecated pixel format used, make sure you did set range correctly [New Thread 0x7fffe9ff3700 (LWP 28302)] [New Thread 0x7fffe97f2700 (LWP 28303)] [New Thread 0x7fffe8ff1700 (LWP 28304)] [New Thread 0x7fffe87f0700 (LWP 28305)] [New Thread 0x7fffe7fef700 (LWP 28306)] [New Thread 0x7fffe77ee700 (LWP 28307)] [New Thread 0x7fffe6fed700 (LWP 28308)] [New Thread 0x7fffe67ec700 (LWP 28309)] Output #0, avi, to 'out.avi': Metadata: ISFT : Lavf59.34.101 Stream #0:0: Video: ljpeg (LJPG / 0x47504A4C), yuvj420p(pc, bt470bg/unknown/unknown, progressive), 999x999, q=2-31, 200 kb/s, 25 fps, 25 tbn Metadata: encoder : Lavc59.52.102 ljpeg [New Thread 0x7fffe5feb700 (LWP 28310)] frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kb--Type <RET> for more, q to quit, c to continue without paging-- Thread 43 "ffmpeg_g" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe9ff3700 (LWP 28302)] 0x0000555555d4c78d in ljpeg_encode_yuv_mb (mb_y=499, mb_x=480, predictor=1, frame=0x5555572e55c0, pb=0x7fffe9ff2d30, s=0x5555572e7500) at libavcodec/ljpegenc.c:179 179 ff_mjpeg_encode_dc(pb, *ptr - pred, s->huff_size_dc_chrominance, s->huff_code_dc_chrominance); (gdb) bt #0 0x0000555555d4c78d in ljpeg_encode_yuv_mb (mb_y=499, mb_x=480, predictor=1, frame=0x5555572e55c0, pb=0x7fffe9ff2d30, s=0x5555572e7500) at libavcodec/ljpegenc.c:179 #1 ljpeg_encode_yuv (frame=0x5555572e55c0, pb=0x7fffe9ff2d30, avctx=0x5555572e7100) at libavcodec/ljpegenc.c:202 #2 ljpeg_encode_frame (avctx=0x5555572e7100, pkt=0x5555572cac40, pict=0x5555572e55c0, got_packet=0x5555572e4aa8) at libavcodec/ljpegenc.c:247 #3 0x0000555555c096b2 in ff_encode_encode_cb (avctx=0x5555572e7100, avpkt=0x5555572cac40, frame=frame@entry=0x5555572e55c0, got_packet=got_packet@entry=0x5555572e4aa8) at libavcodec/encode.c:199 #4 0x0000555555c602d2 in worker (v=<optimized out>) at libavcodec/frame_thread_encoder.c:114 #5 0x00007ffff7844609 in start_thread (arg=<optimized out>) at pthread_create.c:477 #6 0x00007ffff7769133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
==28341== Invalid read of size 1 ==28341== at 0x90078D: ljpeg_encode_yuv_mb (ljpegenc.c:179) ==28341== by 0x90078D: ljpeg_encode_yuv (ljpegenc.c:202) ==28341== by 0x90078D: ljpeg_encode_frame (ljpegenc.c:247) ==28341== by 0x7BD6B1: ff_encode_encode_cb (encode.c:199) ==28341== by 0x8142D1: worker (frame_thread_encoder.c:114) ==28341== by 0x4FBC608: start_thread (pthread_create.c:477) ==28341== by 0x50F6132: clone (clone.S:95)
Attachments (1)
Change History (2)
by , 2 years ago
comment:1 by , 2 years ago
Keywords: | crash SIGSEGV added |
---|---|
Priority: | normal → important |
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
Note:
See TracTickets
for help on using tickets.