-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Labels
Description
Hi all,
I noticed on my Raspberry Pi Zero W every ~week feh was crashing. Turns out feh has signs of a memory leak? OOM kicked in. notice the rss for feh is way higher than any other application running.
$ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian $ feh --version feh version 3.1.3 Compile-time switches: curl exif verscmp xinerama
The command I run is:
$ export DISPLAY=:0; feh -qrYzZFD 120.0 --auto-rotate --zoom fill /home/pi/Pictures/frame/
dmesg:
[1094530.907681] feh invoked oom-killer: gfp_mask=0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO), order=0, oom_score_adj=0
[1094530.907714] CPU: 0 PID: 929 Comm: feh Tainted: G C 5.4.51+ #1327
[1094530.907724] Hardware name: BCM2835
[1094530.907735] Backtrace:
[1094530.907774] [] (dump_backtrace) from [] (show_stack+0x20/0x24)
[1094530.907795] r6:c8337100 r5:c8337100 r4:c5917e08 r3:03684efa
[1094530.907830] [] (show_stack) from [] (dump_stack+0x20/0x28)
[1094530.907858] [] (dump_stack) from [] (dump_header+0x60/0x22c)
[1094530.907877] [] (dump_header) from [] (oom_kill_process+0xac/0x33c)
[1094530.907898] r10:000000e8 r9:ced23880 r8:c0a280b0 r7:c0a280b0 r6:c8337100 r5:c5917e08
[1094530.907907] r4:c08e9ed0
[1094530.907924] [] (oom_kill_process) from [] (out_of_memory+0xe8/0x3f8)
[1094530.907945] r10:000000e8 r9:ced23880 r8:c0a280b0 r7:c0a280b0 r6:c0a25028 r5:c5917e08
[1094530.907954] r4:c0a28320
[1094530.907978] [] (out_of_memory) from [] (__alloc_pages_nodemask+0xa60/0xf08)
[1094530.907993] r10:00000000 r9:00000000 r8:00000043 r7:c5917df8 r6:00004ca7 r5:00000000
[1094530.908003] r4:00000000
[1094530.908039] [] (__alloc_pages_nodemask) from [] (__pte_alloc+0x34/0x1d0)
[1094530.908060] r10:00000800 r9:c83548fc r8:00000805 r7:c83548c0 r6:c83eeaf0 r5:c83548c0
[1094530.908069] r4:c0a25028
[1094530.908090] [] (__pte_alloc) from [] (handle_mm_fault+0x948/0x9ec)
[1094530.908107] r10:00000800 r9:c83548fc r8:00000805 r7:c83548c0 r6:d0850840 r5:c0a477f0
[1094530.908116] r4:c0a25028
[1094530.908147] [] (handle_mm_fault) from [] (do_page_fault+0x32c/0x3d4)
[1094530.908167] r9:c83548fc r8:00000805 r7:c83548c0 r6:abdfe208 r5:c8337100 r4:c5917fb0
[1094530.908186] [] (do_page_fault) from [] (do_translation_fault+0xac/0xb4)
[1094530.908205] r10:fbba8000 r9:00005100 r8:00c5387d r7:c5917fb0 r6:abdfe208 r5:00000805
[1094530.908215] r4:00000805
[1094530.908244] [] (do_translation_fault) from [] (do_DataAbort+0x44/0xc4)
[1094530.908260] r6:abdfe208 r5:00000805 r4:c0a2a0f4 r3:00000005
[1094530.908283] [] (do_DataAbort) from [] (__dabt_usr+0x44/0x60)
[1094530.908294] Exception stack(0xc5917fb0 to 0xc5917ff8)
[1094530.908312] 7fa0: ff8f7580 af5df23c abdfe208 000003b2
[1094530.908330] 7fc0: 0cce10b8 af5db008 04458004 0000143f ab182008 00005100 fbba8000 ffffca00
[1094530.908345] 7fe0: af5d6a08 be978640 00000d7f b6c34ee8 00000010 ffffffff
[1094530.908359] r7:00c5387d r6:ffffffff r5:00000010 r4:b6c34ee8
[1094530.908367] Mem-Info:
[1094530.908393] active_anon:27232 inactive_anon:39679 isolated_anon:0
active_file:35 inactive_file:32 isolated_file:0
unevictable:4 dirty:0 writeback:0 unstable:0
slab_reclaimable:2007 slab_unreclaimable:2558
mapped:861 shmem:2382 pagetables:966 bounce:0
free:19556 free_pcp:0 free_cma:15635
[1094530.908416] Node 0 active_anon:108928kB inactive_anon:158716kB active_file:140kB inactive_file:128kB unevictable:16kB isolated(anon):0kB isolated(file):0kB mapped:3444kB dirty:0kB writeback:0kB shmem:9528kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[1094530.908445] Normal free:78224kB min:16384kB low:20480kB high:24576kB active_anon:108928kB inactive_anon:158716kB active_file:140kB inactive_file:128kB unevictable:16kB writepending:0kB present:393216kB managed:378100kB mlocked:16kB kernel_stack:1232kB pagetables:3864kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:62540kB
[1094530.908453] lowmem_reserve[]: 0 0
[1094530.908471] Normal: 614*4kB (UMEC) 417*8kB (UMEC) 275*16kB (UEC) 180*32kB (UMEC) 127*64kB (UMEC) 63*128kB (UMC) 32*256kB (UMC) 14*512kB (C) 10*1024kB (C) 4*2048kB (C) 3*4096kB (C) = 78224kB
[1094530.908569] 3012 total pagecache pages
[1094530.908581] 563 pages in swap cache
[1094530.908594] Swap cache stats: add 27539, delete 26976, find 620082/620795
[1094530.908601] Free swap = 0kB
[1094530.908610] Total swap = 102396kB
[1094530.908617] 98304 pages RAM
[1094530.908625] 0 pages HighMem/MovableOnly
[1094530.908632] 3779 pages reserved
[1094530.908640] 16384 pages cma reserved
[1094530.908647] Tasks state (memory values in pages):
[1094530.908655] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[1094530.908687] [ 74] 0 74 8567 777 77824 135 0 systemd-journal
[1094530.908703] [ 107] 0 107 4590 12 16384 197 -1000 systemd-udevd
[1094530.908723] [ 214] 100 214 5599 24 24576 144 0 systemd-timesyn
[1094530.908741] [ 250] 0 250 919 11 12288 42 0 alsactl
[1094530.908757] [ 251] 0 251 15538 164 34816 321 0 udisksd
[1094530.908772] [ 255] 0 255 6184 101 18432 107 0 rsyslogd
[1094530.908787] [ 262] 65534 262 1076 5 12288 39 0 thd
[1094530.908802] [ 264] 0 264 3256 48 20480 123 0 systemd-logind
[1094530.908816] [ 270] 108 270 1535 135 16384 39 0 avahi-daemon
[1094530.908831] [ 272] 0 272 1990 18 16384 35 0 cron
[1094530.908846] [ 282] 108 282 1439 4 14336 58 0 avahi-daemon
[1094530.908861] [ 283] 104 283 1690 120 14336 54 -900 dbus-daemon
[1094530.908876] [ 285] 0 285 6910 26 14336 9 0 rngd
[1094530.908891] [ 298] 0 298 2681 12 18432 89 0 wpa_supplicant
[1094530.908905] [ 322] 0 322 704 50 10240 41 0 dhcpcd
[1094530.908920] [ 347] 0 347 9876 92 28672 99 0 polkitd
[1094530.908935] [ 356] 0 356 7990 62 38912 294 0 nmbd
[1094530.908950] [ 365] 0 365 9675 0 40960 1299 0 unattended-upgr
[1094530.908965] [ 372] 0 372 530 0 10240 29 0 hciattach
[1094530.908980] [ 376] 0 376 2677 31 18432 113 -1000 sshd
[1094530.908994] [ 380] 0 380 2776 59 18432 103 0 wpa_supplicant
[1094530.909009] [ 389] 0 389 2448 0 16384 101 0 bluetoothd
[1094530.909024] [ 404] 0 404 9774 84 28672 116 0 lightdm
[1094530.909039] [ 410] 0 410 6673 0 22528 112 0 bluealsa
[1094530.909054] [ 656] 0 656 33851 2364 133120 4248 0 Xorg
[1094530.909068] [ 657] 0 657 1401 0 12288 107 0 login
[1094530.909083] [ 681] 0 681 12086 204 55296 405 0 smbd
[1094530.909098] [ 737] 111 737 3521 11 22528 140 0 exim4
[1094530.909113] [ 740] 0 740 11352 50 51200 423 0 smbd-notifyd
[1094530.909128] [ 741] 0 741 11353 62 51200 412 0 cleanupd
[1094530.909143] [ 742] 0 742 12083 64 51200 423 0 lpqd
[1094530.909158] [ 803] 0 803 8126 33 28672 181 0 lightdm
[1094530.909172] [ 809] 1000 809 3678 0 22528 253 0 systemd
[1094530.909187] [ 815] 1000 815 4203 36 24576 381 0 (sd-pam)
[1094530.909202] [ 831] 1000 831 13826 64 45056 277 0 lxsession
[1094530.909217] [ 832] 1000 832 2117 0 16384 228 0 bash
[1094530.909231] [ 842] 1000 842 1631 0 16384 106 0 dbus-daemon
[1094530.909246] [ 875] 1000 875 1126 10 12288 62 0 ssh-agent
[1094530.909261] [ 886] 1000 886 10595 0 26624 166 0 gvfsd
[1094530.909276] [ 891] 1000 891 13452 0 26624 190 0 gvfsd-fuse
[1094530.909291] [ 907] 1000 907 15491 67 45056 434 0 openbox
[1094530.909305] [ 908] 1000 908 11780 73 38912 204 0 lxpolkit
[1094530.909320] [ 909] 1000 909 37068 1504 86016 1038 0 lxpanel
[1094530.909335] [ 911] 1000 911 18003 0 55296 1146 0 pcmanfm
[1094530.909350] [ 919] 1000 919 1913 0 14336 37 0 bash
[1094530.909365] [ 922] 1000 922 1126 0 12288 72 0 ssh-agent
[1094530.909379] [ 929] 1000 929 86450 58327 342016 9229 0 feh
[1094530.909394] [ 952] 1000 952 19605 41 38912 305 0 gvfs-udisks2-vo
[1094530.909409] [ 955] 1000 955 7172 0 22528 151 0 menu-cached
[1094530.909424] [ 962] 1000 962 9770 0 28672 129 0 gvfs-mtp-volume
[1094530.909439] [ 966] 1000 966 13490 13 38912 189 0 gvfs-afc-volume
[1094530.909454] [ 971] 1000 971 9766 0 26624 124 0 gvfs-goa-volume
[1094530.909468] [ 975] 1000 975 10164 0 24576 152 0 gvfs-gphoto2-vo
[1094530.909483] [ 988] 1000 988 13264 33 34816 191 0 gvfsd-trash
[1094530.909500] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=feh,pid=929,uid=1000
[1094530.909542] Out of memory: Killed process 929 (feh) total-vm:345800kB, anon-rss:233248kB, file-rss:60kB, shmem-rss:0kB, UID:1000 pgtables:334kB oom_score_adj:0
[1094531.086376] oom_reaper: reaped process 929 (feh), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Ta.