模型預(yù)測core dump追查

因?yàn)橛袝r(shí)候core dump不發(fā)生在主線程,所以gdb的時(shí)候要切換到相應(yīng)線程查看其frame
1.記錄報(bào)錯(cuò)的時(shí)候打印的線程地址 (140334385465088)

Thread [140334385465088] Forwarding right_sbinary_fc,
*** Aborted at 1545984713 (unix time) try "date -d @1545984713" if you are using GNU date ***
PC: @                0x0 (unknown)
*** SIGSEGV (@0x7fa1f01da600) received by PID 7017 (TID 0x7fa225320700) from PID 18446744073443059200; stack trace: ***
    @     0x7fa23530d160 (unknown)

2.gdb中 info threads查看所有線程

(gdb) info threads
  Id   Target Id         Frame
  23   Thread 0x7fa11ce49700 (LWP 10682) 0x00007fa23215afc9 in syscall () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  22   Thread 0x7fa217fff700 (LWP 7031) 0x00007fa23215f753 in epoll_wait () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  21   Thread 0x7fa226722700 (LWP 7028) 0x00007fa2320f4414 in malloc () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  20   Thread 0x7fa22bfff700 (LWP 7025) 0x00007fa23215afc9 in syscall () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  19   Thread 0x7fa228525700 (LWP 7024) 0x00007fa23530979e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /opt/compiler/gcc-4.8.2/lib/libpthread.so.0
  18   Thread 0x7fa2157fb700 (LWP 7038) 0x00007fa23212e9cd in nanosleep () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  17   Thread 0x7fa22a493700 (LWP 7021) 0x00007fa23530979e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /opt/compiler/gcc-4.8.2/lib/libpthread.so.0
  16   Thread 0x7fa11d84a700 (LWP 10681) 0x00007fa23215afc9 in syscall () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  15   Thread 0x7fa230c92700 (LWP 7019) 0x00007fa23530979e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /opt/compiler/gcc-4.8.2/lib/libpthread.so.0
  14   Thread 0x7fa229a92700 (LWP 7022) 0x00007fa23530979e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /opt/compiler/gcc-4.8.2/lib/libpthread.so.0
  13   Thread 0x7fa228f26700 (LWP 7023) 0x00007fa23530979e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /opt/compiler/gcc-4.8.2/lib/libpthread.so.0
  12   Thread 0x7fa216bfd700 (LWP 7033) 0x00007fa2320f1fe7 in _int_malloc () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  11   Thread 0x7fa22afff700 (LWP 7020) 0x00007fa23530979e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /opt/compiler/gcc-4.8.2/lib/libpthread.so.0
  10   Thread 0x7fa231e69700 (LWP 7018) 0x00007fa23212e9cd in nanosleep () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  9    Thread 0x7fa225320700 (LWP 7030) 0x00007fa2320ad6a0 in sigprocmask () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  8    Thread 0x7fa227123700 (LWP 7027) 0x00007fa23215afc9 in syscall () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  7    Thread 0x7fa225d21700 (LWP 7029) 0x00007fa23215afc9 in syscall () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  6    Thread 0x7fa227b24700 (LWP 7026) ul_utf8_to_gbk (pDest=0x7fa0e090804a "", nDest=32768,
    pSrc=0x7fa1187c3ee8 "{\"keywords\":[],\"title\":\"\346\242\246\345\271\273\350\245\277\346\270\270\357\274\232\344\270\244\344\270\252\345\233\233\346\212\200\350\203\275\345\256\235\345\256\235\345\220\210\345\256\240\357\274\214\345\261\205\347\204\266\345\220\210\345\207\272\346\236\201\345\223\201\357\274\214\347\275\221\345\217\213\357\274\232\347\213\227\346\211\230\346\227\240\347\226\221\357\274\201\",\"fircate\":\"\346\270\270\346\210\217\",\"cls\":[[\"1116\",0.867,\"1116@\"],[\"111\",0.1,\"111@\"],[\"88\",0.028,\"88@"...) at ul_gbk.inl:7757
  5    Thread 0x7fa09f61e700 (LWP 10683) 0x00007fa2320f4414 in malloc () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  4    Thread 0x7fa2175fe700 (LWP 7032) 0x00007fa2320f0e35 in malloc_consolidate () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
  3    Thread 0x7fa2161fc700 (LWP 7034) 0x00000000004cd33a in operator() (this=0x7fa20c01eb00, __den=47, __num=16758873455973868894)
    at /home/opt/gcc-4.8.2.bpkg-r4/gcc-4.8.2.bpkg-r4/include/c++/4.8.2/bits/hashtable_policy.h:345
  2    Thread 0x7fa0a761e700 (LWP 10684) _M_dispose (__a=..., this=0x7fa0960060f0)
    at /home/opt/gcc-4.8.2.bpkg-r4/gcc-4.8.2.bpkg-r4/include/c++/4.8.2/bits/basic_string.h:245
* 1    Thread 0x7fa235731a40 (LWP 7017) 0x00007fa23212e9cd in nanosleep () from /opt/compiler/gcc-4.8.2/lib/libc.so.6

3.將10進(jìn)制thread地址轉(zhuǎn)換為16進(jìn)制:0x7fa225320700
4.找到其對應(yīng)的thread id纲爸,在gdb中輸入thread {id}交掏,在bt排查即可

(gdb) thread 9
[Switching to thread 9 (Thread 0x7fa225320700 (LWP 7030))]
#0  0x00007fa2320ad6a0 in sigprocmask () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
(gdb) bt
#0  0x00007fa2320ad6a0 in sigprocmask () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
#1  0x00007fa23212e7e9 in sleep () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
#2  0x00007fa232ccd61a in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#3  <signal handler called>
#4  0x00007fa2320ad3f7 in raise () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
#5  0x00007fa2320ae7d8 in abort () from /opt/compiler/gcc-4.8.2/lib/libc.so.6
#6  0x00007fa232cce31b in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#7  0x00007fa232ccecda in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#8  0x00007fa232ccf3a2 in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#9  0x00007fa232ccd35b in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#10 0x00007fa232ccdbd7 in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#11 <signal handler called>
#12 0x00007fa232f8d3e7 in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#13 0x00007fa232f857a4 in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#14 0x00007fa232f7c5a3 in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#15 0x00007fa232d9df66 in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#16 0x00007fa232e27a69 in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#17 0x00007fa232cbf8e6 in ?? () from /home/work/users/xushuda/video-middlepage-online/rank_run_time/new_recomm_online/bin/libpaddle_capi_shared.so
#18 0x00000000004e4e96 in RankDnnBatchDurV4::batch_predict (this=0x7fa1ec133c40, uid=2499685119, user=..., source_post=..., target_posts=..., ms_input=..., results=...)
    at baidu/tb-recom/recomm-middlepage/src/server/base/hot_object/RankDnnBatchDurV4.cpp:2082
#19 0x0000000000571a6c in recomm_middlepage::DnnModelControlGroup::Predict (this=<optimized out>, ms_data=<optimized out>)
    at baidu/tb-recom/recomm-middlepage/src/server/model/DnnModelControlGroup.cpp:26
#20 0x000000000062ba05 in recomm_middlepage::MultiModel::Run (this=0x7fa0f76097b0) at baidu/tb-recom/recomm-middlepage/src/server/process/video/4rank/MultiModel.cpp:38
#21 0x000000000065dc21 in RunTask (arg=0x7fa0f7710090) at baidu/tb-recom/recomm-baselib/src/recom/base/task_pool.cpp:164
#22 0x000000000065e395 in RunTaskOnSignleThread (arg=0x7fa079c513d0) at baidu/tb-recom/recomm-baselib/src/recom/base/task_pool.cpp:206
#23 0x000000000089ae3a in bthread::TaskGroup::task_runner (skip_remained=<optimized out>) at baidu/base/bthread/bthread/task_group.cpp:290
#24 0x0000000000892231 in bthread_make_fcontext ()
Backtrace stopped: Cannot access memory at address 0x7fa0d8ece000
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末潦俺,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌横媚,老刑警劉巖床三,帶你破解...
    沈念sama閱讀 210,978評論 6 490
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件一罩,死亡現(xiàn)場離奇詭異,居然都是意外死亡撇簿,警方通過查閱死者的電腦和手機(jī)聂渊,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 89,954評論 2 384
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來四瘫,“玉大人汉嗽,你說我怎么就攤上這事≌颐郏” “怎么了饼暑?”我有些...
    開封第一講書人閱讀 156,623評論 0 345
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經(jīng)常有香客問我弓叛,道長彰居,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,324評論 1 282
  • 正文 為了忘掉前任撰筷,我火速辦了婚禮陈惰,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘毕籽。我一直安慰自己抬闯,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,390評論 5 384
  • 文/花漫 我一把揭開白布关筒。 她就那樣靜靜地躺著溶握,像睡著了一般。 火紅的嫁衣襯著肌膚如雪蒸播。 梳的紋絲不亂的頭發(fā)上睡榆,一...
    開封第一講書人閱讀 49,741評論 1 289
  • 那天,我揣著相機(jī)與錄音廉赔,去河邊找鬼肉微。 笑死,一個(gè)胖子當(dāng)著我的面吹牛蜡塌,可吹牛的內(nèi)容都是我干的碉纳。 我是一名探鬼主播,決...
    沈念sama閱讀 38,892評論 3 405
  • 文/蒼蘭香墨 我猛地睜開眼馏艾,長吁一口氣:“原來是場噩夢啊……” “哼劳曹!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起琅摩,我...
    開封第一講書人閱讀 37,655評論 0 266
  • 序言:老撾萬榮一對情侶失蹤铁孵,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后房资,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體蜕劝,經(jīng)...
    沈念sama閱讀 44,104評論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,451評論 2 325
  • 正文 我和宋清朗相戀三年轰异,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了岖沛。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 38,569評論 1 340
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡搭独,死狀恐怖婴削,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情牙肝,我是刑警寧澤唉俗,帶...
    沈念sama閱讀 34,254評論 4 328
  • 正文 年R本政府宣布嗤朴,位于F島的核電站,受9級特大地震影響虫溜,放射性物質(zhì)發(fā)生泄漏雹姊。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,834評論 3 312
  • 文/蒙蒙 一衡楞、第九天 我趴在偏房一處隱蔽的房頂上張望容为。 院中可真熱鬧,春花似錦寺酪、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,725評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至陨献,卻和暖如春盒犹,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背眨业。 一陣腳步聲響...
    開封第一講書人閱讀 31,950評論 1 264
  • 我被黑心中介騙來泰國打工急膀, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人龄捡。 一個(gè)月前我還...
    沈念sama閱讀 46,260評論 2 360
  • 正文 我出身青樓卓嫂,卻偏偏與公主長得像,于是被迫代替她去往敵國和親聘殖。 傳聞我的和親對象是個(gè)殘疾皇子晨雳,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,446評論 2 348

推薦閱讀更多精彩內(nèi)容