From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB5E73858D1E; Thu, 22 Dec 2022 07:52:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB5E73858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671695526; bh=IG8yBJ7lWqKAF2eETUqoGK1uKJ4wiA/819EF91nSvGU=; h=From:To:Subject:Date:From; b=cxs2NHoctbD8axAqcsTnceDZXvxVGGaKgTAPVzxfyR8Y1gpgDHQG6in7x7LbjGgIr Fm2envGNP+YgUxyuEQOHbYGhpNXL/hB9QhGDFpZnTvItrl/tG46M7GewMXaX3aDn5T yRKsQEM7DM/gAsat2ow2Hky5j10SH3qMJ3Ipnb9w= From: "hexiaole1994 at 126 dot com" To: libabigail@sourceware.org Subject: [Bug default/29932] New: abidiff coredump at abg-ir.cc:hash_as_canonical_type_or_constant when read libc.so from glibc Date: Thu, 22 Dec 2022 07:52:06 +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=3D29932 Bug ID: 29932 Summary: abidiff coredump at abg-ir.cc:hash_as_canonical_type_or_constant when read libc.so from glibc 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 'libc.so' from centos7.6's 'glibc' will cause coredump, the output from 'bt' command of 'gdb' shows below: /* gdb output begin */ (gdb) bt #0 0x0000fffc4f1c66e0 in raise () from /lib64/libc.so.6 #1 0x0000fffc4f1c7a8c in abort () from /lib64/libc.so.6 #2 0x0000fffc4f1bfb8c in ?? () from /lib64/libc.so.6 #3 0x0000fffc4f1bfc0c in __assert_fail () from /lib64/libc.so.6 #4 0x0000fffc4faec370 in abigail::dwarf::reader::lookup_fn_type_from_die_repr_per_tu (die=3D0xfffffaba53c8, this=3D0x7cd2e30) at abg-dwarf-reader.cc:3506 #5 abigail::dwarf::build_function_type (rdr=3D..., die=3Ddie@entry=3D0xfff= ffaba53c8, is_method=3Dstd::shared_ptr (empty) 0x0, where_offset=3Dwhere_offset@entry= =3D335444) at abg-dwarf-reader.cc:13781 #6 0x0000fffc4faec90c in abigail::dwarf::build_function_decl (rdr=3D..., die=3Ddie@entry=3D0xfffffaba53c8, where_offset=3Dwhere_offset@entry=3D33544= 4, fn=3Dstd::shared_ptr (empty) 0x0) at abg-dwarf-reader.cc:14927 ... #11 abigail::dwarf::reader::read_debug_info_into_corpus (this=3Dthis@entry=3D0x7cd2e30) at abg-dwarf-reader.cc:2188 #12 0x0000fffc4fb04eb4 in abigail::dwarf::reader::read_corpus (this=3D0x7cd= 2e30, status=3D@0xfffffaba5728: abigail::fe_iface::STATUS_OK) at abg-dwarf-reader.cc:2078 #13 0x00000000004058c8 in main (argc=3D, argv=3D0xfffffaba5b= a8) at abidiff.cc:1242 /* gdb output end */ [Steps to Reproduce] (1)confirm that we at the latest master branch # git remote -v origin git://sourceware.org/git/libabigail.git (fetch) origin git://sourceware.org/git/libabigail.git (push) # git branch * master # git log -5 --oneline 83bbc679 (HEAD -> master, origin/master, origin/HEAD) elf-reader: reclaim fd and mem before break e1aadfa5 Bug 29901 - abidiff hangs when comparing libgs.so.10 with itself 3c6a461b Update website documentation for 2.2 73d8782c configure: Bump version number to 2.3 7a7a00c3 ChangeLog: Update for 2.2 release # ./configure # make (2)assure the newly compiled 'abidiff' is linked to the newly compiled 'libabigail.so' # pwd /root/tmp/libabigail-git # ldd tools/.libs/abidiff ... libabigail.so.1 =3D> /root/tmp/libabigail-git/src/.libs/libabigail.= so.1 (0x0000fffc84820000) ... (3)download 'libc.so' from centos7.6's 'glibc' # mkdir glibc/ && cd glibc/ # wget https://vault.centos.org/7.6.1810/os/x86_64/Packages/glibc-2.17-260.el7.x86= _64.rpm # wget http://debuginfo.centos.org/7/x86_64/glibc-debuginfo-2.17-260.el7.x86_64.rpm # mkdir with-debug/ without-debug/ # rpm2cpio glibc-2.17-260.el7.x86_64.rpm | cpio -idum -D without-debug/ # rpm2cpio glibc-debuginfo-2.17-260.el7.x86_64.rpm | cpio -idum -D with-deb= ug/ # cd ../ (4)use newly compiled 'abidiff' to reproducing the problem that causes core= dump # ./tools/.libs/abidiff --d1 glibc/with-debug/usr/lib/debug/ --d2 glibc/with-debug/usr/lib/debug/ glibc/without-debug/lib64/libc-2.17.so glibc/without-debug/lib64/libc-2.17.so [Actual Results] 'abidiff' crashes with coredump: /* crash output begin */ abidiff: abg-dwarf-reader.cc:3506: abigail::ir::function_type_sptr abigail::dwarf::reader::lookup_fn_type_from_die_repr_per_tu(const Dwarf_Die= *): Assertion `__abg_cond__' failed. Aborted (core dumped) /* crash output end */ [Expected Results] 'abidiff' finishes without messages because the two libraries are same. --=20 You are receiving this mail because: You are on the CC list for the bug.=