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)
Mar 16 2024, 12:30 AM
Unknown Object (File)
Dec 23 2023, 12:03 PM
Unknown Object (File)
Dec 14 2023, 10:05 AM
Unknown Object (File)
Sep 25 2023, 11:34 AM
Unknown Object (File)
Aug 5 2023, 11:49 AM
Unknown Object (File)
Jul 9 2023, 2:10 AM
Unknown Object (File)
Jul 6 2023, 12:56 PM
Unknown Object (File)
May 20 2023, 5:44 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.