mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: _Unwind_Backtrace crashes
Date: Fri, 28 Aug 2015 16:16:02 +0200	[thread overview]
Message-ID: <20150828141602.GG3609@port70.net> (raw)
In-Reply-To: <alpine.LNX.2.20.1508281615050.2655@monopod.intra.ispras.ru>

* 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).

but i see the same failure with gcc-4.9.2 (debian, glibc based) and then --eh-frame-hdr fixes it.

> Normally this ld option is present in built-in specs, but musl-gcc's specs
> don't set it.
> 
> Alexander


  reply	other threads:[~2015-08-28 14:16 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 [this message]
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=20150828141602.GG3609@port70.net \
    --to=nsz@port70.net \
    --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).