This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tdep/21003] GDB crashed on disassembly when arch is set to ARC601


https://sourceware.org/bugzilla/show_bug.cgi?id=21003

--- Comment #1 from Yao Qi <qiyao at gcc dot gnu.org> ---
(In reply to Yao Qi from comment #0)

> (gdb) bt 10
> #0  0x00007ffff63c3c37 in __GI_raise (sig=sig@entry=6) at
> ../nptl/sysdeps/unix/sysv/linux/raise.c:56
> #1  0x00007ffff63c7028 in __GI_abort () at abort.c:89
> #2  0x00000000007db776 in arc_insn_length (msb=72 'H', lsb=85 'U',
> info=0x7fffffffd920) at
> /home/yao/SourceCode/gnu/gdb/git/opcodes/arc-dis.c:593
> #3  0x00000000007dbff8 in print_insn_arc (memaddr=4195942,
> info=0x7fffffffd920) at
> /home/yao/SourceCode/gnu/gdb/git/opcodes/arc-dis.c:900
> #4  0x00000000006711d2 in gdb_disassembler::print_insn (this=0x7fffffffd920,
> memaddr=<optimised out>) at /home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:938
> #5  0x000000000067145b in gdb_disassembler::pretty_print_insn
> (this=this@entry=0x7fffffffd920, uiout=uiout@entry=0x2193490,
> insn=insn@entry=0x7fffffffd7f0, 
>     flags=flags@entry=4) at /home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:291
> #6  0x0000000000671593 in dump_insns (uiout=uiout@entry=0x2193490,
> di=di@entry=0x7fffffffd920, low=low@entry=4195942, high=high@entry=4196112, 
>     how_many=how_many@entry=-1, flags=flags@entry=4, end_pc=0x0) at
> /home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:443
> #7  0x000000000067209d in do_assembly_only (flags=4, how_many=-1,
> high=4196112, low=4195942, di=0x7fffffffd920, uiout=0x2193490)
>     at /home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:886
> #8  gdb_disassembly (gdbarch=gdbarch@entry=0x270aba0, uiout=0x2193490,
> file_string=file_string@entry=0x0, flags=flags@entry=4,
> how_many=how_many@entry=-1, 
>     low=low@entry=4195942, high=4196112) at
> /home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:979
> #9  0x000000000058e0cb in print_disassembly (gdbarch=0x270aba0,
> name=<optimised out>, low=4195942, high=4196112, flags=4)
>     at /home/yao/SourceCode/gnu/gdb/git/gdb/cli/cli-cmds.c:1151
> 

The stack backtrace has one local patch, here is the one without any patches,

#0  0x00007ffff6527c37 in __GI_raise (sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff652b028 in __GI_abort () at abort.c:89
#2  0x00000000007cbf87 in print_insn_arc (memaddr=4195933, info=<optimized
out>) at ../../binutils-gdb/opcodes/arc-dis.c:997
#3  0x0000000000414de1 in arc_delayed_print_insn(unsigned long,
disassemble_info*) ()
#4  0x000000000065d73e in gdb_pretty_print_insn
(gdbarch=gdbarch@entry=0x20ded70, uiout=uiout@entry=0x20c3b10,
di=di@entry=0x7fffffffdef0, 
    insn=insn@entry=0x7fffffffdda0, flags=flags@entry=4,
stb=stb@entry=0x2120ea0) at ../../binutils-gdb/gdb/disasm.c:276
#5  0x000000000065d8a7 in dump_insns (gdbarch=gdbarch@entry=0x20ded70,
uiout=uiout@entry=0x20c3b10, di=di@entry=0x7fffffffdef0, low=low@entry=4195933, 
    high=high@entry=4196103, how_many=how_many@entry=-1, flags=flags@entry=4,
stb=stb@entry=0x2120ea0, end_pc=end_pc@entry=0x0)
    at ../../binutils-gdb/gdb/disasm.c:303
#6  0x000000000065e189 in do_assembly_only (stb=0x2120ea0, flags=4,
how_many=-1, high=4196103, low=4195933, di=0x7fffffffdef0, uiout=0x20c3b10, 
    gdbarch=0x20ded70) at ../../binutils-gdb/gdb/disasm.c:745
#7  gdb_disassembly (gdbarch=gdbarch@entry=0x20ded70, uiout=0x20c3b10,
file_string=file_string@entry=0x0, flags=flags@entry=4,
how_many=how_many@entry=-1, 
    low=low@entry=4195933, high=high@entry=4196103) at
../../binutils-gdb/gdb/disasm.c:811
#8  0x000000000058e23d in print_disassembly (gdbarch=0x20ded70, name=<optimized
out>, low=4195933, high=4196103, flags=4)
    at ../../binutils-gdb/gdb/cli/cli-cmds.c:1151
#9  0x000000000058f129 in print_disassembly (flags=4, high=4196103,
low=4195933, name=0x20deb75 "main", gdbarch=0x20ded70)
    at ../../binutils-gdb/gdb/cli/cli-cmds.c:1140

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]