[FFmpeg-trac] #713(undetermined:new): sws_scale crashes after deinterlacing with avpicture_deinterlace (only on recent versions of FFmpeg)
FFmpeg
trac at avcodec.org
Thu Dec 8 13:14:27 CET 2011
#713: sws_scale crashes after deinterlacing with avpicture_deinterlace (only on
recent versions of FFmpeg)
-------------------------------------+-------------------------------------
Reporter: Andrea3000 | Owner:
Type: defect | Status: new
Priority: important | Component:
Version: git-master | undetermined
Keywords: sws_scale | Resolution:
avpicture_deinterlace | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Andrea3000):
Replying to [comment:4 michael]:
> You could try valgrind or provide a compileable testcase.
I apologise in advanced if the informations I'm going to report aren't
useful. I'm a newbie developer and I've still to learn a lot of stuff..
I paste here the relevant output from valgrind:
{{{
==27261== 1 errors in context 1 of 8:
==27261== Thread 1:
==27261== Use of uninitialised value of size 8
==27261== at 0x1021E803D: ff_h264_decode_seq_parameter_set (in
<path/to/my/app>/MyPlayer.app/Contents/Frameworks/libavcodec.dylib)
==27261== by 0x7FFF5FBFDCAF: ???
==27261== by 0x10820C8BF: ???
==27261== by 0x7FFF5FBFDCB0: ???
==27261== by 0x38003E9F: ???
==27261== by 0x11B233E9F: ???
==27261==
==27261==
==27261== 1 errors in context 2 of 8:
==27261== Conditional jump or move depends on uninitialised value(s)
==27261== at 0x1021E802B: ff_h264_decode_seq_parameter_set (in
<path/to/my/app>/MyPlayer.app/Contents/Frameworks/libavcodec.dylib)
==27261== by 0x7FFF5FBFDCAF: ???
==27261== by 0x10820C8BF: ???
==27261== by 0x7FFF5FBFDCB0: ???
==27261== by 0x38003E9F: ???
==27261== by 0x11B233E9F: ???
==27261==
==27261==
==27261== 1 errors in context 3 of 8:
==27261== Conditional jump or move depends on uninitialised value(s)
==27261== at 0x1021E7FCA: ff_h264_decode_seq_parameter_set (in
<path/to/my/app>/MyPlayer.app/Contents/Frameworks/libavcodec.dylib)
==27261== by 0x7FFF5FBFDCAF: ???
==27261== by 0x10820C8BF: ???
==27261== by 0x7FFF5FBFDCB0: ???
==27261== by 0x38003E9F: ???
==27261== by 0x11B233E9F: ???
==27261==
==27261==
==27261== 1 errors in context 4 of 8:
==27261== Conditional jump or move depends on uninitialised value(s)
==27261== at 0x1021E7F81: ff_h264_decode_seq_parameter_set (in
<path/to/my/app>/MyPlayer.app/Contents/Frameworks/libavcodec.dylib)
==27261== by 0x7FFF5FBFDCAF: ???
==27261== by 0x10820C8BF: ???
==27261== by 0x7FFF5FBFDCB0: ???
==27261== by 0x38003E9F: ???
==27261== by 0x11B233E9F: ???
==27261==
==27261==
==27261== 3786240 errors in context 5 of 8:
==27261== Thread 9:
==27261== Invalid read of size 8
==27261== at 0x102C50D84: yv12touyvy_MMX2 (in
<path/to/my/app>/MyPlayer.app/Contents/Frameworks/libswscale.dylib)
==27261== by 0x43F: ???
==27261== Address 0x12b9b6088 is 8 bytes inside a block of size 3,110,400
free'd
==27261== at 0x1001A552D: free (vg_replace_malloc.c:430)
==27261== by 0x10009A445: -[VideoTrack decodePacket] (in
<path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer)
==27261== by 0x10009AD7F: -[VideoTrack decodeThreadFunc:] (in
<path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer)
==27261== by 0x1001EA113: __NSThread__main__ (in
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==27261== by 0x102FFAFD5: _pthread_start (in
/usr/lib/libSystem.B.dylib)
==27261== by 0x102FFAE88: thread_start (in /usr/lib/libSystem.B.dylib)
==27261==
==27261==
==27261== 3786240 errors in context 6 of 8:
==27261== Invalid read of size 8
==27261== at 0x102C50D80: yv12touyvy_MMX2 (in
<path/to/my/app>/MyPlayer.app/Contents/Frameworks/libswscale.dylib)
==27261== by 0x43F: ???
==27261== Address 0x12b9b6080 is 0 bytes inside a block of size 3,110,400
free'd
==27261== at 0x1001A552D: free (vg_replace_malloc.c:430)
==27261== by 0x10009A445: -[VideoTrack decodePacket] (in
<path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer)
==27261== by 0x10009AD7F: -[VideoTrack decodeThreadFunc:] (in
<path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer)
==27261== by 0x1001EA113: __NSThread__main__ (in
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==27261== by 0x102FFAFD5: _pthread_start (in
/usr/lib/libSystem.B.dylib)
==27261== by 0x102FFAE88: thread_start (in /usr/lib/libSystem.B.dylib)
==27261==
==27261==
==27261== 3786240 errors in context 7 of 8:
==27261== Invalid read of size 8
==27261== at 0x102C50D76: yv12touyvy_MMX2 (in
<path/to/my/app>/MyPlayer.app/Contents/Frameworks/libswscale.dylib)
==27261== by 0x43F: ???
==27261== Address 0x12bc2ed80 is 2,592,000 bytes inside a block of size
3,110,400 free'd
==27261== at 0x1001A552D: free (vg_replace_malloc.c:430)
==27261== by 0x10009A445: -[VideoTrack decodePacket] (in
<path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer)
==27261== by 0x10009AD7F: -[VideoTrack decodeThreadFunc:] (in
<path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer)
==27261== by 0x1001EA113: __NSThread__main__ (in
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==27261== by 0x102FFAFD5: _pthread_start (in
/usr/lib/libSystem.B.dylib)
==27261== by 0x102FFAE88: thread_start (in /usr/lib/libSystem.B.dylib)
==27261==
==27261==
==27261== 3786240 errors in context 8 of 8:
==27261== Invalid read of size 8
==27261== at 0x102C50D6F: yv12touyvy_MMX2 (in
<path/to/my/app>/MyPlayer.app/Contents/Frameworks/libswscale.dylib)
==27261== by 0x43F: ???
==27261== Address 0x12bbb0480 is 2,073,600 bytes inside a block of size
3,110,400 free'd
==27261== at 0x1001A552D: free (vg_replace_malloc.c:430)
==27261== by 0x10009A445: -[VideoTrack decodePacket] (in
<path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer)
==27261== by 0x10009AD7F: -[VideoTrack decodeThreadFunc:] (in
<path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer)
==27261== by 0x1001EA113: __NSThread__main__ (in
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==27261== by 0x102FFAFD5: _pthread_start (in
/usr/lib/libSystem.B.dylib)
==27261== by 0x102FFAE88: thread_start (in /usr/lib/libSystem.B.dylib)
}}}
This output is the result of about 1 second of movie playback and it has
been generated with:
{{{
valgrind -v --error-limit=no --dsymutil=yes --alignment=16 --leak-
check=full <path/to/my/app>/MyPlayer.app/Contents/MacOS/MyPlayer
}}}
Are these the information you need or I have to run valgrind with
different command line options?
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/713#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list