Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8cKo-0004EP-Ax for qemu-devel@nongnu.org; Wed, 11 Jul 2007 09:34:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8cKm-0004Dm-OO for qemu-devel@nongnu.org; Wed, 11 Jul 2007 09:34:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8cKm-0004Dh-FC for qemu-devel@nongnu.org; Wed, 11 Jul 2007 09:34:24 -0400 Received: from wa-out-1112.google.com ([209.85.146.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8cKm-0004uh-2j for qemu-devel@nongnu.org; Wed, 11 Jul 2007 09:34:24 -0400 Received: by wa-out-1112.google.com with SMTP id k22so2327091waf for ; Wed, 11 Jul 2007 06:34:23 -0700 (PDT) Message-ID: <46d6db660707110634g7f6d4adeqb142c0b71e8bffc@mail.gmail.com> Date: Wed, 11 Jul 2007 15:34:17 +0200 From: "Christian MICHON" Subject: Re: [Detaolb-devel] [Qemu-devel] ANN: DetaolB v0.4 is released In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46d6db660706291658n4e267e6aoe6adee31524187a2@mail.gmail.com> <200707101334.57862.rob@landley.net> <200707101542.25709.rob@landley.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: uClibc , qemu-devel@nongnu.org, detaolb-devel@lists.sourceforge.net On 7/11/07, Blue Swirl wrote: > > It's entirely possibly that qemu and real sparc hardware are behaving > > differently, but I'm not seeing this bus error under qemu. (I haven't got > > real sparc hardware, so I can only debug against qemu...) > > Right. Debugging the problem I found out that in Qemu, 64-bit loads > and stores to unaligned addresses do not trigger any traps as they > should. I'll commit a fix soon. The problem is in uClibc ldso, there > is this kind of store. > > Running the program on qemu-sparc reveals another problem, probably > because of these definitions in ldso/ldso/sparc/dl-sysdep.h: > /* 4096 bytes alignment */ > /* ...but 8192 is required for mmap() on sparc64 kernel */ > #define PAGE_ALIGN 0xffffe000 > #define ADDR_ALIGN 0x1fff > #define OFFS_ALIGN 0x7fffe000 > > On Sparc32 the correct page alignment is still 4096. Because of these > definitions, some code apparently tries to clear a 8k page, but only > 4k of memory is mapped. > I just managed a compilation of bash-3.2 using ncurses-5.6 and uClibc-0.9.29 inside a qemu-system-sparc (native compilation, no cross compilation). "ldd ./bash" points naturally to libdl.so.0, libc.so.0, ld-uClibc.so.0 ./bash Segmentation fault I do not have gdb compiled yet... I'll check soon with busybox ash, since I recompiled uClibc with the sched_affinity patch. -- Christian -- http://detaolb.sourceforge.net/, a linux distribution for Qemu