not possible to retrace ppc64el crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
Fix Released
|
Undecided
|
Unassigned | ||
apport (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
I was trying to retrace a ppc64el crash I found and ran into the following issue:
Calling gdb command: gdb-multiarch --ex 'set architecture powerpc:common' --ex 'set gnutarget elf32-powerpc' --ex 'set debug-file-
GNU gdb (Ubuntu 7.7.1-0ubuntu5~
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word".
The target architecture is assumed to be powerpc:common
Architecture of file not recognized.
[New LWP 44625]
warning: Selected architecture powerpc:common is not compatible with reported target architecture powerpc:common64
/build/
A problem internal to GDB has been detected,
further debugging may prove unreliable.
This is because of the following lines in report.py:
# check for foreign architecture
command += ['--ex', 'set architecture arm', '--ex', 'set gnutarget elf32-littlearm']
command += ['--ex', 'set architecture powerpc:common', '--ex', 'set gnutarget elf32-powerpc']
arch = self.get('Uname', 'none').split()[-1]
if 'arm' in arch:
elif 'ppc' in arch:
# note, i386 vs. x86_64 is auto-detected just fine
I wonder if these are really needed as I retraced some arm64 crashes, uname with aarch64, and they retraced the same as when I added the following to report.py:
if 'aarch64' in arch:
command += ['--ex', 'set architecture aarch64', '--ex', 'set gnutarget elf64-littleaar ch64']