Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415699 - sys-cluster/maui-3.3.1-r2: showstats segfaults
Summary: sys-cluster/maui-3.3.1-r2: showstats segfaults
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-13 06:11 UTC by Andrew Savchenko
Modified: 2012-10-05 16:06 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,5.81 KB, text/plain)
2012-05-13 06:12 UTC, Andrew Savchenko
Details
maui-3.3.1-showstats.patch (maui-3.3.1-showstats.patch,1.15 KB, patch)
2012-05-13 06:13 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2012-05-13 06:11:52 UTC
Hello,

showstats without arguments or with -v segfaults.
This happens when compiled with -O1 or higher, works with -O0.

Further investigation shows that sscanf was used with the violation of the C standard: source and destination buffers were overlapping. Proposed patch fixes this, I send it upstream to mauiusers mail list with no reply, ML looks stagnant.
Comment 1 Andrew Savchenko gentoo-dev 2012-05-13 06:12:29 UTC
Created attachment 311575 [details]
emerge --info
Comment 2 Andrew Savchenko gentoo-dev 2012-05-13 06:13:12 UTC
Created attachment 311577 [details, diff]
maui-3.3.1-showstats.patch
Comment 3 Andrew Savchenko gentoo-dev 2012-10-05 16:06:37 UTC
This patch was accepted upstream and will be available in the upcoming 3.3.2 release:
http://www.clusterresources.com/pipermail/mauiusers/2012-October/004948.html