From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80F43386EC70; Tue, 24 Nov 2020 23:51:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80F43386EC70 From: "woodard at redhat dot com" To: libabigail@sourceware.org Subject: [Bug default/26940] New: assert in finish_member_function_reading when running abidw Date: Tue, 24 Nov 2020 23:51:54 +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: normal X-Bugzilla-Who: woodard at redhat dot com X-Bugzilla-Status: NEW 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 X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2020 23:51:54 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26940 Bug ID: 26940 Summary: assert in finish_member_function_reading when running abidw Product: libabigail Version: unspecified Status: NEW Severity: normal Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: woodard at redhat dot com CC: libabigail at sourceware dot org Target Milestone: --- With commit 2c0dd017 from dodji/PR26769 I get=20 /home/ben/Scratch/Work/test/libabigail-x86_64/bin/abidw --abidiff /lib64/libGLU.so.1.3.1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGABRT, Aborted. __GI_raise (sig=3D) at ../sysdeps/unix/sysv/linux/raise.c:49 49 return ret; #0 __GI_raise (sig=3D) at ../sysdeps/unix/sysv/linux/raise.= c:49 #1 0x00007ffff750a8a4 in __GI_abort () at abort.c:79 #2 0x00007ffff750a789 in __assert_fail_base (fmt=3D0x7ffff7677680 "%s%s%s:= %u: %s%sAssertion `%s' failed.\n%n", assertion=3D0x7ffff7f3bfa4 "__abg_cond__", file=3D0x7ffff7f49938 "../../../libabigail/src/abg-dwarf-reader.cc", line= =3D13223, function=3D) at assert.c:92 #3 0x00007ffff751a026 in __GI___assert_fail (assertion=3D0x7ffff7f3bfa4 "__abg_cond__", file=3D0x7ffff7f49938 "../../../libabigail/src/abg-dwarf-reader.cc", line=3D13223, function=3D0x7ffff7f4a758 "void abigail::dwarf_reader::finish_member_function_reading(Dwarf_Die*, const function_decl_sptr&, const class_or_union_sptr&, abigail::dwarf_reader::read_context&)") at assert.c:101 #4 0x00007ffff7ecc634 in abigail::dwarf_reader::finish_member_function_rea= ding (die=3D0x7fffffffc8b0, f=3Dstd::shared_ptr (use= count 3, weak count 0) =3D {...}, klass=3Dstd::shared_ptr (use count 2, weak count 0) =3D {...}, ctxt=3D...) at ../../../libabigail/src/abg-dwarf-reader.cc:13223 #5 0x00007ffff7ed2254 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffc8b0, scope=3D0x7b2f80, called_from_public_decl=3D, where_offset=3D149198, is_declaration_only=3D, is_required_decl_spec=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc:16748 #6 0x00007ffff7ee0450 in abigail::dwarf_reader::add_or_update_member_funct= ion (where_offset=3D149198, called_from_public_decl=3Dtrue, class_type=3Dstd::shared_ptr (use count 10, we= ak count 2) =3D {...}, function_die=3D0x7fffffffc8b0, ctxt=3D...) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #7 abigail::dwarf_reader::add_or_update_class_type (ctxt=3D..., die=3D0x7fffffffcd30, scope=3D, is_struct=3D, klass=3D..., called_from_public_decl=3Dtrue, where_offset=3D149198, is_declaration_only=3Dtrue) at ../../../libabigail/src/abg-dwarf-reader.cc:= 13870 #8 0x00007ffff7ed1c7b in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffcd30, scope=3D0x62f840, called_from_public_decl=3D, where_offset=3D149198, is_declaration_only=3Dtrue, is_required_decl_spec=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc:16506 #9 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffcd30, called_from_public_decl=3D, where_offset=3D149198) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #10 0x00007ffff7ed8696 in abigail::dwarf_reader::build_pointer_type_def (ctxt=3D..., die=3D0x7fffffffd240, called_from_public_decl=3D, where_offset=3D149198) at ../../../libabigail/src/abg-dwarf-reader.cc:14391 #11 0x00007ffff7ed122d in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffd240, scope=3D0x62f840, called_from_public_decl=3D, where_offset=3D149198, is_declaration_only=3Dfalse, is_required_decl_spec=3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc:16363 #12 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffd240, called_from_public_decl=3D, where_offset=3D149198) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #13 0x00007ffff7eda4e8 in abigail::dwarf_reader::build_function_type (ctxt= =3D..., die=3D0x7fffffffd800, is_method=3D..., where_offset=3D149198) at ../../../libabigail/src/abg-dwarf-reader.cc:14655 #14 0x00007ffff7edb088 in abigail::dwarf_reader::build_function_decl (ctxt= =3D..., die=3D0x7fffffffd800, where_offset=3D149198, fn=3Dstd::shared_ptr (empty) =3D {...}) at ../../../libabigail/src/abg-dwarf-reader.cc:15654 #15 0x00007ffff7ed0a82 in abigail::dwarf_reader::build_or_get_fn_decl_if_not_suppressed (result=3D..., is_declaration_only=3Dfalse, where_offset=3D149198, fn_die=3D0x7fffffffd800, scope=3D, ctxt=3D...) at ../../../libabigail/src/abg-dwarf-reader.cc:15330 #16 abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffd800, scope=3D0x62f840, called_from_public_decl=3D, where_offset=3D149198, is_declaration_only=3Dfalse, is_required_decl_spec= =3Dfalse) at ../../../libabigail/src/abg-dwarf-reader.cc:16737 #17 0x00007ffff7ed3770 in abigail::dwarf_reader::build_ir_node_from_die (ctxt=3D..., die=3D0x7fffffffd800, called_from_public_decl=3D, where_offset=3D149198) at /usr/include/c++/10/bits/shared_ptr_base.h:1324 #18 0x00007ffff7ee3080 in abigail::dwarf_reader::build_translation_unit_and_add_to_ir (ctxt=3D..., die=3D, address_size=3D) at ../../../libabigail/src/abg-dwarf-reader.cc:8556 #19 0x00007ffff7ee4f3a in abigail::dwarf_reader::read_debug_info_into_corpus (ctxt=3D...) at ../../../libabigail/src/abg-dwarf-reader.cc:15936 #20 abigail::dwarf_reader::read_corpus_from_elf (ctxt=3D..., status=3D@0x7fffffffda3c: abigail::dwarf_reader::STATUS_UNKNOWN) at ../../../libabigail/src/abg-dwarf-reader.cc:17149 #21 0x0000000000405c93 in load_corpus_and_write_abixml (opts=3D..., context=3Dstd::shared_ptr (use count 1= , weak count 0) =3D {...}, env=3Dstd::shared_ptr (use co= unt 1, weak count 0) =3D {...}, argv=3D0x7fffffffdf88) at ../../../libabigail/tools/abidw.cc:494 #22 main (argc=3D, argv=3D0x7fffffffdf88) at ../../../libabigail/tools/abidw.cc:866 from mesa-libGLU-9.0.1-3.fc33.x86_64 This looks like a remaining corner case from PR26769 that I didn't pick up = last time. --=20 You are receiving this mail because: You are on the CC list for the bug.=