Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Anton Kolesov <Anton.Kolesov@synopsys.com>
To: Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
Cc: GDB Patches <gdb-patches@sourceware.org>,
	Simon Marchi <simon.marchi@ericsson.com>,
	Francois Bedard <Francois.Bedard@synopsys.com>,
	Cupertino Miranda <Cupertino.Miranda@synopsys.com>
Subject: RE: ARC disassembler Valgrind error
Date: Fri, 20 Oct 2017 18:44:00 -0000	[thread overview]
Message-ID: <39A54937CC95F24AA2F794E2D2B66B135895FC5E@DE02WEMBXB.internal.synopsys.com> (raw)
In-Reply-To: <6ad8121e-42d1-02d3-b1e3-caef337b524a@ericsson.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 3534 bytes --]

Hi Simon, 

Thanks very much for reporting this!


Hi Claudiu,

Could you please take a look at this? It seems like a usage of uninitialized "needs_limm" variable here:
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=opcodes/arc-dis.c;hb=HEAD#l449
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=opcodes/arc-dis.c;hb=HEAD#l479

Anton

> -----Original Message-----
> From: Simon Marchi [mailto:simon.marchi@ericsson.com]
> Sent: Friday, October 20, 2017 21:07
> To: Anton Kolesov <Anton.Kolesov@synopsys.com>
> Cc: GDB Patches <gdb-patches@sourceware.org>
> Subject: ARC disassembler Valgrind error
> 
> Hi Anton,
> 
> I noticed this error when running the GDB selftests under Valgrind.  Could
> you take a look or forward to whomever is responsible?
> 
> Start gdb under Valgrind:
> 
>   $ valgrind ./gdb
> 
> Ignore all the Python and Guile errors at startup (it's expected).  Then run
> 
>   (gdb) maintenance selftest print_one_insn
> 
> Here's what I get:
> 
> ==12380== Conditional jump or move depends on uninitialised value(s)
> ==12380==    at 0xA0D93E: find_format (arc-dis.c:449)
> ==12380==    by 0xA0EC69: print_insn_arc (arc-dis.c:1121)
> ==12380==    by 0x733B9C: default_print_insn(unsigned long,
> disassemble_info*) (arch-utils.c:957)
> ==12380==    by 0x414A39: arc_delayed_print_insn(unsigned long,
> disassemble_info*) (arc-tdep.c:1433)
> ==12380==    by 0x8577C0: gdbarch_print_insn(gdbarch*, unsigned long,
> disassemble_info*) (gdbarch.c:3273)
> ==12380==    by 0x7BB930: gdb_disassembler::print_insn(unsigned long, int*)
> (disasm.c:765)
> ==12380==    by 0x7BC731:
> selftests::print_one_insn_test(gdbarch*)::gdb_disassembler_test::print_ins
> n(unsigned long) (disasm-selftests.c:130)
> ==12380==    by 0x7BC99E: selftests::print_one_insn_test(gdbarch*) (disasm-
> selftests.c:163)
> ==12380==    by 0x91D6F1: selftests::gdbarch_selftest::operator()() const
> (selftest-arch.c:73)
> ==12380==    by 0x91B361: selftests::run_tests(char const*) (selftest.c:88)
> ==12380==    by 0x8B738A: maintenance_selftest(char const*, int)
> (maint.c:945)
> ==12380==    by 0x62465B: do_const_cfunc(cmd_list_element*, char*, int)
> (cli-decode.c:122)
> ==12380==
> ==12380== Conditional jump or move depends on uninitialised value(s)
> ==12380==    at 0xA0DA26: find_format (arc-dis.c:479)
> ==12380==    by 0xA0EC69: print_insn_arc (arc-dis.c:1121)
> ==12380==    by 0x733B9C: default_print_insn(unsigned long,
> disassemble_info*) (arch-utils.c:957)
> ==12380==    by 0x414A39: arc_delayed_print_insn(unsigned long,
> disassemble_info*) (arc-tdep.c:1433)
> ==12380==    by 0x8577C0: gdbarch_print_insn(gdbarch*, unsigned long,
> disassemble_info*) (gdbarch.c:3273)
> ==12380==    by 0x7BB930: gdb_disassembler::print_insn(unsigned long, int*)
> (disasm.c:765)
> ==12380==    by 0x7BC731:
> selftests::print_one_insn_test(gdbarch*)::gdb_disassembler_test::print_ins
> n(unsigned long) (disasm-selftests.c:130)
> ==12380==    by 0x7BC99E: selftests::print_one_insn_test(gdbarch*) (disasm-
> selftests.c:163)
> ==12380==    by 0x91D6F1: selftests::gdbarch_selftest::operator()() const
> (selftest-arch.c:73)
> ==12380==    by 0x91B361: selftests::run_tests(char const*) (selftest.c:88)
> ==12380==    by 0x8B738A: maintenance_selftest(char const*, int)
> (maint.c:945)
> ==12380==    by 0x62465B: do_const_cfunc(cmd_list_element*, char*, int)
> (cli-decode.c:122)
> 
> Thanks!
> 
> Simon
\x16º&Öéj×!zÊÞ¶êç׍¼ëÙb²Ö«r\x18\x1dn–­r\x17¬

      reply	other threads:[~2017-10-20 18:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-20 18:07 Simon Marchi
2017-10-20 18:44 ` Anton Kolesov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39A54937CC95F24AA2F794E2D2B66B135895FC5E@DE02WEMBXB.internal.synopsys.com \
    --to=anton.kolesov@synopsys.com \
    --cc=Claudiu.Zissulescu@synopsys.com \
    --cc=Cupertino.Miranda@synopsys.com \
    --cc=Francois.Bedard@synopsys.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@ericsson.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox