Linux

在我的系統崩潰並執行崩潰後,我收到以下錯誤:不支持的文件格式

  • December 5, 2015

我的系統崩潰了,即使在瀏覽了通常的日誌後我無法知道導致崩潰的原因:消息、dmesg、安全等。我沒有看到任何有價值的東西,所以我決定按照教程來了解如何執行崩潰應用程序以查看可能發生的情況。

每次我執行它時:

$ sudo crash System.map-3.10.0-123.el7 vmlinuz-3.10.0-123.el7 vmcore

我收到以下錯誤: crash: vmlinuz-3.10.0-123.el7: not a supported file format

這是輸出:

crash 7.0.9-5.el7_1
Copyright (C) 2002-2014  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.

crash: vmlinuz-3.10.0-123.el7: not a supported file format

Usage:

 crash [OPTION]... NAMELIST MEMORY-IMAGE[@ADDRESS] (dumpfile form)
 crash [OPTION]... [NAMELIST]                  (live system form)

Enter "crash -h" for details.

我正在使用 CentOS 7。可能出了什麼問題?而且,任何關於如何獲得有關崩潰的更好資訊的想法都將不勝感激。

vmlinuz 格式是壓縮的 AFAIK。這些步驟太長,無法在此處複製粘貼,因此我將提供一個連結。

https://stackoverflow.com/a/30514503/3979290

引用自:https://unix.stackexchange.com/questions/247489