From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4573 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: LMDB test failures under musl on mips Date: Thu, 13 Feb 2014 16:39:08 -0500 Message-ID: <20140213213908.GC184@brightrain.aerifal.cx> References: <20140213205040.GC19573@nodbug.moloch.sk> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1392327554 32732 80.91.229.3 (13 Feb 2014 21:39:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 21:39:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4577-gllmg-musl=m.gmane.org@lists.openwall.com Thu Feb 13 22:39:24 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WE409-0006IK-G1 for gllmg-musl@plane.gmane.org; Thu, 13 Feb 2014 22:39:21 +0100 Original-Received: (qmail 18312 invoked by uid 550); 13 Feb 2014 21:39:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 18304 invoked from network); 13 Feb 2014 21:39:20 -0000 Content-Disposition: inline In-Reply-To: <20140213205040.GC19573@nodbug.moloch.sk> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4573 Archived-At: Hi, Thank you for the report. Can you provide some more details on where it's failing such as the specific tests/assertions? I'll see if someone with a mips setup can look at it. Rich On Thu, Feb 13, 2014 at 09:50:40PM +0100, Martin Lucina wrote: > Hi, > > I'm currently using musl libc and LMDB [1] in a new project. When > developing on a Debian x86_64 host everything works fine, but when building > for a target device (OpenWRT mips or mipsel, I've tried both) with static > linking my LMDB code starts failing with assertions and/or segfaults inside > LMDB itself. > > Cross-compiling to statically linked musl on x86_64 does not have the > problem. > > It's possible that the problem is LMDB itself; I can ask on the OpenLDAP > lists but I'd like to check here first if someone else has encountered this > problem? > > You can reproduce the problem fairly easily by building the mtest* programs > that come with LMDB. Running mtest a few times (after creating ./testdb) > reliably gives either a segfault or various assertion failures in LMDB. > > Note that I'm using the prebuilt toolchains from musl.codu.org (thanks!), > and the 0.9,15 release. > > Any ideas? > > Thanks, > > Martin > > [1] http://symas.com/mdb/