From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4572 Path: news.gmane.org!not-for-mail From: Martin Lucina Newsgroups: gmane.linux.lib.musl.general Subject: LMDB test failures under musl on mips Date: Thu, 13 Feb 2014 21:50:40 +0100 Message-ID: <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 1392324645 29107 80.91.229.3 (13 Feb 2014 20:50:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2014 20:50:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4576-gllmg-musl=m.gmane.org@lists.openwall.com Thu Feb 13 21:50:53 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 1WE3FF-0003Nv-D1 for gllmg-musl@plane.gmane.org; Thu, 13 Feb 2014 21:50:53 +0100 Original-Received: (qmail 22261 invoked by uid 550); 13 Feb 2014 20:50:52 -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 22253 invoked from network); 13 Feb 2014 20:50:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucina.net; s=dkim-201309; t=1392324641; bh=Y4j3awnJafmjtQ+GYfmF0BNyg2kxN6leyMQvWRfhoJM=; h=Date:From:To:Subject:From; b=gGuvQwCeHmuy1S/GnBxwzvi019LFghl17NlMxqjLvaFgALAHoGzJAxcQb/4gBKoyD V0Bd8GridmpeEe7IaswhreYHnOtHSUCfw4xm2YuOwZmntn1MWPPXrrcIHTvtZriLeD 0Fx5R8qHR+SwrVxfzOMdiyVeAIO2/AOaZKN+RmLpUQxUCUgAsaDj6XqMCCP24ivRsw 3B/yx5LzR4DUrK5w8IlTSjyW1ePBiHVulEsh9yhpAHpkq51TMlBWUNJNcVYqLoZMTv kZ4cs2lJH1wJM00loFeDn+ASW40n8Mybbz5sPsl5o3YU/FdIcCrnNDQKR9xWPUjMTU fW0zL4yGwn9tg== Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4572 Archived-At: 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/