Sometimes vmcore tarball is corrupted when generated using /proc/sysrq-trigger
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Zhixiong Chi |
Bug Description
Brief Description
-----------------
I generate a vmcore using 'echo c > /proc/sysrq-
sysadmin@
202309280221/
202309280221/
202309280221/
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Severity
--------
Minor
Steps to Reproduce
------------------
(1) Run 'sudo bash; echo c > /proc/sysrq-
(2) Unpack the vmcore tarball under '/var/log/crash' using command 'tar xzvf vmcore_
Expected Behavior
------------------
Write down what was expected after taking the steps written above
Actual Behavior
----------------
State what is the actual behavior
Reproducibility
---------------
Not 100% Reproducible
System Configuration
-------
Branch/Pull Time/Commit
-------
Last Pass
---------
Timestamp/Logs
--------------
The raw size of the vmcore is 198M, but the vmcore tarball's size is just 40M.
2023-09-
sysadmin@
total 41768
-rw-r--r-- 1 root root 42769829 Sep 28 02:22 vmcore_
When unpacking it, it fails with error 'Unexpected EOF in archive'.
sysadmin@
sysadmin@
202309280221/
202309280221/
202309280221/
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
When loading it using crash tool, it says the image is truncated/
sysadmin@
crash 7.2.9
Copyright (C) 2002-2020 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.
please wait... (sorting flat format data: 99%)
crash: read error: 202309280221/
crash: 202309280221/
Test Activity
-------------
Workaround
----------
Changed in starlingx: | |
assignee: | nobody → Zhixiong Chi (zhixiongchi) |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.9.0 stx.distro.other |
Fix proposed to branch: master /review. opendev. org/c/starlingx /utilities/ +/900151
Review: https:/