sysutils/turbostat: fix bus error on Intel(R) Core(TM) Ultra 7 155H This patch makes turbostat working on Intel(R) Core(TM) Ultra 7 155H Patch is straighforward to avoid "-1" as argument for cpuset PR: 283007 Reviewed by: fuz Sponsored by: Postgres Professionalf79bebc91f
Port details
sysutils/turbostat4.17_5
Report power statistics for Intel CPUs
- Maintainer
- ports@FreeBSD.org
- Packages
- turbostat 4.17_5
- Upstream
- Higher version available: 7.3
- CPE
linux:linux_kernel- WWW
- https://github.com/torvalds/linux/tree/master/tools/power/x86/turbostat
- Links
- cgit · VuXML
Unaddressed (0) · The CVE record lists this version as affected, no VuXML entry names the CVE
None. There is no CVE without a VuXML entry for this version.
VuXML only (0) · listed, port not fixed yet
None.
pkg audit reports nothing for this version.Fixed (0)
No VuXML entries for this package.
Commits (12)
MANPREFIX: eleminate its usage and move man to share/man220062a3a1
sysutils/turbostat: unbreak runtime on FreeBSD >= 13.1
$ turbostat
turbostat version 17.06.23 - Len Brown <lenb@kernel.org>
Segmentation fault
* thread #1, name = 'turbostat', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
frame #0: 0x0000000000216992 turbostat`topology_probe at turbostat.c:4685:7
4682 * Validate that all cpus in cpu_subset are also in cpu_present_set
4683 */
4684 for (i = 0; i < CPU_SUBSET_MAXCPUS; ++i) {
-> 4685 if (CPU_ISSET_S(i, cpu_subset_size, cpu_subset))
4686 if (!CPU_ISSET_S(i, cpu_present_setsize, cpu_present_set))
4687 err(1, "cpu%d not present", i);
4688 }
(lldb) bt
* thread #1, name = 'turbostat', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
* frame #0: 0x0000000000216992 turbostat`topology_probe at turbostat.c:4685:7
frame #1: 0x00000000002111c9 turbostat`setup_all_buffers at turbostat.c:4853:2
frame #2: 0x0000000000217909 turbostat`turbostat_init at turbostat.c:4888:2
frame #3: 0x0000000000218f3f turbostat`main(argc=1, argv=0x0000000820444710) at turbostat.c:5447:2
frame #4: 0x0000000000207160 turbostat`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:73:7
(lldb) p cpu_subset
(cpu_set_t *) $0 = NULL
PR: 262866b27279cba1Remove WWW entries moved into port Makefiles Commit b7f05445c00f has added WWW entries to port Makefiles based on WWW: lines in pkg-descr files. This commit removes the WWW: lines of moved-over URLs from these pkg-descr files. Approved by: portmgr (tcberner)fb16dfecae
Add WWW entries to port Makefiles It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
sysutils/turbostat: use CPU_* macros defined in -CURRENT6cc600ed70
*/*: Reset MAINTAINER due to fatal email bounces578dca8c85
One more small cleanup, forgotten yesterday. Reported by: lwhsucf118ccf87
Remove # $FreeBSD$ from Makefiles.305f148f48
sysutils/turbostat: Update to fix sysctl kern.sched.topology_spec max length Submitted by: darkfiberiru_gmail.com Reviewed by: scottph freqlabs8a493888ce
sysutils/turbostat: Fix reading topology with multiple packages Fixed a bug where core identifiers within a package would not count from zero. This caused a out-of-bounds array access when multiple packages were present. Also gracefully handle the absence of the kern.intrs sysctl (added in 12.0), and don't use reallocarray (added in 11.0). PR: 230066 Reported by: kbowling Submitted by: D Scott Phillips <d.scott.phillips@intel.com> (maintainer)1f67ccc2f5
New port: sysutils/turbostat Report processor topology, frequency, idle power-state statistics, temperature and power on X86 processors. WWW: https://github.com/torvalds/linux/tree/master/tools/power/x86/turbostat PR: 229988 Submitted by: D Scott Phillips <d.scott.phillips@intel.com>75036c1703