Hi all
I had some test repeatedly on leopard board.
videotest source is encoded and saved in SD card. /bin/loadmodules.sh is loaded.
I found some interesting(maybe, at least to me ^^) point.
At first I checked Free Memory Size and executed gst-launch and after checked Free Memory Size.
More times the command is executed, the Free memory size is lower.
At last Kernel panic happened.
Maybe It seems that There is a Memory leak in gstreamer.
/ # cat /proc/meminfo | grep MemFree -MemFree: 38576 kB/ # /usr/bin/gst-launch -e videotestsrc num-buffers=2000 ! dmaiaccel ! queue ! dmaienc_mpeg4 ! qtmux ! filesink location=/media/mmc1/test-07.mp4Setting pipeline to PAUSED ...Pipeline is PREROLLING ...Pipeline is PREROLLED ...Setting pipeline to PLAYING ...New clock: GstSystemClockGot EOS from element "pipeline0".Execution ended after 55226107834 ns.Setting pipeline to PAUSED ...Setting pipeline to READY ...Setting pipeline to NULL ...Freeing pipeline .../ # cat /proc/meminfo | grep MemFree -MemFree: 21540 kB/ # ls -als /media/mmc1/test-07.mp415168 -rwxr-xr-x 1 root root 15527760 Jan 1 00:32 /media/mmc1/test-07.mp4/ #
************************************************************************************* / # /usr/bin/gst-launch -e v4l2src always-copy=false num-buffers=2000 ! dmaiaccel ! queue ! dmaienc_mpeg4 ! qtmux ! filesink location=/media/mmc1/test-13.mp4Setting pipeline to PAUSED ...[ 2515.650000] mt9v113 1-003c: invalid control id 9963781[ 2515.660000] mt9v113 1-003c: invalid control id 9963782[ 2515.660000] mt9v113 1-003c: invalid control id 9963783[ 2515.670000] mt9v113 1-003c: invalid control id 9963784[ 2515.680000] mt9v113 1-003c: invalid control id 9963785[ 2515.690000] mt9v113 1-003c: invalid control id 9963786[ 2515.690000] mt9v113 1-003c: invalid control id 9963787[ 2515.700000] mt9v113 1-003c: invalid control id 9963788[ 2515.700000] mt9v113 1-003c: invalid control id 9963789[ 2515.710000] mt9v113 1-003c: invalid control id 9963790[ 2515.710000] mt9v113 1-003c: invalid control id 9963791[ 2515.720000] mt9v113 1-003c: invalid control id 9963792[ 2515.720000] mt9v113 1-003c: invalid control id 9963793[ 2515.730000] mt9v113 1-003c: invalid control id 9963796[ 2515.730000] mt9v113 1-003c: invalid control id 9963797[ 2515.740000] mt9v113 1-003c: invalid control id 9963798[ 2515.750000] mt9v113 1-003c: invalid control id 9963799[ 2515.750000] mt9v113 1-003c: invalid control id 9963800[ 2515.760000] mt9v113 1-003c: invalid control id 9963801[ 2515.760000] mt9v113 1-003c: invalid control id 9963802[ 2515.770000] mt9v113 1-003c: invalid control id 9963803[ 2515.770000] mt9v113 1-003c: invalid control id 9963804[ 2515.780000] mt9v113 1-003c: invalid control id 9963805[ 2515.780000] mt9v113 1-003c: invalid control id 9963806[ 2515.800000] vpfe-capture: hpitch = 640, vpitch = 480, bpp = 2[ 2515.810000] vpfe-capture: adjusted hpitch = 640, vpitch = 480, bpp = 2[ 2515.840000] gst-launch-0.10: page allocation failure. order:8, mode:0xd1[ 2515.860000] [<c00296cc>] (dump_stack+0x0/0x14) from [<c006b778>] (__alloc_pages_internal+0x3e8/0x400)[ 2515.870000] [<c006b390>] (__alloc_pages_internal+0x0/0x400) from [<c002a4f4>] (__dma_alloc+0x174/0x430)[ 2515.880000] [<c002a380>] (__dma_alloc+0x0/0x430) from [<c002a83c>] (dma_alloc_coherent+0x58/0x64)[ 2515.890000] [<c002a7e4>] (dma_alloc_coherent+0x0/0x64) from [<c0164f6c>] (__videobuf_mmap_mapper+0x114/0x220)[ 2515.900000] r7:c53ef220 r6:c56f25d0 r5:c12f4968 r4:c56de6a4[ 2515.910000] [<c0164e58>] (__videobuf_mmap_mapper+0x0/0x220) from [<c0162b58>] (videobuf_mmap_mapper+0x64/0x94)[ 2515.920000] r8:c56b4ee0 r7:40fd8000 r6:c032f6fc r5:c12f4968 r4:c56f25d0[ 2515.920000] [<c0162af4>] (videobuf_mmap_mapper+0x0/0x94) from [<c0158868>] (vpfe_mmap+0x50/0x90)[ 2515.930000] r5:c12f4968 r4:c56f2400[ 2515.940000] [<c0158818>] (vpfe_mmap+0x0/0x90) from [<c0148fa0>] (v4l2_mmap+0x48/0x58)[ 2515.940000] r6:000000ff r5:c12f4968 r4:00000000[ 2515.950000] [<c0148f58>] (v4l2_mmap+0x0/0x58) from [<c007f740>] (mmap_region+0x224/0x408)[ 2515.960000] [<c007f51c>] (mmap_region+0x0/0x408) from [<c007fcd8>] (do_mmap_pgoff+0x24c/0x2ac)[ 2515.970000] [<c007fa8c>] (do_mmap_pgoff+0x0/0x2ac) from [<c0028db0>] (do_mmap2+0x90/0xc0)[ 2515.980000] [<c0028d20>] (do_mmap2+0x0/0xc0) from [<c0025e20>] (ret_fast_syscall+0x0/0x2c)[ 2515.980000] Mem-info:[ 2515.990000] DMA per-cpu:[ 2515.990000] CPU 0: hi: 42, btch: 7 usd: 36[ 2515.990000] Active_anon:190 active_file:1181 inactive_anon:241[ 2515.990000] inactive_file:20181 unevictable:0 dirty:1 writeback:0 unstable:0[ 2515.990000] free:1874 slab:2729 mapped:738 pagetables:19 bounce:0[ 2516.010000] DMA free:7496kB min:1348kB low:1684kB high:2020kB active_anon:760kB inactive_anon:964kB active_file:4724kB inactive_file:80724kB unevictable:0kB present:113792kB pages_scanned:0 all_unreclaimable? no[ 2516.030000] lowmem_reserve[]: 0 0 0[ 2516.040000] DMA: 134*4kB 64*8kB 11*16kB 10*32kB 7*64kB 3*128kB 4*256kB 4*512kB 2*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 7496kB[ 2516.050000] 21365 total pagecache pages[ 2516.070000] 28672 pages of RAM[ 2516.070000] 1948 free pages[ 2516.070000] 2121 reserved pages[ 2516.080000] 2729 slab pages[ 2516.080000] 20932 pages shared[ 2516.080000] 0 pages swap cached[ 2516.090000] Unable to handle kernel NULL pointer dereference at virtual address 00000098[ 2516.090000] pgd = c40ec000[ 2516.100000] [00000098] *pgd=84b58031, *pte=00000000, *ppte=00000000[ 2516.100000] Internal error: Oops: 17 [#1] PREEMPT[ 2516.100000] Modules linked in: dm350mmap cmemk[ 2516.100000] CPU: 0 Not tainted (2.6.29-ridgerun-davinci1 #2)[ 2516.100000] PC is at dev_driver_string+0xc/0x44[ 2516.100000] LR is at __videobuf_mmap_mapper+0x128/0x220[ 2516.100000] pc : [<c013206c>] lr : [<c0164f80>] psr: 60000013[ 2516.100000] sp : c2a99e40 ip : c2a99e50 fp : c2a99e4c[ 2516.100000] r10: c50971e0 r9 : 00000096 r8 : c56b4ee0[ 2516.100000] r7 : c53ef220 r6 : c56f25d0 r5 : c12f4968 r4 : c56de6a4[ 2516.100000] r3 : ffffffff r2 : 00000000 r1 : 0000ba73 r0 : 00000000[ 2516.100000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user[ 2516.100000] Control: 0005317f Table: 840ec000 DAC: 00000015[ 2516.100000] Process gst-launch-0.10 (pid: 454, stack limit = 0xc2a98268)[ 2516.100000] Stack: (0xc2a99e40 to 0xc2a9a000)[ 2516.100000] 9e40: c2a99e7c c2a99e50 c0164f80 c0132070 00000000 00000000 00000000 c56f25d0[ 2516.100000] 9e60: c12f4968 c032f6fc 40fd8000 c56b4ee0 c2a99e94 c2a99e80 c0162b58 c0164e68[ 2516.100000] 9e80: c56f2400 c12f4968 c2a99eb4 c2a99e98 c0158868 c0162b04 30e2eed5 00000000[ 2516.100000] 9ea0: c12f4968 000000ff c2a99ec4 c2a99eb8 c0148fa0 c0158828 c2a99f34 c2a99ec8[ 2516.100000] 9ec0: c007f740 c0148f68 000000ff 00000000 c56b4ee0 00000000 00000000 c2a99ee8[ 2516.100000] 9ee0: c002befc 00000001 00096000 c12f4968 00000000 c56b64e0 00000007 c12f4928[ 2516.100000] 9f00: c12f492c c12f4910 c2a99f34 000000ff c56b4ee0 40fd8000 00000007 c50971e0[ 2516.100000] 9f20: 00000000 00096000 c2a99f74 c2a99f38 c007fcd8 c007f52c 000000ff 00000000[ 2516.100000] 9f40: c2a98000 00000096 c2a99f64 c2a98000 00000001 c56b4ee0 00000000 00096000[ 2516.100000] 9f60: c2a98000 00000003 c2a99fa4 c2a99f78 c0028db0 c007fa9c 00000001 00000000[ 2516.100000] 9f80: 00000009 00000000 000c6848 000000c0 c0025fa4 000a4140 00000000 c2a99fa8[ 2516.100000] 9fa0: c0025e20 c0028d30 00000009 00000000 00000000 00096000 00000003 00000001[ 2516.100000] 9fc0: 00000009 00000000 000c6848 000000c0 00016db8 000be200 000a4140 000c1e48[ 2516.100000] 9fe0: 4064c2c4 bec8f250 4063b288 405a7808 40000010 00000000 e5933004 e5d33000[ 2516.100000] Backtrace:[ 2516.100000] [<c0132060>] (dev_driver_string+0x0/0x44) from [<c0164f80>] (__videobuf_mmap_mapper+0x128/0x220)[ 2516.100000] [<c0164e58>] (__videobuf_mmap_mapper+0x0/0x220) from [<c0162b58>] (videobuf_mmap_mapper+0x64/0x94)[ 2516.100000] r8:c56b4ee0 r7:40fd8000 r6:c032f6fc r5:c12f4968 r4:c56f25d0[ 2516.100000] [<c0162af4>] (videobuf_mmap_mapper+0x0/0x94) from [<c0158868>] (vpfe_mmap+0x50/0x90)[ 2516.100000] r5:c12f4968 r4:c56f2400[ 2516.100000] [<c0158818>] (vpfe_mmap+0x0/0x90) from [<c0148fa0>] (v4l2_mmap+0x48/0x58)[ 2516.100000] r6:000000ff r5:c12f4968 r4:00000000[ 2516.100000] [<c0148f58>] (v4l2_mmap+0x0/0x58) from [<c007f740>] (mmap_region+0x224/0x408)[ 2516.100000] [<c007f51c>] (mmap_region+0x0/0x408) from [<c007fcd8>] (do_mmap_pgoff+0x24c/0x2ac)[ 2516.100000] [<c007fa8c>] (do_mmap_pgoff+0x0/0x2ac) from [<c0028db0>] (do_mmap2+0x90/0xc0)[ 2516.100000] [<c0028d20>] (do_mmap2+0x0/0xc0) from [<c0025e20>] (ret_fast_syscall+0x0/0x2c)[ 2516.100000] Code: c02bb4a8 e1a0c00d e92dd800 e24cb004 (e5903098)[ 2516.400000] ---[ end trace 7c0f8f1858c45871 ]---
*************************************************************************************
/ # /usr/bin/gst-launch -e v4l2src always-copy=false num-buffers=2000 ! dmaiaccel ! queue ! dmaienc_mpeg4 ! qtmux ! filesink location=/media/mmc1/test-13.mp4Setting pipeline to PAUSED ...[ 2515.650000] mt9v113 1-003c: invalid control id 9963781[ 2515.660000] mt9v113 1-003c: invalid control id 9963782[ 2515.660000] mt9v113 1-003c: invalid control id 9963783[ 2515.670000] mt9v113 1-003c: invalid control id 9963784[ 2515.680000] mt9v113 1-003c: invalid control id 9963785[ 2515.690000] mt9v113 1-003c: invalid control id 9963786[ 2515.690000] mt9v113 1-003c: invalid control id 9963787[ 2515.700000] mt9v113 1-003c: invalid control id 9963788[ 2515.700000] mt9v113 1-003c: invalid control id 9963789[ 2515.710000] mt9v113 1-003c: invalid control id 9963790[ 2515.710000] mt9v113 1-003c: invalid control id 9963791[ 2515.720000] mt9v113 1-003c: invalid control id 9963792[ 2515.720000] mt9v113 1-003c: invalid control id 9963793[ 2515.730000] mt9v113 1-003c: invalid control id 9963796[ 2515.730000] mt9v113 1-003c: invalid control id 9963797[ 2515.740000] mt9v113 1-003c: invalid control id 9963798[ 2515.750000] mt9v113 1-003c: invalid control id 9963799[ 2515.750000] mt9v113 1-003c: invalid control id 9963800[ 2515.760000] mt9v113 1-003c: invalid control id 9963801[ 2515.760000] mt9v113 1-003c: invalid control id 9963802[ 2515.770000] mt9v113 1-003c: invalid control id 9963803[ 2515.770000] mt9v113 1-003c: invalid control id 9963804[ 2515.780000] mt9v113 1-003c: invalid control id 9963805[ 2515.780000] mt9v113 1-003c: invalid control id 9963806[ 2515.800000] vpfe-capture: hpitch = 640, vpitch = 480, bpp = 2[ 2515.810000] vpfe-capture: adjusted hpitch = 640, vpitch = 480, bpp = 2[ 2515.840000] gst-launch-0.10: page allocation failure. order:8, mode:0xd1[ 2515.860000] [<c00296cc>] (dump_stack+0x0/0x14) from [<c006b778>] (__alloc_pages_internal+0x3e8/0x400)[ 2515.870000] [<c006b390>] (__alloc_pages_internal+0x0/0x400) from [<c002a4f4>] (__dma_alloc+0x174/0x430)[ 2515.880000] [<c002a380>] (__dma_alloc+0x0/0x430) from [<c002a83c>] (dma_alloc_coherent+0x58/0x64)[ 2515.890000] [<c002a7e4>] (dma_alloc_coherent+0x0/0x64) from [<c0164f6c>] (__videobuf_mmap_mapper+0x114/0x220)[ 2515.900000] r7:c53ef220 r6:c56f25d0 r5:c12f4968 r4:c56de6a4[ 2515.910000] [<c0164e58>] (__videobuf_mmap_mapper+0x0/0x220) from [<c0162b58>] (videobuf_mmap_mapper+0x64/0x94)[ 2515.920000] r8:c56b4ee0 r7:40fd8000 r6:c032f6fc r5:c12f4968 r4:c56f25d0[ 2515.920000] [<c0162af4>] (videobuf_mmap_mapper+0x0/0x94) from [<c0158868>] (vpfe_mmap+0x50/0x90)[ 2515.930000] r5:c12f4968 r4:c56f2400[ 2515.940000] [<c0158818>] (vpfe_mmap+0x0/0x90) from [<c0148fa0>] (v4l2_mmap+0x48/0x58)[ 2515.940000] r6:000000ff r5:c12f4968 r4:00000000[ 2515.950000] [<c0148f58>] (v4l2_mmap+0x0/0x58) from [<c007f740>] (mmap_region+0x224/0x408)[ 2515.960000] [<c007f51c>] (mmap_region+0x0/0x408) from [<c007fcd8>] (do_mmap_pgoff+0x24c/0x2ac)[ 2515.970000] [<c007fa8c>] (do_mmap_pgoff+0x0/0x2ac) from [<c0028db0>] (do_mmap2+0x90/0xc0)[ 2515.980000] [<c0028d20>] (do_mmap2+0x0/0xc0) from [<c0025e20>] (ret_fast_syscall+0x0/0x2c)[ 2515.980000] Mem-info:[ 2515.990000] DMA per-cpu:[ 2515.990000] CPU 0: hi: 42, btch: 7 usd: 36[ 2515.990000] Active_anon:190 active_file:1181 inactive_anon:241[ 2515.990000] inactive_file:20181 unevictable:0 dirty:1 writeback:0 unstable:0[ 2515.990000] free:1874 slab:2729 mapped:738 pagetables:19 bounce:0[ 2516.010000] DMA free:7496kB min:1348kB low:1684kB high:2020kB active_anon:760kB inactive_anon:964kB active_file:4724kB inactive_file:80724kB unevictable:0kB present:113792kB pages_scanned:0 all_unreclaimable? no[ 2516.030000] lowmem_reserve[]: 0 0 0[ 2516.040000] DMA: 134*4kB 64*8kB 11*16kB 10*32kB 7*64kB 3*128kB 4*256kB 4*512kB 2*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB = 7496kB[ 2516.050000] 21365 total pagecache pages[ 2516.070000] 28672 pages of RAM[ 2516.070000] 1948 free pages[ 2516.070000] 2121 reserved pages[ 2516.080000] 2729 slab pages[ 2516.080000] 20932 pages shared[ 2516.080000] 0 pages swap cached[ 2516.090000] Unable to handle kernel NULL pointer dereference at virtual address 00000098[ 2516.090000] pgd = c40ec000[ 2516.100000] [00000098] *pgd=84b58031, *pte=00000000, *ppte=00000000[ 2516.100000] Internal error: Oops: 17 [#1] PREEMPT[ 2516.100000] Modules linked in: dm350mmap cmemk[ 2516.100000] CPU: 0 Not tainted (2.6.29-ridgerun-davinci1 #2)[ 2516.100000] PC is at dev_driver_string+0xc/0x44[ 2516.100000] LR is at __videobuf_mmap_mapper+0x128/0x220[ 2516.100000] pc : [<c013206c>] lr : [<c0164f80>] psr: 60000013[ 2516.100000] sp : c2a99e40 ip : c2a99e50 fp : c2a99e4c[ 2516.100000] r10: c50971e0 r9 : 00000096 r8 : c56b4ee0[ 2516.100000] r7 : c53ef220 r6 : c56f25d0 r5 : c12f4968 r4 : c56de6a4[ 2516.100000] r3 : ffffffff r2 : 00000000 r1 : 0000ba73 r0 : 00000000[ 2516.100000] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user[ 2516.100000] Control: 0005317f Table: 840ec000 DAC: 00000015[ 2516.100000] Process gst-launch-0.10 (pid: 454, stack limit = 0xc2a98268)[ 2516.100000] Stack: (0xc2a99e40 to 0xc2a9a000)[ 2516.100000] 9e40: c2a99e7c c2a99e50 c0164f80 c0132070 00000000 00000000 00000000 c56f25d0[ 2516.100000] 9e60: c12f4968 c032f6fc 40fd8000 c56b4ee0 c2a99e94 c2a99e80 c0162b58 c0164e68[ 2516.100000] 9e80: c56f2400 c12f4968 c2a99eb4 c2a99e98 c0158868 c0162b04 30e2eed5 00000000[ 2516.100000] 9ea0: c12f4968 000000ff c2a99ec4 c2a99eb8 c0148fa0 c0158828 c2a99f34 c2a99ec8[ 2516.100000] 9ec0: c007f740 c0148f68 000000ff 00000000 c56b4ee0 00000000 00000000 c2a99ee8[ 2516.100000] 9ee0: c002befc 00000001 00096000 c12f4968 00000000 c56b64e0 00000007 c12f4928[ 2516.100000] 9f00: c12f492c c12f4910 c2a99f34 000000ff c56b4ee0 40fd8000 00000007 c50971e0[ 2516.100000] 9f20: 00000000 00096000 c2a99f74 c2a99f38 c007fcd8 c007f52c 000000ff 00000000[ 2516.100000] 9f40: c2a98000 00000096 c2a99f64 c2a98000 00000001 c56b4ee0 00000000 00096000[ 2516.100000] 9f60: c2a98000 00000003 c2a99fa4 c2a99f78 c0028db0 c007fa9c 00000001 00000000[ 2516.100000] 9f80: 00000009 00000000 000c6848 000000c0 c0025fa4 000a4140 00000000 c2a99fa8[ 2516.100000] 9fa0: c0025e20 c0028d30 00000009 00000000 00000000 00096000 00000003 00000001[ 2516.100000] 9fc0: 00000009 00000000 000c6848 000000c0 00016db8 000be200 000a4140 000c1e48[ 2516.100000] 9fe0: 4064c2c4 bec8f250 4063b288 405a7808 40000010 00000000 e5933004 e5d33000[ 2516.100000] Backtrace:[ 2516.100000] [<c0132060>] (dev_driver_string+0x0/0x44) from [<c0164f80>] (__videobuf_mmap_mapper+0x128/0x220)[ 2516.100000] [<c0164e58>] (__videobuf_mmap_mapper+0x0/0x220) from [<c0162b58>] (videobuf_mmap_mapper+0x64/0x94)[ 2516.100000] r8:c56b4ee0 r7:40fd8000 r6:c032f6fc r5:c12f4968 r4:c56f25d0[ 2516.100000] [<c0162af4>] (videobuf_mmap_mapper+0x0/0x94) from [<c0158868>] (vpfe_mmap+0x50/0x90)[ 2516.100000] r5:c12f4968 r4:c56f2400[ 2516.100000] [<c0158818>] (vpfe_mmap+0x0/0x90) from [<c0148fa0>] (v4l2_mmap+0x48/0x58)[ 2516.100000] r6:000000ff r5:c12f4968 r4:00000000[ 2516.100000] [<c0148f58>] (v4l2_mmap+0x0/0x58) from [<c007f740>] (mmap_region+0x224/0x408)[ 2516.100000] [<c007f51c>] (mmap_region+0x0/0x408) from [<c007fcd8>] (do_mmap_pgoff+0x24c/0x2ac)[ 2516.100000] [<c007fa8c>] (do_mmap_pgoff+0x0/0x2ac) from [<c0028db0>] (do_mmap2+0x90/0xc0)[ 2516.100000] [<c0028d20>] (do_mmap2+0x0/0xc0) from [<c0025e20>] (ret_fast_syscall+0x0/0x2c)[ 2516.100000] Code: c02bb4a8 e1a0c00d e92dd800 e24cb004 (e5903098)[ 2516.400000] ---[ end trace 7c0f8f1858c45871 ]---
Regsrds,
shbae