[Bug 268944] pmcstat -p on arm64 spews spaces to stderr

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 13 Sep 2023 17:10:04 UTC
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.