[SERVER-9322] mongod failed to start on FreeBSD 9.x Created: 11/Apr/13  Updated: 10/Dec/14  Resolved: 11/Apr/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.4.1
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Anton Gerasimov Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: FreeBSD 9.0-RELEASE-p4/amd64


Operating System: FreeBSD
Steps To Reproduce:

% cd /usr/ports/databases/mongodb
% make config install clean
% echo 'mongod_enable="YES"' >>/etc/rc.conf
% /usr/local/etc/rc.d/mongod start

Participants:

 Description   

mongod failed to start.

Symptoms:

% /usr/local/etc/rc.d/mongod start
Starting mongod.
about to fork child process, waiting until server is ready for connections.
forked process: 47523
Thu Apr 11 12:03:50.167 terminate() called, printing stack (if implemented for platform):
Thu Apr 11 12:03:50.168 Invalid access at address: 0x802c82fb5 from thread:
 
Thu Apr 11 12:03:50.182 Got signal: 10 (Bus error: 10).
 
Thu Apr 11 12:03:50.183 Backtrace:
0x5959fc 0x5960ad 0x8035d457e
 0x5959fc <_ZN5mongo10abruptQuitEi+988> at /usr/local/bin/mongod
 0x5960ad <_ZN5mongo24abruptQuitWithAddrSignalEiP9__siginfoPv+669> at /usr/local/bin/mongod
 0x8035d457e <_pthread_sigmask+718> at /lib/libthr.so.3
 
ERROR: child process failed, exited with error number 14
/usr/local/etc/rc.d/mongod: WARNING: failed to start mongod

User:

% id mongodb
uid=922(mongodb) gid=922(mongodb) groups=922(mongodb)

Db directory:

% ls /var/db |grep mongodb
drwxr-xr-x   2 mongodb   mongodb    512  4 авг  2012 mongodb/

Dependencies:

% ldd /usr/local/bin/mongod
/usr/local/bin/mongod:
        libv8.so => /usr/local/lib/libv8.so (0x801349000)
        libsnappy.so.2 => /usr/local/lib/libsnappy.so.2 (0x801c0e000)
        libpcre.so.3 => /usr/local/lib/libpcre.so.3 (0x801e14000)
        libpcrecpp.so.0 => /usr/local/lib/libpcrecpp.so.0 (0x802072000)
        libkvm.so.5 => /lib/libkvm.so.5 (0x80227b000)
        libssl.so.6 => /usr/lib/libssl.so.6 (0x802484000)
        libcrypto.so.6 => /lib/libcrypto.so.6 (0x8026d7000)
        librt.so.1 => /usr/lib/librt.so.1 (0x802a77000)
        libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x802c7c000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x802e8a000)
        libm.so.5 => /lib/libm.so.5 (0x80319a000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x8033bb000)
        libthr.so.3 => /lib/libthr.so.3 (0x8035c8000)
        libc.so.7 => /lib/libc.so.7 (0x8037eb000)

Packages:

% pkg_info -r mongodb-2.4.1
Information for mongodb-2.4.1:
 
Depends on:
Dependency: pcre-8.32
Dependency: libexecinfo-1.1_3
Dependency: libiconv-1.14_1
Dependency: gettext-0.18.1.1_1
Dependency: python27-2.7.3_6
Dependency: v8-3.17.9
Dependency: snappy-1.1.0



 Comments   
Comment by Eric Milkie [ 11/Apr/13 ]

The FreeBSD port is not maintained by 10gen. You can try building from source (we do this to run tests on FreeBSD and it works for us), or you can report the problem to the maintainer of the port: http://www.freshports.org/databases/mongodb

Generated at Thu Feb 08 03:20:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.