Skip site navigation (1)Skip section navigation (2)
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/>
References:  <bug-268944-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268944

--- Comment #2 from John F. Carr <jfc@mit.edu> ---
Created attachment 244813
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244813&action=
=3Dedit
initialize uninitialized variable

The calculation of output field width is done in pmc_width.  On my Ampere
system that function fails with errno=3DEINVAL.  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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268944-227-loMa24cywr>