From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 18 11:06:43 2013 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3E3BF1BE for ; Mon, 18 Feb 2013 11:06:43 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 229B5E1C for ; Mon, 18 Feb 2013 11:06:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1IB6hIJ061500 for ; Mon, 18 Feb 2013 11:06:43 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1IB6grb061498 for freebsd-emulation@FreeBSD.org; Mon, 18 Feb 2013 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Feb 2013 11:06:42 GMT Message-Id: <201302181106.r1IB6grb061498@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 18 Feb 2013 11:06:43 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/174933 emulation [linux] if_nameindex fail in linuxulator enviroment o ports/169988 emulation [PATCH] Update sysutils/linux-procps to 3.2.7; also up o ports/169896 emulation [patch] audio/linux-f10-alsa-lib: use OSS plugin by de o kern/169814 emulation [linux] ptrace is broken in Linux emulation o kern/169805 emulation [linux] utime() syscall does not work in linuxulator o kern/159646 emulation [linux] [patch] bump Linux version in linuxulator f kern/156691 emulation [vmware] [panic] panic when using hard disks as RAW de o kern/156353 emulation [ibcs2] ibcs2 binaries that execute on 4.x not working o kern/155577 emulation [boot] BTX halted after install. Reboot during install o kern/155040 emulation [linux] [patch] Linux recvfrom doesn't handle proto fa o kern/153990 emulation [hyper-v]: Will not install into Hyper-V on Server 200 o kern/153887 emulation [linux] Linux emulator not understand STB_GNU_UNIQUE b o kern/153243 emulation [ibcs2] Seg fault whne running COFF binary using iBCS2 o kern/151714 emulation [linux] print/acroread9 not usable due to lack of supp a bin/150262 emulation [patch] truss(1) -f doesn't follow descendants of the a kern/150186 emulation [parallels] [panic] Parallels Desktop: CDROM disconnec o ports/148097 emulation [patch] suggested addition to linux_base-* packages to o ports/148096 emulation emulators/linux_base-* can not be built from ports on o kern/147793 emulation [vmware] [panic] cdrom handling, panic, possible race o kern/146237 emulation [linux] Linux binaries not reading directories mounted p kern/144584 emulation [linprocfs][patch] bogus values in linprocfs o ports/142837 emulation [patch] emulators/linux_base-* packages fails to insta o kern/140156 emulation [linux] cdparanoia fails to read drive data f kern/138944 emulation [parallels] [regression] Parallels no longer works in o kern/138880 emulation [linux] munmap segfaults after linux_mmap2 stresstest o ports/135337 emulation [PATCH] emulators/linux_base-f10: incorrect bash usage s kern/133144 emulation [linux] linuxulator 2.6 crashes with nvidias libGL.so. o kern/126232 emulation [linux] Linux ioctl TCGETS (0x5401) always fails o kern/86619 emulation [linux] linux emulator interacts oddly with cp a kern/72920 emulation [linux] path "prefixing" is not done on unix domain so o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/36952 emulation [patch] [linux] ldd(1) command of linux does not work o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 34 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 18 13:24:05 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4F51A444 for ; Mon, 18 Feb 2013 13:24:05 +0000 (UTC) (envelope-from mailinglists@martinlaabs.de) Received: from relay03.alfahosting-server.de (relay03.alfahosting-server.de [109.237.142.239]) by mx1.freebsd.org (Postfix) with ESMTP id 121C7BEF for ; Mon, 18 Feb 2013 13:24:04 +0000 (UTC) Received: by relay02.alfahosting-server.de (Postfix, from userid 1001) id 32CDD32C2566; Mon, 18 Feb 2013 14:00:42 +0100 (CET) X-Spam-DCC: : X-Spam-Level: X-Spam-Status: No, score=0.0 required=7.0 tests=BAYES_50 autolearn=disabled version=3.2.5 Received: from alfa3018.alfahosting-server.de (alfa3018.alfahosting-server.de [109.237.140.30]) by relay02.alfahosting-server.de (Postfix) with ESMTP id 9881232C177E for ; Mon, 18 Feb 2013 14:00:40 +0100 (CET) Received: from pc.martinlaabs.de (p54B34931.dip.t-dialin.net [84.179.73.49]) by alfa3018.alfahosting-server.de (Postfix) with ESMTPSA id 64C0C515DB25 for ; Mon, 18 Feb 2013 14:00:40 +0100 (CET) Message-ID: <512225F7.8030904@martinlaabs.de> Date: Mon, 18 Feb 2013 14:00:39 +0100 From: Martin Laabs User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Adding a linux ioctl translation Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.97.3/16692/Mon Feb 18 02:07:01 2013 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 18 Feb 2013 13:24:05 -0000 Hi, I try to add some new ioctl in the linuxulator. These ioctls are for the joystick driver I am currently writing. I tried to modify the linux_ioctl.h and linux_ioctl.c in the kernel but up to know I had no success. I still get the dmesg output about unimplemented ioctls: inux: pid 2830 (linux_jstest): ioctl fd=3, cmd=0x6a01 ('j',1) is not implemented linux(2830): ioctl(3, 80016a11, *) linux: pid 2830 (linux_jstest): ioctl fd=3, cmd=0x6a11 ('j',17) is not implemented linux(2830): ioctl(3, 80016a12, *) linux: pid 2830 (linux_jstest): ioctl fd=3, cmd=0x6a12 ('j',18) is not implemented linux(2830): ioctl(3, 80806a13, *) linux: pid 2830 (linux_jstest): ioctl fd=3, cmd=0x6a13 ('j',19) is not implemented I did the following: 1. Add the original ioctls to the linux_ioctl.h #define LINUX_JSIOCGVERSION 0x6a01 /*0x80046a01*/ #define LINUX_JSIOCGAXES 0x6a11 /*0x80016a11*/ #define LINUX_JSIOCGBUTTONS 0x6a12 /*0x80016a12*/ #define LINUX_JSIOCGNAME 0x6a13 /*0x80006a13*/ #define LINUX_JS_MIN 0x6a01 #define LINUX_JS_MAX 0x6a13 2. Modified the linux_ioctl.c by adding: static linux_ioctl_function_t linux_ioctl_joystick; [...] static struct linux_ioctl_handler joystick_handler = {linux_ioctl_joystick, LINUX_JS_MIN, LINUX_JS_MAX }; [...] DATA_SET(linux_ioctl_handler_set, joystick_handler); static int linux_ioctl_joystick(struct thread *td, struct linux_ioctl_args *args) { int error; error = 0; printf(ARGS(ioctl, "%d, %04lx, *"), args->fd, \ (unsigned long)args->cmd); switch (args->cmd) { case LINUX_JSIOCGVERSION: args->cmd = JSIOCGVERSION; break; case LINUX_JSIOCGAXES: args->cmd = JSIOCGAXES; break; case LINUX_JSIOCGBUTTONS: args->cmd = JSIOCGBUTTONS; break; case LINUX_JSIOCGNAME: args->cmd = JSIOCGNAME(0); break; default: return (ENOIOCTL); } error = sys_ioctl(td, (struct ioctl_args *)args); return (error); } 3. Recompile linux.ko, restart the system Unfortunately this did not what it should. I still get the message about the unimplemented ioctl. What did I miss? Thank you, Martin Laabs From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 18 19:30:04 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9E86AA26 for ; Mon, 18 Feb 2013 19:30:04 +0000 (UTC) (envelope-from info@martinlaabs.de) Received: from relay03.alfahosting-server.de (relay03.alfahosting-server.de [109.237.142.239]) by mx1.freebsd.org (Postfix) with ESMTP id 5F6B414B for ; Mon, 18 Feb 2013 19:30:01 +0000 (UTC) Received: by relay03.alfahosting-server.de (Postfix, from userid 1001) id 7F99932E027E; Mon, 18 Feb 2013 20:30:00 +0100 (CET) X-Spam-DCC: : X-Spam-Level: X-Spam-Status: No, score=-0.2 required=7.0 tests=BAYES_40 autolearn=disabled version=3.2.5 Received: from alfa3018.alfahosting-server.de (alfa3018.alfahosting-server.de [109.237.140.30]) by relay03.alfahosting-server.de (Postfix) with ESMTP id A72B432E0255 for ; Mon, 18 Feb 2013 20:29:56 +0100 (CET) Received: from pc.martinlaabs.de (p54B34931.dip.t-dialin.net [84.179.73.49]) by alfa3018.alfahosting-server.de (Postfix) with ESMTPSA id 6EB97515D3E2 for ; Mon, 18 Feb 2013 20:29:56 +0100 (CET) Message-ID: <51228132.7090808@martinlaabs.de> Date: Mon, 18 Feb 2013 20:29:54 +0100 From: Martin Laabs User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Re: Adding a linux ioctl translation References: <512225F7.8030904@martinlaabs.de> In-Reply-To: <512225F7.8030904@martinlaabs.de> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.97.3/16694/Mon Feb 18 18:35:45 2013 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 18 Feb 2013 19:30:04 -0000 Hi, I solved the problem. The handler did a switch(...) on the lower 16bit of the cmd but the cmd value was still the long one so adding a & 0xffff solved the problem. Thank you, Martin From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 18 23:15:51 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0E758D41 for ; Mon, 18 Feb 2013 23:15:51 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id F228AD30 for ; Mon, 18 Feb 2013 23:15:50 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r1INFhZP082957 for ; Mon, 18 Feb 2013 15:15:44 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5122B61E.7020104@rawbw.com> Date: Mon, 18 Feb 2013 15:15:42 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: emulation@freebsd.org Subject: VBox-4.2.6: guests fail with assert when dvd drive passthrough is enabled: Expression: pvBuf || enmTxDir == PDMBLOCKTXDIR_NONE Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 18 Feb 2013 23:15:51 -0000 Guests fail soon after boot in exactly the same way, see log below when Pioneer DVD-RW is shared with "Passthrough" option. This worked few months ago, but I can't tell which version was vbox it when it worked. 9.1-STABLE amd64 Below is the end of the log with assert and few lines before that having some error (VERR_NOT_IMPLEMENTED) that may or may not be related. Yuri ---log--- 00:00:03.596652 AIO: Async I/O manager not supported (rc=VERR_NOT_SUPPORTED). Falling back to simple manager 00:00:03.755364 Chipset cannot do MSI: VERR_NOT_IMPLEMENTED 00:00:36.127426 NAT: DNS#0: 192.168.5.1 00:00:36.127452 NAT: DHCP offered IP address 10.0.2.15 00:00:36.142824 NAT: DHCP offered IP address 10.0.2.15 00:00:37.129084 00:00:37.129086 !!Assertion Failed!! 00:00:37.129087 Expression: pvBuf || enmTxDir == PDMBLOCKTXDIR_NONE 00:00:37.129088 Location : /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/src/VBox/Devices/Storage/DrvHostBase.cpp(1250) int DRVHostBaseScsiCmd(DRVHOSTBASE*, const uint8_t*, size_t, PDMBLOCKTXDIR, void*, uint32_t*, uint8_t*, size_t, uint32_t) From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 19 14:31:08 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 048192E7 for ; Tue, 19 Feb 2013 14:31:08 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-oa0-f50.google.com (mail-oa0-f50.google.com [209.85.219.50]) by mx1.freebsd.org (Postfix) with ESMTP id CBE3296E for ; Tue, 19 Feb 2013 14:31:07 +0000 (UTC) Received: by mail-oa0-f50.google.com with SMTP id l20so6938274oag.37 for ; Tue, 19 Feb 2013 06:31:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=zhu/7No5PjZXIGSi4SeZIhLc7z5ol+0v+woJAJWVjR0=; b=Nb8s3hvGebc++KWm19UNMX4hCjCqtPqRJ1eOPuKkQH0dq3+K7m8LQVKcspvaWvpLFk KqaUp+m8ILR0YFNlx5a9f77TqVnLlmmhO3TUBAtIzmv9l0ksYtj8YtULXrK2MG0fnymI bkqk5ImW3+vNJ1OIvpDuPdgdeOyh8CsLeqIykoD+SW08oH6UQ9ZrkYA8h8mq8l6bJpSK i0wy75xg7S2fRp1GT6Jt0BnozRk8CRUNuHAHpt4iTA8hhrULEMaRI2BZPCk4ntV1kjh7 i6xSteMR+Vusyn/0oDC4f7EHOObpKyDU/JIJBUkqAfXEnTb2iAhV95FGV8hlcBQbXg+t RnpA== MIME-Version: 1.0 X-Received: by 10.182.156.20 with SMTP id wa20mr7776799obb.59.1361284267189; Tue, 19 Feb 2013 06:31:07 -0800 (PST) Sender: carpeddiem@gmail.com Received: by 10.60.150.239 with HTTP; Tue, 19 Feb 2013 06:31:07 -0800 (PST) In-Reply-To: <511F5105.6050005@rawbw.com> References: <511F5105.6050005@rawbw.com> Date: Tue, 19 Feb 2013 09:31:07 -0500 X-Google-Sender-Auth: pZ13V5vm0Beq4ArXMhnVscLi3Nc Message-ID: Subject: Re: VBox: USB devices can't be shared with VMs From: Ed Maste To: Yuri Content-Type: text/plain; charset=ISO-8859-1 Cc: emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 19 Feb 2013 14:31:08 -0000 On 16 February 2013 04:27, Yuri wrote: > One or two months ago it was possible to share USB devices with VMs, even if > with some glitches. > But now USB button only displays the message: "No USB devices connected" > > Was this disabled deliberately? > > virtualbox-ose-4.2.6 > 9.1 I do not believe this was intentionally disabled. Do you know what VirtualBox and OS versions you were running in the working case one or two months ago? -Ed From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 19 18:27:58 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 86D54A15; Tue, 19 Feb 2013 18:27:58 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 5DBCDC34; Tue, 19 Feb 2013 18:27:58 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r1JIRv4R017625; Tue, 19 Feb 2013 10:27:57 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5123C42D.7030806@rawbw.com> Date: Tue, 19 Feb 2013 10:27:57 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Ed Maste Subject: Re: VBox: USB devices can't be shared with VMs References: <511F5105.6050005@rawbw.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 19 Feb 2013 18:27:58 -0000 On 02/19/2013 06:31, Ed Maste wrote: > I do not believe this was intentionally disabled. Do you know what > VirtualBox and OS versions you were running in the working case one or > two months ago? vbox was 4.2.4, OS was 9.0 USB sharing did work with this combination, though it was somewhat unstable. Yuri From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 20 13:32:36 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E01D5792; Wed, 20 Feb 2013 13:32:35 +0000 (UTC) (envelope-from xmirya@gmail.com) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) by mx1.freebsd.org (Postfix) with ESMTP id 4895D221; Wed, 20 Feb 2013 13:32:35 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id t44so6537404wey.26 for ; Wed, 20 Feb 2013 05:32:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=g1MfUaQMOvAoeht0tgtKYQIZxqhj8ALwAPyvfMCEBHc=; b=vjwgb7wOCDl4Sx+1byDGKEOm+u6S2WkZyeEdzjks1zlyGJamMddiJ2DDcbQRThHYXj rIGJPsQYB9b3TCCX8/JLTW0dndcLndGVF+F+gs3fMrPUu+Pu6BAciXDhi8cU+2FqFQIJ aLiNeed3fuQ6jTk2xVrnxVar+424Biadn+i/lfkJq9eldWC3FPE+yO9rBjfju9pRWJxP xij6rrG9L5SlYqelqA5CtGIK3gC0kHwPQoWx8wsGEcy11F6SXGkmX2g2Sid2vQXMKPpb K1j9vntkB2BqIOBvxSc775v982efmdCOFaA4tKkODTDJVOHj2CcHh8D9rAvroCfFMXw9 nBNw== MIME-Version: 1.0 X-Received: by 10.180.79.104 with SMTP id i8mr32439151wix.24.1361367154323; Wed, 20 Feb 2013 05:32:34 -0800 (PST) Received: by 10.216.237.199 with HTTP; Wed, 20 Feb 2013 05:32:34 -0800 (PST) In-Reply-To: <5123C42D.7030806@rawbw.com> References: <511F5105.6050005@rawbw.com> <5123C42D.7030806@rawbw.com> Date: Wed, 20 Feb 2013 15:32:34 +0200 Message-ID: Subject: Re: VBox: USB devices can't be shared with VMs From: m irya To: Yuri Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 20 Feb 2013 13:32:36 -0000 Hello everyone, Probably i have the similar issue with 9.1/vbox 4.2.6; i'm passing Garmin GPS device to the Win7 guest, and different win applications fail to access it (though VBox shows the device as connected). I could remember same apps properly accessed this device at the same virtual machine under RELENG_9/vbox 4.1.18 in late October. 2013/2/19 Yuri > On 02/19/2013 06:31, Ed Maste wrote: > >> I do not believe this was intentionally disabled. Do you know what >> VirtualBox and OS versions you were running in the working case one or >> two months ago? >> > > vbox was 4.2.4, OS was 9.0 > USB sharing did work with this combination, though it was somewhat > unstable. > > Yuri > > ______________________________**_________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-**emulation > To unsubscribe, send any mail to "freebsd-emulation-** > unsubscribe@freebsd.org " > From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 20 15:29:31 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 229CE4F5; Wed, 20 Feb 2013 15:29:31 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 5C5D8B09; Wed, 20 Feb 2013 15:29:30 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id gw10so7837897lab.27 for ; Wed, 20 Feb 2013 07:29:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=kO0eY0Gk6ar4U8aOuGdt2/NWOuuIQgHW/sX9L6XU9xI=; b=BkTreC7J+0e38JhQKY/g7QBahmXwIq9ODUztvXRAHF75zn27sicncRrUtnZXH1yG1D gO1KEjEe1c4rlDxub0agfI6AS19ocxWbZLb5RVP0PfAbIqpUp2cUCjemY9M64INUD/2f Q41lR0sGHStpkCtQD4w81WNPxvjwZEt7gpNIhal5+RTPg2eG16c+zD05idobvNJnxsL4 9TLeS3f4a2JZHCNVB/OQUOUwLFt1ZE4UUqa+XENdBugvA/TsnAKGRHkzMiaI+p4NBk3d qceEV9sf7uwdvSLwyZP62aQQcirxGGiS964likqXbQO7Xq0sV5TXYChp7EMH5UYN+ngF APPA== X-Received: by 10.152.104.80 with SMTP id gc16mr18087997lab.49.1361374161894; Wed, 20 Feb 2013 07:29:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.20.138 with HTTP; Wed, 20 Feb 2013 07:29:01 -0800 (PST) From: Damjan Jovanovic Date: Wed, 20 Feb 2013 17:29:01 +0200 Message-ID: Subject: [patch] Wine DLL base address patches To: freebsd-emulation@freebsd.org, freebsd-hackers@freebsd.org, tijl@coosemans.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 20 Feb 2013 15:29:31 -0000 Hi Wine needs some of its libraries to be loaded at specific base addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently lacks. I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that loads libraries at their preferred base addresses (http://www.freebsd.org/cgi/query-pr.cgi?pr=176216), as well as a port of Prelink to FreeBSD which Wine uses to set base addresses (http://www.freebsd.org/cgi/query-pr.cgi?pr=176283). Both work :-), the changed dynamic loader doesn't show any problems in a few days of testing, and prelink works with the --reloc-only option as used by Wine. Please review/test/comment/commit. Thank you Damjan Jovanovic From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 20 15:49:08 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 740E2B7; Wed, 20 Feb 2013 15:49:08 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 17050D75; Wed, 20 Feb 2013 15:49:07 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r1KFmui7070158; Wed, 20 Feb 2013 17:48:56 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r1KFmui7070158 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r1KFmtgP070157; Wed, 20 Feb 2013 17:48:55 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 20 Feb 2013 17:48:55 +0200 From: Konstantin Belousov To: Damjan Jovanovic Subject: Re: [patch] Wine DLL base address patches Message-ID: <20130220154855.GF2598@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="L2zmpNdaDxUzilj2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, tijl@coosemans.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 20 Feb 2013 15:49:08 -0000 --L2zmpNdaDxUzilj2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > Hi >=20 > Wine needs some of its libraries to be loaded at specific base > addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently > lacks. >=20 > I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that > loads libraries at their preferred base addresses > (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176216), as well as a port > of Prelink to FreeBSD which Wine uses to set base addresses > (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176283). Both work :-), > the changed dynamic loader doesn't show any problems in a few days of > testing, and prelink works with the --reloc-only option as used by > Wine. >=20 > Please review/test/comment/commit. Unfortunately, it is not safe. MAP_FIXED overrides any previous mappings which could exist at the specified address. What you could do, is - either specify the desired base without MAP_FIXED. Kernel takes the base as the hint, but only uses it if the request completely fits into the hinted area without overriding any existing mapping. Also, the heap is explicitely avoided. The code would need to check if kernel honored hint by comparing the actual map address with the desired address, and act accordingly. - or add a new mmap(2) flag, which would specify that mapping should be done at that address, if possible to not overlap with existing mapping, otherwise the mapping should fail. --L2zmpNdaDxUzilj2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRJPBnAAoJEJDCuSvBvK1B6RgP/14vXBpPuyAVre0mJ3Dh3TMl zYVmheN9j5Un2a0LTq1U9UcD6FADWwY0G+0J2eSZHVSFOXA3YFxHq73+H9XNawOF U+AHH0+4qQ/27jTJjr4vThjfiFuvN0ArkUrj+haAPMZlhQdr0y1FZl7stuyLo+gb YYkYnZOu/tqvvT5MHVPNjgl9vWMANGcm41BzrGRK40NZ24kOhXwr5I1h5uCGFR7/ gxD5SUtKHVhT1ZF5pMVvObOcTAQrz/nlb6gI2sxhpdU7AnOLpCCGm0+ThNI3tmA8 fmqGze92fU0TFdAWMootevLVuOwgfZwlyUno++RG56zdtFJHBsHCCqvMlsywcRHD 4U15XSmFFDU5+WA4xjbPou/JVOQBUnyRQ6oYYQR8sdt7/tF77pYSvVcR9/V+eujU cI/Zma512iwIW6uwHh9bI1dC1Os3Zqi+OBMelXFdF6zLqZfaMVtygS+E6comvj6j 7EvkzhGNJbByD8+3BD1huHPC7dP0E7f7sYIFLK72WQNLGm68RNl55IjB5EuhcBXP nzgyMyCKCr8XhtB5Kzzwjs9rAVS14WljX00+WJUH4JhF24ddPs/huLDzM9wAb554 zDMTvicHFZSjG+uX7F9/3cgzm6X6Wbw1f5Tnip46FVkUyMfWs+7lq6uUn18oaR3w GHjLcqV1zuKbcFyUUvuY =j2JC -----END PGP SIGNATURE----- --L2zmpNdaDxUzilj2-- From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 20 18:16:12 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EB8E2D95 for ; Wed, 20 Feb 2013 18:16:12 +0000 (UTC) (envelope-from sulabh.kaushal78@gmail.com) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx1.freebsd.org (Postfix) with ESMTP id 85D00980 for ; Wed, 20 Feb 2013 18:16:12 +0000 (UTC) Received: by mail-vc0-f171.google.com with SMTP id p1so5183813vcq.16 for ; Wed, 20 Feb 2013 10:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=qPGbKUlCFgvIKs4HKXx4Wgfv8DueRNL1kluPfov4lmc=; b=DLKZoP5KrKeI1df9WXr6x4Wp4vFiGhtmn17DQ0AgBl5CQb9mXvYdgHK4gDUEwOfeOU XWy3ZkHg5vX6HrW9BWNIbMYYWVGKo2PC7Z99H6rWed85lM8b6Rwl60NyWN3VcKeJDnQS df1yfT/I3F8PLd72j8kpIG36rb2GpxWHZ5QJMJCAk4ZFWtwtYMewwT1kwpCXSCEmgdAn eSI381EUJNvTGM5oTSiLjn8iSP2sme9SqUFxna3rHxmNOYBV1uvRtG3sTTZCrrW1Qm8d yCwDJjH7OiVk6PGic50+iaMuRli6YniOqtjQzaUCi/mC7pLK31/Jo51cfv+reqSIKYGb qKqQ== X-Received: by 10.58.32.10 with SMTP id e10mr27436668vei.59.1361384154404; Wed, 20 Feb 2013 10:15:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.95.105 with HTTP; Wed, 20 Feb 2013 10:15:33 -0800 (PST) In-Reply-To: References: From: Sulabh Kausal Date: Wed, 20 Feb 2013 23:45:33 +0530 Message-ID: Subject: Fwd: Mouse and Keyboard not working KDE4 To: emulation@freebsd.org Content-Type: multipart/mixed; boundary=047d7b33c9beed179104d62bf2f6 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 20 Feb 2013 18:16:13 -0000 --047d7b33c9beed179104d62bf2f6 Content-Type: text/plain; charset=ISO-8859-1 Hi, Please help on this. I will be very thankful to you for this. PFA screenshot of error and xorg.conf file. Thanks, Sulabh K. ---------- Forwarded message ---------- From: Jeremy Messenger Date: Wed, Feb 20, 2013 at 8:57 PM Subject: Re: Mouse and Keyboard not working KDE4 To: Sulabh Kausal Cc: gnome@freebsd.org On Tue, Feb 19, 2013 at 12:02 PM, Sulabh Kausal wrote: > Hi Jeremy, > > I tried instruction given in handbook. But I am getting following error > while starting X: > > (EE) config/hal: couldn't initialise context : unknown error (null) > > I have attached screenshot for this error with this mail. > > I modified xorg.conf file to add option "AutoAddDevice" "off' but still > getting above error. I have attached my xorg.conf file as well with this > mail. > > Please let me know, if I am doing something wrong. I am installing FreeBsd > on Vmware. Try to install x11-drivers/xf86-input-vmmouse . It's my best guess as I know nothing about vmware, so you are better off to emulation@FreeBSD.org. > Thanks, > Sulabh K. > > On Tue, Feb 19, 2013 at 2:02 AM, Jeremy Messenger > wrote: >> >> On Sat, Feb 16, 2013 at 11:15 AM, Sulabh Kausal >> wrote: >> > Hi, >> > >> > I have installed KDE4 and Xorg in FreeBsd 9.1. I am new to Unix. My >> > mouse >> > and keyboard work in command prompt but when I configure rc.conf file to >> > start KDE4 desktop automatically and reboot the machine, on login screen >> > I >> > can't move mouse and can't type with keyboard. My rc.conf and Xorg.0.log >> > files are attached with this mail. >> > >> > I will be very thankful to you for the help! >> >> Have you tried to follow the handbook? >> >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11.html >> >> The mouse/keyboard is at 6.4.2 chapter. >> >> > -- >> > Regards, >> > Sulabh K. >> > >> > _______________________________________________ >> > freebsd-gnome@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome >> > To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org " >> >> >> >> -- >> mezz.freebsd@gmail.com - mezz@FreeBSD.org >> FreeBSD GNOME Team >> http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org > > > > > -- > Regards, > Sulabh K. -- mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org -- Regards, Sulabh K. --047d7b33c9beed179104d62bf2f6 Content-Type: application/octet-stream; name="xorg.conf" Content-Disposition: attachment; filename="xorg.conf" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hdesx3gd1 U2VjdGlvbiAiU2VydmVyTGF5b3V0Ig0KCUlkZW50aWZpZXIgICAgICJYLm9yZyBDb25maWd1cmVk Ig0KCVNjcmVlbiAgICAgIDAgICJTY3JlZW4wIiAwIDANCglJbnB1dERldmljZSAgICAiTW91c2Uw IiAiQ29yZVBvaW50ZXIiDQoJSW5wdXREZXZpY2UgICAgIktleWJvYXJkMCIgIkNvcmVLZXlib2Fy ZCINCkVuZFNlY3Rpb24NCg0KU2VjdGlvbiAiU2VydmVyRmxhZ3MiDQoJT3B0aW9uCSJBdXRvQWRk RGV2aWNlcyIgIm9mZiINCkVuZFNlY3Rpb24NCg0KU2VjdGlvbiAiRmlsZXMiDQoJTW9kdWxlUGF0 aCAgICIvdXNyL2xvY2FsL2xpYi94b3JnL21vZHVsZXMiDQoJRm9udFBhdGggICAgICIvdXNyL2xv Y2FsL2xpYi9YMTEvZm9udHMvbWlzYy8iDQoJRm9udFBhdGggICAgICIvdXNyL2xvY2FsL2xpYi9Y MTEvZm9udHMvVFRGLyINCglGb250UGF0aCAgICAgIi91c3IvbG9jYWwvbGliL1gxMS9mb250cy9P VEYiDQoJRm9udFBhdGggICAgICIvdXNyL2xvY2FsL2xpYi9YMTEvZm9udHMvVHlwZTEvIg0KCUZv bnRQYXRoICAgICAiL3Vzci9sb2NhbC9saWIvWDExL2ZvbnRzLzEwMGRwaS8iDQoJRm9udFBhdGgg ICAgICIvdXNyL2xvY2FsL2xpYi9YMTEvZm9udHMvNzVkcGkvIg0KRW5kU2VjdGlvbg0KDQpTZWN0 aW9uICJNb2R1bGUiDQoJTG9hZCAgImV4dG1vZCINCglMb2FkICAicmVjb3JkIg0KCUxvYWQgICJk YmUiDQoJTG9hZCAgImRyaSINCglMb2FkICAiZHJpMiINCglMb2FkICAiZ2x4Ig0KRW5kU2VjdGlv bg0KDQpTZWN0aW9uICJJbnB1dERldmljZSINCglJZGVudGlmaWVyICAiS2V5Ym9hcmQwIg0KCURy aXZlciAgICAgICJrYmQiDQpFbmRTZWN0aW9uDQoNClNlY3Rpb24gIklucHV0RGV2aWNlIg0KCUlk ZW50aWZpZXIgICJNb3VzZTAiDQoJRHJpdmVyICAgICAgIm1vdXNlIg0KCU9wdGlvbgkgICAgIlBy b3RvY29sIiAiYXV0byINCglPcHRpb24JICAgICJEZXZpY2UiICIvZGV2L3N5c21vdXNlIg0KCU9w dGlvbgkgICAgIlpBeGlzTWFwcGluZyIgIjQgNSA2IDciDQpFbmRTZWN0aW9uDQoNClNlY3Rpb24g Ik1vbml0b3IiDQoJSWRlbnRpZmllciAgICJNb25pdG9yMCINCglWZW5kb3JOYW1lICAgIk1vbml0 b3IgVmVuZG9yIg0KCU1vZGVsTmFtZSAgICAiTW9uaXRvciBNb2RlbCINCkVuZFNlY3Rpb24NCg0K U2VjdGlvbiAiRGV2aWNlIg0KICAgICAgICAjIyMgQXZhaWxhYmxlIERyaXZlciBvcHRpb25zIGFy ZTotDQogICAgICAgICMjIyBWYWx1ZXM6IDxpPjogaW50ZWdlciwgPGY+OiBmbG9hdCwgPGJvb2w+ OiAiVHJ1ZSIvIkZhbHNlIiwNCiAgICAgICAgIyMjIDxzdHJpbmc+OiAiU3RyaW5nIiwgPGZyZXE+ OiAiPGY+IEh6L2tIei9NSHoiDQogICAgICAgICMjIyBbYXJnXTogYXJnIG9wdGlvbmFsDQogICAg ICAgICNPcHRpb24gICAgICJTaGFkb3dGQiIgICAgICAgICAgIAkjIFs8Ym9vbD5dDQogICAgICAg ICNPcHRpb24gICAgICJEZWZhdWx0UmVmcmVzaCIgICAgIAkjIFs8Ym9vbD5dDQogICAgICAgICNP cHRpb24gICAgICJNb2RlU2V0Q2xlYXJTY3JlZW4iIAkjIFs8Ym9vbD5dDQoJSWRlbnRpZmllciAg IkNhcmQwIg0KCURyaXZlciAgICAgICJ2ZXNhIg0KCVZlbmRvck5hbWUgICJWTXdhcmUiDQoJQm9h cmROYW1lICAgIlNWR0EgSUkgQWRhcHRlciINCglCdXNJRCAgICAgICAiUENJOjA6MTU6MCINCkVu ZFNlY3Rpb24NCg0KU2VjdGlvbiAiU2NyZWVuIg0KCUlkZW50aWZpZXIgIlNjcmVlbjAiDQoJRGV2 aWNlICAgICAiQ2FyZDAiDQoJTW9uaXRvciAgICAiTW9uaXRvcjAiDQoJU3ViU2VjdGlvbiAiRGlz cGxheSINCgkJVmlld3BvcnQgICAwIDANCgkJRGVwdGggICAgIDENCglFbmRTdWJTZWN0aW9uDQoJ U3ViU2VjdGlvbiAiRGlzcGxheSINCgkJVmlld3BvcnQgICAwIDANCgkJRGVwdGggICAgIDQNCglF bmRTdWJTZWN0aW9uDQoJU3ViU2VjdGlvbiAiRGlzcGxheSINCgkJVmlld3BvcnQgICAwIDANCgkJ RGVwdGggICAgIDgNCglFbmRTdWJTZWN0aW9uDQoJU3ViU2VjdGlvbiAiRGlzcGxheSINCgkJVmll d3BvcnQgICAwIDANCgkJRGVwdGggICAgIDE1DQoJRW5kU3ViU2VjdGlvbg0KCVN1YlNlY3Rpb24g IkRpc3BsYXkiDQoJCVZpZXdwb3J0ICAgMCAwDQoJCURlcHRoICAgICAxNg0KCUVuZFN1YlNlY3Rp b24NCglTdWJTZWN0aW9uICJEaXNwbGF5Ig0KCQlWaWV3cG9ydCAgIDAgMA0KCQlEZXB0aCAgICAg MjQNCglFbmRTdWJTZWN0aW9uDQpFbmRTZWN0aW9uDQoNCg== --047d7b33c9beed179104d62bf2f6-- From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 20 20:51:55 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DE5E7E4C; Wed, 20 Feb 2013 20:51:55 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay010.isp.belgacom.be (mailrelay010.isp.belgacom.be [195.238.6.177]) by mx1.freebsd.org (Postfix) with ESMTP id EE1053F4; Wed, 20 Feb 2013 20:51:54 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAFAGw2JVFbs5l5/2dsb2JhbABFwF+BARdzgh8BAQUnLyMQCw4KBQQlDwIoHgYBDAEHAQEFiA0IwE6PDgeDQAOPGIElAZZJgwg Received: from 121.153-179-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.179.153.121]) by relay.skynet.be with ESMTP; 20 Feb 2013 21:51:46 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.6/8.14.6) with ESMTP id r1KKpj4e088264; Wed, 20 Feb 2013 21:51:46 +0100 (CET) (envelope-from tijl@coosemans.org) Message-ID: <51253759.70508@coosemans.org> Date: Wed, 20 Feb 2013 21:51:37 +0100 From: Tijl Coosemans User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Konstantin Belousov , Damjan Jovanovic Subject: Re: [patch] Wine DLL base address patches References: <20130220154855.GF2598@kib.kiev.ua> In-Reply-To: <20130220154855.GF2598@kib.kiev.ua> X-Enigmail-Version: 1.4.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig4D62C2023304E37962419127" Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 20 Feb 2013 20:51:55 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D62C2023304E37962419127 Content-Type: multipart/mixed; boundary="------------080104070008010904010603" This is a multi-part message in MIME format. --------------080104070008010904010603 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 20-02-2013 16:48, Konstantin Belousov wrote: > On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: >> Hi >> >> Wine needs some of its libraries to be loaded at specific base >> addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently= >> lacks. >> >> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that= >> loads libraries at their preferred base addresses >> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176216), as well as a po= rt >> of Prelink to FreeBSD which Wine uses to set base addresses >> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176283). Both work :-), >> the changed dynamic loader doesn't show any problems in a few days of >> testing, and prelink works with the --reloc-only option as used by >> Wine. >> >> Please review/test/comment/commit. >=20 > Unfortunately, it is not safe. MAP_FIXED overrides any previous mapping= s > which could exist at the specified address. I've simplified the rtld patch to a single line. The second patch makes Wine use -Ttext-segment linker flag instead of prelink. This requires binutils from ports, but it's easier than porting prelink. --------------080104070008010904010603 Content-Type: text/plain; charset=ISO-8859-15; name="rtld-wine.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="rtld-wine.diff" Index: libexec/rtld-elf/map_object.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libexec/rtld-elf/map_object.c (revision 246986) +++ libexec/rtld-elf/map_object.c (working copy) @@ -175,7 +175,7 @@ map_object(int fd, const char *path, const struct base_vaddr =3D trunc_page(segs[0]->p_vaddr); base_vlimit =3D round_page(segs[nsegs]->p_vaddr + segs[nsegs]->p_mem= sz); mapsize =3D base_vlimit - base_vaddr; - base_addr =3D hdr->e_type =3D=3D ET_EXEC ? (caddr_t) base_vaddr : NU= LL; + base_addr =3D (caddr_t) base_vaddr; =20 mapbase =3D mmap(base_addr, mapsize, PROT_NONE, MAP_ANON | MAP_PRIVA= TE | MAP_NOCORE, -1, 0); --------------080104070008010904010603 Content-Type: text/plain; charset=ISO-8859-15; name="wine-devel-image-base.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="wine-devel-image-base.diff" Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Makefile (revision 312556) +++ Makefile (working copy) @@ -28,7 +28,7 @@ LATEST_LINK=3D wine-devel CPPFLAGS+=3D -I${LOCALBASE}/include LDFLAGS+=3D -L${LOCALBASE}/lib -USE_GCC=3D any +USE_GCC=3D 4.7 GNU_CONFIGURE=3D yes CONFIGURE_ARGS+=3D--verbose --disable-tests \ --without-alsa --without-capi --without-dbus \ Index: files/patch-tools-winegcc-utils.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- files/patch-tools-winegcc-utils.h (revision 0) +++ files/patch-tools-winegcc-utils.h (working copy) @@ -0,0 +1,12 @@ +--- tools/winegcc/utils.h.orig ++++ tools/winegcc/utils.h +@@ -42,7 +42,8 @@ +=20 + enum target_platform + { +- PLATFORM_UNSPECIFIED, PLATFORM_APPLE, PLATFORM_SOLARIS, PLATFORM_WI= NDOWS, PLATFORM_CYGWIN ++ PLATFORM_UNSPECIFIED, PLATFORM_APPLE, PLATFORM_FREEBSD, PLATFORM_SO= LARIS, ++ PLATFORM_WINDOWS, PLATFORM_CYGWIN + }; +=20 + void error(const char* s, ...) DECLSPEC_NORETURN; Index: files/patch-tools-winegcc-winegcc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- files/patch-tools-winegcc-winegcc.c (revision 0) +++ files/patch-tools-winegcc-winegcc.c (working copy) @@ -0,0 +1,32 @@ +--- tools/winegcc/winegcc.c.orig ++++ tools/winegcc/winegcc.c +@@ -172,6 +172,7 @@ + { + { "macos", PLATFORM_APPLE }, + { "darwin", PLATFORM_APPLE }, ++ { "freebsd", PLATFORM_FREEBSD }, + { "solaris", PLATFORM_SOLARIS }, + { "cygwin", PLATFORM_CYGWIN }, + { "mingw32", PLATFORM_WINDOWS }, +@@ -232,6 +233,8 @@ +=20 + #ifdef __APPLE__ + static enum target_platform build_platform =3D PLATFORM_APPLE; ++#elif defined(__FreeBSD__) ++static enum target_platform build_platform =3D PLATFORM_FREEBSD; + #elif defined(__sun) + static enum target_platform build_platform =3D PLATFORM_SOLARIS; + #elif defined(__CYGWIN__) +@@ -1020,6 +1023,12 @@ + if (opts->strip) + strarray_add(link_args, "-Wl,-x"); + break; ++ case PLATFORM_FREEBSD: ++ if (opts->image_base) ++ { ++ strarray_add(link_args, strmake("-Wl,-Ttext-segment=3D%s", = opts->image_base)); ++ } ++ break; + case PLATFORM_SOLARIS: + { + char *mapfile =3D get_temp_file( output_name, ".map" ); --------------080104070008010904010603-- --------------enig4D62C2023304E37962419127 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iF4EAREIAAYFAlElN2EACgkQfoCS2CCgtisDnAD9GONXdn6WPP8p/XyoBD88blqC ddZpmexN7gZj7nGrtGoA/0Khh2ETumbLDXjIkXceVf2xxzOwJSinzMXEAr+3X6LR =0GBW -----END PGP SIGNATURE----- --------------enig4D62C2023304E37962419127-- From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 20 21:16:36 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B1172C8D; Wed, 20 Feb 2013 21:16:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0E4C5787; Wed, 20 Feb 2013 21:16:35 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r1KLGTQe014828; Wed, 20 Feb 2013 23:16:29 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r1KLGTQe014828 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r1KLGTYu014827; Wed, 20 Feb 2013 23:16:29 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 20 Feb 2013 23:16:29 +0200 From: Konstantin Belousov To: Tijl Coosemans Subject: Re: [patch] Wine DLL base address patches Message-ID: <20130220211629.GR2598@kib.kiev.ua> References: <20130220154855.GF2598@kib.kiev.ua> <51253759.70508@coosemans.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3VJSuQsIgdmXj2/q" Content-Disposition: inline In-Reply-To: <51253759.70508@coosemans.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-emulation@freebsd.org, freebsd-hackers@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 20 Feb 2013 21:16:36 -0000 --3VJSuQsIgdmXj2/q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 20, 2013 at 09:51:37PM +0100, Tijl Coosemans wrote: > On 20-02-2013 16:48, Konstantin Belousov wrote: > > On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > >> Hi > >> > >> Wine needs some of its libraries to be loaded at specific base > >> addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently > >> lacks. > >> > >> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that > >> loads libraries at their preferred base addresses > >> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176216), as well as a po= rt > >> of Prelink to FreeBSD which Wine uses to set base addresses > >> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176283). Both work :-), > >> the changed dynamic loader doesn't show any problems in a few days of > >> testing, and prelink works with the --reloc-only option as used by > >> Wine. > >> > >> Please review/test/comment/commit. > >=20 > > Unfortunately, it is not safe. MAP_FIXED overrides any previous mappings > > which could exist at the specified address. >=20 > I've simplified the rtld patch to a single line. The second patch makes > Wine use -Ttext-segment linker flag instead of prelink. This requires > binutils from ports, but it's easier than porting prelink. >=20 > Index: libexec/rtld-elf/map_object.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- libexec/rtld-elf/map_object.c (revision 246986) > +++ libexec/rtld-elf/map_object.c (working copy) > @@ -175,7 +175,7 @@ map_object(int fd, const char *path, const struct > base_vaddr =3D trunc_page(segs[0]->p_vaddr); > base_vlimit =3D round_page(segs[nsegs]->p_vaddr + segs[nsegs]->p_mem= sz); > mapsize =3D base_vlimit - base_vaddr; > - base_addr =3D hdr->e_type =3D=3D ET_EXEC ? (caddr_t) base_vaddr : NU= LL; > + base_addr =3D (caddr_t) base_vaddr; > =20 > mapbase =3D mmap(base_addr, mapsize, PROT_NONE, MAP_ANON | MAP_PRIVA= TE | > MAP_NOCORE, -1, 0); If this is enough for wine, I definitely have no objection. The typical dso has zero virtual base for the first segment, so the patch should change nothing for dso built without special map file. > Index: Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- Makefile (revision 312556) > +++ Makefile (working copy) > @@ -28,7 +28,7 @@ > LATEST_LINK=3D wine-devel > CPPFLAGS+=3D -I${LOCALBASE}/include > LDFLAGS+=3D -L${LOCALBASE}/lib > -USE_GCC=3D any > +USE_GCC=3D 4.7 > GNU_CONFIGURE=3D yes > CONFIGURE_ARGS+=3D--verbose --disable-tests \ > --without-alsa --without-capi --without-dbus \ > Index: files/patch-tools-winegcc-utils.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- files/patch-tools-winegcc-utils.h (revision 0) > +++ files/patch-tools-winegcc-utils.h (working copy) > @@ -0,0 +1,12 @@ > +--- tools/winegcc/utils.h.orig > ++++ tools/winegcc/utils.h > +@@ -42,7 +42,8 @@ > +=20 > + enum target_platform > + { > +- PLATFORM_UNSPECIFIED, PLATFORM_APPLE, PLATFORM_SOLARIS, PLATFORM_WI= NDOWS, PLATFORM_CYGWIN > ++ PLATFORM_UNSPECIFIED, PLATFORM_APPLE, PLATFORM_FREEBSD, PLATFORM_SO= LARIS, > ++ PLATFORM_WINDOWS, PLATFORM_CYGWIN > + }; > +=20 > + void error(const char* s, ...) DECLSPEC_NORETURN; > Index: files/patch-tools-winegcc-winegcc.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- files/patch-tools-winegcc-winegcc.c (revision 0) > +++ files/patch-tools-winegcc-winegcc.c (working copy) > @@ -0,0 +1,32 @@ > +--- tools/winegcc/winegcc.c.orig > ++++ tools/winegcc/winegcc.c > +@@ -172,6 +172,7 @@ > + { > + { "macos", PLATFORM_APPLE }, > + { "darwin", PLATFORM_APPLE }, > ++ { "freebsd", PLATFORM_FREEBSD }, > + { "solaris", PLATFORM_SOLARIS }, > + { "cygwin", PLATFORM_CYGWIN }, > + { "mingw32", PLATFORM_WINDOWS }, > +@@ -232,6 +233,8 @@ > +=20 > + #ifdef __APPLE__ > + static enum target_platform build_platform =3D PLATFORM_APPLE; > ++#elif defined(__FreeBSD__) > ++static enum target_platform build_platform =3D PLATFORM_FREEBSD; > + #elif defined(__sun) > + static enum target_platform build_platform =3D PLATFORM_SOLARIS; > + #elif defined(__CYGWIN__) > +@@ -1020,6 +1023,12 @@ > + if (opts->strip) > + strarray_add(link_args, "-Wl,-x"); > + break; > ++ case PLATFORM_FREEBSD: > ++ if (opts->image_base) > ++ { > ++ strarray_add(link_args, strmake("-Wl,-Ttext-segment=3D%s", = opts->image_base)); > ++ } > ++ break; > + case PLATFORM_SOLARIS: > + { > + char *mapfile =3D get_temp_file( output_name, ".map" ); --3VJSuQsIgdmXj2/q Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRJT0tAAoJEJDCuSvBvK1BOjwQAIwDtkAYTikXCeL6vsrst7hz 6+VKPQm2wZLO0/VBhpKqYgzhjcynxSTYrmf+DWu3iq4i8S7z37nO0UFNozBCCZhh iHVdXWJ/+NhpBGMVy4b3V88Z6BVvW8i7hZVsX35eiKKLq87hhC9R4rpjEQK9eKgK 10AFW5uNYpmR8IN/qLOXTgMOQ76x8lHrcLdvsw5Pe7WhKX9VGO47CanBm9Ux3cA1 cvmlx8V36W/cATH+dkZ1NgNFtWB2rjL7jp1FR6WOU4K02Jl22ggVVrc6l6E/owdh DTwrkptrL+Fca0vaN+0xYQbJiRcCZ2Z2m4uTaEH3/6bzFnr7s10lRRA5KHElgzps MSoery+hPL2YzfTvaYGIBbA+cciguiwFBVavi8BjrmIwLuRnwznN8JTJNjG4UV0v Wu+BYju5n3jdBlxE+0adZVChioP3f9A0c6xnEoxps4D2ekan9L8Ly1KcjqzHlaJH y2qTCS4xxBLF6JAdX/pQGVaG5a0NfPDyPnK/TPq9dKPLE4uuzBAPq5nscpGpbfh8 9WlFffV4DYuispAcr9ojeOrfikp5yo0WNwRJS34vdw4h/a2jKwbq/qcNOZsbjGS0 8fUIqoQN1ljhW+8fDRxMPrCAyVUYvqZHmHP8mrhCHbzvbPfrZYoA6wTS3l8JoblE b8xJHdk5Lb7jGag5YkLI =kx1j -----END PGP SIGNATURE----- --3VJSuQsIgdmXj2/q-- From owner-freebsd-emulation@FreeBSD.ORG Wed Feb 20 22:58:13 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 698E12D8; Wed, 20 Feb 2013 22:58:13 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx1.freebsd.org (Postfix) with ESMTP id B6828AF; Wed, 20 Feb 2013 22:58:12 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id l12so6395197lbo.19 for ; Wed, 20 Feb 2013 14:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=/V8kj3eFgSTjSq5Fy7prqZbw8GKmpMM1yOOo59+XPoA=; b=mB6ZzmtwR/IRBhdexuhSfb9NRMeS1uOTsxEbPcHXr3si7tBP39RejNbregbhkHWKUc wQDmRSsVZWgw/zkVYvg51c/BEyStpi+jcUZMY88hwx3ANtXFF1yReOgomHiIfPqUCP5C touga4jvIR3KplJdXtFFT8QzRo96tQpCQlqZSaswOeXa5ng/hOmAXmkHsDSSgEcEPku9 0T3MCOVmS5x5Xa+fsWsmNdauiQ8qXSKY3Ru8s3crfvYbPjkgwHpWW30fMhn7F/6qYWFN KJkDPUiEmWEgFqJtU4MkDKah4BpPNhEnu1FoIhPNNQ3pRNATozuZCd5OM3wTgYPTk4Bm yyXw== X-Received: by 10.152.111.67 with SMTP id ig3mr12427873lab.41.1361401085666; Wed, 20 Feb 2013 14:58:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.20.138 with HTTP; Wed, 20 Feb 2013 14:57:45 -0800 (PST) In-Reply-To: <51253759.70508@coosemans.org> References: <20130220154855.GF2598@kib.kiev.ua> <51253759.70508@coosemans.org> From: Damjan Jovanovic Date: Thu, 21 Feb 2013 00:57:45 +0200 Message-ID: Subject: Re: [patch] Wine DLL base address patches To: Tijl Coosemans Content-Type: multipart/mixed; boundary=f46d04088f171ba4d104d62fe4f9 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 20 Feb 2013 22:58:13 -0000 --f46d04088f171ba4d104d62fe4f9 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Feb 20, 2013 at 10:51 PM, Tijl Coosemans wrote: > On 20-02-2013 16:48, Konstantin Belousov wrote: >> On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: >>> Hi >>> >>> Wine needs some of its libraries to be loaded at specific base >>> addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently >>> lacks. >>> >>> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that >>> loads libraries at their preferred base addresses >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=176216), as well as a port >>> of Prelink to FreeBSD which Wine uses to set base addresses >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=176283). Both work :-), >>> the changed dynamic loader doesn't show any problems in a few days of >>> testing, and prelink works with the --reloc-only option as used by >>> Wine. >>> >>> Please review/test/comment/commit. >> >> Unfortunately, it is not safe. MAP_FIXED overrides any previous mappings >> which could exist at the specified address. > > I've simplified the rtld patch to a single line. The second patch makes > Wine use -Ttext-segment linker flag instead of prelink. This requires > binutils from ports, but it's easier than porting prelink. > All of that occurred to me as well. The problem with that one-line rtld patch is that loading an application will now fail if any of its libraries cannot be loaded at their requested address. The problem with -Ttext-segment (and isn't it just -Ttext?) is that it doesn't seem to work: the base_vaddr seen by rtld will remain 0, and the address listed in /proc/.../map is different from what it should be. Also run "readelf -l" on a library compiled that way and compare with the output of one run through "prelink --reloc-only", you'll see the lowest VirtAddr and PhysAddr in LOAD headers change only with prelink. I really ported prelink because there was no other choice. See my attached test cases, and examine the contents of /proc/.../map while they run. --f46d04088f171ba4d104d62fe4f9-- From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 21 12:23:39 2013 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8ED2B5EC for ; Thu, 21 Feb 2013 12:23:39 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from portsmonj.FreeBSD.org (portsmonj.freebsd.org [69.147.83.46]) by mx1.freebsd.org (Postfix) with ESMTP id 8347B8D9 for ; Thu, 21 Feb 2013 12:23:39 +0000 (UTC) Received: from portsmonj.freebsd.org (portsmonj.freebsd.org [69.147.83.46]) by portsmonj.FreeBSD.org (8.14.5/8.14.4) with ESMTP id r1L8UbnY094391 for ; Thu, 21 Feb 2013 08:30:37 GMT (envelope-from linimon@FreeBSD.org) Date: Thu, 21 Feb 2013 08:30:37 GMT Message-Id: <201302210830.r1L8UbnY094391@portsmonj.FreeBSD.org> From: linimon@FreeBSD.org To: emulation@FreeBSD.org Subject: FreeBSD ports that you maintain which are currently marked forbidden X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: portmgr-feedback@FreeBSD.org List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2013 12:23:39 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we periodically notify users about ports that are marked as "forbidden" in their Makefiles. Often, these ports are so marked due to security concerns, such as known exploits. An overview of each port, including errors seen on the build farm, is included below. portname: graphics/linux-tiff forbidden because: Vulnerable since 2004-10-13, http://portaudit.freebsd.org/8816bf3a-7929-11df-bcce-0018f3e2eb82.html build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=graphics&portname=linux-tiff portname: www/linux-flashplugin9 forbidden because: CVE-2010-1297 build errors: http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.10.20120608131052/linux-flashplugin-9.0r289_1.log (_Jun_13_10:34:28_UTC_2012) overview: http://portsmon.FreeBSD.org/portoverview.py?category=www&portname=linux-flashplugin9 portname: x11-toolkits/linux-pango forbidden because: Vulnerable since 2009-05-13, http://portaudit.freebsd.org/4b172278-3f46-11de-becb-001cc0377035.html build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=x11-toolkits&portname=linux-pango If this problem is one that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 21 12:25:07 2013 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C93D58D5 for ; Thu, 21 Feb 2013 12:25:07 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from portsmonj.FreeBSD.org (portsmonj.freebsd.org [69.147.83.46]) by mx1.freebsd.org (Postfix) with ESMTP id BD02898B for ; Thu, 21 Feb 2013 12:25:07 +0000 (UTC) Received: from portsmonj.freebsd.org (portsmonj.freebsd.org [69.147.83.46]) by portsmonj.FreeBSD.org (8.14.5/8.14.4) with ESMTP id r1L8TGFZ085470 for ; Thu, 21 Feb 2013 08:29:16 GMT (envelope-from linimon@FreeBSD.org) Date: Thu, 21 Feb 2013 08:29:16 GMT Message-Id: <201302210829.r1L8TGFZ085470@portsmonj.FreeBSD.org> From: linimon@FreeBSD.org To: emulation@FreeBSD.org Subject: FreeBSD ports that you maintain which are currently scheduled for deletion X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: portmgr-feedback@FreeBSD.org List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2013 12:25:07 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we periodically schedule removal of ports that have been judged to have outlived their usefulness. Often, this is due to a better alternative having become available and/or the cessation of development on the existing port. In some cases, ports are marked for removal because they fail to build and install correctly from their sources, or otherwise fail in operation. The ports, and the reason and date that they have been scheduled for removal, are listed below. If no one has stepped forward before that time to propose a way to fix the problems (such as via a PR), the ports will be deleted. portname: accessibility/linux-atk description: Accessibility Toolkit, Linux/i386 binary maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=accessibility&portname=linux-atk portname: archivers/linux-ucl description: RPM of UCL, a lossless data compression library maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=archivers&portname=linux-ucl portname: archivers/linux-upx description: RPM of UPX, a high-performance executable packer maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=archivers&portname=linux-upx portname: audio/linux-esound description: RPM of esound maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=audio&portname=linux-esound portname: audio/linux-libaudiofile description: RPM of audiofile maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=audio&portname=linux-libaudiofile portname: audio/linux-nas-libs description: Runtime libraries for NAS (Linux Fedora Core 4) maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=audio&portname=linux-nas-libs portname: devel/linux-allegro description: Cross-platform game programming library (linux version) maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=devel&portname=linux-allegro portname: devel/linux-libglade description: RPM of libglade maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=devel&portname=linux-libglade portname: devel/linux-libsigc++20 description: Callback Framework for C++ (linux version) maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=devel&portname=linux-libsigc%2B%2B20 portname: devel/linux-sdl12 description: Cross-platform multi-media development API (linux version) maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=devel&portname=linux-sdl12 portname: emulators/linux_base-fc4 description: Base set of packages needed in Linux mode (for i386/amd64) maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=emulators&portname=linux_base-fc4 portname: graphics/linux-imlib description: RPM of imlib maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=graphics&portname=linux-imlib portname: graphics/linux-jpeg description: RPM of the JPEG lib maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=graphics&portname=linux-jpeg portname: graphics/linux-libGLU description: OpenGL utility library (Linux version) maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=graphics&portname=linux-libGLU portname: graphics/linux-png description: RPM of the PNG lib maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=graphics&portname=linux-png portname: graphics/linux-png10 description: RPM of the PNG lib (old 1.0 version) maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=graphics&portname=linux-png10 portname: graphics/linux-tiff description: TIFF library, Linux/i386 binary maintainer: emulation@FreeBSD.org status: FORBIDDEN deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=graphics&portname=linux-tiff portname: lang/linux-libg2c description: Fortran 77 compatibility runtime maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=lang&portname=linux-libg2c portname: multimedia/linux-libtheora description: Video codec maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=multimedia&portname=linux-libtheora portname: sysutils/linux-procps description: Linux psproc binaries maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=sysutils&portname=linux-procps portname: textproc/linux-expat description: Linux/i386 binary port of Expat XML-parsing library maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=textproc&portname=linux-expat portname: textproc/linux-libxml description: RPM of libxml maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=textproc&portname=linux-libxml portname: www/linux-flashplugin9 description: Adobe Flash Player NPAPI Plugin maintainer: emulation@FreeBSD.org status: FORBIDDEN deprecated because: Vulnerable, BROKEN for more than six months expiration date: 2013-04-01 build errors: http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.10.20120608131052/linux-flashplugin-9.0r289_1.log (_Jun_13_10:34:28_UTC_2012) overview: http://portsmon.FreeBSD.org/portoverview.py?category=www&portname=linux-flashplugin9 portname: x11-fonts/linux-fontconfig description: Linux/i386 binary of Fontconfig maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=x11-fonts&portname=linux-fontconfig portname: x11-toolkits/linux-gtk description: RPM of the Gtk lib maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=x11-toolkits&portname=linux-gtk portname: x11-toolkits/linux-gtk2 description: GTK+ library, version 2.X, Linux binary maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=x11-toolkits&portname=linux-gtk2 portname: x11-toolkits/linux-openmotif description: Motif toolkit Linux libraries maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=x11-toolkits&portname=linux-openmotif portname: x11-toolkits/linux-pango description: Linux pango binary maintainer: emulation@FreeBSD.org status: FORBIDDEN deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=x11-toolkits&portname=linux-pango portname: x11/linux-xorg-libs description: Xorg libraries, linux binaries maintainer: emulation@FreeBSD.org deprecated because: expiration date: 2013-02-28 build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=x11&portname=linux-xorg-libs If this problem is one that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 21 15:44:46 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 01C7D854; Thu, 21 Feb 2013 15:44:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 50442EA1; Thu, 21 Feb 2013 15:44:45 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r1LFiYXN039698; Thu, 21 Feb 2013 17:44:34 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r1LFiYXN039698 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r1LFiXAl039697; Thu, 21 Feb 2013 17:44:33 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 21 Feb 2013 17:44:33 +0200 From: Konstantin Belousov To: Damjan Jovanovic Subject: Re: [patch] Wine DLL base address patches Message-ID: <20130221154433.GY2598@kib.kiev.ua> References: <20130220154855.GF2598@kib.kiev.ua> <51253759.70508@coosemans.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/TIhMU+9tW3Jkwla" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, Tijl Coosemans X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 21 Feb 2013 15:44:46 -0000 --/TIhMU+9tW3Jkwla Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 21, 2013 at 12:57:45AM +0200, Damjan Jovanovic wrote: > On Wed, Feb 20, 2013 at 10:51 PM, Tijl Coosemans wro= te: > > On 20-02-2013 16:48, Konstantin Belousov wrote: > >> On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > >>> Hi > >>> > >>> Wine needs some of its libraries to be loaded at specific base > >>> addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently > >>> lacks. > >>> > >>> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that > >>> loads libraries at their preferred base addresses > >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176216), as well as a p= ort > >>> of Prelink to FreeBSD which Wine uses to set base addresses > >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176283). Both work :-), > >>> the changed dynamic loader doesn't show any problems in a few days of > >>> testing, and prelink works with the --reloc-only option as used by > >>> Wine. > >>> > >>> Please review/test/comment/commit. > >> > >> Unfortunately, it is not safe. MAP_FIXED overrides any previous mappin= gs > >> which could exist at the specified address. > > > > I've simplified the rtld patch to a single line. The second patch makes > > Wine use -Ttext-segment linker flag instead of prelink. This requires > > binutils from ports, but it's easier than porting prelink. > > >=20 > All of that occurred to me as well. >=20 > The problem with that one-line rtld patch is that loading an > application will now fail if any of its libraries cannot be loaded at > their requested address. But this is intended behaviour. Also, the default virtaddr base for the shared libraries is 0, so the existing binaries should be not affected. >=20 > The problem with -Ttext-segment (and isn't it just -Ttext?) is that it > doesn't seem to work: the base_vaddr seen by rtld will remain 0, and > the address listed in /proc/.../map is different from what it should > be. Also run "readelf -l" on a library compiled that way and compare > with the output of one run through "prelink --reloc-only", you'll see > the lowest VirtAddr and PhysAddr in LOAD headers change only with > prelink. I really ported prelink because there was no other choice. The -Ttext-segment does work. As indicated by Tijl, you need recent binutils. I just verified that ld 2.32.1 obeys -Ttext-segment. You can also take a look at the default linker script to see how -Ttext-segment is used, look for SEGMENT_START("text-segment"). >=20 > See my attached test cases, and examine the contents of /proc/.../map > while they run. --/TIhMU+9tW3Jkwla Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRJkDhAAoJEJDCuSvBvK1BKgcQAJAGi3YIrhLO5X1hPmFxn5Ju NpRg/BqS3HHb1U3r5DaR1Vr3M/6ACmx6ZQIySHpTysADdwqPw3b3k+mtSl8bOfmW 45XQWn1jgiYJ22PiCoVTYF8DJFWZ+2onLJuevJ+xRielZx2Pz1KTztc+IhXY6PUv NXZ+1/zINvt0e8bFwVt9WLdazAj15/FRmDkKSRf+oKlq5YMsbqAppv7UZRDqUhsI AdsbVEbilLIfuqPuR+M9+iJMaIt5oF3InHwX6msy15dEnn/xdI6d3fMcyhdkp+nP rC+LT1ggD+TQaAXH1LqZTZfPCSS9mv7NhqCYaUemKjZbeVsIZU+P4p+tWWqjdBQd qEyEctToB6ONkptqZ2tqiPaN3OopVEdJzrab4Ovgfy0a62lBfiXcTKEQZgL2ezGW UpLItTHWt+lwcG+dLCECKPnzH4v79Kz9sIYcDn1J3gJ0rx1l2jobwaMQymspUK6z 70V5aVZ4OE2xFPTYabl6YAVDzRvtO7bhOubM11GHlv1+WVwPRQwb4dpebGKzASd3 oe/Uuy4GJCr0ZwGEMovtSP3XowVDCJ69o/G3MJCAhL4ztd4+6hQgnN+ytNDvdzVA EsOT+WKf/USCUA5CXsdaExnDPeY5AtryQ6E0g0cr/5phJbizEmVqT5VQs7FhZEi4 2L9nvFIcKb185sYmMtb+ =76XR -----END PGP SIGNATURE----- --/TIhMU+9tW3Jkwla-- From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 21 18:07:22 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CF8AF5AE; Thu, 21 Feb 2013 18:07:22 +0000 (UTC) (envelope-from sulabh.kaushal78@gmail.com) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx1.freebsd.org (Postfix) with ESMTP id 75ABDD4B; Thu, 21 Feb 2013 18:07:22 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id pb11so8288449veb.33 for ; Thu, 21 Feb 2013 10:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=u1UUldQF2a8WpKZNthl6DzaBB7+Pf2wNElVE6vu56Jg=; b=eUkFFksxC2kUraoZNG8td6+fmRjXQ7vl3f5CDOR7LbtEkyU3mkR7vzI12alpvFUiYw AI5D4T1gpNafnzboGHATezesKiM3jE7B8qKTfhs76pp18c0NLVATrFnWQrJViUd8Qnfj NTyAtmdsIqMo5dnIYx4wSxWad1a8zQZBTEIQcP2uax/k3CTHz2MhMjWioHbqSTH0kCiT mIXDo1kCGEGH1CNhr4Z5D/9YyVeg8NNWmlkxJUkNn7qYiimh/VOz/LHHKsNPGQAaCL38 MRIzVqEVtQ3pg0ib1kzx3YNA01F6kDPaiRnsSiD1UpdnFcvriDSgxPwfDesw4Sodo9gU in9g== X-Received: by 10.52.30.48 with SMTP id p16mr29102292vdh.118.1361470041645; Thu, 21 Feb 2013 10:07:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.95.105 with HTTP; Thu, 21 Feb 2013 10:07:01 -0800 (PST) In-Reply-To: References: From: Sulabh Kausal Date: Thu, 21 Feb 2013 23:37:01 +0530 Message-ID: Subject: Re: Mouse and Keyboard not working KDE4 To: Jeremy Messenger Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: gnome@freebsd.org, emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 21 Feb 2013 18:07:22 -0000 Hi Jeremy, Today I started FreeBsd on vmware and it is working fine. I opened it to install drivers suggested by you but before installing I was just checking and mouse and keyboard is working fine. May be after following handbook, it started working. I think, I didn't restarted vm that's why it was not working yestereday. Thanks for the help! Thanks, Sulabh K. On Wed, Feb 20, 2013 at 8:57 PM, Jeremy Messenger wrote: > On Tue, Feb 19, 2013 at 12:02 PM, Sulabh Kausal > wrote: > > Hi Jeremy, > > > > I tried instruction given in handbook. But I am getting following error > > while starting X: > > > > (EE) config/hal: couldn't initialise context : unknown error (null) > > > > I have attached screenshot for this error with this mail. > > > > I modified xorg.conf file to add option "AutoAddDevice" "off' but still > > getting above error. I have attached my xorg.conf file as well with this > > mail. > > > > Please let me know, if I am doing something wrong. I am installing > FreeBsd > > on Vmware. > > Try to install x11-drivers/xf86-input-vmmouse . It's my best guess as > I know nothing about vmware, so you are better off to > emulation@FreeBSD.org. > > > Thanks, > > Sulabh K. > > > > On Tue, Feb 19, 2013 at 2:02 AM, Jeremy Messenger < > mezz.freebsd@gmail.com> > > wrote: > >> > >> On Sat, Feb 16, 2013 at 11:15 AM, Sulabh Kausal > >> wrote: > >> > Hi, > >> > > >> > I have installed KDE4 and Xorg in FreeBsd 9.1. I am new to Unix. My > >> > mouse > >> > and keyboard work in command prompt but when I configure rc.conf file > to > >> > start KDE4 desktop automatically and reboot the machine, on login > screen > >> > I > >> > can't move mouse and can't type with keyboard. My rc.conf and > Xorg.0.log > >> > files are attached with this mail. > >> > > >> > I will be very thankful to you for the help! > >> > >> Have you tried to follow the handbook? > >> > >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11.html > >> > >> The mouse/keyboard is at 6.4.2 chapter. > >> > >> > -- > >> > Regards, > >> > Sulabh K. > >> > > >> > _______________________________________________ > >> > freebsd-gnome@freebsd.org mailing list > >> > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > >> > To unsubscribe, send any mail to " > freebsd-gnome-unsubscribe@freebsd.org" > >> > >> > >> > >> -- > >> mezz.freebsd@gmail.com - mezz@FreeBSD.org > >> FreeBSD GNOME Team > >> http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org > > > > > > > > > > -- > > Regards, > > Sulabh K. > > > > -- > mezz.freebsd@gmail.com - mezz@FreeBSD.org > FreeBSD GNOME Team > http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org > -- Regards, Sulabh K. From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 21 21:35:38 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C50AB679; Thu, 21 Feb 2013 21:35:38 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id CFDE7D98; Thu, 21 Feb 2013 21:35:36 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id 54179D48047; Thu, 21 Feb 2013 22:35:29 +0100 (CET) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 3F7199F7; Thu, 21 Feb 2013 22:35:28 +0100 (CET) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id 3A09F13AA9; Thu, 21 Feb 2013 21:35:28 +0000 (UTC) Date: Thu, 21 Feb 2013 22:35:28 +0100 From: Jeremie Le Hen To: Damjan Jovanovic Subject: Re: [patch] Wine DLL base address patches Message-ID: <20130221213528.GD92116@felucia.tataz.chchile.org> Mail-Followup-To: Damjan Jovanovic , freebsd-emulation@freebsd.org, freebsd-hackers@freebsd.org, tijl@coosemans.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, tijl@coosemans.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 21 Feb 2013 21:35:38 -0000 Hi Damjan, On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > > Wine needs some of its libraries to be loaded at specific base > addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently > lacks. > > I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that > loads libraries at their preferred base addresses > (http://www.freebsd.org/cgi/query-pr.cgi?pr=176216), as well as a port > of Prelink to FreeBSD which Wine uses to set base addresses > (http://www.freebsd.org/cgi/query-pr.cgi?pr=176283). Both work :-), > the changed dynamic loader doesn't show any problems in a few days of > testing, and prelink works with the --reloc-only option as used by > Wine. Thanks for this work. Out of curiosity, did you try to run prelink on the whole base system? If yes, did you make any measurement of the performance improvement? Thank you! -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons. From owner-freebsd-emulation@FreeBSD.ORG Thu Feb 21 22:22:14 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5AC76403; Thu, 21 Feb 2013 22:22:14 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay003.isp.belgacom.be (mailrelay003.isp.belgacom.be [195.238.6.53]) by mx1.freebsd.org (Postfix) with ESMTP id BEFFFE2; Thu, 21 Feb 2013 22:22:13 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEFAG2dJlFbs5l5/2dsb2JhbABFwRKBBRdzgh8BAQVWGAoBEAsOCgkWDwkDAgECASceBgEMAQUCAQEFiA0IvyGPDgeDQAOPHoElllGDCA Received: from 121.153-179-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.179.153.121]) by relay.skynet.be with ESMTP; 21 Feb 2013 23:20:43 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.6/8.14.6) with ESMTP id r1LMKg9M006426; Thu, 21 Feb 2013 23:20:42 +0100 (CET) (envelope-from tijl@coosemans.org) Message-ID: <51269DB3.2070603@coosemans.org> Date: Thu, 21 Feb 2013 23:20:35 +0100 From: Tijl Coosemans User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Konstantin Belousov , Damjan Jovanovic Subject: Re: [patch] Wine DLL base address patches References: <20130220154855.GF2598@kib.kiev.ua> <51253759.70508@coosemans.org> <20130221154433.GY2598@kib.kiev.ua> In-Reply-To: <20130221154433.GY2598@kib.kiev.ua> X-Enigmail-Version: 1.4.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF08F74E68299AB2CD11F700A" Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 21 Feb 2013 22:22:14 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF08F74E68299AB2CD11F700A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 21-02-2013 16:44, Konstantin Belousov wrote: > On Thu, Feb 21, 2013 at 12:57:45AM +0200, Damjan Jovanovic wrote: >> On Wed, Feb 20, 2013 at 10:51 PM, Tijl Coosemans = wrote: >>> On 20-02-2013 16:48, Konstantin Belousov wrote: >>>> On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: >>>>> Hi >>>>> >>>>> Wine needs some of its libraries to be loaded at specific base >>>>> addresses (https://wiki.freebsd.org/Wine), something FreeBSD curren= tly >>>>> lacks. >>>>> >>>>> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) t= hat >>>>> loads libraries at their preferred base addresses >>>>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176216), as well as a= port >>>>> of Prelink to FreeBSD which Wine uses to set base addresses >>>>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D176283). Both work :-= ), >>>>> the changed dynamic loader doesn't show any problems in a few days = of >>>>> testing, and prelink works with the --reloc-only option as used by >>>>> Wine. >>>>> >>>>> Please review/test/comment/commit. >>>> >>>> Unfortunately, it is not safe. MAP_FIXED overrides any previous mapp= ings >>>> which could exist at the specified address. >>> >>> I've simplified the rtld patch to a single line. The second patch mak= es >>> Wine use -Ttext-segment linker flag instead of prelink. This requires= >>> binutils from ports, but it's easier than porting prelink. >>> >> >> All of that occurred to me as well. >> >> The problem with that one-line rtld patch is that loading an >> application will now fail if any of its libraries cannot be loaded at >> their requested address. > But this is intended behaviour. Also, the default virtaddr base for the= > shared libraries is 0, so the existing binaries should be not affected.= >=20 >> >> The problem with -Ttext-segment (and isn't it just -Ttext?) is that it= >> doesn't seem to work: the base_vaddr seen by rtld will remain 0, and >> the address listed in /proc/.../map is different from what it should >> be. Also run "readelf -l" on a library compiled that way and compare >> with the output of one run through "prelink --reloc-only", you'll see >> the lowest VirtAddr and PhysAddr in LOAD headers change only with >> prelink. I really ported prelink because there was no other choice. > The -Ttext-segment does work. As indicated by Tijl, you need recent > binutils. I just verified that ld 2.32.1 obeys -Ttext-segment. >=20 > You can also take a look at the default linker script to see how > -Ttext-segment is used, look for SEGMENT_START("text-segment"). Yes, -Ttext sets the address of the .text section and -Ttext-segment that of the text segment. It does work for me. The output of /proc/.../ma= p looks correct as does the output of "info share" in winedbg, but to be sure I've asked on wine-devel mailing list if they see any problem with this approach. --------------enigF08F74E68299AB2CD11F700A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iF4EAREIAAYFAlEmnbkACgkQfoCS2CCgtiuqEgD8CK7u+iaYSadNZnZE7cQSc87a YvdFZnnS/TY6Ny+j40oA/3AREjS15QyntDDo+E+1v2sxuqkYhBCzteaRtAJnyeNV =KKZp -----END PGP SIGNATURE----- --------------enigF08F74E68299AB2CD11F700A-- From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 22 03:19:58 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0E0D496C; Fri, 22 Feb 2013 03:19:58 +0000 (UTC) (envelope-from damjan.jov@gmail.com) Received: from mail-la0-x22d.google.com (la-in-x022d.1e100.net [IPv6:2a00:1450:4010:c03::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 515AE164; Fri, 22 Feb 2013 03:19:57 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id er20so194404lab.4 for ; Thu, 21 Feb 2013 19:19:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=JlLvC+nxR8zbR2y3F7fyMqF8yQ1IOKkZvdEr8S0v5H8=; b=S9DUfDlrMIcbxw1FpwNY09qqzz4nvq3eRK5MVA7bsQj19wTXiVKuRkui1azXYp6xU/ W4CO8wWZ1sSPSj+xmggDn8jR/JvaUSxtCLTz7CD3BzII79hilWDGmbsJTzsEjmepig+d sPh8KqPiujd7166x+94VoSkARkKoRLNHgUjczsrnJZ14/clH2341628Bg427GVM7GC01 1F99qrDK2/HgAei58Q/ZpuJBjTeopSvSTm6XMprmpxLVh5GIghTXd4HoBX3mKN4iTec7 cgMGMHwZ/zc5LwbjVQZYAu6YoS29J0kjjTas9PWEZpPheW3uR9aYSXBhcLtUc5r8ku2B 2QRQ== X-Received: by 10.152.108.203 with SMTP id hm11mr376132lab.4.1361503195441; Thu, 21 Feb 2013 19:19:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.20.138 with HTTP; Thu, 21 Feb 2013 19:19:35 -0800 (PST) In-Reply-To: <20130221154433.GY2598@kib.kiev.ua> References: <20130220154855.GF2598@kib.kiev.ua> <51253759.70508@coosemans.org> <20130221154433.GY2598@kib.kiev.ua> From: Damjan Jovanovic Date: Fri, 22 Feb 2013 05:19:35 +0200 Message-ID: Subject: Re: [patch] Wine DLL base address patches To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, Tijl Coosemans X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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, 22 Feb 2013 03:19:58 -0000 On Thu, Feb 21, 2013 at 5:44 PM, Konstantin Belousov wrote: > On Thu, Feb 21, 2013 at 12:57:45AM +0200, Damjan Jovanovic wrote: >> On Wed, Feb 20, 2013 at 10:51 PM, Tijl Coosemans wrote: >> > On 20-02-2013 16:48, Konstantin Belousov wrote: >> >> On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: >> >>> Hi >> >>> >> >>> Wine needs some of its libraries to be loaded at specific base >> >>> addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently >> >>> lacks. >> >>> >> >>> I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that >> >>> loads libraries at their preferred base addresses >> >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=176216), as well as a port >> >>> of Prelink to FreeBSD which Wine uses to set base addresses >> >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=176283). Both work :-), >> >>> the changed dynamic loader doesn't show any problems in a few days of >> >>> testing, and prelink works with the --reloc-only option as used by >> >>> Wine. >> >>> >> >>> Please review/test/comment/commit. >> >> >> >> Unfortunately, it is not safe. MAP_FIXED overrides any previous mappings >> >> which could exist at the specified address. >> > >> > I've simplified the rtld patch to a single line. The second patch makes >> > Wine use -Ttext-segment linker flag instead of prelink. This requires >> > binutils from ports, but it's easier than porting prelink. >> > >> >> All of that occurred to me as well. >> >> The problem with that one-line rtld patch is that loading an >> application will now fail if any of its libraries cannot be loaded at >> their requested address. > But this is intended behaviour. Also, the default virtaddr base for the > shared libraries is 0, so the existing binaries should be not affected. In that case, and since failing to load a library only causes the process to exit when starting up and not when it calls dlopen(), I approve. >> >> The problem with -Ttext-segment (and isn't it just -Ttext?) is that it >> doesn't seem to work: the base_vaddr seen by rtld will remain 0, and >> the address listed in /proc/.../map is different from what it should >> be. Also run "readelf -l" on a library compiled that way and compare >> with the output of one run through "prelink --reloc-only", you'll see >> the lowest VirtAddr and PhysAddr in LOAD headers change only with >> prelink. I really ported prelink because there was no other choice. > The -Ttext-segment does work. As indicated by Tijl, you need recent > binutils. I just verified that ld 2.32.1 obeys -Ttext-segment. > > You can also take a look at the default linker script to see how > -Ttext-segment is used, look for SEGMENT_START("text-segment"). > My apologies: I confused -Ttext which is documented but doesn't work, with -Ttext-segment which is undocumented in FreeBSD 9.1 and might work. I would test it further, but -CURRENT doesn't installworld (ERROR: Required auditdistd user is missing, see /usr/src/UPDATING.) and I am away until next week. Prelink is now in Ports. What I'd recommend is checking if the binaries are the same, and if not, doing a diff between "readelf -a" outputs of the prelinked binary vs -Ttext-segmented binary. Also run this a few times and make sure the address is what's expected: #include #include int main(int argc, char **argv) { printf("%p\n", LoadLibrary("KERNEL32")); return 0; } mingw32-gcc hello.c -o hello.exe wine hello.exe