Created attachment 234678 [details] Patch arraysize receiving argument sysctl both binary package and ports compiled version fail $ wmmemload Abort leaving line in /var/log/messages: Jun 14 15:35:33 azd wmmemload[55487]: stack overflow detected; terminated Jun 14 15:35:33 azd kernel: pid 55487 (wmmemload), jid 0, uid 1001: exited on signal 6 Problem seems to be fixed size of mib array in src/mem_freebsd.c For descendants of "vm.swap_info" array size should be 3
Created attachment 249074 [details] sysutils/wmmemload: fix aborting at start
The patch from Arie didn't build with the "char mib_base = "vm.swap_info";" line in it so removed that and left the increase from 2 > 3 of "int mib[]"
Could you please create a patch on the ports tree? See https://docs.freebsd.org/en/books/porters-handbook/book/#slow-patch