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
Unknown Object (File)
Sun, Feb 8, 12:36 PM
Unknown Object (File)
Sun, Feb 8, 12:10 PM
Unknown Object (File)
Sun, Feb 8, 7:11 AM
Unknown Object (File)
Mon, Feb 2, 11:28 AM
Unknown Object (File)
Fri, Jan 30, 8:45 PM
Unknown Object (File)
Fri, Jan 23, 12:26 AM
Unknown Object (File)
Jan 9 2026, 2:47 AM
Unknown Object (File)
Nov 27 2025, 7:57 PM
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.