Date: Wed, 13 Sep 2023 17:10:04 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268944] pmcstat -p on arm64 spews spaces to stderr Message-ID: <bug-268944-227-loMa24cywr@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-268944-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268944 --- Comment #2 from John F. Carr <jfc@mit.edu> --- Created attachment 244813 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=244813&action=edit initialize uninitialized variable The calculation of output field width is done in pmc_width. On my Ampere system that function fails with errno=EINVAL. The field width is an uninitialized stack variable, which holds a very large value. Initializing the value to zero results in sane behavior. The return value of pmc_width is explicitly ignored by pmcstat. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268944-227-loMa24cywr>
