Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 13 Feb 2014 22:42:23 +0100
From: Szabolcs Nagy <>
Subject: Re: LMDB test failures under musl on mips

* 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 (thanks!),
> and the 0.9,15 release.
> Any ideas?
> Thanks,
> Martin
> [1]

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.