日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

解决gdb 调试 core 文件函数名显示为问号的问题

發布時間:2025/3/21 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 解决gdb 调试 core 文件函数名显示为问号的问题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

關于gdb調試core文件總是一堆問號的問題

問題描述:已經在編譯選項中加入了-g,但是查看core文件時,還是一堆問號,使用的命令為:gdb -c core

?

解決方案:由于gdb -c core這樣的使用在有些系統下支持不是很好,所以推薦用如下兩種方法:

1) gdb exe

(gdb) core-file core

?

2) gdb -c core

(gdb) file exe

而其中第二種方法在某些系統上也是不好用的,所以就用第一種即可。

Pre-Condition: ulimit -c unlimited[root@localhost CMarketServer_dist]# gdb -c core.18669 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/>. Missing separate debuginfo for the main executable file Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/3a/1542385962343e7f59102500bd59549476af63 [New Thread 18682] [New Thread 18680] [New Thread 18690] [New Thread 18671] [New Thread 18675] [New Thread 18684] [New Thread 18673] [New Thread 18683] [New Thread 18670] [New Thread 18681] [New Thread 18692] [New Thread 18672] [New Thread 18674] [New Thread 18685] [New Thread 18686] [New Thread 18669] [New Thread 18688] [New Thread 18693] [New Thread 18676] [New Thread 18691] [New Thread 18687] [New Thread 18679] [New Thread 18678] [New Thread 18677] [New Thread 18689] Core was generated by `./CMarketServer'. Program terminated with signal 11, Segmentation fault. #0 0x00007f01d0000078 in ?? () (gdb) file ./CMarketServer Reading symbols from /home/artogrid/workspace/deploy/CMarketServer_dist/CMarketServer...done. (gdb) set solib-search-path . Missing separate debuginfo for /usr/local/lib/liblog4cxx.so.10 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/0e/139ae220b73d9a39339f1bace6a96a38c1c44a warning: Ignoring non-absolute filename: <libqpid_engine.so> Missing separate debuginfo for libqpid_engine.so Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/45/564f720db2e65548b71adb8b24b8c36b19d2f5 warning: Ignoring non-absolute filename: <libsdbus.so> Missing separate debuginfo for libsdbus.so Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/49/927fc4c9a557d91e5165200d6878c62c95b4d2 Missing separate debuginfo for /usr/local/lib/libboost_locale.so.1.55.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/3b/b08849d6e8b2365a28900cf050305ec037d729 Missing separate debuginfo for /usr/local/lib/libboost_regex.so.1.55.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/3d/7679511258d9ca1d23bf068dd95708a91efd8a Missing separate debuginfo for /usr/local/lib/libboost_thread.so.1.55.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/59/21d90d955afa476af8906b19f16e8cf15f9a8b Missing separate debuginfo for /usr/local/lib/libboost_system.so.1.55.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/8f/d6d6d4c63d820c16960a54d32c925ab1585a67 Missing separate debuginfo for /root/libs/lib/libaprutil-1.so.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/d2/190161fce4d5f32576cc1e776e865e551b66cd Missing separate debuginfo for /root/libs/lib/libexpat.so.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/fb/ea75911a6345eb5061b8d89df36d60cb15c48e Missing separate debuginfo for /root/libs/lib/libapr-1.so.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/16/46922411e943bbb119952f475d76a1c67c56fc warning: Ignoring non-absolute filename: <libqpidtypes.so.1> Missing separate debuginfo for libqpidtypes.so.1 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/e1/9e52e4b7d04501a5309ab5923f402c445807eb warning: Ignoring non-absolute filename: <libqpidcommon.so.2> Missing separate debuginfo for libqpidcommon.so.2 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/d0/cf0f6814e72049c0b69d0cc119531f3b236a54 warning: Ignoring non-absolute filename: <libqpidclient.so.2> Missing separate debuginfo for libqpidclient.so.2 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/75/f8bb0ae45aa2d66a49ec3c92fbae4e878b81b6 warning: Ignoring non-absolute filename: <libqpidmessaging.so.2> Missing separate debuginfo for libqpidmessaging.so.2 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/d9/18989eba408d27aeddb06c205dff9314b5c1a5 Missing separate debuginfo for /usr/local/lib/libboost_atomic.so.1.55.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/3c/106c0c4e106d976010c740f1d1148789bf0f2e Missing separate debuginfo for /usr/local/lib/libboost_program_options.so.1.55.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/b4/a7ea00fdb097880a77fad834ec9a53b34a88ed Missing separate debuginfo for /usr/local/lib/libboost_filesystem.so.1.55.0 Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/85/14d44761aee9411fd89113fe1610ce35913443 Missing separate debuginfo for Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/24/26d85978796c7ed259cdc601a7c310c339a21c [Thread debugging using libthread_db enabled] Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6_7.3.x86_64 libgcc-4.4.7-16.el6.x86_64 libstdc++-4.4.7-16.el6.x86_64 libuuid-2.17.2-12.18.el6.x86_64 nss-softokn-freebl-3.14.3-23.el6_7.x86_64 (gdb) list 13 #include "service/send_service.h" 14 #include "service/service_manager.h" 15 #include "service/publish_manager.h" 16 #include "engine/qpid_engine.h" 17 #include "config.h" 18 #include <boost/thread.hpp> 19 20 int main( int argc, char * argv[] ) 21 { 22 engine::qpid::EngineInitializer qpid_engine; (gdb) bt #0 0x00007f01d0000078 in ?? () #1 0x00000000004aed47 in ConnPool::createConnection (this=0x7f01d0001560) at db/connection_pool.cpp:82 #2 0x00000000004ae7ee in ConnPool::initConnPool (this=0x7f01d0001560, size=5) at db/connection_pool.cpp:50 #3 0x00000000004adcfe in ConnPool::ConnPool (this=0x7f01d0001560, url="(\340+\001\000\000\000\000\020\026\000\320\001\177\000\000\230^)\001\000\000\000\000\350\030\000\320\001\177\000\000h\330+\001\000\000\000\000`\035\000\320\005\000\000\000\300\025\000\320\001\177\000\000\240?\362\001\177\000\000\300?\362\001\177\000\000\000\000\000\000\000\000\000\000\340?\362\001\177\000\000\213\061E\000\000\000\000\000 ?\362\001\177\000\000yS\351\031\002\177\000\000`\221,\001\000\000\000\000 \000\000\320\001\177\000\000u\000\000\000\000\000\000\000\300\025\000\320\001\177\000\000\300?\362\016\000\000\000\003", '\000' <repeats 39 times>"\320, \030\000\320\001\177\000\000\b\000\000\000\000\000\000\000`\035\000\320\001\177\000\000`\035\000\320\001\177\000\000`\037\000\320\001\177\000\000\350\030\000\320\001\177\000\000`\035\000\320\001\177\000\000`\035\000\320\001\177\000\000`\037\000\320\001\177\000\000\350\030\000\320\001\177"..., username="\230^)\001\000\000\000\000\350\030\000\320\001\177\000\000h\330+\001\000\000\000\000`\035\000\320\005\000\000\000\300\025\000\320\001\177\000\000\240?\362\001\177\000\000\300?\362\001\177\000\000\000\000\000\000\000\000\000\000\340?\362\001\177\000\000\213\061E\000\000\000\000\000 ?\362\001\177\000\000yS\351\031\002\177\000\000`\221,\001\000\000\000\000 \000\000\320\001\177\000\000u\000\000\000\000\000\000\000\300\025\000\320\001\177\000\000\300?\362\016\000\000\000\003", '\000' <repeats 39 times>"\320, \030\000\320\001\177\000\000\b\000\000\000\000\000\000\000`\035\000\320\001\177\000\000`\035\000\320\001\177\000\000`\037\000\320\001\177\000\000\350\030\000\320\001\177\000\000`\035\000\320\001\177\000\000`\035\000\320\001\177\000\000`\037\000\320\001\177\000\000\350\030\000\320\001\177\000\000\003\000\000\000\000\000\000\000\034[\351\031\002"..., passwd="", size=5) at db/connection_pool.cpp:22 #4 0x00000000004ae676 in ConnPool::getInstance () at db/connection_pool.cpp:38 #5 0x000000000045318b in DBConnector::DBConnector (this=0x7f01d00015c0) at db/dbconnector.cpp:22 #6 0x00000000004530b5 in DBConnector::getInstance () at db/dbconnector.cpp:14 #7 0x000000000044585b in QuoteBusiness::GetQuotesCount (this=0x7f01f2bfc6a0, cond=...) at quote_business.cpp:38 #8 0x000000000043cdf1 in QuoteService::GetQuoteList (this=0x12d7080, msg=0x7f01f2bfcb30, reply=...) at quote_service.cpp:83 #9 0x000000000043c3c8 in QuoteService::processReqMsg (this=0x12d7080, msg=0x7f01f2bfcb30) at quote_service.cpp:29 #10 0x000000000047fe7a in Service::threadReqMsg (this=0x12d7080) at service/service.cpp:83 #11 0x00000000004838d7 in boost::_mfi::mf0<void, Service>::operator() (this=0x12d9260, p=0x12d7080) at /usr/local/include/boost/bind/mem_fn_template.hpp:49 #12 0x00000000004833be in boost::_bi::list1<boost::_bi::value<Service*> >::operator()<boost::_mfi::mf0<void, Service>, boost::_bi::list0> (this=0x12d9270, f=..., a=...) at /usr/local/include/boost/bind/bind.hpp:253 #13 0x00000000004830fd in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Service>, boost::_bi::list1<boost::_bi::value<Service*> > >::operator() (this=0x12d9260) at /usr/local/include/boost/bind/bind_template.hpp:20 #14 0x0000000000482a3d in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Service>, boost::_bi::list1<boost::_bi::value<Service*> > >, void>::invoke (function_obj_ptr=...)at /usr/local/include/boost/function/function_template.hpp:153 #15 0x000000000045c75d in boost::function0<void>::operator() (this=0x12d9258) at /usr/local/include/boost/function/function_template.hpp:767 #16 0x000000000045c436 in boost::detail::thread_data<boost::function0<void> >::run (this=0x12d90a0) at /usr/local/include/boost/thread/detail/thread.hpp:117 #17 0x00007f02197eaab3 in thread_proxy () from /usr/local/lib/libboost_thread.so.1.55.0 #18 0x00007f02199fda51 in start_thread () from /lib64/libpthread.so.0 #19 0x00007f0219f0393d in clone () from /lib64/libc.so.6 (gdb) up #1 0x00000000004aed47 in ConnPool::createConnection (this=0x7f01d0001560) at db/connection_pool.cpp:82 82 conn = driver_->connect(connection_properties); (gdb) down #0 0x00007f01d0000078 in ?? () (gdb) up #1 0x00000000004aed47 in ConnPool::createConnection (this=0x7f01d0001560) at db/connection_pool.cpp:82 82 conn = driver_->connect(connection_properties); (gdb) p connection_properties $1 = std::map with 4 elements = {[{realStr = "OPT_RECONNECT", static npos = 18446744073709551615}] = {variant = 0x7f01d0001da0},[{realStr = "hostName", static npos = 18446744073709551615}] = {variant = 0x7f01d0001770},[{realStr = "password", static npos = 18446744073709551615}] = {variant = 0x7f01d0001370},[{realStr = "userName", static npos = 18446744073709551615}] = {variant = 0x7f01d00017b0} } (gdb) p driver_ $2 = (sql::mysql::MySQL_Driver *) 0x7f01d0001490 (gdb) quit

https://blog.csdn.net/cloud_castle/article/details/50833251

https://blog.csdn.net/tina_tian1/article/details/49869613

總結

以上是生活随笔為你收集整理的解决gdb 调试 core 文件函数名显示为问号的问题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 另类小说婷婷 | 日韩一级影院 | 日日热 | 国产一级片免费 | 日本精品久久久久久久 | 美女三级黄色 | 丝袜人妻一区二区三区 | 粉嫩aⅴ一区二区三区四区五区 | 毛片的网址| 亚欧精品在线 | 日韩欧美久久 | 不卡av网站| 嫩草国产精品 | 97色在线| 直接看毛片 | 99国产成人精品 | 国产网站无遮挡 | 国产日本一区二区三区 | 毛片在线不卡 | va毛片| 日韩欧美中文字幕在线观看 | 久久精品国产精品亚洲 | 日本视频色| 成人黄色片免费 | 婷婷影视 | 五月婷婷激情五月 | 午夜激情视频网 | 国产jk精品白丝av在线观看 | 15—16女人毛片 | 日韩精品不卡 | 国产精品刺激 | 国产强被迫伦姧在线观看无码 | 午夜视频福利在线观看 | 日本五十路 | 在线观看av的网址 | 亚洲精品二区 | 丰满少妇一区 | 亚洲欧美国产一区二区三区 | 在线观看aaa | 国产精品一区二区三区高潮 | 三级黄色免费网站 | 黄色网页观看 | 偷操 | 日韩电影在线观看一区二区 | 久久噜噜色综合一区二区 | www.午夜av | 午夜视频1000 | 日韩经典一区二区 | 国产一级高清视频 | 少妇搡bbbb搡bbb搡小说 | 天堂av网在线 | 91啪国产| 亚洲涩色 | 欧美人与按摩师xxxx | 精品人妻伦九区久久aaa片 | av毛片观看| 9色视频在线观看 | 91精品视频免费看 | 日韩精品人妻一区二区三区免费 | 日韩成人精品一区 | 亚欧洲精品视频 | 你懂的在线网站 | 久久亚洲av无码西西人体 | 国产成人精品777777 | 国产精品伦一区二区三级古装电影 | 爱爱一级 | 五月婷婷在线播放 | 欧美一级网址 | 9人人澡人人爽人人精品 | 无码人妻久久一区二区三区蜜桃 | www.激情网 | 极品久久久久久 | www.色国产 | 久久久蜜桃一区二区 | 在线播放毛片 | 在线欧美一区二区 | 日韩精品一区二区三区久久 | 欧美色狠| 超碰神马| 午夜视频1000 | 日韩二区 | 欧美嫩草| 国产77777 | 免费操人视频 | 日韩丝袜一区 | 久久午夜网 | 亚洲aaaaaa | 99情趣网 | 在线观看免费高清在线观看 | 激情视频网| 在线视频这里只有精品 | aaaa一级片 | 日韩精品一区二区三区免费视频 | 免费成人看视频 | 国产精品精品久久久久久 | 中文在线观看免费高清 | 欧美a∨亚洲欧美亚洲 | 国产原创视频在线 | 一级免费片 |