我已经升级到1.53.0升级所以我必须相应地更新我的MongoDB驱动程序(从2.2.X到2.4.8)。
但是,我现在无法启动使用MongoDB驱动程序的程序。 GDB表明它已进入某种无限循环。
Program received signal SIGSEGV, Segmentation fault.
0x0000000000415807 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
114 }
(gdb) bt
#0 0x0000000000415807 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
#1 0x0000000000418377 in std::auto_ptr<mongo::BSONObjBuilder>::~auto_ptr() () at /usr/include/c++/4.8/backward/auto_ptr.h:170
#2 0x0000000000415618 in mongo::BSONObjBuilderValueStream::~BSONObjBuilderValueStream() () at /usr/local/include/mongo/bson/bsonmisc.h:145
#3 0x00000000004157b5 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:110
#4 0x000000000041580c in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
#5 0x0000000000418377 in std::auto_ptr<mongo::BSONObjBuilder>::~auto_ptr() () at /usr/include/c++/4.8/backward/auto_ptr.h:170
#6 0x0000000000415618 in mongo::BSONObjBuilderValueStream::~BSONObjBuilderValueStream() () at /usr/local/include/mongo/bson/bsonmisc.h:145
#7 0x00000000004157b5 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:110
#8 0x000000000041580c in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
#9 0x0000000000418377 in std::auto_ptr<mongo::BSONObjBuilder>::~auto_ptr() () at /usr/include/c++/4.8/backward/auto_ptr.h:170
#10 0x0000000000415618 in mongo::BSONObjBuilderValueStream::~BSONObjBuilderValueStream() () at /usr/local/include/mongo/bson/bsonmisc.h:145
#11 0x00000000004157b5 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:110
#12 0x000000000041580c in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
#13 0x0000000000418377 in std::auto_ptr<mongo::BSONObjBuilder>::~auto_ptr() () at /usr/include/c++/4.8/backward/auto_ptr.h:170
#14 0x0000000000415618 in mongo::BSONObjBuilderValueStream::~BSONObjBuilderValueStream() () at /usr/local/include/mongo/bson/bsonmisc.h:145
#15 0x00000000004157b5 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:110
#16 0x000000000041580c in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
#17 0x0000000000418377 in std::auto_ptr<mongo::BSONObjBuilder>::~auto_ptr() () at /usr/include/c++/4.8/backward/auto_ptr.h:170
#18 0x0000000000415618 in mongo::BSONObjBuilderValueStream::~BSONObjBuilderValueStream() () at /usr/local/include/mongo/bson/bsonmisc.h:145
#19 0x00000000004157b5 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:110
#20 0x000000000041580c in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
#21 0x0000000000418377 in std::auto_ptr<mongo::BSONObjBuilder>::~auto_ptr() () at /usr/include/c++/4.8/backward/auto_ptr.h:170
#22 0x0000000000415618 in mongo::BSONObjBuilderValueStream::~BSONObjBuilderValueStream() () at /usr/local/include/mongo/bson/bsonmisc.h:145
#23 0x00000000004157b5 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:110
#24 0x000000000041580c in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
#25 0x0000000000418377 in std::auto_ptr<mongo::BSONObjBuilder>::~auto_ptr() () at /usr/include/c++/4.8/backward/auto_ptr.h:170
#26 0x0000000000415618 in mongo::BSONObjBuilderValueStream::~BSONObjBuilderValueStream() () at /usr/local/include/mongo/bson/bsonmisc.h:145
---Type <return> to continue, or q <return> to quit---
#27 0x00000000004157b5 in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:110
#28 0x000000000041580c in mongo::BSONObjBuilder::~BSONObjBuilder() () at /usr/local/include/mongo/bson/bsonobjbuilder.h:114
#29 0x0000000000418377 in std::auto_ptr<mongo::BSONObjBuilder>::~auto_ptr() () at /usr/include/c++/4.8/backward/auto_ptr.h:170
非常感谢你的帮助。