Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 4 Mar 2015 23:25:48 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: segfault in libc.so

On Tue, Mar 03, 2015 at 12:46:40PM +0100, Szabolcs Nagy wrote:
> * stephen Turner <stephen.n.turner@...il.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

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.