[Bug default/19126] New: segv when running abidw on a dwz compressed version of r300_dri.so

woodard at redhat dot com sourceware-bugzilla@sourceware.org
Thu Jan 1 00:00:00 GMT 2015


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

            Bug ID: 19126
           Summary: segv when running abidw on a dwz compressed version of
                    r300_dri.so
           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: ---

[ben@localhost abidiff]$ dwz --version
dwz version 0.11
Copyright (C) 2001-2012 Red Hat, Inc.
Copyright (C) 2003 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
[ben@localhost abidiff]$ dwz r300_dri.so
[ben@localhost abidiff]$ ls -l r300_dri.so*
-rwxr-xr-x. 1 ben ben 122792893 Oct 13 10:21 r300_dri.so
-rwx------. 1 ben ben 157634391 Oct 13 10:20 r300_dri.so.save
[ben@localhost abidiff]$ ~/bin/abidw --abidiff r300_dri.so
Segmentation fault (core dumped)

hype356@ben:gdb ../libabigail/build/tools/.libs/lt-abidw
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/g/g0/ben/work/libabigail/build/tools/.libs/lt-abidw...done.
(gdb) set args --abidiff ~/work/find-same/r300_dri.so.dwz
(gdb) r
Starting program: /g/g0/ben/work/libabigail/build/tools/.libs/lt-abidw
--abidiff ~/work/find-same/r300_dri.so.dwz
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00002aaaaba044f3 in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&) ()
   from /usr/lib64/libstdc++.so.6
Missing separate debuginfos, use: debuginfo-install
bzip2-libs-1.0.5-7.el6_0.x86_64 elfutils-libelf-0.161-3.el6.x86_64
elfutils-libs-0.161-3.el6.x86_64 libgcc-4.4.7-16.el6.x86_64
libstdc++-4.4.7-16.el6.x86_64 libxml2-2.7.6-20.el6.x86_64
xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0  0x00002aaaaba044f3 in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&) ()
   from /usr/lib64/libstdc++.so.6
#1  0x00002aaaaadb3222 in operator= (this=<value optimized out>,
location=<value optimized out>, 
    path=<value optimized out>, line=@0x7fffffffc68c, column=<value optimized
out>)
    at
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/basic_string.h:511
#2  abigail::ir::location_manager::expand_location (this=<value optimized out>, 
    location=<value optimized out>, path=<value optimized out>,
line=@0x7fffffffc68c, 
    column=<value optimized out>) at ../../src/abg-ir.cc:231
#3  0x00002aaaaaeeb9d5 in abigail::xml_writer::write_location (decl=<value
optimized out>, o=...)
    at ../../src/abg-writer.cc:579
#4  0x00002aaaaaef2fbf in abigail::xml_writer::write_class_decl (decl=
    std::tr1::shared_ptr (count 9) 0x48be3e90, id="", ctxt=..., indent=6)
    at ../../src/abg-writer.cc:2194
#5  0x00002aaaaaef5c66 in abigail::xml_writer::write_class_decl (decl=<value
optimized out>, ctxt=..., 
    indent=6) at ../../src/abg-writer.cc:2389
#6  0x00002aaaaaef6efb in abigail::xml_writer::write_decl (
    decl=std::tr1::shared_ptr (count 9) 0x48be3ed8, ctxt=..., indent=6) at
../../src/abg-writer.cc:1017
#7  0x00002aaaaaef7358 in write_namespace_decl (decl=<value optimized out>,
ctxt=..., indent=4)
    at ../../src/abg-writer.cc:1380
#8  abigail::xml_writer::write_decl (decl=<value optimized out>, ctxt=...,
indent=4)
    at ../../src/abg-writer.cc:1017
#9  0x00002aaaaaef95de in abigail::xml_writer::write_translation_unit (tu=...,
ctxt=..., indent=2)
    at ../../src/abg-writer.cc:1195
#10 0x00002aaaaaefad97 in abigail::xml_writer::write_corpus_to_native_xml (
    corpus=std::tr1::shared_ptr (count 3) 0xbd8220, indent=0, out=...) at
../../src/abg-writer.cc:3012
#11 0x000000000040381f in main (argc=<value optimized out>, argv=<value
optimized out>)
    at ../../tools/abidw.cc:288
(gdb) 

Note: Not attaching a new version of r300_dri.so since it is already a well
known test case from other bugs.

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



More information about the Libabigail mailing list