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 1441914 - crash-trace-command: fails to load trace.so on s390x with error: Error in `crash': free(): invalid next size (fast)
Summary: crash-trace-command: fails to load trace.so on s390x with error: Error in `cr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: crash-trace-command
Version: 7.4
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Dave Anderson
QA Contact: Emma Wu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-13 05:36 UTC by Emma Wu
Modified: 2019-02-19 21:40 UTC (History)
5 users (show)

Fixed In Version: crash-trace-command-2.0-12.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 12:50:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2267 0 normal SHIPPED_LIVE crash-trace-command bug fix update 2017-08-01 16:11:07 UTC

Comment 2 Dave Anderson 2017-04-13 13:49:08 UTC
I can only reproduce it like this:

# crash

crash 7.1.8-2.el7
Copyright (C) 2002-2016  Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010  IBM Corporation
Copyright (C) 1999-2006  Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012  Fujitsu Limited
Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011  NEC Corporation
Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions.  Enter "help copying" to see the conditions.
This program has absolutely no warranty.  Enter "help warranty" for details.
 
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "s390x-ibm-linux-gnu"...

      KERNEL: /usr/lib/debug/lib/modules/3.10.0-648.el7.s390x/vmlinux
    DUMPFILE: /dev/crash
        CPUS: 2
        DATE: Thu Apr 13 09:43:40 2017
      UPTIME: 00:15:00
LOAD AVERAGE: 0.12, 0.18, 0.19
       TASKS: 119
    NODENAME: ibm-z10-52.rhts.eng.bos.redhat.com
     RELEASE: 3.10.0-648.el7.s390x
     VERSION: #1 SMP Mon Apr 10 13:29:04 EDT 2017
     MACHINE: s390x  (unknown Mhz)
      MEMORY: 1 GB
         PID: 11795
     COMMAND: "crash"
        TASK: 3d6dc200  [THREAD_INFO: 106d8000]
         CPU: 0
       STATE: TASK_RUNNING (ACTIVE)

crash> extend trace.so
extend: Num of pages is less than 0
extend: /usr/lib64/crash/extensions/trace.so: no commands registered: shared object unloaded
crash>

But given the backtrace, presumably it is associated with the big-endian
issue reported in BZ #1440726:

> crash> extend /usr/lib64/crash/extensions/trace.so
> *** Error in `crash': free(): invalid next size (fast): 0x00000000b5037ab0 ***
> extend: Num of pages is less than 0
> ======= Backtrace: =========
> /lib64/libc.so.6(cfree+0x468)[0x3fffd08df20]
> /usr/lib64/crash/extensions/trace.so(+0x43b8)[0x3fff692b3b8]
> /usr/lib64/crash/extensions/trace.so(+0x1e02)[0x3fff6928e02]
> /usr/lib64/crash/extensions/trace.so(trace_init+0x5a0)[0x3fff692a8a8]
> /lib/ld64.so.1(+0x11810)[0x3fffd317810]
...

Comment 3 Dave Anderson 2017-04-13 13:55:52 UTC
Data point: if I apply this simple patch:

  diff --git a/extensions/trace.c b/extensions/trace.c
  index a93abdc..06f431b 100644
  --- a/extensions/trace.c
  +++ b/extensions/trace.c
  @@ -96,7 +96,7 @@ struct ring_buffer_per_cpu {
          ulong real_head_page;
   
          int head_page_index;
  -       unsigned int nr_pages;
  +       unsigned long nr_pages;
          ulong *pages;
 
          ulong *linear_pages;

The module installs:

# /usr/bin/crash

crash 7.1.8-2.el7
Copyright (C) 2002-2016  Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010  IBM Corporation
Copyright (C) 1999-2006  Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012  Fujitsu Limited
Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011  NEC Corporation
Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions.  Enter "help copying" to see the conditions.
This program has absolutely no warranty.  Enter "help warranty" for details.
 
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "s390x-ibm-linux-gnu"...

      KERNEL: /usr/lib/debug/lib/modules/3.10.0-648.el7.s390x/vmlinux
    DUMPFILE: /dev/crash
        CPUS: 2
        DATE: Thu Apr 13 09:51:22 2017
      UPTIME: 00:22:42
LOAD AVERAGE: 0.32, 0.50, 0.34
       TASKS: 118
    NODENAME: ibm-z10-52.rhts.eng.bos.redhat.com
     RELEASE: 3.10.0-648.el7.s390x
     VERSION: #1 SMP Mon Apr 10 13:29:04 EDT 2017
     MACHINE: s390x  (unknown Mhz)
      MEMORY: 1 GB
         PID: 43412
     COMMAND: "crash"
        TASK: 3f140000  [THREAD_INFO: 3c7c0000]
         CPU: 0
       STATE: TASK_RUNNING (ACTIVE)

crash> extend extensions/trace.so
./extensions/trace.so: shared object loaded
crash> 

But, as discussed with Fei Jie in BZ #1440726, the simple patch above is 
not backwards-compatible.

Comment 11 errata-xmlrpc 2017-08-01 12:50:41 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://access.redhat.com/errata/RHBA-2017:2267


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