From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD2FB3835E1D; Tue, 6 Dec 2022 09:36:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD2FB3835E1D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670319399; bh=ZiS5hv/H18yYYF5hKB1deoc8FzzySwehhAT9ukKT9rA=; h=From:To:Subject:Date:From; b=p7d5PRaJC/G2+zN8Nf0btf/1+Le5EDU43Wgzg+3VY+NIm8k9JQ2Rfy/3eIVOyFZs6 cmIHeOHzOFDB0D8WcmyB96InuQCjLYCPG5jtag8fPj0Cs5D+aJw0qKAlFT2EDfN+Du ipplJ9+hEzmoiPyReglxNHw6bdMWBGNCf4cLWhyw= From: "hexiaole1994 at 126 dot com" To: libabigail@sourceware.org Subject: [Bug default/29857] New: abidiff coredump at abg-ir.cc:hash_as_canonical_type_or_constant when read libgs.so from ghostscript Date: Tue, 06 Dec 2022 09:36:37 +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=3D29857 Bug ID: 29857 Summary: abidiff coredump at abg-ir.cc:hash_as_canonical_type_or_constant when read libgs.so from ghostscript 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 'libgs.so' with version of 9.07 and 9.52 will cause coredump, the output from 'bt' command of 'gdb' shows below: /* gdb output begin */ (gdb) bt #0 0x0000fffe7e3666e0 in raise () from /lib64/libc.so.6 #1 0x0000fffe7e367a8c in abort () from /lib64/libc.so.6 #2 0x0000fffe7e35fb8c in ?? () from /lib64/libc.so.6 #3 0x0000fffe7e35fc0c in __assert_fail () from /lib64/libc.so.6 #4 0x0000fffe7eb67360 in abigail::ir::hash_as_canonical_type_or_constant (t=3D0x26646788) at abg-ir.cc:25934 #5 abigail::ir::hash_type (t=3D0x26646788) at abg-ir.cc:25814 ... #231 0x0000fffe7ec1c140 in abigail::comparison::default_reporter::diff_has_net_changes (this=3D, d=3D0x2e1bbf90) at abg-default-reporter.cc:38 #232 0x0000fffe7ebc20fc in abigail::comparison::corpus_diff::has_net_changes (this=3D0x2e1bbf90) at abg-comparison.cc:10679 #233 0x0000000000406174 in main (argc=3D, argv=3D) at abidiff.cc:1411 /* 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 1f51b9e8 (HEAD -> master, tag: libabigail-2.2, origin/master, origin/HEAD) = Bug 29829 - dwarf-reader: Allow DIEs to be in a lexical block ac53e88b dwarf-reader: Make die_peel_{qual_ptr,typedef} always set peeled t= ype 4bdaf30b dwarf-reader: Avoid duplicating member functions d222b447 dwarf-reader: Leverage ODR & DWZ 754364d5 Fix spurious deleted/added virtual destructor change report # ./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 (0x0000fffc59b00000) ... (3)download 'libgs.so' with version of 9.07 and 9.52 # mkdir ghostscript/ && cd ghostscript/ # wget https://vault.centos.org/7.6.1810/os/x86_64/Packages/ghostscript-9.07-31.el= 7.x86_64.rpm # wget http://debuginfo.centos.org/7/x86_64/ghostscript-debuginfo-9.07-31.el7.x86_= 64.rpm # wget https://mirror.lzu.edu.cn/openeuler/openEuler-20.03-LTS-SP3/everything/x86_= 64/Packages/ghostscript-9.52-5.oe1.x86_64.rpm # wget https://mirror.lzu.edu.cn/openeuler/openEuler-20.03-LTS-SP3/debuginfo/x86_6= 4/Packages/ghostscript-debuginfo-9.52-5.oe1.x86_64.rpm # mkdir 9.07-with-debug/ 9.07-without-debug/ 9.52-with-debug/ 9.52-without-debug/ # rpm2cpio ghostscript-9.07-31.el7.x86_64.rpm | cpio -idum -D 9.07-without-debug/ # rpm2cpio ghostscript-debuginfo-9.07-31.el7.x86_64.rpm | cpio -idum -D 9.07-with-debug/ # rpm2cpio ghostscript-9.52-5.oe1.x86_64.rpm | cpio -idum -D 9.52-without-debug/ # rpm2cpio ghostscript-debuginfo-9.52-5.oe1.x86_64.rpm | cpio -idum -D 9.52-with-debug/ # cd ../ (4)use newly compiled 'abidiff' to reproducing the problem that causes core= dump # ./tools/.libs/abidiff --d1 ghostscript/9.07-with-debug/usr/lib/debug/ --d2 ghostscript/9.52-with-debug/usr/lib/debug/ ghostscript/9.07-without-debug/usr/lib64/libgs.so.9.07 ghostscript/9.52-without-debug/usr/lib64/libgs.so.9.52 [Actual Results] 'abidiff' crashes with coredump: /* crash output begin */ abidiff: abg-ir.cc:25934: size_t abigail::ir::hash_as_canonical_type_or_constant(const abigail::ir::type_bas= e*): Assertion `__abg_cond__' failed. Aborted (core dumped) /* crash output end */ [Expected Results] 'abidiff' finishes normally with detail of abi differences. --=20 You are receiving this mail because: You are on the CC list for the bug.=