[FFmpeg-trac] #5031(undetermined:new): signal 7 (SIGBUS) android NDK

FFmpeg trac at avcodec.org
Mon Nov 23 11:57:03 CET 2015


#5031: signal 7 (SIGBUS) android NDK
-------------------------------------+-------------------------------------
             Reporter:  debug        |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  ndk, sigbus  |               Blocked By:
  7, overlay filter                  |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 The ffmpeg binary fails with the following output.
 How to reproduce:
 {{{
 % ffmpeg -y -i
 /storage/emulated/0/Android/data/com.abc.xyz/cache/tmp/tempvideo_overlay.mp4
 -i /data/user/0/com.abc.xyz/files/overlay.png -filter_complex overlay
 =(main_w-overlay_w):(main_h-overlay_h) -codec:a copy
 ffmpeg version N-76813-g56bdf61
 built on Debian 8.2 with arm-linux-androideabi-4.9 toolchain

 compiled with
 configuration: --libdir=/tmp/ffmpeg/build/lib --prefix=/tmp/ffmpeg/build
 --target-os=linux --arch=arm --extra-cflags=-pie --enable-cross-compile
 --enable-pic --cross-prefix=arm-linux-androideabi- --enable-static
 --disable-debug --disable-symver --disable-doc --disable-ffplay --disable-
 ffprobe --disable-ffserver --disable-avdevice --disable-decoders
 --disable-encoders --disable-muxers --disable-filters --disable-devices
 --disable-protocols --disable-parsers --disable-demuxers --disable-
 demuxer=sbg --enable-swscale --enable-protocol=file --enable-protocol=pipe
 --enable-demuxer=mov --enable-demuxer=image2 --enable-parser=h264
 --enable-muxer=mp4 --enable-decoder=h264 --enable-decoder=aac --enable-
 decoder='mjpeg,png' --enable-libx264 --enable-libfdk_aac --enable-
 encoder=libx264 --enable-encoder=libfdk_aac --enable-nonfree --enable-
 filter=overlay --enable-filter=scale --enable-filter=amerge --enable-
 filter=aresample --enable-filter=transpose --disable-bsfs --enable-
 bsf=chomp --disable-network --enable-asm --enable-gpl --enable-version3
 --enable-memalign-hack --enable-stripping --extra-cflags='-O3 -Wall
 -mthumb -pipe -fpie -fpic -fasm -finline-limit=300 -ffast-math -fstrict-
 aliasing -Werror=strict-aliasing -fmodulo-sched -fmodulo-sched-allow-
 regmoves -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -marm
 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mvectorize-with-neon-quad
 -I/tmp/x264/build/include' --extra-ldflags='-Wl,--fix-cortex-a8 -pie
 -L/tmp/x264/build/lib'
 }}}

 Output:
 {{{
 11-23 16:17:00.210 15230-15247/? A/libc: Fatal signal 7 (SIGBUS), code 1,
 fault addr 0xb272af1c in tid 15247 (bin)
 11-23 16:17:00.320 161-161/? A/DEBUG: *** *** *** *** *** *** *** *** ***
 *** *** *** *** *** *** ***
 11-23 16:17:00.320 161-161/? A/DEBUG: Build fingerprint: 'google/Mi-498
 /Mi-498_sprout:6.0/MRA58M/2280749:user/release-keys'
 11-23 16:17:00.320 161-161/? A/DEBUG: Revision: '0'
 11-23 16:17:00.320 161-161/? A/DEBUG: ABI: 'arm'
 11-23 16:17:00.320 161-161/? A/DEBUG: pid: 15230, tid: 15247, name: bin
 >>> /data/user/0/com.abc.xyz/files/libdir/bin <<<
 11-23 16:17:00.320 161-161/? A/DEBUG: signal 7 (SIGBUS), code 1
 (BUS_ADRALN), fault addr 0xb272af1c
 11-23 16:17:00.323 161-161/? A/DEBUG:     r0 b27228c8  r1 b8239850  r2
 b272af1c  r3 b8239880
 11-23 16:17:00.323 161-161/? A/DEBUG:     r4 00000000  r5 b821b230  r6
 00000001  r7 b272aef0
 11-23 16:17:00.323 161-161/? A/DEBUG:     r8 b27a7670  r9 b821faa0  sl
 b821b230  fp b272af1c
 11-23 16:17:00.323 161-161/? A/DEBUG:     ip 0000000e  sp b4ad4e68  lr
 b6df256b  pc b6dfbc7c  cpsr 200f0010
 11-23 16:17:00.324 161-161/? A/DEBUG:     #00 pc 00352c7c
 /data/data/com.abc.xyz/files/libdir/bin
 11-23 16:17:00.325 161-161/? A/DEBUG:     #01 pc 00349567
 /data/data/com.abc.xyz/files/libdir/bin

 }}}

 Please request any additional information required.
 Thank you.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5031>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list