From: Alexander Monakov <amonakov@ispras.ru>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: Re: _Unwind_Backtrace crashes
Date: Fri, 28 Aug 2015 16:21:08 +0300 (MSK) [thread overview]
Message-ID: <alpine.LNX.2.20.1508281615050.2655@monopod.intra.ispras.ru> (raw)
In-Reply-To: <CALCETrV9y=DN4TyKo7H-FrH0JD+xUze9H9fqkeHdxAo+3vivHw@mail.gmail.com>
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.
Normally this ld option is present in built-in specs, but musl-gcc's specs
don't set it.
Alexander
next prev parent reply other threads:[~2015-08-28 13:21 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 [this message]
2015-08-28 14:16 ` Szabolcs Nagy
2015-08-28 14:46 ` Alexander Monakov
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.1508281615050.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).