FS#61767 - [linux] powertop command fails on the latest kernel

Attached to Project: Arch Linux
Opened by Rajat Roy (rexdrive) - Friday, 15 February 2019, 01:22 GMT
Last edited by Jan de Groot (JGC) - Sunday, 24 March 2019, 23:28 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
powertop command fails with error "Segmentation fault"

Additional info:
* package version(s): 4.20.8.arch1-1


Steps to reproduce:
1. Install the latest kernel, i.e., 4.20.8.arch1-1
2. Reboot
3. Run "powertop"

Reverting back to 4.20.7.arch1-1 temporarily solved the issue.
This task depends upon

Closed by  Jan de Groot (JGC)
Sunday, 24 March 2019, 23:28 GMT
Reason for closing:  Fixed
Comment by Francois Rigaut (frigaut) - Friday, 15 February 2019, 03:18 GMT
I can confirm this.
[frigaut@poliahu ~]$ pacman -Qs powertop
local/powertop 2.10-1
A tool to diagnose issues with power consumption and power management
[frigaut@poliahu ~]$ uname -a
Linux poliahu 4.20.8-arch1-1-ARCH #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019 x86_64 GNU/Linux
[frigaut@poliahu ~]$
Comment by Francois Rigaut (frigaut) - Friday, 15 February 2019, 04:39 GMT
Here is what it says for, e.g., powertop --auto-tune:
[frigaut@poliahu ~]$ sudo powertop --auto-tune
modprobe cpufreq_stats failedCannot load from file /var/cache/powertop/saved_results.powertop
Cannot load from file /var/cache/powertop/saved_parameters.powertop
File will be loaded after taking minimum number of measurement(s) with battery only
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask f
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask f
Devfreq not enabled
glob returned GLOB_ABORTED
Cannot load from file /var/cache/powertop/saved_parameters.powertop
File will be loaded after taking minimum number of measurement(s) with battery only
failed to mmap with 12 (Cannot allocate memory)
failed to mmap with 12 (Cannot allocate memory)
failed to mmap with 12 (Cannot allocate memory)
failed to mmap with 12 (Cannot allocate memory)
failed to mmap with 12 (Cannot allocate memory)
[...]
failed to mmap with 12 (Cannot allocate memory)
Segmentation fault
Comment by Francois Rigaut (frigaut) - Friday, 15 February 2019, 06:45 GMT
duplicate of previous post, sorry not sure what happened.
Comment by loqs (loqs) - Friday, 15 February 2019, 08:44 GMT Comment by loqs (loqs) - Thursday, 21 February 2019, 23:05 GMT
Can you confirm the issue is resolved in linux 4.20.11.arch1-1?
Comment by Lukas (luspi) - Friday, 22 February 2019, 00:17 GMT
I can confirm that linux 4.20.11 fixes the issue.
Comment by Ugis Lacis (ugis) - Friday, 22 February 2019, 06:43 GMT
I also confirm, that powertop does not fail with segmentation fault on 4.20.11-arch1-1-ARCH kernel.
Comment by Rajat Roy (rexdrive) - Friday, 22 February 2019, 14:48 GMT
The issue is resolved with the latest update to `linux 4.20.11.arch1-1`. Please close the bug report. Thank You!

Loading...