mailing list of musl libc
 help / color / mirror / code / Atom feed
* segfault in libc.so
@ 2015-03-03  6:00 stephen Turner
  2015-03-03 11:46 ` Szabolcs Nagy
  0 siblings, 1 reply; 5+ messages in thread
From: stephen Turner @ 2015-03-03  6:00 UTC (permalink / raw)
  To: musl


[-- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-05 18:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03  6:00 segfault in libc.so stephen Turner
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

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