Comment 2 for bug 1076447

Revision history for this message
Winston Smith (smith-winston-101) wrote :

Running mongod under gdb, I get more detail on the SIGBUS:

Program received signal SIGBUS, Bus error.
0x00156404 in mongo::BSONElement::numberDouble() const ()
(gdb) bt
#0 0x00156404 in mongo::BSONElement::numberDouble() const ()
#1 0x0015fc14 in mongo::compareElementValues(mongo::BSONElement const&, mongo::BSONElement const&) ()
#2 0x0015b32e in mongo::BSONObj::woCompare(mongo::BSONObj const&, mongo::BSONObj const&, bool) const ()
#3 0x00161796 in mongo::BsonUnitTest::run() ()
#4 0x003507da in mongo::UnitTest::runTests() ()
#5 0x00153ad6 in main ()

Seems that Quantal is shipping with a rather old version of mongo, 2.0.6, it looks like this was fixed a while ago but only on the 2.2.x versions (the latest 2.0.8rc0 does not have an equivalent fix).

https://github.com/mongodb/mongo/commit/0575d874318ceb33b42b526d1076c659af0aaca5

Given that Precise shipped with 2.0.4, which also does not have this change, I can only guess that it was a compiler change that has caused this issue to suddenly appear. None-the-less, it appears mongodb is completely broken in Quantal for ARMv7 systems.

Additional information can be found in this thread:

https://jira.mongodb.org/browse/SERVER-1811