日韩性视频-久久久蜜桃-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 文件函数名显示为问号的问题的全部內容,希望文章能夠幫你解決所遇到的問題。

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

主站蜘蛛池模板: av天天堂| 无码人妻av一区二区三区波多野 | 欧美老少做受xxxx高潮 | 91精品国产乱码久久久久久久久 | 超碰在线91 | 免费无遮挡无码永久视频 | 91禁蘑菇在线看 | 日韩一级视频在线观看 | 在线免费激情视频 | 熟女国产精品一区二区三 | 特黄aaaaaaaaa真人毛片 | 制服av网| 久久久精品视频在线观看 | 国产在线一区二 | 3d动漫啪啪精品一区二区中文字幕 | 精品欧美一区二区久久久 | 高清二区 | 香蕉视频在线免费播放 | 久久久免费精品视频 | 日韩精品一区二区三区丰满 | 日韩av网址在线观看 | 美女黄色免费网站 | 久久妇女| 日韩精品在线播放 | 国产精品4 | 国产精品美女久久久久久久 | 国产精品一区二区三区在线看 | 日韩激情久久 | www.男人天堂 | 欧美一区自拍 | 欧美性猛交久久久乱大交小说 | 日本中文字幕影院 | 成人激情在线视频 | 国产主播第一页 | 夜夜嗨av一区二区三区 | 一二三区在线播放 | 精品在线观看一区 | 99操| 欧美一二三 | 国产精品不卡一区二区三区 | 91网站永久免费看nba视频 | 538在线精品视频 | 亚久久| 99re这里只有精品首页 | 久久国产精品久久久久 | 国产一区亚洲 | 日本少妇一区二区三区 | av在线免费观看网址 | 国产精品一二区 | 毛片aaaaaa| 亚洲精品国产精品乱码在线观看 | 狠狠干综合 | 中文字幕1区2区3区 www.com黄色片 | 黄色国产网站 | 三年大全国语中文版免费播放 | 欧美爱爱爱| 欧美一级色| 伊人久久在线 | 国产高清av | 韩国av一区二区三区 | 天天艹日日艹 | 亚洲色图在线观看 | 冲田杏梨av| 国产精品国产三级国产专播精品人 | 97热久久 | 亚洲视频欧美 | 淫片一级国产 | 波多野结衣在线看 | 五月天婷婷丁香 | 牛牛av在线 | 免费三片在线播放 | 亚洲精品av在线 | 久久精品123 | 日韩欧美一 | 女同性恋毛片 | 日本欧美色 | 成人精品一区二区三区中文字幕 | 欧美日韩电影一区二区 | 日韩字幕在线 | 国产精品久久一 | 99欧美精品 | 国产成人精品白浆久久69 | 国产又粗又猛又爽又黄的视频小说 | 69精品一区二区 | 国产视频一区二区三区在线播放 | 成人在线不卡 | 九九热精品 | 屁屁影院第一页 | 在线观看日韩精品 | 国产一区二区三区毛片 | 一区二区三区在线不卡 | 波多一区二区 | 久久国产精品首页 | 国产精自产拍久久久久久蜜 | 天天干网站 | 麻豆短视频 | 国产一级片一区二区 | 中文字幕一区二区三区波野结 | 男ji大巴进入女人视频 |