From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4574 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: LMDB test failures under musl on mips Date: Thu, 13 Feb 2014 22:42:23 +0100 Message-ID: <20140213214223.GF23551@port70.net> 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 1392327751 2792 80.91.229.3 (13 Feb 2014 21:42:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 21:42:31 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4578-gllmg-musl=m.gmane.org@lists.openwall.com Thu Feb 13 22:42:38 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 1WE43H-0000sm-Ho for gllmg-musl@plane.gmane.org; Thu, 13 Feb 2014 22:42:35 +0100 Original-Received: (qmail 20345 invoked by uid 550); 13 Feb 2014 21:42:34 -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 20330 invoked from network); 13 Feb 2014 21:42:34 -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:4574 Archived-At: * Martin Lucina [2014-02-13 21:50:40 +0100]: > 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? > mips was not nearly as extensively tested as x86 targets and it has a lot of arch specific syscall quirks so it may be a musl bug, if you have strace on the target then please send a strace log what is the pagesize used on the target? (iirc some mips can be non 4k) > 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/