From owner-freebsd-emulation@FreeBSD.ORG Thu Nov 2 17:56:34 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A30E16A4D0 for ; Thu, 2 Nov 2006 17:56:34 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 519E143D5E for ; Thu, 2 Nov 2006 17:56:28 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so170282uge for ; Thu, 02 Nov 2006 09:56:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d1ZH6yvCzhsd0Ww+Bfpalnomk+vvKCG1X44BDvMNFMKsGEj6VY8lzA9tqecNuiZx/STQHkQSm4+R1GGGhbvJhvd7qpwNjlKcU6kVQwQiV84byZROuhwMadpOupZV2/u7l7K9qCccQ+48NpIJWrkz2Q9lcDPuZ7C7PvPQ+xCJKPk= Received: by 10.67.93.6 with SMTP id v6mr1082885ugl.1162490183889; Thu, 02 Nov 2006 09:56:23 -0800 (PST) Received: by 10.67.86.8 with HTTP; Thu, 2 Nov 2006 09:56:23 -0800 (PST) Message-ID: <790a9fff0611020956i77e0908ald4e1bcd7e35797ce@mail.gmail.com> Date: Thu, 2 Nov 2006 11:56:23 -0600 From: "Scot Hetzel" To: "Kostik Belousov" In-Reply-To: <20061101090640.GQ1627@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061031182625.GM1627@deviant.kiev.zoral.com.ua> <200610311436.53134.jkim@FreeBSD.org> <790a9fff0610312356h44a7fd1bj7aafaae6646f0cc6@mail.gmail.com> <20061101090640.GQ1627@deviant.kiev.zoral.com.ua> Cc: freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: [kib@freebsd.org: [src] cvs commit: src/sys/amd64/linux32 linux32_sysvec.c] 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: Thu, 02 Nov 2006 17:56:34 -0000 On 11/1/06, Kostik Belousov wrote: > > Doesn't help the compat.linux.osrelease: 2.6.16 case, as it is a > > different problem involving thread-local storage. > Does wine have a chance to run on amd64 ? I vaguely remember that wine wants > allocation of segments in LDT, that is not implemented on amd64. > That is the current problem I am seeing with linux-wine. When I had Divacky Roman's patch that had thread local storage implemented in it, I was getting a segfault when running wineprefixcreate. > Oct 16 18:39:12 hp010 kernel: pid 88058 (wine), uid 1001: exited on > signal 11 (core dumped) Which I suspect was caused by the problem you had just fixed. I tried the new patch for the linuxator on the wiki site on -CURRENT. It almost started, but failed in wine-preloader, but now I can't reproduce this failure: fatal process exception: page fault, fault VA = 0x48 Segmentation fault (core dumped) messages: Nov 2 08:36:53 hp010 kernel: linux(1380): set_thread_area(-1, 282ad6c0, fffff, 1, 0, 0, 1, 0, 1 Nov 2 08:36:53 hp010 kernel: ) Nov 2 08:36:53 hp010 kernel: linux(1380): set_tid_address(0x282ad708) Nov 2 08:36:53 hp010 kernel: linux(1380): rt_sigaction(32, 0xffffd8cc, 0, 8) Nov 2 08:36:53 hp010 kernel: linux(1380): rt_sigaction(33, 0xffffd8cc, 0, 8) Nov 2 08:36:53 hp010 kernel: linux(1380): rt_sigprocmask(1, 0xffffdb84, 0, 8) Nov 2 08:36:53 hp010 kernel: linux(1380): getrlimit(3, 0xffffdc0c) Nov 2 08:36:53 hp010 kernel: linux(1380): mmap2(0, 67108864, 3, 0x00000022, -1, 0) Nov 2 08:36:53 hp010 kernel: -> linux_mmap_common(0, 67108864, 7, 0x00001002, -1, 0x0) Nov 2 08:36:53 hp010 kernel: -> linux_mmap_common() return: 0x0 (0x282ae000) Nov 2 08:36:53 hp010 kernel: linux(1380): brk(0) Nov 2 08:36:53 hp010 kernel: linux(1380): brk(0x806b000) Nov 2 08:36:53 hp010 kernel: linux(1380): clone(flags 7d0f00, stack 2c2ad4c4, parent tid: 2c2adbf8, child tid: 2c2adbf8) Nov 2 08:36:53 hp010 kernel: linux(1380): clone: successful rfork to 1381, stack 0x2c2ad4c4 sig = 0 Nov 2 08:36:53 hp010 kernel: linux(1380): futex(0x2c2adbf8, 0, 1381) Nov 2 08:36:53 hp010 kernel: FUTEX_WAIT 1380: val = 1381, uaddr = 0x2c2adbf8, *uaddr = 1381, timeout = 0.000000000 Nov 2 08:36:53 hp010 kernel: FUTEX --> 1380 tlseep timeout = 0 Nov 2 08:36:53 hp010 kernel: linux(1381): gettid() Nov 2 08:36:53 hp010 kernel: linux(1381): futex(0x2c2adbf8, 1, 2147483647) Nov 2 08:36:53 hp010 kernel: FUTEX_WAKE 1381: uaddr = 0x2c2adbf8, val = 2147483647 Nov 2 08:36:53 hp010 kernel: FUTEX_WAIT 1380: uaddr = 0x2c2adbf8, ret = 0 Nov 2 08:36:53 hp010 kernel: FUTEX_WAIT 1380: uaddr = 0x2c2adbf8, got FUTEX_WAKE Nov 2 08:36:53 hp010 kernel: linux(1380): stat64(/compat/linux/usr/lib/../bin/wineserver, *) Nov 2 08:36:53 hp010 kernel: linux(1380): execve(/compat/linux/usr/lib/../bin/wine-preloader) : Nov 2 08:36:53 hp010 kernel: linux(1380): set_thread_area(-1, 9c2666c0, fffff, 1, 0, 0, 1, 0, 1 Nov 2 08:36:53 hp010 kernel: ) Nov 2 08:36:53 hp010 kernel: linux(1380): set_tid_address(0x48) Nov 2 08:39:10 hp010 kernel: pid 1380 (wine-preloader), uid 0: exited on signal 11 (core dumped) This failure got as far as loading wine-preloader, before wine-preloader core dumped, /compat/linux/usr/bin/wine was running, as it was used to start wine-preloader. Instead, it fails now fails with: fatal process exception: page fault, fault VA = 0x8 Segmentation fault (core dumped) messages: Nov 2 08:47:17 hp010 kernel: linux(1251): set_thread_area(-1, 282ad6c0, fffff, 1, 0, 0, 1, 0, 1 Nov 2 08:47:17 hp010 kernel: ) Nov 2 08:47:17 hp010 kernel: pid 1251 (wine), uid 0: exited on signal 11 (core dumped) Which occurs after wine executes set_thread_area. Looks like it is getting closer to running linux-wine on -CURRENT. If anyone wants a look at theses log files, let me know. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.