Bug #2012

ST crashes after some time of playing after it was updated to libav 10 (heavy memleak)

Added by Leonid Protasov about 7 years ago. Updated about 7 years ago.

Status:FixedStart date:03/01/2014
Priority:ImmediateDue date:
Assignee:Andreas Smas% Done:

0%

Category:Video playback
Target version:4.6
Found in version:Latest Platform:Linux

Description

ST crashes in about 10 minutes.

Reproducible on both my RPi after the crash dmesg shows:

[    7.278088] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts:
[    7.682570] EXT4-fs (mmcblk0p3): mounted filesystem without journal. Opts:
[   10.120376] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   11.671634] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[  536.247567] cec invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
[  536.256641] CPU: 0 PID: 619 Comm: cec Not tainted 3.11.10 #1
[  536.264144] [<c001546c>] (unwind_backtrace+0x0/0xfc) from [<c0012150>] (show_stack+0x20/0x24)
[  536.275894] [<c0012150>] (show_stack+0x20/0x24) from [<c0395900>] (dump_stack+0x20/0x28)
[  536.287210] [<c0395900>] (dump_stack+0x20/0x28) from [<c0393394>] (dump_header.isra.17+0x54/0x164)
[  536.299390] [<c0393394>] (dump_header.isra.17+0x54/0x164) from [<c00c4fac>] (oom_kill_process+0x22c/0x364)
[  536.312279] [<c00c4fac>] (oom_kill_process+0x22c/0x364) from [<c00c5530>] (out_of_memory+0x2a4/0x2f4)
[  536.324737] [<c00c5530>] (out_of_memory+0x2a4/0x2f4) from [<c00c9178>] (__alloc_pages_nodemask+0x7d8/0x840)
[  536.337874] [<c00c9178>] (__alloc_pages_nodemask+0x7d8/0x840) from [<c00c3dcc>] (filemap_fault+0x17c/0x408)
[  536.351278] [<c00c3dcc>] (filemap_fault+0x17c/0x408) from [<c00e0d50>] (__do_fault+0x78/0x478)
[  536.363748] [<c00e0d50>] (__do_fault+0x78/0x478) from [<c00e3d44>] (handle_pte_fault+0x84/0x6a0)
[  536.376907] [<c00e3d44>] (handle_pte_fault+0x84/0x6a0) from [<c00e4408>] (handle_mm_fault+0xa8/0xd8)
[  536.390492] [<c00e4408>] (handle_mm_fault+0xa8/0xd8) from [<c039afe8>] (do_page_fault+0x25c/0x3bc)
[  536.404036] [<c039afe8>] (do_page_fault+0x25c/0x3bc) from [<c00083f0>] (do_PrefetchAbort+0x44/0xa8)
[  536.417882] [<c00083f0>] (do_PrefetchAbort+0x44/0xa8) from [<c039975c>] (ret_from_exception+0x0/0x10)
[  536.431750] Exception stack(0xd2d9bfb0 to 0xd2d9bff8)
[  536.439207] bfa0:                                     b37527b0 b3752710 00000080 00000000
[  536.451778] bfc0: b37527ac 00000000 b6b27000 000000ae 7fffffff 0000000e 00004206 b3752bac
[  536.464124] bfe0: 00000000 b3752678 b6a2edb0 b6a777c0 20000010 ffffffff
[  536.473033] Mem-info:
[  536.477504] Normal per-cpu:
[  536.482398] CPU    0: hi:   90, btch:  15 usd:  85
[  536.489348] active_anon:73696 inactive_anon:43 isolated_anon:0
[  536.489348]  active_file:77 inactive_file:77 isolated_file:0
[  536.489348]  unevictable:146 dirty:0 writeback:0 unstable:0
[  536.489348]  free:762 slab_reclaimable:365 slab_unreclaimable:1100
[  536.489348]  mapped:5 shmem:52 pagetables:244 bounce:0
[  536.489348]  free_cma:0
[  536.531249] Normal free:3048kB min:2252kB low:2812kB high:3376kB active_anon:294784kB inactive_anon:172kB active_file:308kB inactive_file:308kB unevictable:584kB isolated(anon):0kB isolated(file):0kB present:327680kB managed:318308kB mlocked:0kB dirty:0kB writeback:0kB mapped:20kB shmem:208kB slab_reclaimable:1460kB slab_unreclaimable:4400kB kernel_stack:744kB pagetables:976kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:933 all_unreclaimable? yes
[  536.583365] lowmem_reserve[]: 0 0
[  536.588704] Normal: 284*4kB (UEMR) 79*8kB (UEM) 66*16kB (EM) 1*32kB (R) 1*64kB (R) 1*128kB (R) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 3048kB
[  536.606207] 354 total pagecache pages
[  536.611731] 0 pages in swap cache
[  536.616836] Swap cache stats: add 0, delete 0, find 0/0
[  536.623890] Free swap  = 0kB
[  536.628608] Total swap = 0kB
[  536.654211] 81920 pages of RAM
[  536.659288] 1026 free pages
[  536.663776] 2343 reserved pages
[  536.668639] 849 slab pages
[  536.672851] 145 pages shared
[  536.677375] 0 pages swap cached
[  536.682124] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[  536.693204] [  520]     0   520      556       14       4        0             0 syslogd
[  536.704391] [  522]     0   522      556       17       4        0             0 klogd
[  536.715246] [  525]     0   525      659       67       7        0         -1000 udevd
[  536.725941] [  543]    81   543      590       40       5        0             0 dbus-daemon
[  536.737086] [  566]     0   566      658       68       7        0         -1000 udevd
[  536.747678] [  569]     0   569      658       68       7        0         -1000 udevd
[  536.758274] [  583]     0   583     1519       69       6        0             0 connmand
[  536.769230] [  584]     0   584     2482       27       4        0             0 showtime-shell
[  536.780717] [  585]     0   585      557       15       4        0             0 getty
[  536.791564] [  588]     0   588    98162    73226     172        0             0 showtime
[  536.802653] [  604]     0   604      606       32       5        0             0 wpa_supplicant
[  536.814151] [  618]     0   618      523       21       5        0             0 dropbear
[  536.825178] [  651]     0   651      542       42       5        0             0 dropbear
[  536.836192] [  652]     0   652      576       23       5        0             0 sh
[  536.846639] Out of memory: Kill process 588 (showtime) score 892 or sacrifice child
[  536.857301] Killed process 588 (showtime) total-vm:392648kB, anon-rss:292884kB, file-rss:20kB
[  536.870925] showtime (600) used greatest stack depth: 4764 bytes left
[  536.879915] PC:global (602) used greatest stack depth: 4420 bytes left
[  537.177570] audio decoder (649) used greatest stack depth: 4380 bytes left
[  537.416339] showtime (588) used greatest stack depth: 4260 bytes left
[  538.475758] vchiq: 0: ignoring ERROR from callback to service 8007
#

In the log - nothing usual http://sprunge.us/FhHb

History

#1 Updated by Leonid Protasov about 7 years ago

  • Subject changed from ST crashes after some time of playing after it was updated to libav 10 to ST crashes after some time of playing after it was updated to libav 10 (heavy memleak)

ST heavily memleaks on RPi:

After the load:

# free
             total         used         free       shared      buffers
Mem:        318308        71144       247164            0        12068
-/+ buffers:              59076       259232
Swap:            0            0            0

While playing:

# free
             total         used         free       shared      buffers
Mem:        318308       314476         3832            0         4964
-/+ buffers:             309512         8796
Swap:            0            0            0

#2 Updated by Leonid Protasov about 7 years ago

  • Platform changed from RPi to Linux

All platforms.

#3 Updated by Andreas Smas about 7 years ago

  • Status changed from New to Fixed

Fixed in 4.5.193

Also available in: Atom PDF