mailing list of musl libc
 help / color / mirror / code / Atom feed
* libc.so segfaults on mips
@ 2014-09-04  7:07 Рысь
       [not found] ` <20140904073545.GP12888@brightrain.aerifal.cx>
  0 siblings, 1 reply; 14+ messages in thread
From: Рысь @ 2014-09-04  7:07 UTC (permalink / raw)
  To: musl

Hi list!

Not a really blocking bug but I was wondering why cross compiled musl libc.so for embedded wrt system is segfaults with this:

% ./strace ./libc.so 
execve("./libc.so", ["./libc.so"], [/* 10 vars */]) = 0
--- {si_signo=SIGSEGV, si_code=SI_USER, si_errno=EPERM, si_addr=0x4} (Segmentation fault) ---
+++ killed by SIGSEGV +++
Segmentation fault

A strange segfault with EPERM.

The target is mips2 bigendian router, specifically it is ar9331 SoC.
This is how file reports on libc.so: ELF 32-bit MSB shared object, MIPS, MIPS-I version 1 (SYSV), dynamically linked, not stripped

Such a trouble I had once when system enforced mmap_min_addr, however there it has default value.

The toolchain is somewhat old: gcc 4.2.1, binutils 2.17.50.0.17 but confirmed working and stable.

Musl is 1.1.4.

What else can cause this?


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

end of thread, other threads:[~2014-09-04 19:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-04  7:07 libc.so segfaults on mips Рысь
     [not found] ` <20140904073545.GP12888@brightrain.aerifal.cx>
     [not found]   ` <7bb51525-1a3d-43e8-a567-7523ca3673c7@email.android.com>
2014-09-04 12:32     ` Szabolcs Nagy
2014-09-04 14:03       ` Рысь
2014-09-04 14:45         ` Szabolcs Nagy
2014-09-04 14:56           ` Рысь
2014-09-04 14:57     ` Rich Felker
2014-09-04 15:20       ` Рысь
2014-09-04 15:58         ` Rich Felker
2014-09-04 17:17           ` Rob Landley
2014-09-04 17:38             ` Laurent Bercot
2014-09-04 17:41               ` Rich Felker
2014-09-04 19:26                 ` Isaac Dunham
2014-09-04 19:48                 ` Rob Landley
2014-09-04 17:48             ` Рысь

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