vfp-ffmpeg tests failed to execute

Bug #1089886 reported by Naresh Kamboju
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
Medium
vishal
Linaro big.LITTLE
Invalid
Undecided
vishal

Bug Description

vfp-ffmpeg-a7 test case is failed to execute.
test case is waiting forever and not executing further.

but system is still running i can kill the process and come out.

I have observed same behavior with below 4 test cases.

vfp-ffmpeg-a7
vfp-ffmpeg-a15
vfp-ffmpeg-switching
vfp-ffmpeg-simultaneous-thread-switching

log:
-----
root@android:/ # run_stress_switcher_tests.sh -t 15

Number of CPUs successfully brought up during boot = 2

[ 24.638228] init: sys_prop: permission denied uid:1003 name:service.bootanim.exit

Running vfp-ffmpeg-a7 ..

Switching to little mode if not already in.
Running /system/bin/boot-a7.sh -c 0
cpu0 is big. Switching to LITTLE..
***bl-agitator***
CPU count: 2
CPU0: big freq 2400000 LITTLE freq 350000
CPU1: big freq 2400000 LITTLE freq 350000
Time elapsed: 0:00:00.052
cpu0 successfully switched to LITTLE.

Switching to little mode if not already in.
Running /system/bin/boot-a7.sh -c 1
cpu1 is big. Switching to LITTLE..
***bl-agitator***
CPU count: 2
CPU0: big freq 2400000 LITTLE freq 350000
CPU1: big freq 2400000 LITTLE freq 350000
Time elapsed: 0:00:00.060
cpu1 successfully switched to LITTLE.

Running vfp-ffmpeg.sh /data/boxes/big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG 1

*** vfp ffmpeg Test ***

Iteration 1/1:
^CAbnormal Exit
test cleanup

cleanup done
cleanup done
1|root@android:/ #

Linux kernel:
Linux version 3.7.0-rc7-00749-g5ba1d5b (naresh@Linaro) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #7 SMP Thu Dec 13 02:53:55 IST 2012

Full log results:
https://pastebin.linaro.org/1288/

Tags: qa-services
summary: - vfp-ffmpeg test failed to execute
+ vfp-ffmpeg tests failed to execute
Changed in linaro-big-little-system:
assignee: nobody → vishal (vishalbhoj)
Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :

I have tried to debug this issue to isolate the root cause but the test case is not printing any thing on the terminal and running like forever loop. test executed with strace. please find attached strace and provide your analysis.
this strace log collected for 5 mins and interrupted by CTRL+C.
-Naresh Kamboju

Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :
Revision history for this message
vishal (vishalbhoj) wrote :

The test did not hang when I ran on the hackbox, however the test failed . Here are the logs:

root@android:/ # run_stress_switcher_tests.sh -t 15

Number of CPUs successfully brought up during boot = 2

Running vfp-ffmpeg-a7 ..

Switching to little mode if not already in.
Running /system/bin/boot-a7.sh -c 0
cpu0 is LITTLE

Switching to little mode if not already in.
Running /system/bin/boot-a7.sh -c 1
cpu1 is LITTLE

Running vfp-ffmpeg.sh /data/boxes/big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG 1

*** vfp ffmpeg Test ***

Iteration 1/1:

 vfp-ffmpeg.sh failed. Abort!!
Test failed. Abort!!
vfp-ffmpeg-a7 : FAIL

Summary ..
Total Tests = 1

Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :

the above test case was waiting after

*** vfp ffmpeg Test ***

Iteration 1/1:

Enter+key is required here to come out of execution.

Root cause:
ffmpeg package has been updated to latest version 1.0.1 where option -map has been change.

root@android:/ # cd /data/boxes/
root@android:/data/boxes #ffmpeg -i big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG -map 0 file.wav

ffmpeg version 1.0.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec 13 2012 22:37:46 with gcc 4.7.3 (Linaro GCC 4.7-2012.11-1~dev) 20121205 (prerelease)
  configuration: --arch=arm --target-os=linux --prefix=/system --bindir=/system/bin --libdir=/system/lib --enable-shared --enable-gpl --disable-avdevice --enable-runtime-cpudetect --disable-libvpx --enable-libx264 --enable-cross-compile --cross-prefix=arm-linux-androideabi- --extra-ldflags='-nostdlib -Wl,-dynamic-linker,/system/bin/linker,-z,muldefs,-z,nocopyreloc,--no-undefined -L/mnt/jenkins/workspace/linaro-android-restricted_vexpress-tc2-isw-jb-gcc47-armlt-stable-open-linaro-android-12.12-iks-release/build/ -L/mnt/jenkins/workspace/linaro-android-restricted_vexpress-tc2-isw-jb-gcc47-armlt-stable-open-linaro-android-12.12-iks-release/build/out/target/product/vexpress/system/lib -L/mnt/jenkins/workspace/linaro-android-restricted_vexpress-tc2-isw-jb-gcc47-armlt-stable-open-linaro-android-12.12-iks-release/build/out/target/product/vexpress/obj/STATIC_LIBRARIES/libvpx_intermediates -ldl -lc' --extra-cflags='-fno-exceptions -Wno-multichar -msoft-float -fpic -fPIE -ffunction-sections -fdata-sections -funwind-ta libavutil 51. 73.101 / 51. 73.101
  libavcodec 54. 59.100 / 54. 59.100
  libavformat 54. 29.104 / 54. 29.104
  libavfilter 3. 17.100 / 3. 17.100
  libswscale 2. 1.101 / 2. 1.101
  libswresample 0. 15.100 / 0. 15.100
  libpostproc 52. 0.100 / 52. 0.100
Input #0, ogg, from 'big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG':
  Duration: 00:00:04.00, start: 0.000000, bitrate: 147 kb/s
    Stream #0:0: Audio: vorbis, 48000 Hz, stereo, s16, 128 kb/s
    Metadata:
      ENCODER : SUPER(C)
Output #0, wav, to 'file.wav':
  Metadata:
    encoder : Lavf54.29.104
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      ENCODER : SUPER(C)
Stream mapping:
  Stream #0:0 -> #0:0 (vorbis -> pcm_s16le)
Press [q] to stop, [?] for help

this command is not responding from here.
I have pressed q did not work
I have pressed ? did not work
I have pressed CTRL+C did not work
again CRTL+C did not work.
again CRTL+C worked this time and program returned from execution.

Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :

same test case command works in host machine with latest ffmpeg version 1.0.1
so bug is around ffmpeg+android.

naresh@Linaro:~/Downloads/ffmpeg-dir/ffmpeg-1.0.1$ ffmpeg -i big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG -map 0 out-1.wav
ffmpeg version 1.0.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec 15 2012 17:17:53 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration:
  libavutil 51. 73.101 / 51. 73.101
  libavcodec 54. 59.100 / 54. 59.100
  libavformat 54. 29.104 / 54. 29.104
  libavdevice 54. 2.101 / 54. 2.101
  libavfilter 3. 17.100 / 3. 17.100
  libswscale 2. 1.101 / 2. 1.101
  libswresample 0. 15.100 / 0. 15.100
Input #0, ogg, from 'big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG':
  Duration: 00:00:04.00, start: 0.000000, bitrate: 147 kb/s
    Stream #0:0: Audio: vorbis, 48000 Hz, stereo, s16, 128 kb/s
    Metadata:
      ENCODER : SUPER(C)
Output #0, wav, to 'out-1.wav':
  Metadata:
    encoder : Lavf54.29.104
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      ENCODER : SUPER(C)
Stream mapping:
  Stream #0:0 -> #0:0 (vorbis -> pcm_s16le)
Press [q] to stop, [?] for help
size= 750kB time=00:00:04.00 bitrate=1536.1kbits/s
video:0kB audio:750kB subtitle:0 global headers:0kB muxing overhead 0.005988%
naresh@Linaro:~/Downloads/ffmpeg-dir/ffmpeg-1.0.1$

-Naresh Kamboju

Revision history for this message
vishal (vishalbhoj) wrote :

ffmpeg 1.0.1 is not functioning as expected on android and hence marking it as invalid wrt switcher project.

Changed in linaro-big-little-system:
status: New → Invalid
Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :

Out of interest, what happens if you redirect stdin from /dev/null?

ffmpeg -i big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG -map 0 file.wav </dev/null

Dunno whether this will help, but I seem to remember having to do this in the past for some reason.

Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote : Re: [Bug 1089886] Re: vfp-ffmpeg tests failed to execute
Download full text (3.7 KiB)

On 14 January 2013 17:23, Dave Martin <email address hidden> wrote:

> Out of interest, what happens if you redirect stdin from /dev/null?
>
> ffmpeg -i big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG -map 0
> file.wav </dev/null
>
> Dunno whether this will help, but I seem to remember having to do this
> in the past for some reason.
>
This is not helpful. seems to be ffmpeg 1.0.1 is having issues on android.
-Naresh Kamboju

ffmpeg -i big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG -map 0 file.wav
</dev/null
 ffmpeg version 1.0.1 Copyright (c) 2000-2012 the FFmpeg developers

  built on Jan 11 2013 02:12:35 with gcc 4.7.3 (Linaro GCC
4.7-2012.12-1~dev) 2)
  configuration: --arch=arm --target-os=linux --prefix=/system
--bindir=/system1
  libavcodec 54. 59.100 / 54. 59.100

  libavformat 54. 29.104 / 54. 29.104

  libavfilter 3. 17.100 / 3. 17.100

  libswscale 2. 1.101 / 2. 1.101

  libswresample 0. 15.100 / 0. 15.100

  libpostproc 52. 0.100 / 52. 0.100

Input #0, ogg, from 'big_buck_bunny_VORBIS_2Channel_48k_128K_short.OGG':

  Duration: 00:00:04.00, start: 0.000000, bitrate: 147 kb/s

    Stream #0:0: Audio: vorbis, 48000 Hz, stereo, s16, 128 kb/s

    Metadata:

      ENCODER : SUPER(C)

Output #0, wav, to 'file.wav':

  Metadata:

    encoder : Lavf54.29.104

    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s1s
    Metadata:

      ENCODER : SUPER(C)

Stream mapping:

  Stream #0:0 -> #0:0 (vorbis -> pcm_s16le)

Press [q] to stop, [?] for help

q

?

--
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1089886
>
> Title:
> vfp-ffmpeg tests failed to execute
>
> Status in Linaro big.LITTLE System:
> Invalid
>
> Bug description:
> vfp-ffmpeg-a7 test case is failed to execute.
> test case is waiting forever and not executing further.
>
> but system is still running i can kill the process and come out.
>
> I have observed same behavior with below 4 test cases.
>
> vfp-ffmpeg-a7
> vfp-ffmpeg-a15
> vfp-ffmpeg-switching
> vfp-ffmpeg-simultaneous-thread-switching
>
> log:
> -----
> root@android:/ # run_stress_switcher_tests.sh -t 15
>
>
> Number of CPUs successfully brought up during boot = 2
>
> [ 24.638228] init: sys_prop: permission denied uid:1003
> name:service.bootanim.exit
>
> Running vfp-ffmpeg-a7 ..
>
> Switching to little mode if not already in.
> Running /system/bin/boot-a7.sh -c 0
> cpu0 is big. Switching to LITTLE..
> ***bl-agitator***
> CPU count: 2
> CPU0: big freq 2400000 LITTLE freq 350000
> CPU1: big freq 2400000 LITTLE freq 350000
> Time elapsed: 0:00:00.052
> cpu0 successfully switched to LITTLE.
>
> Switching to little mode if not already in.
> Running /system/bin/boot-a7.sh -c 1
> cpu1 is big. Switching to LITTLE..
> ***bl-agitator***
> CPU count: 2
> CPU0: big freq 2400000 LITTLE freq 350000
> CPU1: big freq 2400000 LITTLE freq 350000
> Time elapsed: 0:00:00.060
> cpu1 successfully switched to LITTLE.
>
> Running vfp-ffmpeg.sh
> /data/boxes/big_buck_bunny_VORBIS_2Chan...

Read more...

Changed in linaro-android:
assignee: nobody → vishal (vishalbhoj)
Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :

Bug reproduced on Android build=99
https://android-build.linaro.org/builds/~linaro-android-restricted/vexpress-linaro-iks/#build=99

Linux:
Linux localhost 3.8.0-rc4-00666-g9286af1 #1 SMP Thu Jan 31 01:47:40 UTC 2013 armv7l GNU/Linux

Test log can be found at:
https://pastebin.linaro.org/1535/

vishal (vishalbhoj)
Changed in linaro-android:
milestone: none → 13.02
importance: Undecided → Medium
Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :
vishal (vishalbhoj)
Changed in linaro-android:
status: New → In Progress
Revision history for this message
Naresh Kamboju (naresh-kamboju) wrote :

This bug has been fixed on build=119
https://snapshots.linaro.org/android/~linaro-android-restricted/vexpress-linaro-iks/119/
path="external/ffmpeg" revision="93244bd0b46c83edb27a55ec1c50ea8805b4dc0e"

vfp-ffmpeg-a7 : PASS
vfp-ffmpeg-a15 : PASS
vfp-ffmpeg-switching : PASS
vfp-ffmpeg-simultaneous-thread-switching : PASS

Summary ..
Total Tests = 4
Tests Passed = 4
Tests Failed = 0
root@android:/ #.

Test log link:
https://pastebin.linaro.org/1752/

Changed in linaro-android:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.