[SRU] htop crashes when setting cpu affinity

Bug #1589549 reported by Robert Gierzinger
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
htop (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * htop 2.0.1 segfaults drawing a panel on screen when compiled with -fPIE
   (default on Xenial)
 * justification: severe functionality loss for users and easy to trigger
   by accident
 * remedy: apply fix from upstream commit 4758f028

[Test Case]

 * start htop
 * press key <a>
 * press key <cr>

[Regression Potential]

 * two line fix: s/int/size_t/
 * rdeps are freedombox-setup and hollywood

[Other Info]

 * Fixed in htop 2.0.2-1 in Yakkety Yak

-----------------------------------------------------------------------------

See the resolved Bug: https://github.com/hishamhm/htop/issues/493

when trying to set the cpu affinity (with "a") htop crashes.
System: Ubuntu 16.04/amd64

htop:
  Installed: 2.0.1-1
  Candidate: 2.0.1-1
  Version table:
 *** 2.0.1-1 500
        500 http://at.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

Graham Inggs (ginggs)
Changed in htop (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package htop - 2.0.2-1

---------------
htop (2.0.2-1) unstable; urgency=medium

  * Update to upstream version 2.0.2
    - Use SOURCE_DATE_EPOCH instead of current year in copyright message
      to make build reproducible. (Closes: #822963)
    - Fix build to detect the Hurd as a Linux platform. (Closes: #821747)
    - Fix crash when setting CPU affinity and -fPIE. (LP: #1589549)
  * Bump Standards to 3.9.8 (no changes required)

 -- Daniel Lange <email address hidden> Mon, 25 Jul 2016 19:46:17 +0200

Changed in htop (Ubuntu):
status: Confirmed → Fix Released
Daniel Lange (dlange)
description: updated
summary: - htop crashes when setting cpu affinity
+ [SRU] htop crashes when setting cpu affinity
Revision history for this message
Daniel Lange (dlange) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Robert, or anyone else affected,

Accepted htop into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/htop/2.0.1-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in htop (Ubuntu Xenial):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Robert Gierzinger (robert-gierzinger) wrote :

thanks for your work. I tested 2.0.1-1ubuntu1 on multiple machines and no troubles so far.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package htop - 2.0.1-1ubuntu1

---------------
htop (2.0.1-1ubuntu1) xenial; urgency=medium

  * SRU patch segfault with -fPIE when setting cpu affinity
    (LP: #1589549)

 -- Daniel Lange <email address hidden> Tue, 02 Aug 2016 19:28:25 +0200

Changed in htop (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for htop has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.