Bug 1441914
| Summary: | crash-trace-command: fails to load trace.so on s390x with error: Error in `crash': free(): invalid next size (fast) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Emma Wu <xiawu> |
| Component: | crash-trace-command | Assignee: | Dave Anderson <anderson> |
| Status: | CLOSED ERRATA | QA Contact: | Emma Wu <xiawu> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | feij.fnst, ksanagi, qzhao, tumeya, yishimat |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | s390x | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | crash-trace-command-2.0-12.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 12:50:41 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: | |||
|
Comment 2
Dave Anderson
2017-04-13 13:49:08 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.
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 |