内存错误,急!!!请大神帮忙解决!!!
程序运行堆栈如下:
*** glibc detected *** /home/VideoRecoServer/MobileEcop/MobileEcop: double free or corruption (!prev): 0x08a682a8 ***
[New Thread 0x72302b70 (LWP 6753)]
[Thread 0x72302b70 (LWP 6753) exited]
not into pthread2
======= Backtrace: =========
/lib/libc.so.6[0x387a231]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0x2aa53f1]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865e545]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865e584]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865e6a2]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865e765]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865e819]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865e83d]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865d376]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865b548]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x865be04]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x8694389]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x80a774b]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x8072fee]
/home/VideoRecoServer/MobileEcop/MobileEcop[0x80d1100]
/lib/libpthread.so.0[0x45a935]
/lib/libc.so.6(clone+0x5e)[0x38e882e]
======= Memory map: ========
00110000-00158000 r-xp 00000000 fd:00 144455 /home/VideoRecoServer/lib/libTDCameraManager.so
00158000-00159000 rw-p 00048000 fd:00 144455 /home/VideoRecoServer/lib/libTDCameraManager.so
00159000-0018f000 r-xp 00000000 fd:00 144438 /home/VideoRecoServer/lib/libqwtmathml.so.6
0018f000-00199000 rw-p 00035000 fd:00 144438 /home/VideoRecoServer/lib/libqwtmathml.so.6
00199000-001e2000 r-xp 00000000 fd:00 144456 /home/VideoRecoServer/lib/libQtXml.so.4
001e2000-001e4000 rw-p 00049000 fd:00 144456 /home/VideoRecoServer/lib/libQtXml.so.4
001e4000-001eb000 r-xp 00000000 fd:00 144473 /home/VideoRecoServer/lib/libCYNET_API.so
001eb000-001ec000 rw-p 00006000 fd:00 144473 /home/VideoRecoServer/lib/libCYNET_API.so
001ec000-001fb000 r-xp 00000000 fd:00 12885 /usr/lib/libXext.so.6.4.0
001fb000-001fc000 rw-p 0000f000 fd:00 12885 /usr/lib/libXext.so.6.4.0
001fc000-00200000 r-xp 00000000 fd:00 145383 /lib/libgthread-2.0.so.0.2000.1
00200000-00201000 rw-p 00003000 fd:00 145383 /lib/libgthread-2.0.so.0.2000.1
00203000-0020b000 r-xp 00000000 fd:00 144501 /home/VideoRecoServer/lib/libTDSDK.so
0020b000-0020c000 rw-p 00007000 fd:00 144501 /home/VideoRecoServer/lib/libTDSDK.so
0020c000-00214000 r-xp 00000000 fd:00 10067 /lib/libcrypt-2.10.1.so
00214000-00215000 r--p 00007000 fd:00 10067 /lib/libcrypt-2.10.1.so
00215000-00216000 rw-p 00008000 fd:00 10067 /lib/libcrypt-2.10.1.so
00216000-0023d000 rw-p 00216000 00:00 0
0023d000-00244000 r-xp 00000000 fd:00 145381 /lib/librt-2.10.1.so
00244000-00245000 r--p 00006000 fd:00 145381 /lib/librt-2.10.1.so
00245000-00246000 rw-p 00007000 fd:00 145381 /lib/librt-2.10.1.so
00246000-00248000 r-xp 00000000 fd:00 145409 /usr/lib/libXau.so.6.0.0
00248000-00249000 rw-p 00001000 fd:00 145409 /usr/lib/libXau.so.6.0.0
00249000-0024b000 r-xp 00000000 fd:00 145442 /usr/lib/libXinerama.so.1.0.0
0024b000-0024c000 rw-p 00001000 fd:00 145442 /usr/lib/libXinerama.so.1.0.0
0024c000-00276000 r-xp 00000000 fd:00 12368 /lib/libgcc_s-4.4.0-20090506.so.1
00276000-00277000 rw-p 00029000 fd:00 12368 /lib/libgcc_s-4.4.0-20090506.so.1
00279000-0027e000 r-xp 00000000 fd:00 105536 /usr/lib/libXtst.so.6.1.0
0027e000-0027f000 rw-p 00004000 fd:00 105536 /usr/lib/libXtst.so.6.1.0
0027f000-00287000 r-xp 00000000 fd:00 145412 /usr/lib/libXrender.so.1.3.0
00287000-00288000 rw-p 00007000 fd:00 145412 /usr/lib/libXrender.so.1.3.0
00288000-0028a000 r-xp 00000000 fd:00 10344 /usr/lib/gconv/UTF-16.so
0028a000-0028b000 r--p 00001000 fd:00 10344 /usr/lib/gconv/UTF-16.so
0028b000-0028c000 rw-p 00002000 fd:00 10344 /usr/lib/gconv/UTF-16.so
0028c000-002ac000 r-xp 00000000 fd:00 145378 /lib/ld-2.10.1.so
002ac000-002ad000 r--p 0001f000 fd:00 145378 /lib/ld-2.10.1.so
002ad000-002ae000 rw-p 00020000 fd:00 145378 /lib/ld-2.10.1.so
002ae000-00307000 r-xp 00000000 fd:00 144471 /home/VideoRecoServer/lib/libQtSvg.so.4
00307000-00309000 rw-p 00059000 fd:00 144471 /home/VideoRecoServer/lib/libQtSvg.so.4
00309000-00324000 r-xp 00000000 fd:00 145410 /usr/lib/libxcb.so.1.1.0
00324000-00325000 rw-p 0001b000 fd:00 145410 /usr/lib/libxcb.so.1.1.0
00
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x71901b70 (LWP 6752)]
0x00b9c424 in __kernel_vsyscall ()
Missing separate debuginfos, use: debuginfo-install GConf2-2.26.0-2.fc11.i586 ORBit2-2.14.17-1.fc11.i586 PackageKit-gtk-module-0.4.6-8.fc11.i586 alsa-lib-1.0.20-1.fc11.i586 atk-1.25.2-2.fc11.i586 audiofile-0.2.6-10.fc11.i586 avahi-0.6.25-1.fc11.i586 avahi-glib-0.6.25-1.fc11.i586 bug-buddy-2.26.0-2.fc11.i586 cairo-1.8.6-2.fc11.i586 dbus-glib-0.80-2.fc11.i586 dbus-libs-1.2.12-1.fc11.i586 e2fsprogs-libs-1.41.4-10.fc11.i586 elfutils-libelf-0.140-2.fc11.i586 esound-libs-0.2.41-2.fc11.i586 expat-2.0.1-6.i586 fontconfig-2.6.99.behdad.20090508-1.fc11.i586 freetype-2.3.9-3.fc11.i586 gamin-0.1.10-4.fc11.i586 glib2-2.20.1-1.fc11.i586 glibc-2.10.1-2.i686 gnome-keyring-2.26.1-1.fc11.i586 gnome-vfs2-2.24.1-2.fc11.i586 gtk-nodoka-engine-0.7.2-4.fc11.i586 gtk2-2.16.1-4.fc11.i586 gvfs-1.2.3-2.fc11.i586 ibus-gtk-1.1.0.20090423-1.fc11.i586 ibus-libs-1.1.0.20090423-1.fc11.i586 keyutils-libs-1.2-5.fc11.i586 krb5-libs-1.6.3-20.fc11.i586 libICE-1.0.4-7.fc11.i586 libSM-1.1.0-4.fc11.i586 libX11-1.2-3.fc11.i586 libXau-1.0.4-5.fc11.i586 libXcomposite-0.4.0-7.fc11.i586 libXcursor-1.1.9-4.fc11.i586 libXdamage-1.1.1-6.fc11.i586 libXext-1.0.99.1-2.fc11.i586 libXfixes-4.0.3-5.fc11.i586 libXi-1.2.1-1.fc11.i586 libXinerama-1.0.3-4.fc11.i586 libXrandr-1.2.99.4-3.fc11.i586 libXrender-0.9.4-5.fc11.i586 libXt-1.0.5-2.fc11.i586 libXtst-1.0.3-5.fc11.i586 libart_lgpl-2.3.20-4.fc11.i586 libattr-2.4.43-3.fc11.i586 libbonobo-2.24.1-1.fc11.i586 libbonoboui-2.24.1-1.fc11.i586 libcanberra-0.12-1.fc11.i586 libcanberra-gtk2-0.12-1.fc11.i586 libcap-2.16-2.fc11.i586 libgcc-4.4.0-4.i586 libgnome-2.26.0-1.fc11.i586 libgnomecanvas-2.26.0-1.fc11.i586 libgnomeui-2.24.1-1.fc11.i586 libjpeg-6b-45.fc11.i586 libogg-1.1.3-11.fc11.i586 libpng-1.2.35-1.fc11.i586 libselinux-2.0.80-1.fc11.i586 libstdc++-4.4.0-4.i586 libtdb-1.1.3-14.fc11.i586 libtool-ltdl-2.2.6-11.fc11.i586 libvorbis-1.2.0-7.fc11.i586 libxcb-1.2-3.fc11.i586 libxml2-2.7.3-2.fc11.i586 linuxwacom-0.8.2.2-11.fc11.i586 nss-softokn-freebl-3.12.3-4.fc11.i586 openssl-0.9.8k-1.fc11.i686 pango-1.24.1-1.fc11.i586 pixman-0.14.0-2.fc11.i586 popt-1.13-5.fc11.i586 zlib-1.2.3-22.fc11.i586
(gdb) bt
#0 0x00b9c424 in __kernel_vsyscall ()
#1 0x038357c1 in raise () from /lib/libc.so.6
#2 0x03837092 in abort () from /lib/libc.so.6
#3 0x03873dad in __libc_message () from /lib/libc.so.6
#4 0x0387a231 in malloc_printerr () from /lib/libc.so.6
#5 0x02aa53f1 in operator delete(void*) () from /usr/lib/libstdc++.so.6
#6 0x0865e545 in __gnu_cxx::new_allocator<sql::mysql::MySQL_DebugEnterEvent const*>::deallocate
(this=0x8a6801c, __p=0x8a682a8)
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ext/new_allocator.h:94
#7 0x0865e584 in std::_Deque_base<sql::mysql::MySQL_DebugEnterEvent const*, std::allocator<sql::mysql::MySQL_DebugEnterEvent const*> >::_M_deallocate_node (this=0x8a6801c, __p=0x8a682a8)
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:419
#8 0x0865e6a2 in std::_Deque_base<sql::mysql::MySQL_DebugEnterEvent const*, std::allocator<sql::mysql::MySQL_DebugEnterEvent const*> >::_M_destroy_nodes (this=0x8a6801c, __nstart=0x8a6828c,
__nfinish=0x8a68290)
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:524
#9 0x0865e765 in std::_Deque_base<sql::mysql::MySQL_DebugEnterEvent const*, std::allocator<sql::mysql::MySQL_DebugEnterEvent const*> >::~_Deque_base (this=0x8a6801c,
__in_chrg=<value optimized out>)
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:445
#10 0x0865e819 in std::deque<sql::mysql::MySQL_DebugEnterEvent const*, std::allocator<sql::mysql::MySQL_DebugEnterEvent const*> >::~deque (this=0x8a6801c, __in_chrg=<value optimized out>)
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:725
#11 0x0865e83d in std::stack<sql::mysql::MySQL_DebugEnterEvent const*, std::deque<sql::mysql::MySQL_DebugEnterEvent const*, std::allocator<sql::mysql::MySQL_DebugEnterEvent const*> > >::~stack (
this=0x8a6801c, __in_chrg=<value optimized out>)
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_stack.h:111
#12 0x0865d376 in sql::mysql::MySQL_DebugLogger::~MySQL_DebugLogger (this=0x8a68018,
---Type <return> to continue, or q <return> to quit---
__in_chrg=<value optimized out>) at mysql_debug.cxx:75
#13 0x0865b548 in sql::mysql::util::my_shared_ptr<sql::mysql::MySQL_DebugLogger>::~my_shared_ptr
(this=0x8a68078, __in_chrg=<value optimized out>) at ./include/mysql_util.h:103
#14 0x0865be04 in sql::mysql::util::my_shared_ptr<sql::mysql::MySQL_DebugLogger>::freeReference (
this=0x8a68078) at ./include/mysql_util.h:96
#15 0x08694389 in sql::mysql::MySQL_Statement::~MySQL_Statement (this=0x76900468,
__in_chrg=<value optimized out>) at mysql_statement.cxx:60
#16 0x080a774b in std::auto_ptr<sql::Statement>::~auto_ptr (this=0x719012d4,
__in_chrg=<value optimized out>)
at /usr/lib/gcc/i586-redhat-linux/4.4.0/../../../../include/c++/4.4.0/backward/auto_ptr.h:168
#17 0x08072fee in CLS_DBManage::GetInfoForUpdateBtnState (this=0x8a67f20, _iCurrentLogID=76359,
_CSZPChannelID=1, _iKaKouMode=1) at /home/VideoRecoServer/MobileEcop/CLS_DBManage.cpp:1815
#18 0x080d1100 in UpdateBtnStateThread () at /home/VideoRecoServer/MobileEcop/CSZPFrame.cpp:510
#19 0x0045a935 in start_thread () from /lib/libpthread.so.0
#20 0x038e882e in clone () from /lib/libc.so.6