mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Max Ruttenberg <mruttenberg@emutechnology.com>
To: musl@lists.openwall.com
Subject: Re: Libc-Test: Tests failing on Ubuntu VM
Date: Wed, 30 Mar 2016 13:22:19 -0400	[thread overview]
Message-ID: <CAD+Cw=caFhnnukiHv_SOPHr9trEr6Jk4=o2anyXaKs7iL1f8dQ@mail.gmail.com> (raw)
In-Reply-To: <20160330164737.GL9862@port70.net>

[-- Attachment #1: Type: text/plain, Size: 3206 bytes --]

Szabolcs,

Thank you! That was helpful. I have a couple of tests that still fail in
functional but they clearly state "64bit tests not implemented."
I still have a bunch of tests that fail in regression though...

Running a make like so:

make CC='/path/to/musl/bin/musl-gcc -Wl,-dynamic-linker=/path/to/
> musl/lib/libc.so'
>

this is what my src/regression/REPORT file looks like:

******************************************************************************************************************************
src/regression/malloc-brk-fail.c:33: malloc did not fail with ENOMEM, got
Operation not permitted
FAIL ./src/regression/malloc-brk-fail-static.exe [status 1]
src/regression/malloc-brk-fail.c:33: malloc did not fail with ENOMEM, got
Operation not permitted
FAIL ./src/regression/malloc-brk-fail.exe [status 1]
src/regression/malloc-oom.c:16: expected ENOMEM, got Operation not permitted
FAIL ./src/regression/malloc-oom-static.exe [status 1]
src/regression/malloc-oom.c:16: expected ENOMEM, got Operation not permitted
FAIL ./src/regression/malloc-oom.exe [status 1]
FAIL ./src/regression/putenv-doublefree-static.exe [signal Segmentation
fault]
FAIL ./src/regression/putenv-doublefree.exe [signal Segmentation fault]
src/regression/setenv-oom.c:23: expected ENOMEM, got Operation not permitted
FAIL ./src/regression/setenv-oom-static.exe [status 1]
src/regression/setenv-oom.c:23: expected ENOMEM, got Operation not permitted
FAIL ./src/regression/setenv-oom.exe [status 1]
******************************************************************************************************************************

Is the brk system call still kosher? I thought malloc was supposed to use
something mmap.


On Wed, Mar 30, 2016 at 12:47 PM, Szabolcs Nagy <nsz@port70.net> wrote:

> * Max Ruttenberg <mruttenberg@emutechnology.com> [2016-03-30 12:18:33
> -0400]:
> > I've built musl on an Ubuntu VM (x86_64 is the architecture) and have
> > installed it to an install directory inside the downloaded clone.
> >
> > So the compiler is in: /path/to/musl/install/bin/musl-gcc
> >
> > The loader is in: /path/to/musl/install/lib/libc.so
> >
> > At the top level of libc-test I run a make like so:
> >
> > make CC=/path/to/musl/bin/musl-gcc RUN_WRAP=/path/to/musl/lib/libc.so
> >
>
> that's not the intended usage
>
> RUN_WRAP is for qemu or similar tools for running the binaries
>
> you can specify the libc.so by changing the dynamic-linker name
> (at least that's enough in case of musl) or installing the
> musl-gcc wrapper/musl based toolchain with different dynamic-linker
> name, e.g.
>
> make CC='/path/to/musl/bin/musl-gcc
> -Wl,-dynamic-linker=/path/to/musl/lib/libc.so'
>
> should work (not tested)
>
> > The tests run, I don't get the "no such file or directory" error. But for
> > some reason a bunch of tests fail that shouldn't according to the
> Libc-Test
> > wiki. What am I doing wrong? Are these tests dependent on system
> resources
> > that maybe I'm not providing e.g. enough memory? Do I need to run as a
> sudo
> > user as might be suggested by the "Operation not permitted" errors?
> >
>
> static linked binaries cannot be loaded by libc.so so all *-static.exe
> failed to run.
>



-Max

[-- Attachment #2: Type: text/html, Size: 4564 bytes --]

  reply	other threads:[~2016-03-30 17:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30 16:18 Max Ruttenberg
2016-03-30 16:47 ` Szabolcs Nagy
2016-03-30 17:22   ` Max Ruttenberg [this message]
2016-03-30 18:04     ` Szabolcs Nagy
2016-03-30 18:12       ` Rich Felker
2016-03-30 18:14         ` Max Ruttenberg

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='CAD+Cw=caFhnnukiHv_SOPHr9trEr6Jk4=o2anyXaKs7iL1f8dQ@mail.gmail.com' \
    --to=mruttenberg@emutechnology.com \
    --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).