首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

OTL使用一个有关问题,程序core掉,蛋疼

2012-04-21 
【求助】OTL使用一个问题,程序core掉,蛋疼core文件信息如下:warning: Lowest section in system-supplied DS

【求助】OTL使用一个问题,程序core掉,蛋疼
core文件信息如下:

warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at ffffe0b4
Core was generated by `/home/terminal/TERMINAL/src/XXT_TERMINAL_DEALWITH_HLB -f /home/terminal/TERMINA'.
Program terminated with signal 6, Aborted.
#0 0xffffe410 in __kernel_vsyscall ()
(gdb) where
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xf6ec58d0 in raise () from /lib/libc.so.6
#2 0xf6ec6ff3 in abort () from /lib/libc.so.6
#3 0xf70a1880 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6
#4 0xf709f2a5 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
#5 0xf709f2e2 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0xf709f39b in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#7 0x08070f32 in otl_stream::open (this=0xf0a0a188, arr_size=1,
sqlstm=0xda1d149b "select count(*) from CORE_TERMINAL where SERIAL = '010261'", db=@0xc1f06b98, ref_cur_placeholder=0x0, sqlstm_label=0x0) at otlv4.h:31662
#8 0x08057639 in CProcessor::CheckTERMINALINFO (this=0x87a8990, tTerminal=@0xda1d2220) at Processor.cpp:1543
#9 0x0805fe1d in CProcessor::thConnectRcv (pParam=0x87a8990) at Processor.cpp:2728
#10 0xf70ee2ab in start_thread () from /lib/libpthread.so.0
#11 0xf6f5ba4e in clone () from /lib/libc.so.6



这个问题时不时都会发生,实在找不到原因。。。。。
蛋疼啊

[解决办法]
出现了一个异常. 代码如果简单的话发上来.
[解决办法]
if (pstConfig->iWriteLogFlag == 0 || pstConfig->iWriteLogFlag == 2)
{
time_t nowTime;
struct tm *tm_ptr;

(void)time(&nowTime);
tm_ptr = localtime(&nowTime);

string strResult = "";

int nStart = -1;
int nEnd = -1;
int nPos = -1;

string strNumValue;
string strValue;

int nCurrNum = 0;
int nPreNum = 0;


int iCount = 0, iNormalRecv = 0, iReverseRecv = 0, iShouldRecv = 0, iRoomid = 0;
int iShouldFrames = 0, iBreakFrames = 0;
int iRttC2IAvg = 0;

for(int i=0;i<mit->second.sModuleData.length()+1;i++)
{
if (mit->second.sModuleData[i] == ',' || mit->second.sModuleData[i] == '\0')
{
nEnd = i;
}

if (nEnd > 0 && nEnd > nStart)
{
strNumValue = mit->second.sModuleData.substr(nStart+1, nEnd-nStart-1);
nStart = nEnd;
nEnd = 0;

nPos = strNumValue.find('#');
nCurrNum = atoi(strNumValue.substr(0, nPos).c_str());
if (nCurrNum == 0) continue;
strValue = strNumValue.substr(nPos+1, strNumValue.length() - nPos - 1);
if (strValue[0] == ',' || strValue[0] == '\0')
{
strValue = "0";
}

while(nCurrNum - nPreNum > 1)
{
nPreNum++;
strResult += "0,";
}
nPreNum = nCurrNum;

strResult += (strValue + mit->second.sModuleData[i]);
}
}
}

热点排行