Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1287038

Summary: free - error while parsing arguments
Product: Red Hat Enterprise Linux 7 Reporter: Branislav Náter <bnater>
Component: procps-ngAssignee: Jan Rybar <jrybar>
Status: CLOSED ERRATA QA Contact: Jan Houska <jhouska>
Severity: medium Docs Contact:
Priority: high    
Version: 7.2CC: jkurik
Target Milestone: rcKeywords: Upstream, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: procps-ng-3.3.10-5.el7 Doc Type: Bug Fix
Doc Text:
A fix of Bug 1262864 indirectly triggered a hidden issue in the "free" utility, where missing initialization of the error status variable used for text string to floating point number conversions caused a failure of the "-s", "--seconds" command-line option processing. Consequently, the following message was returned to the user: "free: seconds argument failed". This bug has been fixed, and using the "-s", "--seconds" option with the "free" command no longer leads to failures.
Story Points: ---
Clone Of:
: 1287174 (view as bug list) Environment:
Last Closed: 2016-11-04 06:36:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1287174    
Attachments:
Description Flags
Patch applied to the package none

Description Branislav Náter 2015-12-01 11:18:43 UTC
Description of problem:
After update to procps-ng-3.3.10-4.el7_2, free is failing when interval for printing output is passed (-s, --seconds)

Version-Release number of selected component (if applicable):
procps-ng-3.3.10-4.el7_2

How reproducible:
Always, see bellow

Steps to Reproduce:
1. free -s 2

Actual results:
free: seconds argument `2' failed

Expected results: (output printed every 2 seconds)
              total        used        free      shared  buff/cache   available
Mem:        3882420      211260      799756       25484     2871404     3354752
Swap:             0           0           0

Comment 1 Jaromír Cápík 2015-12-01 11:38:48 UTC
I can reproduce this even on Fedora. Looks like triggered by some glibc changes.

Comment 2 Jaromír Cápík 2015-12-01 15:50:43 UTC
It's a bug in the free tool. The 'errno' variable is not zeroed prior calling 'strtof'.

Comment 3 Jaromír Cápík 2015-12-01 16:11:36 UTC
Unfortunately it's triggered indirectly and blocks the Z-stream fix.

Comment 8 Jan Rybar 2016-06-15 13:26:36 UTC
Created attachment 1168386 [details]
Patch applied to the package

Comment 9 Jan Rybar 2016-06-15 13:32:52 UTC
Issue already resolved on upstream side in commit https://gitlab.com/procps-ng/procps/commit/fd007d6d1df1714bda1338d8423c8c72238a6a14.

Comment 13 errata-xmlrpc 2016-11-04 06:36:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2447.html