From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 24 22:32:42 2007 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0889116A421 for ; Fri, 24 Aug 2007 22:32:42 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id B87CD13C474 for ; Fri, 24 Aug 2007 22:32:41 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 90F2F8C1888; Sat, 25 Aug 2007 00:32:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S7yulwmUPVch; Sat, 25 Aug 2007 00:32:38 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 55EFC8C1833; Sat, 25 Aug 2007 00:32:38 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l7OMWc2u041014; Sat, 25 Aug 2007 00:32:38 +0200 (CEST) (envelope-from rdivacky) Date: Sat, 25 Aug 2007 00:32:38 +0200 From: Roman Divacky To: Michal Varga Message-ID: <20070824223238.GA40960@freebsd.org> References: <1187980530.5487.49.camel@xenon.stonehenge.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1187980530.5487.49.camel@xenon.stonehenge.sk> User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org Subject: Re: ET and HOMAM3 broken with Linux 2.6 emulation [WAS: Moving to a more recent linux base, when?] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 22:32:42 -0000 > Heroes of Might And Magic 3 breaks with: > 6578 heroes3 CALL linux_getppid > 6578 heroes3 RET linux_getppid 6577/0x19b1 > 6578 heroes3 CALL read(0x6,0x84784a0,0x94) > 6578 heroes3 GIO fd 6 read 148 bytes > " D@\b\0\0\0\0????????$???%\b\0006G\b\0\0\0\M^@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ > \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ > \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 2G\b\0\0\0\0H???G\b???\M^]@\b\^X\0\0\0???\0\0\0??@\b" > 6578 heroes3 RET read 148/0x94 > 6578 heroes3 CALL linux_mmap(0x84783ec) > 6578 heroes3 RET linux_mmap -1090519040/0xbf000000 > 6578 heroes3 PSIG SIGSEGV SIG_DFL does not look 2.6 related but.. what machine is that? (there's a known TLS bug on i386) also.. does it work with 2.4? (mmap is 2.x independant) > Enemy Territory breaks with: > 5538 et.x86 CALL gettimeofday(0xbfbfdcb0,0) > 5538 et.x86 RET gettimeofday 0 > 5538 et.x86 CALL linux_open(0x2ed330fc,0x2,0x400) > 5538 et.x86 NAMI "/compat/linux/dev/zero" > 5538 et.x86 NAMI "/dev/zero" > 5538 et.x86 RET linux_open 7 > 5538 et.x86 CALL linux_mmap2(0,0x2000,0x7,0x2,0x7,0) > 5538 et.x86 RET linux_mmap2 759926784/0x2d4b9000 > 5538 et.x86 CALL close(0x7) > 5538 et.x86 RET close 0 > 5538 et.x86 CALL linux_mmap2(0,0x5b000,0x3,0x22,0xffffffff,0) > 5538 et.x86 RET linux_mmap2 795836416/0x2f6f8000 > 5538 et.x86 CALL linux_getpid > 5538 et.x86 RET linux_getpid 5538/0x15a2 > 5538 et.x86 CALL linux_getpid > 5538 et.x86 RET linux_getpid 5538/0x15a2 > 5538 et.x86 CALL linux_modify_ldt(0x11,0xbfbfdc64,0x10) > 5538 et.x86 RET linux_modify_ldt 666/0x29a > 5538 et.x86 PSIG SIGSEGV caught handler=0x808c720 mask=0x0 code=0x0 uh? this looks strange... are you sure the app uses 2.6 libc? the modify_ldt should be used only with 2.4. it might be the case that the app is trying to use statically linked old libc or something..