Bug 8563 - Update candidate: powertop update to fix crash with segfault
Summary: Update candidate: powertop update to fix crash with segfault
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure mga2-64-ok mga2-32-ok
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-12-31 20:57 CET by w unruh
Modified: 2013-05-09 12:28 CEST (History)
2 users (show)

See Also:
Source RPM: powertop-2.3-1.mga2
CVE:
Status comment:


Attachments

Description w unruh 2012-12-31 20:57:11 CET
Description of problem: powertop --configure crashes with segfault
Cut and paste of a session:

powertop --calibrate 
Starting PowerTOP power estimate calibration
Calibrating idle
Segmentation fault (core dumped)

It dims the screen, brings down the wireless (I see the notification just
before the blanking) and then blanks the screen. The screen stays blank
 "forever" (many minutes) If I hit the return key, or any other, the screen comes back up on the dim setting with that segmentation fault error listed.
This happens whether the machine is plugged in or not when running the command.

Panasonic toughbook S10 Intel graphics,

Version-Release number of selected component (if applicable):


How reproducible:

Always



This is the end of an strace powertop --calibrate
which should tell you where it was when it crashed.

---------------------------------------------------------------------
open("/sys/bus/usb/devices/4-1/power/active_duration", O_RDONLY|O_LARGEFILE) = 3
read(3, "4951\n", 8191)                 = 5
close(3)                                = 0
open("/sys/bus/usb/devices/4-1/power/connected_duration", O_RDONLY|O_LARGEFILE) = 3
read(3, "141640045\n", 8191)            = 10
close(3)                                = 0
open("/sys/bus/usb/devices/1-1.1/power/active_duration", O_RDONLY|O_LARGEFILE) = 3
read(3, "54379342\n", 8191)             = 9
close(3)                                = 0
open("/sys/bus/usb/devices/1-1.1/power/connected_duration", O_RDONLY|O_LARGEFILE) = 3
read(3, "141639828\n", 8191)            = 10
close(3)                                = 0
open("/sys/bus/usb/devices/1-1.2/power/active_duration", O_RDONLY|O_LARGEFILE) = 3
read(3, "306741\n", 8191)               = 7
close(3)                                = 0
open("/sys/bus/usb/devices/1-1.2/power/connected_duration", O_RDONLY|O_LARGEFILE) = 3
read(3, "70232960\n", 8191)             = 9
close(3)                                = 0
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} (Segmentation fault) ---
+++ killed by SIGSEGV (core dumped) +++
------------------------------------------------------------------------------



Steps to Reproduce: See above
1.
2.
3.
Comment 1 Manuel Hiebel 2013-01-01 17:57:28 CET
can you provide a backtrace ?

https://wiki.mageia.org/en/Debugging_software_crashes#gdb
Comment 2 w unruh 2013-01-01 19:42:54 CET
I compiled powertop 2.2-2mga3 from Mageia cauldron on the Mageia 2 machine, and it
works fine-- no segfault. Since 2.2 is a much better version anyway (gives power readings for the various components) , it might
be well to just port it back to Mageia 2 instead of trying to fix 2.0-1mga2

It is hard for me to regress the version to run gdb backtrace on the original powertop.
Comment 3 Manuel Hiebel 2013-01-02 19:29:06 CET
Usually we don't update packages (to a new version), but for bugfix, why not.
Let's see that with the maintainer

Assignee: bugsquad => mageia
Severity: critical => major

Comment 4 Damien Lallement 2013-05-06 11:37:57 CEST
WIP

Status: NEW => ASSIGNED

Comment 5 Damien Lallement 2013-05-06 18:11:29 CEST
Can you please test "powertop-2.3-1.mga2" from "2 - core/updates_testing"?
Comment 6 w unruh 2013-05-06 19:59:17 CEST
It is no longer crashing.
Comment 7 Damien Lallement 2013-05-07 13:25:03 CEST
(In reply to w unruh from comment #6)
> It is no longer crashing.

Thank you for the test! Assining to QA Team.

Suggested advisory:
========================

Updated powertop package fix bug : 8563.
Previous release of powertop was segfaulting on new Intel GPU.
This update adds better CPU/GPU support and a man page.

References:
========================
https://bugs.mageia.org/show_bug.cgi?id=8563

Updated packages in core/updates_testing:
========================
powertop-2.3-1.mga2

Source RPM:
powertop-2.3-1.mga2.src.rpm

How to test:
========================

- Install 2 and powertop from "core"
- See the there is no manpage (man powertop) (hard to check crash as it depends on HW).
- Install powertop 2.3 from "updates_testing" and check that there is now a manpage and that it's no longer segfaulting.

Hardware: i586 => All
Assignee: mageia => qa-bugs
Summary: powertop crashed with Segfault => Update candidate: powertop update to fix crash with segfault
Source RPM: powertop-2.0-1.mga2 => powertop-2.3-1.mga2
Severity: major => normal

Comment 8 claire robinson 2013-05-07 15:29:05 CEST
Testing complete mga2 32 & 64

Segfault present on both boxes and cured by update. Man page present.

Validating

Advisory & srpm in comment 7

Could sysadmin please push from core/updates_testing to core/updates

Thanks!

Keywords: (none) => validated_update
Whiteboard: (none) => has_procedure mga2-64-ok mga3-32-ok
CC: (none) => sysadmin-bugs

claire robinson 2013-05-07 15:29:28 CEST

Whiteboard: has_procedure mga2-64-ok mga3-32-ok => has_procedure mga2-64-ok mga2-32-ok

Comment 9 Thomas Backlund 2013-05-09 12:28:43 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2013-0020

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.