mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: segfault in libc.so
Date: Wed, 4 Mar 2015 23:25:48 -0500	[thread overview]
Message-ID: <20150305042548.GN23507@brightrain.aerifal.cx> (raw)
In-Reply-To: <20150303114639.GF16260@port70.net>

On Tue, Mar 03, 2015 at 12:46:40PM +0100, Szabolcs Nagy wrote:
> * stephen Turner <stephen.n.turner@gmail.com> [2015-03-03 01:00:31 -0500]:
> > I am getting the following strace errors from as and ldd (created as a link
> > pointed to libc.so) i have also seen a segfault from a dynamically linked
> > ld ar and ccom.
> > 
> > For this particular strace I compiled musl with binutils-2.24 and
> > pcc-20150228 (as well as a previous version) with the configure settigs
> > --disable-gcc-wrapper and --target=i486-linux-musl then booted the system
> > and called strace as and strace ldd libc.so respectively. The rest of the
> > system was compiled with cflags -O0 -march=i486 and ldflags -static
> > 
> 
> why do you run libc.so in ldd?
> 
> strace wont help here, most likely pcc miscompiled something
> or your setup is broken in some other way..

I agree. I think gdb, not strace, is the right tool here, but
unfortunately the debug info produced by pcc seems to be wrong or
misinterpreted by gdb, making it hard to do anything except
single-stepping, disassembly, and inspecting registers..

Rich


  reply	other threads:[~2015-03-05  4:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03  6:00 stephen Turner
2015-03-03 11:46 ` Szabolcs Nagy
2015-03-05  4:25   ` Rich Felker [this message]
2015-03-05  5:34     ` stephen Turner
2015-03-05 18:45       ` [musl] " stephen Turner

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=20150305042548.GN23507@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --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).