public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/19173] New: Abidiff doesn't detect symbol size change in library.
@ 2015-01-01  0:00 m.ostapenko at partner dot samsung.com
  2015-01-01  0:00 ` [Bug default/19173] " dodji at seketeli dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: m.ostapenko at partner dot samsung.com @ 2015-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

            Bug ID: 19173
           Summary: Abidiff doesn't detect symbol size change in library.
           Product: libabigail
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: m.ostapenko at partner dot samsung.com
                CC: libabigail at sourceware dot org
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu
             Build: x86_64-pc-linux-gnu

Created attachment 8741
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8741&action=edit
libfoo.so

Hi Dodji.

I was playing with ASan in LLVM and noticed, that it can implicitly change
global variable symbol size (that is seems to be an ABI breakage). However,
abidiff didn't report this change:

max@max:/tmp$ cat libfoo.c 
long buggy_symbol = 4;
long foo (long *p) { return *p; }

max@max:/tmp$ clang libfoo.c -shared -fpic -o libfoo.so -g 

max@max:/tmp$ readelf -s libfoo.so | grep buggy_symbol
     7: 0000000000201030     8 OBJECT  GLOBAL DEFAULT   21 buggy_symbol
    49: 0000000000201030     8 OBJECT  GLOBAL DEFAULT   21 buggy_symbol

max@max:/tmp$ clang libfoo.c -shared -fpic -o libfoo2.so -g -fsanitize=address

max@max:/tmp$ readelf -s libfoo2.so | grep buggy_symbol
    12: 0000000000201080    64 OBJECT  GLOBAL DEFAULT   23 buggy_symbol
    56: 0000000000201080    64 OBJECT  GLOBAL DEFAULT   23 buggy_symbol

Is this an abidiff's bug (should it report such an issue)?

I'm attaching libfoo.so and libfoo2.so.
Thanks!

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

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

end of thread, other threads:[~2015-11-07 22:35 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-01  0:00 [Bug default/19173] New: Abidiff doesn't detect symbol size change in library m.ostapenko at partner dot samsung.com
2015-01-01  0:00 ` [Bug default/19173] " dodji at seketeli dot org
2015-01-01  0:00 ` m.ostapenko at partner dot samsung.com
2015-01-01  0:00 ` y.gribov at samsung dot com
2015-01-01  0:00 ` jakub at redhat dot com
2015-01-01  0:00 ` m.ostapenko at partner dot samsung.com
2015-01-01  0:00 ` m.ostapenko at partner dot samsung.com
2015-01-01  0:00 ` woodard at redhat dot com
2015-01-01  0:00 ` m.ostapenko at partner dot samsung.com
2015-01-01  0:00 ` dodji at redhat dot com
2015-01-01  0:00 ` y.gribov at samsung dot com
2015-01-01  0:00 ` m.ostapenko at partner dot samsung.com
2015-01-01  0:00 ` woodard at redhat dot com
2015-01-01  0:00 ` y.gribov at samsung dot com
2015-01-01  0:00 ` dodji at redhat dot com
2015-01-01  0:00 ` jakub at redhat dot com
2015-01-01  0:00 ` mjw at redhat dot com
2015-01-01  0:00 ` dodji at redhat dot com

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