I get the following exception when I run embedmongo on our build machine running Gentoo Linux.
build 05-Jun-2013 14:46:01 Extract /var/atlassian/application-data/bamboo/.embedmongo/linux/mongodb-linux-x86_64-2.4.1.tgz START
build 05-Jun-2013 14:46:03 Extract /var/atlassian/application-data/bamboo/.embedmongo/linux/mongodb-linux-x86_64-2.4.1.tgz DONE
build 05-Jun-2013 14:46:04 [mongod output]note: noprealloc may hurt performance in many applications
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.052 versionArrayTest passed
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.052 BackgroundJob starting: DataFileSync
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.052 shardKeyTest passed
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.052 isInRangeTest passed
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.052 shardObjTest passed
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.059 [initandlisten] MongoDB starting : pid=10945 port=37883 dbpath=/tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380 64-bit host=pluto
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.059 [initandlisten] db version v2.4.1
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.059 [initandlisten] git version: 1560959e9ce11a693be8b4d0d160d633eee75110
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.059 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.059 [initandlisten] allocator: tcmalloc
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.059 [initandlisten] options: { dbpath: "/tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380", ipv6: true, noauth: true, nohttpinterface: true, nojournal: true, noprealloc: true, port: 37883, smallfiles: true, verbose: true }
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.060 [initandlisten] flushing directory /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.061 [initandlisten] opening db: local
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.061 [initandlisten] enter repairDatabases (to check pdfile version #)
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.061 [initandlisten] done repairDatabases
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.061 BackgroundJob starting: ClientCursorMonitor
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.061 BackgroundJob starting: snapshot
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.062 BackgroundJob starting: TTLMonitor
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.062 BackgroundJob starting: PeriodicTask::Runner
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.062 [initandlisten] run command local.$cmd { create: "startup_log", size: 10485760, capped: true }
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.062 [initandlisten] create collection local.startup_log { create: "startup_log", size: 10485760, capped: true }
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.062 [FileAllocator] allocating new datafile /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380/local.ns, filling with zeroes...
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.062 [FileAllocator] creating directory /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380/_tmp
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.062 [FileAllocator] flushing directory /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.090 [FileAllocator] flushing directory /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.091 [FileAllocator] done allocating datafile /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380/local.ns, size: 16MB, took 0.027 secs
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.091 [FileAllocator] allocating new datafile /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380/local.0, filling with zeroes...
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.119 [FileAllocator] flushing directory /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.119 [FileAllocator] done allocating datafile /tmp/embedmongo-db-4c2f2b24-fc2c-4dd8-add1-589030031380/local.0, size: 16MB, took 0.028 secs
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.119 [initandlisten] allocExtent local.startup_log size 10485760 0
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.119 [initandlisten] New namespace: local.startup_log
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.120 [initandlisten] allocExtent local.system.namespaces size 5888 0
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.120 [initandlisten] New namespace: local.system.namespaces
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.120 [initandlisten] command local.$cmd command: { create: "startup_log", size: 10485760, capped: true } ntoreturn:1 keyUpdates:0 reslen:37 58ms
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.120 [initandlisten] insert local.startup_log ninserted:1 keyUpdates:0 0ms
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.120 [initandlisten] fd limit hard:4096 soft:4096 max conn: 3276
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.121 [initandlisten] Assertion: 15863:listen(): invalid socket? errno:97 Address family not supported by protocol
build 05-Jun-2013 14:46:04 [mongod output] 0xdc7f71 0xd8963b 0xd89b7c 0xdaf680 0xdaf9b8 0x6d3ec9 0x6d4690 0x6d4bfd 0x6db770 0x6dd3c9 0x7f8ff3cf1474 0x6cd0f9
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod(_ZN5mongo15printStackTraceERSo+0x21) [0xdc7f71]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod(_ZN5mongo11msgassertedEiPKc+0x9b) [0xd8963b]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod() [0xd89b7c]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod(_ZN5mongo8Listener13_setupSocketsERKSt6vectorINS_8SockAddrESaIS2_EERS1_IiSaIiEE+0x610) [0xdaf680]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod(_ZN5mongo8Listener13initAndListenEv+0xa8) [0xdaf9b8]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod(_ZN5mongo6listenEi+0x1b9) [0x6d3ec9]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod(_ZN5mongo14_initAndListenEi+0x6b0) [0x6d4690]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod(_ZN5mongo13initAndListenEi+0x1d) [0x6d4bfd]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod() [0x6db770]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod(main+0x9) [0x6dd3c9]
build 05-Jun-2013 14:46:04 [mongod output] /lib64/libc.so.6(__libc_start_main+0xec) [0x7f8ff3cf1474]
build 05-Jun-2013 14:46:04 [mongod output] /tmp/extract-0cd7a422-9a9a-4b04-8cf0-da59e700db9emongod() [0x6cd0f9]
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.125 [initandlisten] exception in initAndListen: 15863 listen(): invalid socket? errno:97 Address family not supported by protocol, terminating
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 dbexit:
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 [initandlisten] shutdown: going to close listening sockets...
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 [initandlisten] closing listening socket: 7
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 [initandlisten] shutdown: going to flush diaglog...
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 [initandlisten] shutdown: going to close sockets...
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 [initandlisten] shutdown: waiting for fs preallocator...
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 [initandlisten] shutdown: closing all files...
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 [initandlisten] closeAllFiles() finished
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 [initandlisten] shutdown: removing fs lock...
build 05-Jun-2013 14:46:04 [mongod output] Wed Jun 5 14:46:04.126 dbexit: really exiting now