public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "nguyenmanhdung1710 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug general/25831] New: Assertion failure in eu-objdump
Date: Thu, 16 Apr 2020 06:28:01 +0000	[thread overview]
Message-ID: <bug-25831-10460@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 25831
           Summary: Assertion failure in eu-objdump
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: general
          Assignee: unassigned at sourceware dot org
          Reporter: nguyenmanhdung1710 at gmail dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Created attachment 12465
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12465&action=edit
PoC for an assertion failure

Hi,

An assertion failure was discovered in the latest commit 1a9fe4b of elfutils
0.179, as demonstrated by eu-objdump via a crafted file.

To reproduce: eu-objdump -d PoC

Valgrind says:
objdump: ../../libcpu/i386_disasm.c:449: x86_64_disasm: Assertion
`correct_prefix == 0 || (prefixes & correct_prefix) != 0' failed.
==6901== 
==6901== Process terminating with default action of signal 6 (SIGABRT)
==6901==    at 0x56F5428: raise (raise.c:54)
==6901==    by 0x56F7029: abort (abort.c:89)
==6901==    by 0x56EDBD6: __assert_fail_base (assert.c:92)
==6901==    by 0x56EDC81: __assert_fail (assert.c:101)
==6901==    by 0x47BF64: x86_64_disasm (i386_disasm.c:448)
==6901==    by 0x4E4ECE0: disasm_cb (disasm_cb.c:178)
==6901==    by 0x407017: show_disasm (objdump.c:737)
==6901==    by 0x407017: handle_elf (objdump.c:783)
==6901==    by 0x4029BD: process_file (objdump.c:251)
==6901==    by 0x4029BD: main (objdump.c:164)

Thanks,
Manh Dung

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

             reply	other threads:[~2020-04-16  6:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16  6:28 nguyenmanhdung1710 at gmail dot com [this message]
2020-04-16 13:54 ` [Bug general/25831] " mark at klomp dot org
2020-04-21 20:29 ` mark at klomp dot org

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=bug-25831-10460@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=elfutils-devel@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).