|
|
Message-ID: <20190415151000.fe2r37xpcqx6omcu@m.mifar.in>
Date: Mon, 15 Apr 2019 17:10:00 +0200
From: Sami Farin <hvtaifwkbgefbaei@...il.com>
To: musl@...ts.openwall.com
Subject: Re: musl-1.1.22 -static segfaults in __init_tls
On Mon, Apr 15, 2019 at 15:07:37 +0200, Szabolcs Nagy wrote:
> * Sami Farin <hvtaifwkbgefbaei@...il.com> [2019-04-15 12:59:17 +0200]:
> > Fedora 29 Linux, gcc-8.3.1-2.fc29, x86_64 kernel 4.19.33.
> >
> > $ cat musl_crash.c; musl-gcc musl_crash.c -static; ./a.out
> > int main(int argc, char* argv[]) {
> > return 0;
> > }
> >
> > Segmentation fault
>
> this is likely a broken binutils
>
> if the ldflag
>
> -Wl,--build-id
>
> or
>
> -Wl,-z,noseparate-code
>
> fixes it then it's
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=23428
>
> report it to fedora as it affects anything static linked.
> (even with glibc if all non-executable load sections are
> turned off such as the note section for build-id)
Thanks. Both of those options you suggested generated a non-segfaulting
binary with buggy Fedora binutils.
I applied these commits and musl-gcc generates working binaries (without
needing to pass those ldflags):
6737a6b34f4823deb7142f27b4074831a37ac1e1
d55c3e36094f06bb1fb02f5eac19fdccf1d91f7e
28a27bdbb9500797e6767f80c8128b09112aeed5
d97f1f87b31901ccdb711ec88a0ab792c31d1f60
But I'll just wait till binutils-2.31.2 is released later this year,
Fedora probably doesn't bother cherry-picking...
Make check produces now
# of expected passes 2257
# of unexpected failures 28
# of expected failures 57
# of untested testcases 6
# of unsupported tests 16
which I hope is better than Fedora 29 2.31.1-25:
# of unexpected failures 39
--
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.