From owner-freebsd-ports-bugs@freebsd.org Mon Oct 3 02:15:33 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E05A5AD9FC6 for ; Mon, 3 Oct 2016 02:15:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C6415AB8 for ; Mon, 3 Oct 2016 02:15:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u932FXF5015181 for ; Mon, 3 Oct 2016 02:15:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 213167] databases/db5 "Berkeley DB library configured to support only private environments" Date: Mon, 03 Oct 2016 02:15:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vivek@khera.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mandree@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 02:15:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213167 Bug ID: 213167 Summary: databases/db5 "Berkeley DB library configured to support only private environments" Product: Ports & Packages Version: Latest Hardware: arm OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: mandree@FreeBSD.org Reporter: vivek@khera.org Assignee: mandree@FreeBSD.org Flags: maintainer-feedback?(mandree@FreeBSD.org) Berkeley DB5 (likely other versions as well) running on FreeBSD/arm 11.0 on= a Raspberry Pi 2 issues the error BDB1577 Berkeley DB library configured to support only private environments for many operations. Specifically I'm using it with netatalk3 having everything installed from t= he official pkg repository. When netatalk tries to open a share, it needs to create a DB file to store the necessary mapping data. It always fails, and = the db_errlog file is full of the above error message. Causing netatalk3 to use= one of its fallback in-memory storage systems, one can connect to the files sys= tem using a Mac quite well. However, this is not a recommended configuration. The error can also be emitted by going to a directory with a DB file in it,= and running=20 db_checkpoint-5.3 -1 -h . This seems related to the --enable-posixmutexes option that is turned on for the arm build of the db5 port as per bug #197227 According to the DB5 manual for this option: "...configuring to use POSIX mutexes when the implementation does not have inter-process support will on= ly allow the creation of private database environments". It appears that FreeBSD/arm 11.0 does not implement multi process mutexes still. There are other projects that also need to have shared mutexes working and = this has been discussed occasionally since FreeBSD 9 at least. For example, sphinxsearch as per which also references a discussion from two years prior which seems to not have a real conclusion. What's the solution here? Turning off the posixthreads seems like it will c= ause segfaults, and turning it on makes it useless in a multiprocessing context. --=20 You are receiving this mail because: You are the assignee for the bug.=