Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#3061 closed defect (fixed)

jpeg2000: deadlock with fuzzed file

Reported by: ami_stuff Owned by:
Priority: important Component: avformat
Version: git-master Keywords: deadlock
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

http://www.datafilehost.com/d/f5061faf

(gdb) r -threads 1 -i ./deadj2k.avi -an -f null -
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /media/sdb1/ffmpeg-HEAD-42a8d8a/ffmpeg_g -threads 1 -i ./deadj2k.avi -an -f null -
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
ffmpeg version 2.0-42a8d8a Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 14 2013 21:03:52 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --disable-yasm --disable-ffprobe --disable-ffserver --enable-gpl
  libavutil      52. 46.101 / 52. 46.101
  libavcodec     55. 36.100 / 55. 36.100
  libavformat    55. 19.102 / 55. 19.102
  libavdevice    55.  4.100 / 55.  4.100
  libavfilter     3. 88.101 /  3. 88.101
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[avi @ 0x9161e40] non-interleaved AVI
[jpeg2000 @ 0x9165640] Psot 14082 too big
[jpeg2000 @ 0x9165640] error during processing marker segment ff90
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, avi, from './deadj2k.avi':
  Duration: 00:00:24.80, start: 0.000000, bitrate: 1032 kb/s
    Stream #0:0: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 44100 Hz, stereo, s16p, 352 kb/s
    Stream #0:1: Video: jpeg2000 (JPEG 2000 codestream restriction 0) (LJ2K / 0x4B324A4C), rgb24, 352x244, 5 tbr, 5 tbn, 5 tbc
[New Thread 0xb7df8b70 (LWP 2820)]
[New Thread 0xb75f8b70 (LWP 2821)]
[New Thread 0xb6df8b70 (LWP 2822)]
[New Thread 0xb65f8b70 (LWP 2823)]
[New Thread 0xb5df8b70 (LWP 2824)]
[New Thread 0xb55f8b70 (LWP 2825)]
[New Thread 0xb4df8b70 (LWP 2826)]
[New Thread 0xb45f8b70 (LWP 2827)]
[New Thread 0xb3df8b70 (LWP 2828)]
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf55.19.102
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 352x244, q=2-31, 200 kb/s, 90k tbn, 5 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (jpeg2000 -> rawvideo)
Press [q] to stop, [?] for help
[jpeg2000 @ 0x9165640] Psot 14082 too big
[jpeg2000 @ 0x9165640] error during processing marker segment ff90
Error while decoding stream #0:1: Invalid data found when processing input
[jpeg2000 @ 0x9165640] SOC marker not present
Error while decoding stream #0:1: Invalid data found when processing input
[null @ 0x9166e40] Encoder did not produce proper pts, making some up.
[jpeg2000 @ 0x9165640] Support for 3 components is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[jpeg2000 @ 0x9165640] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
[jpeg2000 @ 0x9165640] error during processing marker segment ff51
Error while decoding stream #0:1: Not yet implemented in FFmpeg, patches welcome
[jpeg2000 @ 0x9165640] unsupported marker 0xFB90 at pos 0x48
[jpeg2000 @ 0x9165640] Missing SOT
Error while decoding stream #0:1: Invalid data found when processing input
[jpeg2000 @ 0x9165640] [IMGUTILS @ 0xbffff034] Picture size 4294934880x244 is invalid
[jpeg2000 @ 0x9165640] video_get_buffer: image parameters invalid
[jpeg2000 @ 0x9165640] get_buffer() failed
[jpeg2000 @ 0x9165640] thread_get_buffer() failed
Error while decoding stream #0:1: Invalid argument
[jpeg2000 @ 0x9165640] SOC marker not present
Error while decoding stream #0:1: Invalid data found when processing input
[jpeg2000 @ 0x9165640] unsupported marker 0xF751 at pos 0x2
[jpeg2000 @ 0x9165640] error during processing marker segment ff90
Error while decoding stream #0:1: Invalid data found when processing input
[jpeg2000 @ 0x9165640] Invalid sample separation 17/1
[jpeg2000 @ 0x9165640] error during processing marker segment ff51
Error while decoding stream #0:1: Invalid data found when processing input
[jpeg2000 @ 0x9165640] unsupported marker 0xFF10 at pos 0x48
[jpeg2000 @ 0x9165640] Missing SOT
Error while decoding stream #0:1: Invalid data found when processing input
[jpeg2000 @ 0x9165640] Invalid sample separation 1/33
[jpeg2000 @ 0x9165640] error during processing marker segment ff51
Error while decoding stream #0:1: Invalid data found when processing input
[jpeg2000 @ 0x9165640] unsupported marker 0xF790 at pos 0x48
[jpeg2000 @ 0x9165640] Missing SOT
Error while decoding stream #0:1: Invalid data found when processing input
[jpeg2000 @ 0x9165640] [IMGUTILS @ 0xbffff034] Picture size 16773472x244 is invalid
[jpeg2000 @ 0x9165640] video_get_buffer: image parameters invalid
[jpeg2000 @ 0x9165640] get_buffer() failed
[jpeg2000 @ 0x9165640] thread_get_buffer() failed
Error while decoding stream #0:1: Invalid argument
[jpeg2000 @ 0x9165640] error during processing marker segment ff51
Error while decoding stream #0:1: Invalid argument
frame=   34 fps=0.0 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps= 34 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps= 23 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps= 17 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps= 14 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps= 11 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=9.7 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=8.5 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=7.6 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=6.8 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=6.2 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=5.7 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=5.2 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=4.9 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=4.5 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=4.2 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=4.0 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=3.8 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=3.6 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0   frame=   34 fps=3.4 q=0.0 size=N/A time=00:00:06.80 bitrate=N/A dup=13 drop=0    
Program received signal SIGINT, Interrupt.
0xb7ec4951 in gettimeofday () at ../sysdeps/unix/syscall-template.S:82
82	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0  0xb7ec4951 in gettimeofday () at ../sysdeps/unix/syscall-template.S:82
#1  0x088d0078 in av_gettime () at libavutil/time.c:43
#2  0x080a45c2 in transcode () at ffmpeg.c:3239
#3  main (argc=<optimized out>, argv=<optimized out>) at ffmpeg.c:3430
(gdb) 

Attachments (1)

deadj2k_cut.avi (2.0 MB ) - added by Carl Eugen Hoyos 11 years ago.

Download all attachments as: .zip

Change History (4)

by Carl Eugen Hoyos, 11 years ago

Attachment: deadj2k_cut.avi added

comment:1 by Carl Eugen Hoyos, 11 years ago

Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Many different backtraces possible, ffmpeg still reacts on "q". Apparently also reproducible with ffplay -autoexit.

Since it is reproducible with a severely cut file, it is probably not an eof problem.

comment:2 by Michael Niedermayer, 10 years ago

Resolution: fixed
Status: openclosed

comment:3 by Carl Eugen Hoyos, 10 years ago

Component: undeterminedavformat
Keywords: deadlock added
Note: See TracTickets for help on using tickets.