From: Alexander Monakov <amonakov@ispras.ru>
To: musl@lists.openwall.com
Subject: Re: _Unwind_Backtrace crashes
Date: Fri, 28 Aug 2015 17:46:20 +0300 (MSK) [thread overview]
Message-ID: <alpine.LNX.2.20.1508281745170.2655@monopod.intra.ispras.ru> (raw)
In-Reply-To: <20150828141602.GG3609@port70.net>
On Fri, 28 Aug 2015, Szabolcs Nagy wrote:
> * Alexander Monakov <amonakov@ispras.ru> [2015-08-28 16:21:08 +0300]:
> > I was able to reproduce this using the musl-gcc wrapper on a glibc-based
> > system. I tracked it down to dl_iterate_phdr callback in libgcc failing to
> > find PT_GNU_EH_FRAME header in this loop:
> >
> > https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libgcc/unwind-dw2-fde-dip.c;h=137dced8d558b9f786d935c8e4ab73200fb6409d;hb=HEAD#l267
> >
> > And indeed adding -Wl,--eh-frame-hdr to the musl-gcc command line fixes it.
> >
>
> here the test works even without .eh_frame_hdr with gcc-5.1 (alpine, musl based toolchain).
You probably need -static-libgcc together with absence of .eh_frame_hdr to
trigger the crash.
Alexander
prev parent reply other threads:[~2015-08-28 14:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 18:55 Andy Lutomirski
2015-08-27 19:14 ` Rich Felker
2015-08-27 20:00 ` Szabolcs Nagy
2015-08-28 13:21 ` Alexander Monakov
2015-08-28 14:16 ` Szabolcs Nagy
2015-08-28 14:46 ` Alexander Monakov [this message]
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=alpine.LNX.2.20.1508281745170.2655@monopod.intra.ispras.ru \
--to=amonakov@ispras.ru \
--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).