Page MenuHomeFreeBSD

Fix off by one in calculation of the number of buckets for the pc addresses.
ClosedPublic

Authored by kib on Aug 4 2017, 1:50 PM.
Tags
None
Referenced Files
F157543537: D11864.id.diff
Fri, May 22, 3:44 PM
Unknown Object (File)
Apr 19 2026, 2:38 PM
Unknown Object (File)
Apr 15 2026, 9:50 AM
Unknown Object (File)
Apr 11 2026, 4:02 PM
Unknown Object (File)
Apr 11 2026, 3:09 AM
Unknown Object (File)
Apr 7 2026, 1:50 PM
Unknown Object (File)
Apr 7 2026, 7:51 AM
Unknown Object (File)
Apr 5 2026, 11:41 AM
Subscribers

Details

Summary

This issue caused the assertion at the line 498 to be triggered:

	bucket = (cc[0] - map->ppm_lowpc) / FUNCTION_ALIGNMENT;
	assert(bucket < pgf->pgf_nbuckets);

when cc value appears at the top of the image.

I triggered it with the pmcstat -R log -g.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 4 2017, 5:20 PM
This revision was automatically updated to reflect the committed changes.