From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4576 Path: news.gmane.org!not-for-mail From: Martin Lucina Newsgroups: gmane.linux.lib.musl.general Subject: Re: LMDB test failures under musl on mips Date: Fri, 14 Feb 2014 10:31:56 +0100 Message-ID: <20140214093156.GA18582@nodbug.moloch.sk> References: <20140213205040.GC19573@nodbug.moloch.sk> <20140213232648.GG23551@port70.net> 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 1392370323 17749 80.91.229.3 (14 Feb 2014 09:32:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 09:32:03 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4580-gllmg-musl=m.gmane.org@lists.openwall.com Fri Feb 14 10:32:11 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 1WEF7y-0004Fi-Sn for gllmg-musl@plane.gmane.org; Fri, 14 Feb 2014 10:32:10 +0100 Original-Received: (qmail 30536 invoked by uid 550); 14 Feb 2014 09:32:09 -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 30528 invoked from network); 14 Feb 2014 09:32:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucina.net; s=dkim-201309; t=1392370317; bh=ZhGz80ceY8EtbCkHYV6D0SSQs9xWGwa2afjoP5Sd4Qs=; h=Date:From:To:Subject:References:In-Reply-To:From; b=gL2dQ+PA+C+WoEJc27ez71QOM0ABXLKo/8DBuDzwZCvRwmEznOhf7U31jgq2mKhlz FrfZgoqJrIV3EtVeBgGdAkERTPO+8HA/Shpr/aInlIqknTkZoxScFOxA9yU9PR8BgR bxv4w6Z11n/exTzLlgpETXve1RPEGXsvRgedCFxDthLSVJyiguKzGkcsgaeNkCHati 0Mp9/KQnmHAUWXFLv0Avb1VW/LxM4uQ75GEs1K9klLhwpCdEiobbJYoi/j62XaU2Wi 5zsvCmRjfkOmVYWJcUGVd271n5nOyHv+M982nLZy1941FaGCJrWFJ2Prh7nSDjorXD ok6wXmNuzGlLQ== Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20140213232648.GG23551@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4576 Archived-At: nsz@port70.net said: > * Martin Lucina [2014-02-13 21:50:40 +0100]: > > 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. > > ok i could reproduce it > i got the following assertion failure: > > mdb.c:2001: Assertion 'mp->mp_pgno != pgno' failed in mdb_page_touch() > > (it's on real hw without debugger, but i have strace now) That's what I get, and also these: mdb.c:5176: Assertion 'IS_LEAF(mp)' failed in mdb_cursor_next() or mdb.c:1713: Assertion 'rc == 0' failed in mdb_page_dirty() etc. mtest is somewhat fickle, it uses random() to decide exactly what it's doing. I have a hunch that I can provoke this with a simpler test program, going to try that now. Do you still want those strace logs from me? Both of the targets (ASUS RT-N66u running Tomato, TP-Link TL-WDR4300 running OpenWRT trunk) I tried have 4k page size, so nothing out of the ordinary there. One thing I'd like to try is building against the normal OpenWRT/uClibc toolchain (or even a plain glibc one) to see if anything changes. Unfortunately the snapshot binaries they provide require at least glibc 2.14 which I don't have on my machines running Debian stable. I tried using a toolchain built from source using the OpenWRT buildroot but get random link errors :-/ Martin