mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: LMDB test failures under musl on mips
Date: Fri, 14 Feb 2014 11:26:01 +0100	[thread overview]
Message-ID: <20140214102601.GH23551@port70.net> (raw)
In-Reply-To: <20140214093156.GA18582@nodbug.moloch.sk>

* Martin Lucina <martin@lucina.net> [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)


  reply	other threads:[~2014-02-14 10:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13 20:50 Martin Lucina
2014-02-13 21:39 ` Rich Felker
2014-02-13 21:42 ` Szabolcs Nagy
2014-02-13 23:26 ` Szabolcs Nagy
2014-02-14  9:31   ` Martin Lucina
2014-02-14 10:26     ` Szabolcs Nagy [this message]
2014-02-14 15:53       ` Martin Lucina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140214102601.GH23551@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).