Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#6150 closed defect (invalid)

msmpeg4dec.c ff_msmpeg4_decode_init crash issue

Reported by: wqmffmpeg Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: wangqm0629@163.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:
I built ffmpeg(3.1.3) binary in my mobile phone
play ac3_vc1_fengjing_002.ts(vc1+ac3) by ffmpeg, then ff_msmpeg4_decode_init() crash
from backtrace, crash happen in below source code:
INIT_VLC_STATIC(&ff_msmp4_mb_i_vlc, MB_INTRA_VLC_BITS, 64,

&ff_msmp4_mb_i_table[0][1], 4, 2,
&ff_msmp4_mb_i_table[0][0], 4, 2, 536);

Backtrace:

#00 pc 00070692 /system/lib/libavcodec.so (ff_msmpeg4_decode_init+1237)
#01 pc 0007ca4f /system/lib/libavcodec.so
#02 pc 002cbd99 /system/lib/libavcodec.so (avcodec_open2+1804)
#03 pc 000c1125 /system/lib/libavformat.so
#04 pc 000c5c17 /system/lib/libavformat.so (avformat_find_stream_info+2558)

Change History (7)

comment:1 Changed 6 months ago by wqmffmpeg

ac3_vc1_fengjing_002.ts file in address below:
http://pan.baidu.com/s/1o8k9m3o

comment:2 Changed 6 months ago by cehoyos

  • Priority changed from critical to normal

Please test current FFmpeg git head and provide complete backtrace, disassembly and register dump as explained on https://ffmpeg.org/bugreports.html to make this a valid ticket, also provide your configure line.

comment:3 follow-up: Changed 6 months ago by wqmffmpeg

after test current FFmpeg git head, crash still occur
My configure line is below:
--arch=aarch64 --target-os=linux --enable-cross-compile --cross-prefix=/home/workspace/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- --sysroot=/home/workspace/prebuilts/ndk/current/platforms/android-21/arch-arm64 --enable-shared --enable-gpl --disable-avdevice --disable-ffserver --disable-postproc --disable-ffplay --disable-static --enable-yasm --enable-asm --extra-cflags='-DANDROID -std=gnu99 -Wall -O3 -fomit-frame-pointer' --disable-avresample

comment:4 in reply to: ↑ 3 ; follow-up: Changed 6 months ago by cehoyos

Replying to wqmffmpeg:

after test current FFmpeg git head, crash still occur

Please provide complete backtrace, disassembly and register dump as explained on https://ffmpeg.org/bugreports.html to make this a valid ticket.

My configure line is below:
--arch=aarch64 --target-os=linux --enable-cross-compile --cross-prefix=/home/workspace/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- --sysroot=/home/workspace/prebuilts/ndk/current/platforms/android-21/arch-arm64 --enable-shared --enable-gpl --disable-avdevice --disable-ffserver --disable-postproc --disable-ffplay --disable-static --enable-yasm --enable-asm --extra-cflags='-DANDROID -std=gnu99 -Wall -O3 -fomit-frame-pointer' --disable-avresample

Do you see the same crash when compiling for 32bit arm?

comment:5 in reply to: ↑ 4 Changed 6 months ago by wqmffmpeg

Thanks for your help
The crash only happen in 32bit arm
Maybe this is a configuration issue, I will check it more
in 32bit arm platform, the address of ff_msmp4_mb_i_vlc symbol is 0xf5773638, this is fault
My 32bit arm configure line is below:
--arch=arm --target-os=linux --enable-cross-compile --cross-prefix=/home/workspace/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../../../arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi- --sysroot=/home/workspace/prebuilts/ndk/current/platforms/android-21/arch-arm --enable-shared --enable-gpl --disable-avdevice --disable-ffserver --disable-postproc --disable-ffplay --disable-static --enable-yasm --enable-asm --disable-avresample
Replying to cehoyos:

Replying to wqmffmpeg:

after test current FFmpeg git head, crash still occur

Please provide complete backtrace, disassembly and register dump as explained on https://ffmpeg.org/bugreports.html to make this a valid ticket.

My configure line is below:
--arch=aarch64 --target-os=linux --enable-cross-compile --cross-prefix=/home/workspace/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- --sysroot=/home/workspace/prebuilts/ndk/current/platforms/android-21/arch-arm64 --enable-shared --enable-gpl --disable-avdevice --disable-ffserver --disable-postproc --disable-ffplay --disable-static --enable-yasm --enable-asm --extra-cflags='-DANDROID -std=gnu99 -Wall -O3 -fomit-frame-pointer' --disable-avresample

Do you see the same crash when compiling for 32bit arm?

comment:6 Changed 6 months ago by wqmffmpeg

  • Resolution set to invalid
  • Status changed from new to closed

ffmpeg compile configuration issue
not ffmpeg source code issue
just invalid it

comment:7 Changed 6 months ago by cehoyos

  • Component changed from avcodec to undetermined
  • Reproduced by developer unset
  • Version changed from 3.1.5 to unspecified
Note: See TracTickets for help on using tickets.