From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4577 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: Fri, 14 Feb 2014 11:26:01 +0100 Message-ID: <20140214102601.GH23551@port70.net> References: <20140213205040.GC19573@nodbug.moloch.sk> <20140213232648.GG23551@port70.net> <20140214093156.GA18582@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 1392373568 24135 80.91.229.3 (14 Feb 2014 10:26:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 10:26:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4581-gllmg-musl=m.gmane.org@lists.openwall.com Fri Feb 14 11:26:13 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 1WEFyH-0004fQ-NG for gllmg-musl@plane.gmane.org; Fri, 14 Feb 2014 11:26:13 +0100 Original-Received: (qmail 7928 invoked by uid 550); 14 Feb 2014 10:26:13 -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 7920 invoked from network); 14 Feb 2014 10:26:13 -0000 Content-Disposition: inline In-Reply-To: <20140214093156.GA18582@nodbug.moloch.sk> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4577 Archived-At: * Martin Lucina [2014-02-14 10:31:56 +0100]: > 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. i removed the srandom(time(NULL)) and disabled ASLR and it's still fickle i haven't looked further > > Do you still want those strace logs from me? > no, i think strace does not help here (at least i didnt see anything obvious) i don't quite understand the nondeterministic behaviour it seems to do reads/writes and mmap through two different fds to the same underlying file, but it does fdatasync on one and O_SYNC on the other so i think the behaviour should be deterministic (i'd need to know more about mdb and see the mmap accesses as well to figure out what's going on..) > 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. > i tried it on a wrt160nl with old openwrt image (Atheros AR9130 cpu)