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 875077 - vmstat crashing on s390x
Summary: vmstat crashing on s390x
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: procps
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jaromír Cápík
QA Contact: Martin Kyral
URL:
Whiteboard:
Depends On:
Blocks: 881827
TreeView+ depends on / blocked
 
Reported: 2012-11-09 13:25 UTC by Martin Kyral
Modified: 2016-02-01 01:57 UTC (History)
3 users (show)

Fixed In Version: procps-3.2.8-25.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-15 13:41:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
core dump of 'vmstat 1' on s390x (284.00 KB, application/octet-stream)
2012-11-09 13:25 UTC, Martin Kyral
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:1463 0 normal SHIPPED_LIVE procps bug fix update 2012-11-15 18:39:54 UTC

Description Martin Kyral 2012-11-09 13:25:09 UTC
Created attachment 641529 [details]
core dump of 'vmstat 1' on s390x

Description of problem:
On s390x boxes, vmstat is crashing with "Floating point exception":

[root@ibm-z10-29 ~]# vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0 106892  32752 647648    0    0    73    71    0  118  3  2  0  0 96
Floating point exception (core dumped)
[root@ibm-z10-29 ~]# echo $?
136


Version-Release number of selected component (if applicable):
procps-3.2.8-24.el6

How reproducible:
Always


Steps to Reproduce:
1. vmstat 1
  
Actual results:
vmstat crashes after printing several lines of output (one or two in most cases)


Expected results:
vmstat produces output at given rate until user terminates it


Additional info:
Other supported platforms are not affected.
Core dump attached.

Comment 2 Martin Kyral 2012-11-09 16:32:18 UTC
Issue found during errata testing. It is present in procps-3.2.8-23.el6 (current released version) too.

Comment 3 Martin Kyral 2012-11-13 14:38:14 UTC
core dump analysis:

Core was generated by `vmstat 1'.
Program terminated with signal 8, Arithmetic exception.
#0  0x0000000080003290 in new_format (argc=<value optimized out>, argv=<value optimized out>)
    at /usr/include/bits/stdio2.h:105

warning: Source file is more recent than executable.
105       return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
(gdb) i th
* 1 Thread 27615  0x0000000080003290 in new_format (argc=<value optimized out>, argv=<value optimized out>)
    at /usr/include/bits/stdio2.h:105
(gdb) t a a bt

Thread 1 (Thread 27615):
#0  0x0000000080003290 in new_format (argc=<value optimized out>, argv=<value optimized out>)
    at /usr/include/bits/stdio2.h:105
#1  main (argc=<value optimized out>, argv=<value optimized out>) at vmstat.c:726

Comment 4 Jaromír Cápík 2012-11-13 16:13:00 UTC
The problem is caused by the platform/kernel. The sum of all ticks (user+system+idle+io+stl) is zero. That for sure distorts the stats. I can make vmstat more robust for cases like that.

Comment 8 errata-xmlrpc 2012-11-15 13:41:05 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.

http://rhn.redhat.com/errata/RHBA-2012-1463.html


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