public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "woodard at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/26782] abidiff crashes in  abigail::diff_utils::deep_ptr_eq_functor::operator()<abigail::ir::var_decl> () when comparing a library to itself
Date: Sat, 24 Oct 2020 06:28:38 +0000	[thread overview]
Message-ID: <bug-26782-9487-vFievOmV4L@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26782-9487@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=26782

--- Comment #1 from Ben Woodard <woodard at redhat dot com> ---
$ lib=/lib64/libTKIVtk.so.7.4.0
$ rpm -qf $lib
opencascade-visualization-7.4.0-5.fc33.x86_64
$ abidw $lib > 1.dw
$ gdb --silent --args abidiff 1.dw $lib
Reading symbols from abidiff...
(gdb) r
Starting program: /home/ben/Scratch/Work/test/libabigail-x86_64/bin/abidiff
1.dw /lib64/libTKIVtk.so.7.4.0
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
abigail::diff_utils::deep_ptr_eq_functor::operator()<abigail::ir::var_decl>
(this=<optimized out>, second=<optimized out>, first=0x429d4c0)
    at
/home/ben/Scratch/Work/build/libabigail-x86_64/../../libabigail/include/abg-diff-utils.h:763
763       operator()(const T* first,
(gdb) bt
#0  abigail::diff_utils::deep_ptr_eq_functor::operator()<abigail::ir::var_decl>
(this=<optimized out>, second=<optimized out>, first=0x429d4c0)
    at
/home/ben/Scratch/Work/build/libabigail-x86_64/../../libabigail/include/abg-diff-utils.h:763
#1  abigail::diff_utils::deep_ptr_eq_functor::operator()<abigail::ir::var_decl>
(this=<synthetic pointer>, second=0x6578d40, first=0x429d4c0)
    at
/home/ben/Scratch/Work/build/libabigail-x86_64/../../libabigail/include/abg-diff-utils.h:763
#2 
abigail::diff_utils::end_of_fr_d_path_in_k<__gnu_cxx::__normal_iterator<abigail::ir::var_decl*
const*, std::vector<abigail::ir::var_decl*,
std::allocator<abigail::ir::var_decl*> > >,
abigail::diff_utils::deep_ptr_eq_functor> (k=k@entry=0, d=d@entry=0,
a_begin=..., a_begin@entry=0x429d4c0, a_end=..., a_end@entry=0x0, 
    b_start=b_start@entry=0x6578d40, b_end=..., b_end@entry=0x7463650073,
v=..., snak=...)
    at
/home/ben/Scratch/Work/build/libabigail-x86_64/../../libabigail/include/abg-diff-utils.h:912
#3  0x00007ffff7e2c153 in
abigail::diff_utils::compute_middle_snake<__gnu_cxx::__normal_iterator<abigail::ir::var_decl*
const*, std::vector<abigail::ir::var_decl*,
std::allocator<abigail::ir::var_decl*> > >,
abigail::diff_utils::deep_ptr_eq_functor> (a_begin=a_begin@entry=0x429d4c0,
a_end=..., a_end@entry=0x0, b_begin=..., 
    b_begin@entry=0x6578d40, b_end=..., b_end@entry=0x7463650073, snak=...,
ses_len=ses_len@entry=@0x7fffffffd2cc: 0)
    at
/home/ben/Scratch/Work/build/libabigail-x86_64/../../libabigail/include/abg-diff-utils.h:266
#4  0x00007ffff7e46adb in
abigail::diff_utils::compute_diff<__gnu_cxx::__normal_iterator<abigail::ir::var_decl*
const*, std::vector<abigail::ir::var_decl*,
std::allocator<abigail::ir::var_decl*> > >,
abigail::diff_utils::deep_ptr_eq_functor> (a_base=..., a_begin=0x429d4c0,
a_end=a_end@entry=0x0, b_base=..., b_base@entry=0x6578d40, 
    b_begin=..., b_begin@entry=0x6578d40, b_end=b_end@entry=0x7463650073,
lcs=std::vector of length 0, capacity 0, ses=..., ses_len=@0x7fffffffd450: 0)
    at /usr/include/c++/10/bits/stl_vector.h:97
#5  0x00007ffff7e1133d in
abigail::diff_utils::compute_diff<__gnu_cxx::__normal_iterator<abigail::ir::var_decl*
const*, std::vector<abigail::ir::var_decl*,
std::allocator<abigail::ir::var_decl*> > >,
abigail::diff_utils::deep_ptr_eq_functor> (ses=..., lcs=std::vector of length
0, capacity 0, b_end=..., b_begin=..., b_base=..., 
    a_end=..., a_begin=..., a_base=...) at
/home/ben/Scratch/Work/build/libabigail-x86_64/../../libabigail/include/abg-diff-utils.h:1766
#6 
abigail::diff_utils::compute_diff<__gnu_cxx::__normal_iterator<abigail::ir::var_decl*
const*, std::vector<abigail::ir::var_decl*,
std::allocator<abigail::ir::var_decl*> > >,
abigail::diff_utils::deep_ptr_eq_functor> (ses=..., b_end=0x7463650073,
b_begin=0x6578d40, b_base=0x6578d40, a_end=0x0, a_begin=..., a_base=...)
    at
/home/ben/Scratch/Work/build/libabigail-x86_64/../../libabigail/include/abg-diff-utils.h:1934
#7 
abigail::diff_utils::compute_diff<__gnu_cxx::__normal_iterator<abigail::ir::var_decl*
const*, std::vector<abigail::ir::var_decl*,
std::allocator<abigail::ir::var_decl*> > >,
abigail::diff_utils::deep_ptr_eq_functor> (ses=..., b_end=0x7463650073,
b_begin=0x6578d40, a_end=0x0, a_begin=...)
    at
/home/ben/Scratch/Work/build/libabigail-x86_64/../../libabigail/include/abg-diff-utils.h:1981
#8  abigail::comparison::compute_diff (f=std::shared_ptr<abigail::ir::corpus>
(use count 3, weak count 0) = {...}, 
    s=std::shared_ptr<abigail::ir::corpus> (use count 3, weak count 0) = {...}, 
    ctxt=std::shared_ptr<abigail::comparison::diff_context> (use count 2, weak
count 1) = {...}) at ../../../libabigail/src/abg-comparison.cc:11084
#9  0x00000000004067cf in main (argc=<optimized out>, argv=<optimized out>) at
/usr/include/c++/10/bits/shared_ptr_base.h:736

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2020-10-24  6:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-24  6:26 [Bug default/26782] New: " woodard at redhat dot com
2020-10-24  6:28 ` woodard at redhat dot com [this message]
2020-10-24  6:34 ` [Bug default/26782] " woodard at redhat dot com
2020-11-12 22:44 ` woodard at redhat dot com
2020-11-25  0:34 ` woodard at redhat dot com
2020-11-25  7:55 ` dodji at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-26782-9487-vFievOmV4L@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libabigail@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).