程序崩溃了,生成了 core 文件
g++ -O3 ,不是-g
# gdb XXX core.xxx
( gdb ) bt
#0 0x00007feba6619d5f in __strlen_sse42 () from /lib64/libc.so.6
#1 0x00007feba6fcdf20 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) () from /usr/lib64/libstdc++.so.6
#2 0x00007feba77eb27a in Foo::Bar(InterestField const*) () from ./foobar.so
#3 0x00007feba77e02e5 in PolicyThreadProc(void*) () from ./foobar.so
#4 0x00007feba6881851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007feba65cf90d in clone () from /lib64/libc.so.6
想请教一下:
类似于 0x00007feba77eb27a 的地址指向含义是什么?
当前情况下,有什么办法可以获取到#2 参数 InterestField const pointer 指向内存的信息,用 x 命令查看?
g++ -O3 ,不是-g
# gdb XXX core.xxx
( gdb ) bt
#0 0x00007feba6619d5f in __strlen_sse42 () from /lib64/libc.so.6
#1 0x00007feba6fcdf20 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) () from /usr/lib64/libstdc++.so.6
#2 0x00007feba77eb27a in Foo::Bar(InterestField const*) () from ./foobar.so
#3 0x00007feba77e02e5 in PolicyThreadProc(void*) () from ./foobar.so
#4 0x00007feba6881851 in start_thread () from /lib64/libpthread.so.0
#5 0x00007feba65cf90d in clone () from /lib64/libc.so.6
想请教一下:
类似于 0x00007feba77eb27a 的地址指向含义是什么?
当前情况下,有什么办法可以获取到#2 参数 InterestField const pointer 指向内存的信息,用 x 命令查看?