- 论坛徽章:
- 0
|
本帖最后由 kokkokkko 于 2010-12-09 19:23 编辑
父类中是有一个虚函数
但是子类中实现了
core文件中出现了- #7 0x60000000c6276710 in __cxa_pure_virtual ()
- at /tmp/gcc-4.2.4.tar.gz/gcc-4.2.4/libstdc++-v3/libsupc++/pure.cc:55
- #8 0x613bf60:0 in CConnectionPool::closeAll (this=0x40089480)
复制代码 搜了一下__cxa_pure_virtual- 00046 extern "C" void
- 00047 __cxa_pure_virtual (void)
- 00048 {
- 00049 writestr ("pure virtual method called\n");
- 00050 std::terminate ();
- 00051 }
复制代码 难道调用了纯虚函数?调用纯虚函数的代码是编译不过的.
后来又找到一种说法,线程切换的时候,
一个清空了虚函数表,另外一个线程却正要用
导致这个问题,
但是,好像用的fork~~~
等待牛人解释~~~ |
|