mailing list of musl libc
 help / color / mirror / code / Atom feed
From: stephen Turner <stephen.n.turner@gmail.com>
To: musl@lists.openwall.com
Subject: segfault in libc.so
Date: Tue, 3 Mar 2015 01:00:31 -0500	[thread overview]
Message-ID: <CAA7aPHivvH3YaiA4h0anAq8Ke5L9tn44_T8QJEdugP90-Sfg9g@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 684 bytes --]

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

If anyone has a moment to look into it i would greatly appreciate it and i
will be happy to provide anything else that helps diagnose the issue.

thanks
stephen.

[-- Attachment #1.2: Type: text/html, Size: 807 bytes --]

[-- Attachment #2: as.strace --]
[-- Type: application/octet-stream, Size: 180 bytes --]

execve("/usr/bin/as", ["/usr/bin/as"], [/* 9 vars */]) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0xb7745970} ---
+++ killed by SIGSEGV +++
Segmentation fault

[-- Attachment #3: libc.strace --]
[-- Type: application/octet-stream, Size: 809 bytes --]

execve("/bin/ldd", ["/bin/ldd", "/usr/lib/libc.so"], [/* 9 vars */]) = 0
open("/usr/lib/libc.so", O_RDONLY|O_LARGEFILE) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\307\2\0004\0\0\0"..., 936) = 936
mmap2(NULL, 815104, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb769a000
mmap2(0xb7732000, 192512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x98000) = 0xb7732000
mmap2(0xb775f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb775f000
mprotect(0xb769a000, 815104, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
close(3)                                = 0
writev(1, [{"\t/bin/ldd (0xb7764000)\n", 23}, {NULL, 0}], 2	/bin/ldd (0xb7764000)
) = 23
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0xb77f5970} ---
+++ killed by SIGSEGV +++
Segmentation fault

             reply	other threads:[~2015-03-03  6:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03  6:00 stephen Turner [this message]
2015-03-03 11:46 ` Szabolcs Nagy
2015-03-05  4:25   ` Rich Felker
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=CAA7aPHivvH3YaiA4h0anAq8Ke5L9tn44_T8QJEdugP90-Sfg9g@mail.gmail.com \
    --to=stephen.n.turner@gmail.com \
    --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).