From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6050 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?0KDRi9GB0Yw=?= Newsgroups: gmane.linux.lib.musl.general Subject: libc.so segfaults on mips Date: Thu, 04 Sep 2014 15:07:57 +0800 Message-ID: <4971377a-43f4-4c82-bee6-635791bbe44b@email.android.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1409829525 12118 80.91.229.3 (4 Sep 2014 11:18:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2014 11:18:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6057-gllmg-musl=m.gmane.org@lists.openwall.com Thu Sep 04 09:08:22 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XPR9Z-0007j2-27 for gllmg-musl@plane.gmane.org; Thu, 04 Sep 2014 09:08:21 +0200 Original-Received: (qmail 21710 invoked by uid 550); 4 Sep 2014 07:08:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21701 invoked from network); 4 Sep 2014 07:08:13 -0000 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS autolearn=ham autolearn_force=no version=3.4.0 User-Agent: K-9 Mail for Android Xref: news.gmane.org gmane.linux.lib.musl.general:6050 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?