From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 167673889CA1; Sat, 26 Nov 2022 03:43:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 167673889CA1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669434202; bh=4SQflkpl9kRrGijuUKCKGDc9tAW/P0aIGn121Npk97M=; h=From:To:Subject:Date:From; b=Y4c4b5M4dMAKRm3h3RyoH2jattFUnacVOyaXwOj3yWV0PoZAeOrxI5a49oCr+NphI ne7snvUzgcU7ELrwcS2hz04ek5SD1u2N3E3lTt9R42aKqgWUoj+nU56RNQzRdc2csd V5LFP3v4QhFLwpGw8Gd7MwRO+VQVcSKdT0DCZHoY= From: "hexiaole1994 at 126 dot com" To: libabigail@sourceware.org Subject: [Bug default/29829] New: abidiff coredump at abg-dwarf-reader.cc when read libxul.so Date: Sat, 26 Nov 2022 03:43:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: hexiaole1994 at 126 dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com 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 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29829 Bug ID: 29829 Summary: abidiff coredump at abg-dwarf-reader.cc when read libxul.so Product: libabigail Version: unspecified Status: UNCONFIRMED Severity: critical Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: hexiaole1994 at 126 dot com CC: libabigail at sourceware dot org Target Milestone: --- [Overview] Executing 'abidiff' against to centos7.6's 'libxul.so.debug' will cause coredump, the output from 'bt' command of 'gdb' shows below: /* command begin */ # abidiff libxul.so.debug libxul.so.debug abidiff: abg-dwarf-reader.cc:14628: abigail::ir::function_type_sptr abigail::dwarf_reader::build_function_type(abigail::dwarf_reader::read_cont= ext&, Dwarf_Die*, abigail::ir::class_or_union_sptr, size_t): Assertion `__abg_con= d__' failed. Aborted (core dumped) # gdb -c core abidiff (gdb) bt #0 0x0000fffdcc4d63d0 in raise () from /usr/lib64/libc.so.6 #1 0x0000fffdcc4d777c in abort () from /usr/lib64/libc.so.6 #2 0x0000fffdcc4cf940 in ?? () from /usr/lib64/libc.so.6 #3 0x0000fffdcc4cf9bc in __assert_fail () from /usr/lib64/libc.so.6 #4 0x0000fffdccde5358 in abigail::dwarf_reader::build_function_type (ctxt= =3D..., die=3Ddie@entry=3D0xffffe5874a38, is_method=3Dstd::shared_ptr (empty) 0x0, where_offset=3D137951670, where_offset@entry=3D187657105818480) at abg-dwarf-reader.cc:14628 #5 0x0000fffdccdda294 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3Ddie@entry=3D0xffffe5874a38, scope=3D0xaaadc4f57760, called_from_public_decl=3Dcalled_from_public_decl@entry=3Dtrue, where_offset=3D187657105818480, where_offset@entry=3D137951670, is_declaration_only=3Dfalse, is_declaration_only@entry=3Dtrue, is_required_decl_spec=3Dis_required_decl_spec@entry=3Dfalse) at abg-dwarf-reader.cc:16413 ... #140 abigail::dwarf_reader::read_debug_info_into_corpus (ctxt=3D...) at abg-dwarf-reader.cc:15878 #141 0x0000fffdccdedb34 in abigail::dwarf_reader::read_corpus_from_elf (ctxt=3D..., status=3D@0xffffe588a798: abigail::elf_reader::STATUS_UNKNOWN)= at abg-dwarf-reader.cc:17012 #142 0x0000aaabfac261cc in main (argc=3D, argv=3D0xffffe588a= c48) at abidiff.cc:1207 /* command end */ The two arguments of 'abidiff' are same thing, the centos7.6's 'libxul.so.debug'. The reason to executing 'abidiff' in this way is all for reproducing problem in more clear way, expressing this problem is only caus= ed by reading dwarf from centos7.6's 'libxul.so.debug'. [Steps to Reproduce] (1)download 'thunderbird' binary rpm that contains 'libxul.so.debug' from centos7.6 website: http://debuginfo.centos.org/7/x86_64/thunderbird-debuginfo-52.9.1-1.el7.cen= tos.x86_64.rpm (2)unpack 'thunderbird' binary rpm to get the 'libxul.so.debug' rpm2cpio thunderbird-debuginfo-52.9.1-1.el7.centos.x86_64.rpm | cpio -idum (3)create symbolic link to 'libxul.so.debug' for handy access: ln -s usr/lib/debug/usr/lib64/thunderbird/libxul.so.debug . (4)executing 'abidiff' to reproducing problem: abidiff libxul.so.debug libxul.so.debug [Actual Results] 'abidiff' crashes with coredump: /* crash output begin */ abidiff: abg-dwarf-reader.cc:14628: abigail::ir::function_type_sptr abigail::dwarf_reader::build_function_type(abigail::dwarf_reader::read_cont= ext&, Dwarf_Die*, abigail::ir::class_or_union_sptr, size_t): Assertion `__abg_con= d__' failed. Aborted (core dumped) /* crash output end */ [Expected Results] 'abidiff' finishes normally without any message, because the 2 compared dyn= amic libraries are same. [Additional Information] the libabigail version that reproduding against: git repo: git://sourceware.org/git/libabigail.git branch: master HEAD commit: 7bd69830520f2e7ce4efb989b5fd23fde316c7c1(Make Front Ends first class citizens) --=20 You are receiving this mail because: You are on the CC list for the bug.=