crash: arm64: don't support some BT commands

Bug #1466686 reported by Ming Lei
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crash (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned

Bug Description

On trusty, some BT commands are missed for ARM64.

[Impact]
some BT commands aren't usable, such as bt -e, bt -l, ...

[Test Case]
- start crash
- run bt -e

crash> bt -e
PID: 2113 TASK: ffffffc3e3446180 CPU: 5 COMMAND: "crash"
bt: arm64_eframe_search: function not implemented

[Regression Potential]
These changes are to code that only gets compiled on arm64, so
there's no risk to other architectures. Also the proposed change is
merged to upstream alread.

The patches in below link can make them workable:

http://kernel.ubuntu.com/git/ming/crash-trusty.git/commit/?id=3d11253387a609283054c8b0d76b0d33704b6e27

http://kernel.ubuntu.com/git/ming/crash-trusty.git/commit/?id=2c43ddb93e0591e14c92c5d7469ed2c6029df5a5

http://kernel.ubuntu.com/git/ming/crash-trusty.git/commit/?id=f384eaa863b82009caaf136bc88c3e6f5c0ceb66

http://kernel.ubuntu.com/git/ming/crash-trusty.git/commit/?id=653aa6bc8b5108bf6a6f737275fe4a1b94ba4703

dann frazier (dannf)
Changed in crash (Ubuntu Trusty):
status: New → In Progress
Changed in crash (Ubuntu):
status: New → Fix Released
Revision history for this message
dann frazier (dannf) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Ming, or anyone else affected,

Accepted crash into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/crash/7.0.3-3ubuntu4.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in crash (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Ming Lei (tom-leiming) wrote :

ubuntu@am2:~$ sudo crash vmlinux
[sudo] password for ubuntu:

crash 7.0.3
Copyright (C) 2002-2013 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 "aarch64-unknown-linux-gnu"...

      KERNEL: vmlinux
    DUMPFILE: /dev/mem
        CPUS: 8
        DATE: Thu Jun 25 21:58:34 2015
      UPTIME: 00:03:29
LOAD AVERAGE: 0.08, 0.03, 0.01
       TASKS: 130
    NODENAME: am2
     RELEASE: 3.13.11-ckt21+
     VERSION: #35 SMP PREEMPT Thu Jun 18 03:19:42 EDT 2015
     MACHINE: aarch64 (unknown Mhz)
      MEMORY: 16 GB
         PID: 1766
     COMMAND: "crash"
        TASK: ffffffc3e79be180 [THREAD_INFO: ffffffc3e3c44000]
         CPU: 3
       STATE: TASK_RUNNING (ACTIVE)

crash> bt -e
PID: 1766 TASK: ffffffc3e79be180 CPU: 5 COMMAND: "crash"
USER-MODE EXCEPTION FRAME AT: ffffffc3e3c47ed0
     PC: 0000007fa68812cc LR: 000000000047ad2c SP: 0000007fd2a4c400
    X29: 0000007fd2a4c400 X28: 000000000094b000 X27: 0000000000001000
    X26: 0000007fa67c4710 X25: ffffffc3e3c47000 X24: 0000000000982080
    X23: 00000000009fd488 X22: 0000000000000004 X21: 0000000000001000
    X20: 000000000094b000 X19: 00000043e3c47000 X18: 0000007fd2a4ca60
    X17: 0000007fa68812b0 X16: 0000000000000000 X15: 0000007fa690b590
    X14: 0000000000000000 X13: 0000000000000000 X12: 0000000000000028
    X11: 0000000000000005 X10: 0000000028521830 X9: 0000000000000004
     X8: 000000000000003f X7: 000000000099a030 X6: 000000000000003f
     X5: 000000000047ac18 X4: 000000000099f9e8 X3: ffffffc3e3c47000
     X2: 0000000000001000 X1: 00000000009fd488 X0: 0000000000000004
    ORIG_X0: 0000000000000004 SYSCALLNO: 3f PSTATE: 60000000
crash>
crash> quit
ubuntu@am2:~$ sudo dpkg -l crash
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii crash 7.0.3-3ubunt arm64 kernel debugging utility, allowin
ubuntu@am2:~$

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package crash - 7.0.3-3ubuntu4.2

---------------
crash (7.0.3-3ubuntu4.2) trusty; urgency=medium

  * Initial-working-implementation-of-the-basic-ARM64-bt.patch,
    Cleaned-up-the-exception-frame-displays-of-64-bit-in.patch,
    Implemented-support-for-the-ARM64-bt-e-option.patch,
    Implemented-support-for-the-ARM64-bt-l-option.patch:
     - Add initial ARM64 support for the 'bt' command. (LP: #1466686)
  * Fix-for-the-ARM64-page-size-determination-on-Linux-4.patch. (LP: #1460941)

 -- dann frazier <email address hidden> Tue, 23 Jun 2015 09:37:27 -0500

Changed in crash (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote : Update Released

The verification of the Stable Release Update for crash has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.