public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* Re: assertion failure in abidw on libabigail master
  2015-01-01  0:00 ` Dodji Seketeli
@ 2015-01-01  0:00   ` Andrew C. Morrow
  2015-01-01  0:00     ` Dodji Seketeli
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew C. Morrow @ 2015-01-01  0:00 UTC (permalink / raw)
  To: Dodji Seketeli; +Cc: libabigail

>
> That is an issue that ought to be fixed, obviously.
>
> Could you please file a bug report where you attach the two binaries you
> are comparing with abidiff?

I'm actually just using abidw, which is where I observed the crash.

I've filed https://sourceware.org/bugzilla/show_bug.cgi?id=18818 which
attaches the library that causes abidw to assert for me.

>
> I'll look at the issue as soon as I can get my hand on the binaries.

Wonderful. Please let me know if you can reproduce with the binary
I've included in the ticket.

Thanks for your help,
Andrew

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: assertion failure in abidw on libabigail master
  2015-01-01  0:00 assertion failure in abidw on libabigail master Andrew C. Morrow
@ 2015-01-01  0:00 ` Dodji Seketeli
  2015-01-01  0:00   ` Andrew C. Morrow
  0 siblings, 1 reply; 4+ messages in thread
From: Dodji Seketeli @ 2015-01-01  0:00 UTC (permalink / raw)
  To: Andrew C. Morrow; +Cc: libabigail

Hello Andrew,

Sorry for my late reply, I have been on the roads and just returned
recently :-)

"Andrew C. Morrow" <andrew.c.morrow@gmail.com> a écrit:

> I'm encountering an assertion failure when running the 'abidw' utility
> against a shared library that I have built.

That is an issue that ought to be fixed, obviously.

Could you please file a bug report where you attach the two binaries you
are comparing with abidiff?

I'll look at the issue as soon as I can get my hand on the binaries.

> Please let me know if you have any suggestions. I can also try to
> reduce this to a smaller test case, but not immediately.

Nah, please do not bother trying to reduce anything :-)  If I can have
access to the binaries, I think I'll be able to debug the issue.

> Also, thanks for writing libabigail

Thank you for giving it a try.

> it is a very useful library and set of utilities.

Glad it's useful.

Cheers!

-- 
		Dodji

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: assertion failure in abidw on libabigail master
  2015-01-01  0:00   ` Andrew C. Morrow
@ 2015-01-01  0:00     ` Dodji Seketeli
  0 siblings, 0 replies; 4+ messages in thread
From: Dodji Seketeli @ 2015-01-01  0:00 UTC (permalink / raw)
  To: Andrew C. Morrow; +Cc: libabigail

"Andrew C. Morrow" <andrew.c.morrow@gmail.com> a écrit:

> I've filed https://sourceware.org/bugzilla/show_bug.cgi?id=18818 which
> attaches the library that causes abidw to assert for me.

Thanks a lot.  We'll continue the discussion on the bug tracker then.

Cheers,

-- 
		Dodji

^ permalink raw reply	[flat|nested] 4+ messages in thread

* assertion failure in abidw on libabigail master
@ 2015-01-01  0:00 Andrew C. Morrow
  2015-01-01  0:00 ` Dodji Seketeli
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew C. Morrow @ 2015-01-01  0:00 UTC (permalink / raw)
  To: libabigail

Hi -

I'm encountering an assertion failure when running the 'abidw' utility
against a shared library that I have built.

I've checked out libabigail at
a746f4afeee5c4c3992d0b7e2cff372b9159e835 and built it as follows on an
Ubuntu 15.04 machine with the system GCC (4.9.2):

> autoreconf -fiv
> ./configure --prefix=$HOME/opt --enable-cxx11
> make -j10 all
> make install

I'm then attempting to build MongoDB from source while using abidw to
short circuit the normal SCons content based decider for shared
libraries, so that libraries are only re-linked when the ABI of their
dependencies change (see
http://comments.gmane.org/gmane.comp.programming.tools.scons.user/26967
for some more details on what I'm trying to make work). If you want to
try to reproduce the crash locally, you will need python and SCons
installed to run the MongoDB build:

> git clone https://github.com/mongodb/mongo.git
> cd mongo
> scons -j10 --dbg=on --opt=off --link-model=dynamic build/debug/third_party/boost-1.56.0/libboost_filesystem.so ABIDW=$HOME/opt/bin/abidw

This fails for me with the following assertion from abidw:

abidw: abg-hash.cc:627: size_t
abigail::ir::class_decl::hash::operator()(const
abigail::ir::class_decl&) const: Assertion `cl &&
(!cl->get_is_declaration_only() ||
cl->get_definition_of_declaration())' failed.

I've also tried using clang instead of GCC, the gold linker instead of
BFD, etc., but the crash remains.

If I use the system version of abidw though everything works. That
package is versioned as 0.1~20150306-1 according to dpkg.

Please let me know if you have any suggestions. I can also try to
reduce this to a smaller test case, but not immediately.

Also, thanks for writing libabigail, it is a very useful library and
set of utilities.

Thanks,
Andrew

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-12 20:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-01  0:00 assertion failure in abidw on libabigail master Andrew C. Morrow
2015-01-01  0:00 ` Dodji Seketeli
2015-01-01  0:00   ` Andrew C. Morrow
2015-01-01  0:00     ` Dodji Seketeli

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).