From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111561 invoked by alias); 8 Oct 2019 14:55:27 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 111491 invoked by uid 48); 8 Oct 2019 14:55:18 -0000 From: "leftcopy.chx at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug tools/25082] New: Multiple crashes in eu-unstrip Date: Tue, 08 Oct 2019 14:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: leftcopy.chx at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q4/txt/msg00013.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25082 Bug ID: 25082 Summary: Multiple crashes in eu-unstrip Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: leftcopy.chx at gmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Created attachment 12033 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D12033&action=3Ded= it pocs and error messages When executing `./eu-unstrip $FILE ./stripped -o /dev/null`, there might be some crashes if elfutils is built with ASAN. e.g., invalid read at unstrip.c:1661, unstrip.c:1663, unstrip.c:444 and unstrip.c:774. The relevant files are attached. ASAN:DEADLYSIGNAL =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D19829=3D=3DERROR: AddressSanitizer: SEGV on unknown address 0x1000802= 274a1 (pc 0x5555555673e7 bp 0x7fffffffbd10 sp 0x7fffffffa4e0 T0) =3D=3D19829=3D=3DThe signal is caused by a READ memory access. #0 0x5555555673e6 in copy_elided_sections /home/hongxu/FOT/Targets/elfutils/eu-asan/src/unstrip.c:1661 #1 0x55555556bea1 in handle_file /home/hongxu/FOT/Targets/elfutils/eu-asan/src/unstrip.c:2162 #2 0x55555556c760 in handle_explicit_files /home/hongxu/FOT/Targets/elfutils/eu-asan/src/unstrip.c:2227 #3 0x55555556f1f6 in main /home/hongxu/FOT/Targets/elfutils/eu-asan/src/unstrip.c:2562 #4 0x7ffff6596b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x555555559a89 in _start (/home/hongxu/FOT/Targets/elfutils/eu-asan/install/bin/eu-unstrip+0x5a89) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/hongxu/FOT/Targets/elfutils/eu-asan/src/unstrip.c:1661 in copy_elided_sections =3D=3D19829=3D=3DABORTING --=20 You are receiving this mail because: You are on the CC list for the bug.