to (墙头草):最近有不少程序出现这种错误,怎么来分析gdb的bt结果啊? (gdb) run ./dy_NXcontent 13889120797 FY Starting program: /home/gateway/sms-files/mo_procs_src/dy_NXcontent ./dy_NXcontent 13889120797 FYProgram received signal SIGABRT, Aborted. 0x2826f8e8 in kill () from /usr/lib/libc.so.4 (gdb) bt #0 0x2826f8e8 in kill () from /usr/lib/libc.so.4 #1 0x282ab646 in abort () from /usr/lib/libc.so.4 #2 0x281740c8 in __terminate () at MStreamable.cpp:35 #3 0x281740e5 in __terminate () at MStreamable.cpp:35 #4 0x2817447f in __sjthrow () at MStreamable.cpp:35 #5 0x28192cbb in MysqlConnection::store (this=0xbfbff54c, str=@0xbfbff27c, throw_excptns=true) at connection.cc:146 #6 0x80748d5 in MysqlConnection::store () at pic.cpp:675 #7 0x80734ff in MysqlQuery::store () at /usr/include/g++/std/bastring.h:109 #8 0x8071f95 in MysqlQuery::store () at pic.cpp:675 #9 0x804eca3 in main () #10 0x804ea3d in _start (),比如此显示,可以看出什么信息来呢??
而且我的这些程序基本上大体结构都是一致的,为什么有的可以,有的 就不行呢/
(gdb) run ./dy_NXcontent 13889120797 FY
Starting program: /home/gateway/sms-files/mo_procs_src/dy_NXcontent ./dy_NXcontent 13889120797 FYProgram received signal SIGABRT, Aborted.
0x2826f8e8 in kill () from /usr/lib/libc.so.4
(gdb) bt
#0 0x2826f8e8 in kill () from /usr/lib/libc.so.4
#1 0x282ab646 in abort () from /usr/lib/libc.so.4
#2 0x281740c8 in __terminate () at MStreamable.cpp:35
#3 0x281740e5 in __terminate () at MStreamable.cpp:35
#4 0x2817447f in __sjthrow () at MStreamable.cpp:35
#5 0x28192cbb in MysqlConnection::store (this=0xbfbff54c, str=@0xbfbff27c, throw_excptns=true) at connection.cc:146
#6 0x80748d5 in MysqlConnection::store () at pic.cpp:675
#7 0x80734ff in MysqlQuery::store () at /usr/include/g++/std/bastring.h:109
#8 0x8071f95 in MysqlQuery::store () at pic.cpp:675
#9 0x804eca3 in main ()
#10 0x804ea3d in _start (),比如此显示,可以看出什么信息来呢??
我是刚接触unix编程的初学者。qq 4133343 msn [email protected]