From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 11 18:30:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2B711E5C for ; Thu, 11 Apr 2013 18:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA9C1105 for ; Thu, 11 Apr 2013 18:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3BIU1bu070278 for ; Thu, 11 Apr 2013 18:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3BIU1D6070277; Thu, 11 Apr 2013 18:30:01 GMT (envelope-from gnats) Resent-Date: Thu, 11 Apr 2013 18:30:01 GMT Resent-Message-Id: <201304111830.r3BIU1D6070277@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anton Gerasimov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E019CD74 for ; Thu, 11 Apr 2013 18:26:18 +0000 (UTC) (envelope-from chim@gib-in.zyxmasta.com) Received: from gib-in.zyxmasta.com (edge.zyxmasta.com [92.43.187.249]) by mx1.freebsd.org (Postfix) with ESMTP id 4DAAB10B9 for ; Thu, 11 Apr 2013 18:26:17 +0000 (UTC) Received: from gib-in.zyxmasta.com (gib-in.zyxmasta.com [10.0.13.43]) by gib-in.zyxmasta.com (8.14.5/8.14.5) with ESMTP id r3BHxdil060987 for ; Thu, 11 Apr 2013 17:59:39 GMT (envelope-from chim@gib-in.zyxmasta.com) Received: (from root@localhost) by gib-in.zyxmasta.com (8.14.5/8.14.5/Submit) id r3BHxcrU060986; Thu, 11 Apr 2013 17:59:39 GMT (envelope-from chim) Message-Id: <201304111759.r3BHxcrU060986@gib-in.zyxmasta.com> Date: Thu, 11 Apr 2013 17:59:39 GMT From: Anton Gerasimov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/177784: mongod 2.4.1 failed to start (bus error) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Anton Gerasimov List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Apr 2013 18:30:02 -0000 >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@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@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@gib-in:~] % sudo -s [17:30:41][root@gib-in:/usr/home/chim] % su -l [17:30:48][root@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@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: