[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#696320: Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done



On Thu, Dec 20, 2012 at 9:31 PM, Andrey Rahmatullin <wrar@wrar.name> wrote:
>
> /usr/lib/x86_64-linux-gnu/debug/libstdc++.so.6 instead of
> /usr/lib/debug/usr/lib/x86_64-linux-gnu/libstdc++.so.6 sounds wrong to me.
> Also, if it's indeed wrong then other versions of libstdc++ are affected
> too.

I am not clear why package provides two .so:

$ md5sum /usr/lib/debug/libstdc++.so.6.0.13
/usr/lib/debug/usr/lib/libstdc++.so.6.0.13
3b70925b8de9d5cdc56fdd49f3f8a6c4  /usr/lib/debug/libstdc++.so.6.0.13
956b6d927da04d00c3a073d17c8ebabd  /usr/lib/debug/usr/lib/libstdc++.so.6.0.13

Anyway it looks like the first one is the one to be used:

$ export LD_LIBRARY_PATH=/usr/lib/debug/
$ gdb bla
(gdb) set verbose on
(gdb) break main
Reading in symbols for bla.cxx...done.
Breakpoint 1 at 0x400690: file bla.cxx, line 4.
(gdb) r
Starting program: /tmp/bla
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols
from /usr/lib/debug/lib/ld-2.11.3.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading in symbols for rtld.c...done.
Reading symbols from system-supplied DSO at 0x7ffff7ffb000...(no
debugging symbols found)...done.
Reading in symbols for dl-debug.c...done.
Reading symbols from /usr/lib/debug/libstdc++.so.6...done.
Loaded symbols for /usr/lib/debug/libstdc++.so.6
Reading symbols from /lib/libm.so.6...Reading symbols from
/usr/lib/debug/lib/libm-2.11.3.so...done.
done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...Reading symbols from
/usr/lib/debug/lib/libgcc_s.so.1...done.
done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...Reading symbols from
/usr/lib/debug/lib/libc-2.11.3.so...done.
done.
Loaded symbols for /lib/libc.so.6

Breakpoint 1, main () at bla.cxx:4
4	  std::ifstream i;
(gdb) n
5	  return 0;
(gdb) p i
Reading in symbols for
../../../../../src/libstdc++-v3/src/fstream-inst.cc...done.
$1 = {Reading in symbols for
../../../../../src/libstdc++-v3/src/istream-inst.cc...done.
<std::basic_istream<char, std::char_traits<char> >> = {Reading in
symbols for ../../../../../src/libstdc++-v3/src/ios-inst.cc...done.
<std::basic_ios<char, std::char_traits<char> >> = {Reading in symbols
for ../../../../../src/libstdc++-v3/src/ios.cc...done.
<std::ios_base> = {_vptr.ios_base = 0x7ffff7dc2200, static boolalpha =
std::_S_boolalpha, static dec = std::_S_dec, static fixed =
std::_S_fixed, static hex = std::_S_hex,
        static internal = std::_S_internal, static left =
std::_S_left, static oct = std::_S_oct, static right = std::_S_right,
static scientific = std::_S_scientific, static showbase =
std::_S_showbase,
        static showpoint = std::_S_showpoint, static showpos =
std::_S_showpos, static skipws = std::_S_skipws, static unitbuf =
std::_S_unitbuf, static uppercase = std::_S_uppercase,
        static adjustfield = std::_S_adjustfield, static basefield =
std::_S_basefield, static floatfield = std::_S_floatfield, static
badbit = std::_S_badbit, static eofbit = std::_S_eofbit,
        static failbit = std::_S_failbit, static goodbit =
std::_S_goodbit, static app = std::_S_app, static ate = std::_S_ate,
static binary = std::_S_bin, static in = std::_S_in,
        static out = std::_S_out, static trunc = std::_S_trunc, static
beg = std::_S_beg, static cur = std::_S_cur, static end = std::_S_end,
_M_precision = 6, _M_width = 0, _M_flags = 4098,
        _M_exception = std::_S_goodbit, _M_streambuf_state =
std::_S_goodbit, _M_callbacks = 0x0, _M_word_zero = {_M_pword = 0x0,
_M_iword = 0}, _M_local_word = {{_M_pword = 0x0, _M_iword = 0}, {
            _M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0, _M_iword =
0}, {_M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0, _M_iword = 0},
{_M_pword = 0x0, _M_iword = 0}, {_M_pword = 0x0, _M_iword = 0}, {
            _M_pword = 0x0, _M_iword = 0}}, _M_word_size = 8, _M_word
= 0x7fffffffe3f0, _M_ios_locale = {static none = 0, static ctype = 1,
static numeric = 2, static collate = 4, static time = 8,
          static monetary = 16, static messages = 32, static all = 63,
_M_impl = 0x7ffff7dcad80, static _S_classic = Reading in symbols for
../../../../../src/libstdc++-v3/src/locale.cc...done.
0x7ffff7dcad80, static _S_global = 0x7ffff7dcad80, static
_S_categories = 0x7ffff7dbff20, static _S_once = 0}}, _M_tie = Reading
in symbols for ../../../../../src/libstdc++-v3/src/ostream-inst.cc...done.
0x0, _M_fill = 0 '\000', _M_fill_init = false, _M_streambuf = Reading
in symbols for ../../../../../src/libstdc++-v3/src/streambuf-inst.cc...done.
0x7fffffffe2c0, _M_ctype = Reading in symbols for
../../../../../src/libstdc++-v3/src/ctype.cc...done.
0x7ffff7dcb000, _M_num_put = Reading in symbols for
../../../../../src/libstdc++-v3/src/locale-inst.cc...done.
0x7ffff7dcb290, _M_num_get = 0x7ffff7dcb280}, _vptr.basic_istream =
0x7ffff7dc21d8, _M_gcount = 0}, _M_filebuf =
{<std::basic_streambuf<char, std::char_traits<char> >> = {
      _vptr.basic_streambuf = 0x7ffff7dc22b0, _M_in_beg = 0x0,
_M_in_cur = 0x0, _M_in_end = 0x0, _M_out_beg = 0x0, _M_out_cur = 0x0,
_M_out_end = 0x0, _M_buf_locale = {static none = 0, static ctype = 1,
        static numeric = 2, static collate = 4, static time = 8,
static monetary = 16, static messages = 32, static all = 63, _M_impl =
0x7ffff7dcad80, static _S_classic = 0x7ffff7dcad80,
        static _S_global = 0x7ffff7dcad80, static _S_categories =
0x7ffff7dbff20, static _S_once = 0}}, _M_lock = {__data = {__lock = 0,
__count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0,
        __list = {__prev = 0x0, __next = 0x0}}, __size = '\000'
<repeats 39 times>, __align = 0}, _M_file = {_M_cfile = 0x0,
_M_cfile_created = false}, _M_mode = 0, _M_state_beg = {__count = 0,
__value = {
        __wch = 0, __wchb = "\000\000\000"}}, _M_state_cur = {__count
= 0, __value = {__wch = 0, __wchb = "\000\000\000"}}, _M_state_last =
{__count = 0, __value = {__wch = 0, __wchb = "\000\000\000"}},
    _M_buf = 0x0, _M_buf_size = 8192, _M_buf_allocated = false,
_M_reading = false, _M_writing = false, _M_pback = 0 '\000',
_M_pback_cur_save = 0x0, _M_pback_end_save = 0x0, _M_pback_init =
false,
    _M_codecvt = Reading in symbols for
../../../../../src/libstdc++-v3/src/codecvt.cc...done.
0x7ffff7dcb2a0, _M_ext_buf = 0x0, _M_ext_buf_size = 0, _M_ext_next =
0x0, _M_ext_end = 0x0}}


Reply to: