This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20939] New: GDB aborts if there is an error in disassembly
- From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 06 Dec 2016 10:45:05 +0000
- Subject: [Bug gdb/20939] New: GDB aborts if there is an error in disassembly
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20939
Bug ID: 20939
Summary: GDB aborts if there is an error in disassembly
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: qiyao at gcc dot gnu.org
Target Milestone: ---
(gdb) disassemble 0x0,+4
Dump of assembler code from 0x0 to 0x4:
terminate called after throwing an instance of
'gdb_exception_RETURN_MASK_ERROR'
0x0000000000000000: Aborted
This can be reproduced on aarch64-linux and ppc64-linux.
#0 __GI_abort () at abort.c:51
#1 0x000000000076bd2c in __gnu_cxx::__verbose_terminate_handler() ()
#2 0x0000000000766794 in __cxxabiv1::__terminate(void (*)()) ()
#3 0x00000000007667dc in std::terminate() ()
#4 0x0000000000764848 in __cxa_throw ()
#5 0x000000000053e78c in throw_exception_cxx (exception=...) at
../../binutils-gdb/gdb/common/common-exceptions.c:303
#6 0x000000000053e840 in throw_exception (exception=...) at
../../binutils-gdb/gdb/common/common-exceptions.c:317
#7 throw_it (reason=reason@entry=RETURN_ERROR, error=MEMORY_ERROR,
fmt=fmt@entry=0x85ec70 "%s",
ap=<error reading variable: Cannot access memory at address
0x474e5543432b2b00>) at ../../binutils-gdb/gdb/common/common-exceptions.c:373
#8 0x000000000053ea58 in throw_verror (error=<optimized out>,
fmt=fmt@entry=0x85ec70 "%s", ap=<error reading variable: Cannot access memory
at address 0x2>)
at ../../binutils-gdb/gdb/common/common-exceptions.c:379
#9 0x000000000053eb04 in throw_error (error=<optimized out>,
fmt=fmt@entry=0x85ec70 "%s") at
../../binutils-gdb/gdb/common/common-exceptions.c:394
#10 0x0000000000544228 in memory_error (err=TARGET_XFER_E_IO,
memaddr=<optimized out>) at ../../binutils-gdb/gdb/corefile.c:237
#11 0x00000000006b0a54 in print_insn_aarch64 (pc=0, info=0xffffffffeeb0) at
../../binutils-gdb/opcodes/aarch64-dis.c:3185
#12 0x0000000000553590 in gdb_pretty_print_insn
(gdbarch=gdbarch@entry=0xbbceb0, uiout=uiout@entry=0xbc73d0,
di=di@entry=0xffffffffeeb0,
insn=0xffffffffed40, insn@entry=0xffffffffed90, flags=flags@entry=0,
stb=stb@entry=0xbd5100) at ../../binutils-gdb/gdb/disasm.c:276
#13 0x00000000005536c0 in dump_insns (gdbarch=0xbbceb0, gdbarch@entry=0x0,
uiout=uiout@entry=0xbc73d0, di=0xffffffffeeb0, di@entry=0xffffffffef90,
low=low@entry=0, high=4, high@entry=0, how_many=-1, how_many@entry=0,
flags=flags@entry=0, stb=0xbd5100, stb@entry=0x0, end_pc=end_pc@entry=0x0)
at ../../binutils-gdb/gdb/disasm.c:303
#14 0x0000000000553f8c in do_assembly_only (stb=0x0, flags=0, how_many=0,
high=0, low=0, di=0xffffffffef90, uiout=0xbc73d0, gdbarch=0x0)
at ../../binutils-gdb/gdb/disasm.c:745
#15 gdb_disassembly (gdbarch=gdbarch@entry=0xbbceb0, uiout=0xbc73d0,
file_string=file_string@entry=0x0, flags=flags@entry=0, how_many=0,
how_many@entry=-1,
low=low@entry=0, high=0, high@entry=4) at
../../binutils-gdb/gdb/disasm.c:811
#16 0x0000000000485b08 in print_disassembly (gdbarch=0xbbceb0, name=<optimized
out>, low=0, high=4, flags=0) at ../../binutils-gdb/gdb/cli/cli-cmds.c:1151
#17 0x00000000004868fc in print_disassembly (flags=0, high=4, low=0, name=0x0,
gdbarch=0xbbceb0) at ../../binutils-gdb/gdb/cli/cli-cmds.c:1140
#18 disassemble_command (arg=<optimized out>, from_tty=<optimized out>) at
../../binutils-gdb/gdb/cli/cli-cmds.c:1303
#19 0x000000000048a2fc in cmd_func (cmd=0xaffcf0, args=0xbc967c "0x0,+4",
from_tty=1) at ../../binutils-gdb/gdb/cli/cli-decode.c:1913
We need a fix similar to 89525768cd086a0798a504c81fdf7ebcd4c904e1
--
You are receiving this mail because:
You are on the CC list for the bug.