Why gdb can't find symbol table when trying to debug ceph?
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from /usr/bin/ceph-osd...Reading symbols from /usr/lib/debug/usr/bin/ceph-osd.debug...done.
However, it still can't find the symbol table when I use "bt" to trace the stack:
#0 0x000000393da0f65b in ?? ()
No symbol table info available.
#1 0x0000000000a51636 in install_standard_sighandlers () at global/signal_handler.cc:121
No locals.
#2 0x00007fc7a77f9ed0 in ?? ()
No symbol table info available.
#3 0x00007fc7a77f9e10 in ?? ()
No symbol table info available.
#4 0x00007fc7a77f9b90 in ?? ()
No symbol table info available.
#5 0x00007fc66d3142e0 in ?? ()
No symbol table info available.
#6 0x00007fc7fac64100 in ?? ()
No symbol table info available.
#7 0x0000003900000000 in ?? ()
No symbol table info available.
#8 0x0000000000a51155 in SignalHandler::unregister_handler (this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#9 0x000000393eabcc33 in ?? ()
No symbol table info available.
#10 0x000000393eabcd2e in ?? ()
No symbol table info available.
Why is this happening?
PS: when gdb started running, it prompted the following warning:
BFD: Warning: /home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049 is truncated: expected core file size >= 8372899840, found: 7439335424
Could this be the cause of gdb not finding the symbol table?
that maybe the reason, do you have the same problem if there is no such warning?
2016-11-19 19:00 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 48 lines
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from
/usr/bin/ceph-osd...Readingsymbols from/usr/lib/debug/usr/bin/ceph-osd.debug...done.However, it still can't find the symbol table when I use "bt" to trace the stack:
#0
0x000000393da0f65bin ?? ()
No symbol table info available.
#10x0000000000a51636ininstall_standard_sighandlers() at global/signal_handler.cc:121
No locals.
#20x00007fc7a77f9ed0in ?? ()
No symbol table info available.
#30x00007fc7a77f9e10in ?? ()
No symbol table info available.
#40x00007fc7a77f9b90in ?? ()
No symbol table info available.
#50x00007fc66d3142e0in ?? ()
No symbol table info available.
#60x00007fc7fac64100in ?? ()
No symbol table info available.
#70x0000003900000000in ?? ()
No symbol table info available.
#80x0000000000a51155inSignalHandler::unregister_handler(this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#90x000000393eabcc33in ?? ()
No symbol table info available.
#100x000000393eabcd2ein ?? ()
No symbol table info available.Why is this happening?
PS: when gdb started running, it prompted the following warning:
BFD: Warning:
/home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049is truncated: expected core file size >= 8372899840, found: 7439335424Could this be the cause of gdb not finding the symbol table?
Signature · 2 lines
Thank you! HuangJun
In my test today, the same problem came up even there is no such warning....
By the way, the problem of ceph that I want to fix is as such: some of my osd can't finish the recovery+backfilling process due to the failure of the following assert:
2016-11-19 07:00:49.133814 7fc7a77ff700 -1 error_msg osd/ReplicatedPG.cc: In function 'void ReplicatedPG::wait_for_unreadable_object(const hobject_t&, OpRequestRef)' thread 7fc7a77ff700 time 2016-11-19 07:00:48.914231
osd/ReplicatedPG.cc: 387: FAILED assert(needs_recovery)
ceph version 0.94.5-12-g83f56a1 (83f56a1c84e3dbd95a4c394335a7b1dc926dd1c4)
1: (ReplicatedPG::wait_for_unreadable_object(hobject_t const&, std::tr1::shared_ptr<OpRequest>)+0x3f5) [0x8b5a65] 2: (ReplicatedPG::do_op(std::tr1::shared_ptr<OpRequest>&)+0x5e9) [0x8f0c79]
3: (ReplicatedPG::do_request(std::tr1::shared_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x4e3) [0x87fdc3] 4: (OSD::dequeue_op(boost::intrusive_ptr<PG>, std::tr1::shared_ptr<OpRequest>, ThreadPool::TPHandle&)+0x178) [0x66b3f8] 5: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x59e) [0x66f8ee]
6: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x795) [0xa76d85]
7: (ShardedThreadPool::WorkThreadSharded::entry()+0x10) [0xa7a610]
8: /lib64/libpthread.so.0() [0x393da07a51]
9: (clone()+0x6d) [0x393d6e893d]
NOTE: a copy of the executable, or objdump -rdS <executable> is needed to interpret this.
I'm using ceph-0.94.5 which should be the version "Hammer". Do you have any clue about what made this assert fail?
Quoted 57 lines · huang jun
that maybe the reason, do you have the same problem if there is no such warning?
2016-11-19 19:00 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 48 lines
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from
/usr/bin/ceph-osd...Readingsymbols from/usr/lib/debug/usr/bin/ceph-osd.debug...done.However, it still can't find the symbol table when I use "bt" to trace the stack:
#0
0x000000393da0f65bin ?? ()
No symbol table info available.
#10x0000000000a51636ininstall_standard_sighandlers() at global/signal_handler.cc:121
No locals.
#20x00007fc7a77f9ed0in ?? ()
No symbol table info available.
#30x00007fc7a77f9e10in ?? ()
No symbol table info available.
#40x00007fc7a77f9b90in ?? ()
No symbol table info available.
#50x00007fc66d3142e0in ?? ()
No symbol table info available.
#60x00007fc7fac64100in ?? ()
No symbol table info available.
#70x0000003900000000in ?? ()
No symbol table info available.
#80x0000000000a51155inSignalHandler::unregister_handler(this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#90x000000393eabcc33in ?? ()
No symbol table info available.
#100x000000393eabcd2ein ?? ()
No symbol table info available.Why is this happening?
PS: when gdb started running, it prompted the following warning:
BFD: Warning:
/home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049is truncated: expected core file size >= 8372899840, found: 7439335424Could this be the cause of gdb not finding the symbol table?
Signature · 2 lines
Thank you! HuangJun
seems like the ceph and ceph-debuginfo package version not match, do you verified it?
2016-11-20 15:20 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 81 lines
In my test today, the same problem came up even there is no such warning....
By the way, the problem of ceph that I want to fix is as such: some of my osd can't finish the recovery+backfilling process due to the failure of the following assert:
2016-11-19 07:00:49.133814 7fc7a77ff700 -1 error_msg osd/ReplicatedPG.cc: In function 'void ReplicatedPG::wait_for_unreadable_object(const hobject_t&, OpRequestRef)' thread 7fc7a77ff700 time 2016-11-19 07:00:48.914231osd/ReplicatedPG.cc: 387: FAILED
assert(needs_recovery)ceph version 0.94.5-12-g83f56a1 (
83f56a1c84e3dbd95a4c394335a7b1dc926dd1c4)
1: (ReplicatedPG::wait_for_unreadable_object(hobject_t const&, std::tr1::shared_ptr<OpRequest>)+0x3f5) [0x8b5a65] 2: (ReplicatedPG::do_op(std::tr1::shared_ptr<OpRequest>&)+0x5e9) [0x8f0c79]
3: (ReplicatedPG::do_request(std::tr1::shared_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x4e3) [0x87fdc3] 4: (OSD::dequeue_op(boost::intrusive_ptr<PG>, std::tr1::shared_ptr<OpRequest>, ThreadPool::TPHandle&)+0x178) [0x66b3f8] 5: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x59e) [0x66f8ee]
6: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x795) [0xa76d85]
7: (ShardedThreadPool::WorkThreadSharded::entry()+0x10) [0xa7a610]
8: /lib64/libpthread.so.0() [0x393da07a51]
9: (clone()+0x6d) [0x393d6e893d]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed to interpret this.I'm using ceph-0.94.5 which should be the version "Hammer". Do you have any clue about what made this assert fail?
Quoted 57 lines · huang jun
that maybe the reason, do you have the same problem if there is no such warning?
2016-11-19 19:00 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 41 lines
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from
/usr/bin/ceph-osd...Readingsymbols from/usr/lib/debug/usr/bin/ceph-osd.debug...done.However, it still can't find the symbol table when I use "bt" to trace the stack:
#0
0x000000393da0f65bin ?? ()
No symbol table info available.
#10x0000000000a51636ininstall_standard_sighandlers() at global/signal_handler.cc:121
No locals.
#20x00007fc7a77f9ed0in ?? ()
No symbol table info available.
#30x00007fc7a77f9e10in ?? ()
No symbol table info available.
#40x00007fc7a77f9b90in ?? ()
No symbol table info available.
#50x00007fc66d3142e0in ?? ()
No symbol table info available.
#60x00007fc7fac64100in ?? ()
No symbol table info available.
#70x0000003900000000in ?? ()
No symbol table info available.
#80x0000000000a51155inSignalHandler::unregister_handler(this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#90x000000393eabcc33in ?? ()
No symbol table info available.
#100x000000393eabcd2ein ?? ()
No symbol table info available.Why is this happening?
Quoted 7 lines
PS: when gdb started running, it prompted the following warning:
BFD: Warning:
/home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049is truncated: expected core file size >= 8372899840, found: 7439335424Could this be the cause of gdb not finding the symbol table?
--
Thank you!
HuangJun
Signature · 2 lines
Thank you! HuangJun
No, how to verify it? And do you have any clue what made that assert fail? Thank you
Quoted 78 lines · huang jun
seems like the ceph and ceph-debuginfo package version not match, do you verified it?
2016-11-20 15:20 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 74 lines
In my test today, the same problem came up even there is no such warning....
By the way, the problem of ceph that I want to fix is as such: some of my osd can't finish the recovery+backfilling process due to the failure of the following assert:
2016-11-19 07:00:49.133814 7fc7a77ff700 -1 error_msg osd/ReplicatedPG.cc: In function 'void ReplicatedPG::wait_for_unreadable_object(const hobject_t&, OpRequestRef)' thread 7fc7a77ff700 time 2016-11-19 07:00:48.914231osd/ReplicatedPG.cc: 387: FAILED
assert(needs_recovery)ceph version 0.94.5-12-g83f56a1 (
83f56a1c84e3dbd95a4c394335a7b1dc926dd1c4)
1: (ReplicatedPG::wait_for_unreadable_object(hobject_t const&, std::tr1::shared_ptr<OpRequest>)+0x3f5) [0x8b5a65] 2: (ReplicatedPG::do_op(std::tr1::shared_ptr<OpRequest>&)+0x5e9) [0x8f0c79]
3: (ReplicatedPG::do_request(std::tr1::shared_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x4e3) [0x87fdc3] 4: (OSD::dequeue_op(boost::intrusive_ptr<PG>, std::tr1::shared_ptr<OpRequest>, ThreadPool::TPHandle&)+0x178) [0x66b3f8] 5: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x59e) [0x66f8ee]
6: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x795) [0xa76d85]
7: (ShardedThreadPool::WorkThreadSharded::entry()+0x10) [0xa7a610]
8: /lib64/libpthread.so.0() [0x393da07a51]
9: (clone()+0x6d) [0x393d6e893d]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed to interpret this.I'm using ceph-0.94.5 which should be the version "Hammer". Do you have any clue about what made this assert fail?
Quoted 50 lines · huang jun
that maybe the reason, do you have the same problem if there is no such warning?
2016-11-19 19:00 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 47 lines
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from
/usr/bin/ceph-osd...Readingsymbols from/usr/lib/debug/usr/bin/ceph-osd.debug...done.However, it still can't find the symbol table when I use "bt" to trace the stack:
#0
0x000000393da0f65bin ?? ()
No symbol table info available.
#10x0000000000a51636ininstall_standard_sighandlers() at global/signal_handler.cc:121
No locals.
#20x00007fc7a77f9ed0in ?? ()
No symbol table info available.
#30x00007fc7a77f9e10in ?? ()
No symbol table info available.
#40x00007fc7a77f9b90in ?? ()
No symbol table info available.
#50x00007fc66d3142e0in ?? ()
No symbol table info available.
#60x00007fc7fac64100in ?? ()
No symbol table info available.
#70x0000003900000000in ?? ()
No symbol table info available.
#80x0000000000a51155inSignalHandler::unregister_handler(this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#90x000000393eabcc33in ?? ()
No symbol table info available.
#100x000000393eabcd2ein ?? ()
No symbol table info available.Why is this happening?
PS: when gdb started running, it prompted the following warning:
BFD: Warning:
/home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049is truncated: expected core file size >= 8372899840, found: 7439335424
Quoted 13 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Could this be the cause of gdb not finding the symbol table?
--
Thank you!
HuangJunSignature · 2 lines
Thank you! HuangJun
For first question, you can reinstall the ceph-debuginfo package released with your ceph package.
for the assert problem, you can create an issue to track this
http://tracker.ceph.com/projects/ceph/issues
2016-11-20 15:29 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 107 lines
No, how to verify it? And do you have any clue what made that assert fail? Thank you
Quoted 91 lines · huang jun
seems like the ceph and ceph-debuginfo package version not match, do you verified it?
2016-11-20 15:20 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 19 lines
In my test today, the same problem came up even there is no such warning....
By the way, the problem of ceph that I want to fix is as such: some of my osd can't finish the recovery+backfilling process due to the failure of the following assert:
2016-11-19 07:00:49.133814 7fc7a77ff700 -1 error_msg osd/ReplicatedPG.cc: In function 'void ReplicatedPG::wait_for_unreadable_object(const hobject_t&, OpRequestRef)' thread 7fc7a77ff700 time 2016-11-19 07:00:48.914231osd/ReplicatedPG.cc: 387: FAILED
assert(needs_recovery)ceph version 0.94.5-12-g83f56a1 (
83f56a1c84e3dbd95a4c394335a7b1dc926dd1c4)
1: (ReplicatedPG::wait_for_unreadable_object(hobject_t const&, std::tr1::shared_ptr<OpRequest>)+0x3f5) [0x8b5a65] 2: (ReplicatedPG::do_op(std::tr1::shared_ptr<OpRequest>&)+0x5e9) [0x8f0c79]
3: (ReplicatedPG::do_request(std::tr1::shared_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x4e3) [0x87fdc3] 4: (OSD::dequeue_op(boost::intrusive_ptr<PG>, std::tr1::shared_ptr<OpRequest>, ThreadPool::TPHandle&)+0x178) [0x66b3f8] 5: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x59e) [0x66f8ee]
6: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x795) [0xa76d85]
7: (ShardedThreadPool::WorkThreadSharded::entry()+0x10) [0xa7a610]
8: /lib64/libpthread.so.0() [0x393da07a51]
9: (clone()+0x6d) [0x393d6e893d]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed to interpret this.Quoted 62 lines
I'm using ceph-0.94.5 which should be the version "Hammer". Do you have any clue about what made this assert fail?
Quoted 57 lines · huang jun
that maybe the reason, do you have the same problem if there is no such warning?
2016-11-19 19:00 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 41 lines
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from
/usr/bin/ceph-osd...Readingsymbols from/usr/lib/debug/usr/bin/ceph-osd.debug...done.However, it still can't find the symbol table when I use "bt" to trace the stack:
#0
0x000000393da0f65bin ?? ()
No symbol table info available.
#10x0000000000a51636ininstall_standard_sighandlers() at global/signal_handler.cc:121
No locals.
#20x00007fc7a77f9ed0in ?? ()
No symbol table info available.
#30x00007fc7a77f9e10in ?? ()
No symbol table info available.
#40x00007fc7a77f9b90in ?? ()
No symbol table info available.
#50x00007fc66d3142e0in ?? ()
No symbol table info available.
#60x00007fc7fac64100in ?? ()
No symbol table info available.
#70x0000003900000000in ?? ()
No symbol table info available.
#80x0000000000a51155inSignalHandler::unregister_handler(this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#90x000000393eabcc33in ?? ()
No symbol table info available.
#100x000000393eabcd2ein ?? ()
No symbol table info available.Why is this happening?
Quoted 7 lines
PS: when gdb started running, it prompted the following warning:
BFD: Warning:
/home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049is truncated: expected core file size >= 8372899840, found: 7439335424Could this be the cause of gdb not finding the symbol table?
--
Thank you!
HuangJun--
Thank you!
HuangJun
Signature · 2 lines
Thank you! HuangJun
Hi, thanks for your help.
I checked the version of both my ceph and ceph-debuginfo package are the same. Is there any other possible cause? Thank you:-)
Quoted 107 lines · huang jun
For first question, you can reinstall the ceph-debuginfo package released with your ceph package.
for the assert problem, you can create an issue to track this
http://tracker.ceph.com/projects/ceph/issues2016-11-20 15:29 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 100 lines
No, how to verify it? And do you have any clue what made that assert fail? Thank you
Quoted 88 lines · huang jun
seems like the ceph and ceph-debuginfo package version not match, do you verified it?
2016-11-20 15:20 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 81 lines
In my test today, the same problem came up even there is no such warning....
By the way, the problem of ceph that I want to fix is as such: some of my osd can't finish the recovery+backfilling process due to the failure of the following assert:
2016-11-19 07:00:49.133814 7fc7a77ff700 -1 error_msg osd/ReplicatedPG.cc: In function 'void ReplicatedPG::wait_for_unreadable_object(const hobject_t&, OpRequestRef)' thread 7fc7a77ff700 time 2016-11-19 07:00:48.914231osd/ReplicatedPG.cc: 387: FAILED
assert(needs_recovery)ceph version 0.94.5-12-g83f56a1 (
83f56a1c84e3dbd95a4c394335a7b1dc926dd1c4)
1: (ReplicatedPG::wait_for_unreadable_object(hobject_t const&, std::tr1::shared_ptr<OpRequest>)+0x3f5) [0x8b5a65] 2: (ReplicatedPG::do_op(std::tr1::shared_ptr<OpRequest>&)+0x5e9) [0x8f0c79]
3: (ReplicatedPG::do_request(std::tr1::shared_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x4e3) [0x87fdc3] 4: (OSD::dequeue_op(boost::intrusive_ptr<PG>, std::tr1::shared_ptr<OpRequest>, ThreadPool::TPHandle&)+0x178) [0x66b3f8] 5: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x59e) [0x66f8ee]
6: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x795) [0xa76d85]
7: (ShardedThreadPool::WorkThreadSharded::entry()+0x10) [0xa7a610]
8: /lib64/libpthread.so.0() [0x393da07a51]
9: (clone()+0x6d) [0x393d6e893d]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed to interpret this.I'm using ceph-0.94.5 which should be the version "Hammer". Do you have any clue about what made this assert fail?
Quoted 57 lines · huang jun
that maybe the reason, do you have the same problem if there is no such warning?
2016-11-19 19:00 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 41 lines
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from
/usr/bin/ceph-osd...Readingsymbols from/usr/lib/debug/usr/bin/ceph-osd.debug...done.However, it still can't find the symbol table when I use "bt" to trace the stack:
#0
0x000000393da0f65bin ?? ()
No symbol table info available.
#10x0000000000a51636ininstall_standard_sighandlers() at global/signal_handler.cc:121
No locals.
#20x00007fc7a77f9ed0in ?? ()
No symbol table info available.
#30x00007fc7a77f9e10in ?? ()
No symbol table info available.
#40x00007fc7a77f9b90in ?? ()
No symbol table info available.
#50x00007fc66d3142e0in ?? ()
No symbol table info available.
#60x00007fc7fac64100in ?? ()
No symbol table info available.
#70x0000003900000000in ?? ()
No symbol table info available.
#80x0000000000a51155inSignalHandler::unregister_handler(this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#90x000000393eabcc33in ?? ()
No symbol table info available.
#100x000000393eabcd2ein ?? ()
No symbol table info available.Why is this happening?
Quoted 7 lines
PS: when gdb started running, it prompted the following warning:
BFD: Warning:
/home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049is truncated: expected core file size >= 8372899840, found: 7439335424Could this be the cause of gdb not finding the symbol table?
--
Thank you!
HuangJun
Quoted 13 lines
Quoted 7 lines
Quoted 3 lines
--
Thank you!
HuangJunSignature · 2 lines
Thank you! HuangJun
Quoted 8 lines · On Sun, Nov 20, 2016 at 8:29 PM, xxhdx1985126 <[email protected]> wrote:
Hi, thanks for your help.
I checked the version of both my ceph and ceph-debuginfo package are the same. Is there any other possible cause? Thank you:-)
Check the recent thread titled "debug coredump on teuthology" for details of how to match a binary with the correct debuginfo via the buildid. A truncated coredump could certainly cause this as could not having the debuginfo loaded for all of the binaries involved or having the wrong versions. gdb should give you clues as to what is wrong and matching binaries and debuginfo by buildid should ensure you get the right versions. "info shared" will show you all .so involved.
Quoted 132 lines
Quoted 120 lines · huang jun
For first question, you can reinstall the ceph-debuginfo package released with your ceph package.
for the assert problem, you can create an issue to track this
http://tracker.ceph.com/projects/ceph/issues2016-11-20 15:29 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 11 lines
No, how to verify it? And do you have any clue what made that assert fail? Thank you
Quoted 96 lines
Quoted 91 lines · huang jun
seems like the ceph and ceph-debuginfo package version not match, do you verified it?
2016-11-20 15:20 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 19 lines
In my test today, the same problem came up even there is no such warning....
By the way, the problem of ceph that I want to fix is as such: some of my osd can't finish the recovery+backfilling process due to the failure of the following assert:
2016-11-19 07:00:49.133814 7fc7a77ff700 -1 error_msg osd/ReplicatedPG.cc: In function 'void ReplicatedPG::wait_for_unreadable_object(const hobject_t&, OpRequestRef)' thread 7fc7a77ff700 time 2016-11-19 07:00:48.914231osd/ReplicatedPG.cc: 387: FAILED
assert(needs_recovery)ceph version 0.94.5-12-g83f56a1 (
83f56a1c84e3dbd95a4c394335a7b1dc926dd1c4)
1: (ReplicatedPG::wait_for_unreadable_object(hobject_t const&, std::tr1::shared_ptr<OpRequest>)+0x3f5) [0x8b5a65] 2: (ReplicatedPG::do_op(std::tr1::shared_ptr<OpRequest>&)+0x5e9) [0x8f0c79]
3: (ReplicatedPG::do_request(std::tr1::shared_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x4e3) [0x87fdc3] 4: (OSD::dequeue_op(boost::intrusive_ptr<PG>, std::tr1::shared_ptr<OpRequest>, ThreadPool::TPHandle&)+0x178) [0x66b3f8] 5: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x59e) [0x66f8ee]
6: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x795) [0xa76d85]
7: (ShardedThreadPool::WorkThreadSharded::entry()+0x10) [0xa7a610]
8: /lib64/libpthread.so.0() [0x393da07a51]
9: (clone()+0x6d) [0x393d6e893d]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed to interpret this.Quoted 62 lines
I'm using ceph-0.94.5 which should be the version "Hammer". Do you have any clue about what made this assert fail?
Quoted 57 lines · huang jun
that maybe the reason, do you have the same problem if there is no such warning?
2016-11-19 19:00 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 41 lines
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from
/usr/bin/ceph-osd...Readingsymbols from/usr/lib/debug/usr/bin/ceph-osd.debug...done.However, it still can't find the symbol table when I use "bt" to trace the stack:
#0
0x000000393da0f65bin ?? ()
No symbol table info available.
#10x0000000000a51636ininstall_standard_sighandlers() at global/signal_handler.cc:121
No locals.
#20x00007fc7a77f9ed0in ?? ()
No symbol table info available.
#30x00007fc7a77f9e10in ?? ()
No symbol table info available.
#40x00007fc7a77f9b90in ?? ()
No symbol table info available.
#50x00007fc66d3142e0in ?? ()
No symbol table info available.
#60x00007fc7fac64100in ?? ()
No symbol table info available.
#70x0000003900000000in ?? ()
No symbol table info available.
#80x0000000000a51155inSignalHandler::unregister_handler(this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#90x000000393eabcc33in ?? ()
No symbol table info available.
#100x000000393eabcd2ein ?? ()
No symbol table info available.Why is this happening?
Quoted 7 lines
PS: when gdb started running, it prompted the following warning:
BFD: Warning:
/home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049is truncated: expected core file size >= 8372899840, found: 7439335424Could this be the cause of gdb not finding the symbol table?
--
Thank you!
HuangJun--
Thank you!
HuangJun--
Thank you!
HuangJun
Signature · 2 lines
Cheers, Brad
Quoted 14 lines · Brad Hubbard
Quoted 8 lines · On Sun, Nov 20, 2016 at 8:29 PM, xxhdx1985126 <[email protected]> wrote:
Hi, thanks for your help.
I checked the version of both my ceph and ceph-debuginfo package are the same. Is there any other possible cause? Thank you:-)
Quoted 111 lines
Check the recent thread titled "debug coredump on teuthology" for details of how to match a binary with the correct debuginfo via the buildid. A truncated coredump could certainly cause this as could not having the debuginfo loaded for all of the binaries involved or having the wrong versions. gdb should give you clues as to what is wrong and matching binaries and debuginfo by buildid should ensure you get the right versions. "info shared" will show you all .so involved.
Quoted 104 lines
Quoted 96 lines · huang jun
For first question, you can reinstall the ceph-debuginfo package released with your ceph package.
for the assert problem, you can create an issue to track this
http://tracker.ceph.com/projects/ceph/issues2016-11-20 15:29 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 89 lines
No, how to verify it? And do you have any clue what made that assert fail? Thank you
Quoted 77 lines · huang jun
seems like the ceph and ceph-debuginfo package version not match, do you verified it?
2016-11-20 15:20 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 73 lines
In my test today, the same problem came up even there is no such warning....
By the way, the problem of ceph that I want to fix is as such: some of my osd can't finish the recovery+backfilling process due to the failure of the following assert:
2016-11-19 07:00:49.133814 7fc7a77ff700 -1 error_msg osd/ReplicatedPG.cc: In function 'void ReplicatedPG::wait_for_unreadable_object(const hobject_t&, OpRequestRef)' thread 7fc7a77ff700 time 2016-11-19 07:00:48.914231osd/ReplicatedPG.cc: 387: FAILED
assert(needs_recovery)ceph version 0.94.5-12-g83f56a1 (
83f56a1c84e3dbd95a4c394335a7b1dc926dd1c4)
1: (ReplicatedPG::wait_for_unreadable_object(hobject_t const&, std::tr1::shared_ptr<OpRequest>)+0x3f5) [0x8b5a65] 2: (ReplicatedPG::do_op(std::tr1::shared_ptr<OpRequest>&)+0x5e9) [0x8f0c79]
3: (ReplicatedPG::do_request(std::tr1::shared_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x4e3) [0x87fdc3] 4: (OSD::dequeue_op(boost::intrusive_ptr<PG>, std::tr1::shared_ptr<OpRequest>, ThreadPool::TPHandle&)+0x178) [0x66b3f8] 5: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x59e) [0x66f8ee]
6: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x795) [0xa76d85]
7: (ShardedThreadPool::WorkThreadSharded::entry()+0x10) [0xa7a610]
8: /lib64/libpthread.so.0() [0x393da07a51]
9: (clone()+0x6d) [0x393d6e893d]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed to interpret this.I'm using ceph-0.94.5 which should be the version "Hammer". Do you have any clue about what made this assert fail?
Quoted 49 lines · huang jun
that maybe the reason, do you have the same problem if there is no such warning?
2016-11-19 19:00 GMT+08:00 xxhdx1985126 <[email protected]>:
Quoted 46 lines
Hi, everyone.
I'm trying to fix a problem in ceph using its core file and gdb. gdb successfully loaded debug symbol from ceph-debuginfo:
Reading symbols from
/usr/bin/ceph-osd...Readingsymbols from/usr/lib/debug/usr/bin/ceph-osd.debug...done.However, it still can't find the symbol table when I use "bt" to trace the stack:
#0
0x000000393da0f65bin ?? ()
No symbol table info available.
#10x0000000000a51636ininstall_standard_sighandlers() at global/signal_handler.cc:121
No locals.
#20x00007fc7a77f9ed0in ?? ()
No symbol table info available.
#30x00007fc7a77f9e10in ?? ()
No symbol table info available.
#40x00007fc7a77f9b90in ?? ()
No symbol table info available.
#50x00007fc66d3142e0in ?? ()
No symbol table info available.
#60x00007fc7fac64100in ?? ()
No symbol table info available.
#70x0000003900000000in ?? ()
No symbol table info available.
#80x0000000000a51155inSignalHandler::unregister_handler(this=0x1105440, signum=<value optimized out>, handler=<value optimized out>) at global/signal_handler.cc:317 No locals.
#90x000000393eabcc33in ?? ()
No symbol table info available.
#100x000000393eabcd2ein ?? ()
No symbol table info available.Why is this happening?
PS: when gdb started running, it prompted the following warning:
BFD: Warning:
/home/xuxuehan/online_problems.2016-11-19.7-01/core-ceph-osd-6-32337-32337-19906-1479510049is truncated: expected core file size >= 8372899840, found: 7439335424
This is ~8GB core file. It is possible you ran out of space at the time of saving the core dump.
Nitin
Quoted 38 lines
Quoted 28 lines
Quoted 24 lines
Quoted 11 lines
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
Could this be the cause of gdb not finding the symbol table?
--
Thank you!
HuangJunQuoted 7 lines
Quoted 3 lines
--
Thank you!
HuangJun--
Thank you!
HuangJunSignature · 6 lines
Cheers, Brad -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html