From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKtkn-0004so-Gc for qemu-devel@nongnu.org; Sat, 14 Sep 2013 13:35:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKtkf-0005z9-QZ for qemu-devel@nongnu.org; Sat, 14 Sep 2013 13:35:29 -0400 Received: from v220110690675601.yourvserver.net ([37.221.199.173]:38005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKtkf-0005z4-K4 for qemu-devel@nongnu.org; Sat, 14 Sep 2013 13:35:21 -0400 Received: from localhost (v220110690675601.yourvserver.net.local [127.0.0.1]) by v220110690675601.yourvserver.net (Postfix) with ESMTP id 2757072819EA for ; Sat, 14 Sep 2013 19:35:20 +0200 (CEST) Received: from v220110690675601.yourvserver.net ([127.0.0.1]) by localhost (v220110690675601.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ypHA3qwhJ5SS for ; Sat, 14 Sep 2013 19:35:09 +0200 (CEST) Received: from [192.168.178.35] (p54AD9847.dip0.t-ipconnect.de [84.173.152.71]) by v220110690675601.yourvserver.net (Postfix) with ESMTPSA id 3D37272819E3 for ; Sat, 14 Sep 2013 19:35:09 +0200 (CEST) Message-ID: <52349E4C.9030902@weilnetz.de> Date: Sat, 14 Sep 2013 19:35:08 +0200 From: Stefan Weil MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [Bug] qemu-alpha broken on 32 bit hosts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel All (?) syscalls fail to handle addresses larger than 32 bit correctly. See "Bad address" in the strace ouput below. Tested on arm and on i686 hosts with Debian's busybox-static. $ alpha-linux-user/qemu-alpha -d unimp,guest_errors -strace /usr/gnemul/qemu-alpha/bin/busybox ls -l block.c host mmap_min_addr=0x1000 Reserved 0x21e000 bytes of guest address space Relocating guest address space from 0x0000000020000000 to 0x20000000 guest_base 0x0 start end size prot 0000000020000000-0000000020218000 0000000000218000 rwx 0000000040000000-0000000040002000 0000000000002000 --- 0000000040002000-0000000040802000 0000000000800000 rw- 0000000020216000-000000012021e000 0000000100008000 rwx start_brk 0x0000000000000000 end_code 0x00000001202179bd start_code 0x0000000120000000 start_data 0x0000000120000000 end_data 0x00000001202179bd start_stack 0x0000000040801590 brk 0x000000012021dcb0 entry 0x00000001200d3fe0 15764 uname(0x408012d0) = 0 15764 brk(NULL) = 0x000000002021e000 15764 brk(0x000000002021ef8e) = 0x000000002021ef8e 15764 osf_getsysinfo(45,1082135520,1082136000,0,1082136475,4834034616) = 0 15764 osf_setsysinfo(14,1082135520,1082136000,0,1082136475,4834034616) = 0 15764 brk(0x0000000020240f8e) = 0x0000000020240f8e 15764 brk(0x0000000020242000) = 0x0000000020242000 15764 getxuid(1082136491,3399988123389603631,1082136000,0,1082136475,4834034616) = 1000 15764 stat64(0x00000001201cea90,0x0000000040801290) = -1 errno=14 (Bad address) 15764 getxgid(1082136529,1082135968,213,1,4832709268,4834034616) = 1000 15764 setgid(1000,1000,213,0,1000,4834034616) = 0 15764 setuid(1000,1000,213,0,1000,4834034616) = 0 15764 gettimeofday(1082135216,0,213,0,1000,4834034616) = 0 15764 ioctl(0,1074295912,1082135220,0,1000,4834034616) = 0 15764 lstat64("block.c",0x0000000040801220) = 0 15764 fstat64(1611596608,0x00000000408008c0) = 0 15764 mmap(NULL,1611596608,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,1611596608,0x600f0340) = 0x0000000040802000 15764 open(0x00000001201cedfe,O_RDONLY) = -1 errno=14 (Bad address) 15764 open(0x00000001201cedf3,O_RDONLY) = -1 errno=14 (Bad address) 15764 open(0x00000001201e0edf,O_RDONLY) = -1 errno=14 (Bad address) -rw-r--r-- 1 1000 1000 128079 Sep 12 07:23 block.c 15764 write(1,0,1082138624) = 65 15764 exit_group(0)