函数传递过程中this指针发生了变化

程序发生了coredump,用gdb调试看到的下面的调试信息,发现this指针在传递过程中发生了变化,deleteTimer就是和XMapChech以及CMapCheck一样的普通的成员函数
#2 0x0000000000423890 in logQuitSignalHandler (sig=11) at main.cc:440
#3
#4 SSTracker::deleteTimer (this=this@entry=0x400000006, callTeid=callTeid@entry=372432514, seqNum_=seqNum_@entry=5378315) at /usr/include/c++/4.8.2/bits/stl_tree.h:1790
#5 0x00000000005f161b in SSTracker::XMapCheck (this=this@entry=0x7f4138f81050, pTeidSeq=pTeidSeq@entry=0x7f45140031c0, reqrescmd=reqrescmd@entry=SSTracker::RESPONSE,
pSXData_=pSXData_@entry=0x7f408d9428f0, pSXMap_=0x7f4514007270) at SSTracker.cc:1380
#6 0x00000000005f1d77 in SSTracker::CMapCheck (this=this@entry=0x7f4138f81050, pTeidSeq=pTeidSeq@entry=0x7f45140031c0, reqrescmd=reqrescmd@entry=SSTracker::RESPONSE,
pSXData_=0x7f408d9428f0) at SSTracker.cc:1225
#7 0x00000000005f5dab in SSTracker::ProcessCSeRes (this=this@entry=0x7f4138f81050, pdn=pdn@entry=0x7f41089201f0, g=g@entry=0x7f4196453200) at SSTracker.cc:2816
而最后frame 4得到的结果为:
#4 SSTracker::deleteTimer (this=this@entry=0x400000006, callTeid=callTeid@entry=372432514, seqNum_=seqNum_@entry=5378315) at /usr/include/c++/4.8.2/bits/stl_tree.h:1790
1790 find(const _Key& __k)

首先想问的就是this指针为啥变了?其次能帮着看看coredump最好,这时用timer_create创建定时器相关

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问