From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46747 invoked by alias); 30 May 2018 08:58:11 -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 46347 invoked by uid 48); 30 May 2018 08:58:05 -0000 From: "mliska at suse dot cz" To: elfutils-devel@sourceware.org Subject: [Bug tools/23247] New: Segfault in 0.171 RC1 release candidate Date: Wed, 30 May 2018 08:58: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: mliska at suse dot cz 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: 2018-q2/txt/msg00105.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23247 Bug ID: 23247 Summary: Segfault in 0.171 RC1 release candidate Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: mliska at suse dot cz CC: elfutils-devel at sourceware dot org Target Milestone: --- Created attachment 11047 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D11047&action=3Ded= it test-case I've just built elftuils with GCC 8.1.0 and I see: $ LD_LIBRARY_PATH=3D./libdw/ ./src/readelf -a -w ./backends/libebl_x86_64.so [snip] DWARF section [32] '.debug_loc' at offset 0x2fbd9: CU [ 2d] base: +0x0000000000001e60 Segmentation fault (core dumped) Valgrind tells: DWARF section [32] '.debug_loc' at offset 0x2fbd9: CU [ 2d] base: +0x0000000000001e60 =3D=3D19867=3D=3D Invalid read of size 8 =3D=3D19867=3D=3D at 0x41EC14: next_listptr_offset (readelf.c:4939) =3D=3D19867=3D=3D by 0x41EC14: print_debug_loc_section (readelf.c:9247) =3D=3D19867=3D=3D by 0x4122D8: print_debug (readelf.c:11075) =3D=3D19867=3D=3D by 0x415610: process_elf_file (readelf.c:980) =3D=3D19867=3D=3D by 0x41631C: process_dwflmod (readelf.c:744) =3D=3D19867=3D=3D by 0x4E62020: dwfl_getmodules (dwfl_getmodules.c:86) =3D=3D19867=3D=3D by 0x40883B: process_file (readelf.c:852) =3D=3D19867=3D=3D by 0x4044C3: main (readelf.c:338) =3D=3D19867=3D=3D Address 0x0 is not stack'd, malloc'd or (recently) free'd =3D=3D19867=3D=3D=20 =3D=3D19867=3D=3D=20 =3D=3D19867=3D=3D Process terminating with default action of signal 11 (SIG= SEGV): dumping core =3D=3D19867=3D=3D Access not within mapped region at address 0x0 =3D=3D19867=3D=3D at 0x41EC14: next_listptr_offset (readelf.c:4939) =3D=3D19867=3D=3D by 0x41EC14: print_debug_loc_section (readelf.c:9247) =3D=3D19867=3D=3D by 0x4122D8: print_debug (readelf.c:11075) =3D=3D19867=3D=3D by 0x415610: process_elf_file (readelf.c:980) =3D=3D19867=3D=3D by 0x41631C: process_dwflmod (readelf.c:744) =3D=3D19867=3D=3D by 0x4E62020: dwfl_getmodules (dwfl_getmodules.c:86) =3D=3D19867=3D=3D by 0x40883B: process_file (readelf.c:852) =3D=3D19867=3D=3D by 0x4044C3: main (readelf.c:338) =3D=3D19867=3D=3D If you believe this happened as a result of a stack =3D=3D19867=3D=3D overflow in your program's main thread (unlikely but =3D=3D19867=3D=3D possible), you can try to increase the size of the =3D=3D19867=3D=3D main thread stack using the --main-stacksize=3D flag. =3D=3D19867=3D=3D The main thread stack size used in this run was 8388608. --=20 You are receiving this mail because: You are on the CC list for the bug.