- 论坛徽章:
- 0
|
回复 #2 cugb_cat 的帖子
又出错了,详细信息是:
(gdb)
0x800003ffbefe418c in time+0x2c () from /usr/lib/pa20_64//libc.2
(gdb)
Single stepping until exit from function time,
which has no line number information.
CLogManager::WriteLog (this=0x800000010004bfd0, str={<class std::allocator<char>> = {<No data fields>},
static npos = 18446744073709551615, static __nullref = {__ref_hdr_ = {__mutex_ = {<struct __rw::__rw_mutex_base> = {
_C_mutex = {<No data fields>}}, <No data fields>}, __refs_ = 1, __capacity_ = 0, __nchars_ = 0},
__eos_char_ = 0 '\000'}, _C_data = 0x8000000100295578 "正在遍历本方(主叫)数据源... (遍历数10001/总数3761033)"},
warnlevel=0, time_flag=1, throwex=true) at ../public/LogManager.cpp:153
153 now = localtime(&timer);
(gdb) p now
$19 = (struct tm *) 0x800003ffbfff1d70
(gdb) p *now
$20 = {tm_sec = 0, tm_min = 0, tm_hour = -2147482625, tm_mday = -1089454912, tm_mon = -2147482625, tm_year = -1091123745,
tm_wday = 0, tm_yday = 310536, tm_isdst = -1}
(gdb) n
154 sprintf(str_t,"%02d:%02d:%02d:",now->tm_hour,now->tm_min,now->tm_sec);
(gdb) p *now
$21 = {tm_sec = 59, tm_min = 46, tm_hour = 17, tm_mday = 16, tm_mon = 9, tm_year = 107, tm_wday = 2, tm_yday = 288, tm_isdst = 0}
(gdb) n
155 timestr=str_t;
(gdb) p str_t
$22 = "17:46:59:\000\000\001\000\004絓b |
|