mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Zach van Rijn <me@zv.io>
To: Rasmus Andersson <rasmus@notion.se>
Cc: musl@lists.openwall.com
Subject: Re: [musl] waitpid (wait4) on Linux 5 returns invalid values
Date: Tue, 19 Jan 2021 17:01:28 -0600	[thread overview]
Message-ID: <58068fc813f1c55d2b3dde305d2b8e29e9801668.camel@zv.io> (raw)
In-Reply-To: <CADFzTteNPP3uVE43gk+mL+jQETr0O9AcoMbMb=GNYGz9ZaYyiw@mail.gmail.com>

On Tue, 2021-01-19 at 14:02 -0800, Rasmus Andersson wrote:
> The program compiles correctly with
> https://more.musl.cc/9/x86_64-linux-musl/x86_64-linux-musl-native.tgz
> (The GCC 9 version) Perhaps an issue with GCC 10?

Rasmus, thank you for reporting this issue.


Using your reproducer I'm able to observe the following:

(1) GCC 10 as-published on musl.cc : BUG
waitpid returned -10, wstat=0, errno=0 (No error information)

(2) GCC 10 without this patch [1]  : OK
waitpid returned -1, wstat=0, errno=10 (No child process)

which matches your GCC 9 (20200828) observation.


This patch was applied to musl.cc as part of a series to add
experimental riscv32 support in September 2020, but was applied
universally and not strictly riscv32 targets.

The patch in question was /not/ applied to the GCC 9 binaries as
they were last updated in August of 2020, nor to earlier 10 ones.

I am updating the build infrastructure to avoid contamination of
"supported" targets by experimental patches such as this one.

New (fixed and newer GCC) toolchains will be published as soon as
they finish building (~24 hours). I will ping you off-list.

Additional tests (not simply spot-checks) will be implemented for
future releases.


Sorry for the inconvenience.


[1]: https://www.openwall.com/lists/musl/2020/09/03/14


  reply	other threads:[~2021-01-19 23:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19 18:18 Rasmus Andersson
2021-01-19 19:33 ` Markus Wichmann
2021-01-19 20:17   ` Rasmus Andersson
2021-01-19 20:28     ` Rasmus Andersson
2021-01-19 20:35       ` Rasmus Andersson
2021-01-19 20:56         ` Rasmus Andersson
2021-01-19 21:16         ` Rich Felker
2021-01-19 22:00           ` Rasmus Andersson
2021-01-19 22:02             ` Rasmus Andersson
2021-01-19 23:01               ` Zach van Rijn [this message]
2021-01-19 23:07                 ` Rasmus Andersson

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=58068fc813f1c55d2b3dde305d2b8e29e9801668.camel@zv.io \
    --to=me@zv.io \
    --cc=musl@lists.openwall.com \
    --cc=rasmus@notion.se \
    /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).