Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195966 - net-irc/xchat-xsys-2.1.0-r1: floating point exception on /meminfo when no swap is mounted
Summary: net-irc/xchat-xsys-2.1.0-r1: floating point exception on /meminfo when no swa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-15 17:55 UTC by Emopig
Modified: 2007-10-16 10:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed fix (xchat-xsys-2.1.0-fix-meminfo-swapoff.patch,5.14 KB, patch)
2007-10-15 17:59 UTC, Emopig
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emopig 2007-10-15 17:55:33 UTC
X-Chat X-Sys causes a floating point exception when /meminfo is used and no swap is mounted.

Reproducible: Always

Steps to Reproduce:
1. As root "swapoff" all your swap
2. Fire up X-Chat with X-Sys and join a channel
3. Type /meminfo

Actual Results:  
Floating point exception. Boom no more X-Chat.

Expected Results:  
Memory stats to be displayed
Comment 1 Emopig 2007-10-15 17:59:49 UTC
Created attachment 133554 [details, diff]
Proposed fix

Enhances X-Chat X-Sys's /meminfo callback, makes the string formatting a lot more robust and handles the special case for when no swap is mounted.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2007-10-16 09:43:21 UTC
Thank you for both finding the bug and patching it. This code is refactored in my 2.2.0 development branch, I'll make sure to test for the same bug in 2.2 before releasing anything.
As I want to preemptively fix up the audacious dependency at the same time, I'm awaiting the Alpha arch team before I will commit this.

Intended changes:
+*xchat-xsys-2.1.0-r2 (16 Oct 2007)
+
+  16 Oct 2007; Tony Vroon <chainsaw@gentoo.org>
+  +files/2.1.0-fix-meminfo-swapoff.patch, xchat-xsys-2.1.0-r1.ebuild,
+  +xchat-xsys-2.1.0-r2.ebuild:
+  Fix floating point exception with no swap mounted. Bug found and patched by
+  Emopig <andrew@nelless.net>, closes bug #195966. Preemptively fix
+  dependencies so the 2.1 branch will not be built against Audacious 1.4, this
+  would fail.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2007-10-16 10:20:43 UTC
This is done, thanks! :)