ports/177784: mongod 2.4.1 failed to start (bus error)
Anton Gerasimov
agerrasimov at gmail.com
Thu Apr 11 18:30:02 UTC 2013
>Number: 177784
>Category: ports
>Synopsis: mongod 2.4.1 failed to start (bus error)
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 11 18:30:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Anton Gerasimov
>Release: FreeBSD 9.0-RELEASE-p4 amd64
>Organization:
none
>Environment:
System: FreeBSD gib-in.zyxmasta.com 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #2: Thu Aug 30 17:54:16 UTC 2012 root at onyx.zyxmasta.com:/usr/obj/usr/src/sys/FLEXO amd64
Jailed system.
MongoDB: latest version (2.4.1) from ports. Built with SSL and V8 (default options). See attached files "pkginfo.txt"
and "ldd-mongod.txt"
>Description:
When trying to launch mongod using rc script located at /usr/local/etc/rc.d/mongod it fails and dumps backtrace
to console. As might be seen in "mongo-start-sudo.txt".
MongoDB has stock configuration; no specific options in /etc/make.conf were point. Only WITHOUT_X11=Yes.
>How-To-Repeat:
1) update ports tree
2) check /usr/ports/databases/mongodb port version (ensure v2.4.1)
3) cd /usr/ports/databases/mongodb
4) make install clean
5) echo 'mongod_enable="YES"' >> /etc/rc.conf
6) sudo /usr/local/etc/rc.d/mongod start
>Fix:
There is a some workaround. If mongod rc script starts under su - everythyng goes the right way. So
% sudo -s
% su -l
% /usr/local/etc/rc.d/mongod start
This will get us properly started mongod - "mongo-start-sudo-su.txt" and "sockstat.txt"
--- mongo-start-sudo.txt begins here ---
[17:29:46][chim at gib-in:~] % sudo /usr/local/etc/rc.d/mongod start
Starting mongod.
about to fork child process, waiting until server is ready for connections.
forked process: 59874
Thu Apr 11 17:29:52.863 terminate() called, printing stack (if implemented for platform):
Thu Apr 11 17:29:52.864 Invalid access at address: 0x802c82fb5 from thread:
Thu Apr 11 17:29:52.864 Got signal: 10 (Bus error: 10).
Thu Apr 11 17:29:52.864 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
--- mongo-start-sudo.txt ends here ---
--- mongo-start-sudo-su.txt begins here ---
[17:30:39][chim at gib-in:~] % sudo -s
[17:30:41][root at gib-in:/usr/home/chim] % su -l
[17:30:48][root at gib-in:~] % /usr/local/etc/rc.d/mongod start
Starting mongod.
about to fork child process, waiting until server is ready for connections.
forked process: 59938
all output going to: /var/db/mongodb/mongod.log
child process started successfully, parent exiting
--- mongo-start-sudo-su.txt ends here ---
--- pkginfo.txt begins here ---
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
--- pkginfo.txt ends here ---
--- sockstat.txt begins here ---
% sockstat |grep mongo
mongodb mongod 59938 7 tcp4 10.0.13.43:27017 *:*
mongodb mongod 59938 8 stream /tmp/mongodb-27017.sock
mongodb mongod 59938 9 tcp4 10.0.13.43:28017 *:*
--- sockstat.txt ends here ---
--- uname.txt begins here ---
FreeBSD gib-in.zyxmasta.com 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #2: Thu Aug 30 17:54:16 UTC 2012 root at onyx.zyxmasta.com:/usr/obj/usr/src/sys/FLEXO amd64
--- uname.txt ends here ---
--- ldd-mongod.txt begins here ---
/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)
--- ldd-mongod.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list