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
Friendly ping.
See attachments above for the patch.
Marco, which path(es) should apply? Could you please create a patch against ports tree? See https://docs.freebsd.org/en/books/porters-handbook/book/#slow-patch Thanks!
The patch I attached needs to be applied. I have trouble giving the patch the correct name, now it doesn't apply.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d357e43d0927dc1d85870cfea1473f4fd4b17e81 commit d357e43d0927dc1d85870cfea1473f4fd4b17e81 Author: Marco Beishuizen <mbeis@xs4all.nl> AuthorDate: 2024-10-09 17:26:58 +0000 Commit: Zsolt Udvari <uzsolt@FreeBSD.org> CommitDate: 2024-10-09 17:29:02 +0000 sysutils/wmmemload: Fix stack overflow error Add x11 and xext to USE_XORG. Add LICENSE_FILE. Switch to DISTVERSION. PR: 264669 Reported by: Arie Bikker <src-2016@bikker.homeunix.net> Approved by: submitter is maintainer sysutils/wmmemload/Makefile | 11 ++++++----- sysutils/wmmemload/files/patch-src_mem__freebsd.c | 9 +++++++++ 2 files changed, 15 insertions(+), 5 deletions(-)
Committed, thanks!