From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 15 03:18:06 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43FB91065672 for ; Sun, 15 Nov 2009 03:18:06 +0000 (UTC) (envelope-from beckman@angryox.com) Received: from nog.angryox.com (nog.angryox.com [70.164.19.87]) by mx1.freebsd.org (Postfix) with ESMTP id EE77A8FC18 for ; Sun, 15 Nov 2009 03:18:05 +0000 (UTC) Received: from nog.angryox.com (localhost [127.0.0.1]) by nog.angryox.com (Postfix) with ESMTP id C1CB12C3C53; Sun, 15 Nov 2009 03:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=angryox.com; h=date:from :to:cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=powerfulgood; bh=nUrA1yP4qd6rjliQOxPaZNgbdBY=; b= 0ijzRDP3/VxaDcJKj+w2HGQyaHtYhEKIjG5cGq4BXC5aSWNdl08fKOGvYgSLPCqk RsZUQy71mtijaZsWiaZpSSgXWLzcKol6v/4IjpbZIbV3rzFEyMFpve/ceoohlS1X xgvGm5ZjhJ9nieVYtUWdCz9UfkCKghz9i194rfUJkz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=angryox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; q=dns; s=powerfulgood; b=da0UF0DrE2bjOCB3c68jo3nz cixGt/J93y2+S1vJ4OOD/OanSubf39GdQxWkw82/imS/yB6+Rr7aUItXkYnhinWL ZehDQAkTycbCJMeRyoW0GAIOydGnX2PLZdFaGA0ubwCC52zVaZ+g3zaMu5BCbz0Y zylmfA1f1ucTrjWBw4w= Received: by nog.angryox.com (Postfix, from userid 1001) id A0CE22C3C21; Sun, 15 Nov 2009 03:18:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nog.angryox.com (Postfix) with ESMTP id 885F82C3C1E; Sat, 14 Nov 2009 22:18:04 -0500 (EST) Date: Sat, 14 Nov 2009 22:18:04 -0500 From: Peter Beckman To: Thierry Herbelot In-Reply-To: <200911141819.12000.thierry.herbelot@laposte.net> Message-ID: References: <200911141720.38432.thierry.herbelot@laposte.net> <200911141819.12000.thierry.herbelot@laposte.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1245317476-1258255084=:10412" Cc: "freebsd-hackers@FreeBSD.ORG" Subject: Re: Dell M600 Blade: 6.4 works, 7.x and 8.x fail to boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 03:18:06 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1245317476-1258255084=:10412 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable On Sat, 14 Nov 2009, Thierry Herbelot wrote: > Le Saturday 14 November 2009, Peter Beckman a =C3=A9crit : > [SNIP] >>>>> >>>>> then, one of the first steps would be a the dmesg of both a succeed= ing >>>>> and a failing kernels (verbose !) >>>> >>>> I tried the bootonly ISOs for 7.x and 8.x, both amd64 and i386, al= l of >>>> which fail to boot on the Dell M600. >>> >>> aha ! >>> >>> anyway, even with a CDROM, you can boot *verbose* and note where the = boot >>> stops (even if there won't be a serial console, write down the blocki= ng >>> device probe) >> >> Can you shoot me a link to the docs on how to do this? I haven't be= en >> able to find out how. > > speaking from memory : just before the kernel starts, you should have t= he > *loader* menu (with the ASCII graphics depicting beastie), where you ca= n > choose between boot options, and option 5 is boot verbose (like 4 is bo= ot > single) Not sure I have any more. Since I'm not in front of the console, and since the iDRAC only allows a "video" capture of the console, I made a video. http://drop.io/rk0eoap The Verbose option was selected, but it hung at the same place it did. = I was using the 8.0-RC3 bootonly iso. It hung just after isab0, isa0 and atrtc0 loaded. The last line: atrtc0: registered as a time-of-day clock (resolution 1000000us) The machine is just fine, I installed NetBSD 5.0.1 on it, and I have FreeBSD 7.0-RELEASE running on another blade adjacent to it. -------------------------------------------------------------------------= -- Peter Beckman Internet G= uy beckman@angryox.com http://www.angryox.co= m/ -------------------------------------------------------------------------= -- --0-1245317476-1258255084=:10412-- From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 15 03:42:10 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADE0D106566B for ; Sun, 15 Nov 2009 03:42:10 +0000 (UTC) (envelope-from beckman@angryox.com) Received: from nog.angryox.com (nog.angryox.com [70.164.19.87]) by mx1.freebsd.org (Postfix) with ESMTP id 744A38FC1C for ; Sun, 15 Nov 2009 03:42:10 +0000 (UTC) Received: from nog.angryox.com (localhost [127.0.0.1]) by nog.angryox.com (Postfix) with ESMTP id 46ECB2C3D16 for ; Sun, 15 Nov 2009 03:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=angryox.com; h=date:from :to:subject:in-reply-to:message-id:references:mime-version :content-type; s=powerfulgood; bh=hJAlaG+ij+JhdbKqN7AK+v1O+60=; b= NMmHd1hYLoV4LKTEoz2ncUDlYVwGpp8q9rhQHpdif7Ye0UxjPKat5CIucMS32xhA GNuPrflGsO57rJvrBDpzpk/YZjZEslJ0+35531+2EOq6bZJ0oxTh0NVD6SmDzCBx YpNADWqehiKD6QFostuJh11yNXBUiKlEdJsWfTqs7xk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=angryox.com; h=date:from:to :subject:in-reply-to:message-id:references:mime-version :content-type; q=dns; s=powerfulgood; b=JiLVrjqROAFkMJ6B5XFGfZ1w 4qSizbMhcKcTRNjdJlokbWwl24KB6tnWS7SlDR0f2rp1OlhVUbnrwVoEWm4RB23I JPGaP3fMGqvmaqrbgooSqxjiYo3gIbuOvShJRL6vrV128NZ/HTI46Icirm/j9OHG T5vnMQtR2S6KuE4jOcs= Received: by nog.angryox.com (Postfix, from userid 1001) id 3381C2C3D14; Sun, 15 Nov 2009 03:42:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nog.angryox.com (Postfix) with ESMTP id 30EF92C3D13 for ; Sat, 14 Nov 2009 22:42:09 -0500 (EST) Date: Sat, 14 Nov 2009 22:42:09 -0500 From: Peter Beckman To: "freebsd-hackers@FreeBSD.ORG" In-Reply-To: <200911141819.12000.thierry.herbelot@laposte.net> Message-ID: References: <200911141720.38432.thierry.herbelot@laposte.net> <200911141819.12000.thierry.herbelot@laposte.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-2049508590-1258256529=:10412" Cc: Subject: Re: Dell M600 Blade: 6.4 works, 7.x and 8.x fail to boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 03:42:10 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-2049508590-1258256529=:10412 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable On Sat, 14 Nov 2009, Thierry Herbelot wrote: > Le Saturday 14 November 2009, Peter Beckman a =C3=A9crit : > [SNIP] >>>>> >>>>> then, one of the first steps would be a the dmesg of both a succeed= ing >>>>> and a failing kernels (verbose !) >>>> >>>> I tried the bootonly ISOs for 7.x and 8.x, both amd64 and i386, al= l of >>>> which fail to boot on the Dell M600. So I was able to binary update from 6.4 to 7.0-RELEASE, but when I trie= d freebsd-update -r 8.0-RC3 upgrade After installing after that I get the same hanging I saw with the booto= nly ISO. The mpt0 device is loaded, pcib8, but after it hits atrtc0, it hangs. I'm trying what someone suggested previously -- install 8.0-RC3 using t= he 6.4 install disk via the net. I'm trying that now, but I'm not hopeful= . I think I need to give up and move on that FreeBSD isn't going to work. Beckman -------------------------------------------------------------------------= -- Peter Beckman Internet G= uy beckman@angryox.com http://www.angryox.co= m/ -------------------------------------------------------------------------= -- --0-2049508590-1258256529=:10412-- From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 15 10:49:44 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF2791065670 for ; Sun, 15 Nov 2009 10:49:44 +0000 (UTC) (envelope-from anti_spamsys@yahoo.com) Received: from web113214.mail.gq1.yahoo.com (web113214.mail.gq1.yahoo.com [98.136.164.167]) by mx1.freebsd.org (Postfix) with SMTP id 8E7618FC1F for ; Sun, 15 Nov 2009 10:49:44 +0000 (UTC) Received: (qmail 53326 invoked by uid 60001); 15 Nov 2009 10:49:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1258282184; bh=rA9e9cfT1kcozlMX4/ZRfKgCw1D7XRdqFU3OoYVf3Gk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AEIaczl+x+eWXoGa3Kw7vnQ5+de7PUd6xQMwjzXDYdyTBMlHP/n5K3tccBaAozO3Pn8NELRUnMV9al6CpyT8QmS2bU3bPokEnGdZjG+XD1/rMqDQ8cuWGHxCjM+2PUdyW4Zw0+GMQjmzgxzSJCnOQPfUMwlNZZLMOcVGjv672W0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qMaEpNxfgxVGvODaf5aEN0+KCMkTjBIo3iGVxNhiNKDwSIPxPzfimuEeDyXYKi38kMkHjnCBcHH7r3Mti9uP+j8qILbON2uw6/SjSaFIB5Qv5ToEp0ELuwJUFT+EHUlOCbJg71pf38YVIyXpPXrdRapMqR7g98SKPp2xMNO7Inw=; Message-ID: <159670.52451.qm@web113214.mail.gq1.yahoo.com> X-YMail-OSG: 1bKI4ucVM1l_t5hGKNvUdidtpdBq7MW3xyGzL5bgS291ZRHDRD8eVSoXkO0k2jwJaee9kaeqppVb_twcw4qQnb2kYlzlNTmfOV3mpBXTM95ufid1osFs.XtvPRHL2CRS0bFVWox6nd4o_ekLdLxSetFDEawu_U4RZgDjtRGYt1k0LE5F5MpdFO.OHnSt5zEHlSEldixE8CUL.UJL2RcTRZrQ9XLJqE1PTmcn1V1bI0e3IB.5LfxQzwBjTfFKy1a480xGQjJY2GR.bVUJbUJmQyjFyQJBvRJYUUmTerzToFw3zgZiHciNaQE_3Cd3LODCi2ENNuvjoBIuSMgJuwN7M_x7YZUYauz9uCquzj52IJWHKdBZutpEz9CVR7gZauM- Received: from [99.187.239.172] by web113214.mail.gq1.yahoo.com via HTTP; Sun, 15 Nov 2009 02:49:43 PST X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.7.361.4 Date: Sun, 15 Nov 2009 02:49:43 -0800 (PST) From: Trever To: rea-fbsd@codelabs.ru In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@FreeBSD.org Subject: Re: bad source in the distro iso's X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 10:49:44 -0000 The problem is on our end, not the release(s), though I had convinced mysel= f otherwise. Sorry for my momentary loss of confidence in the releases! A= nd, I'm not sure my original post should have gone to this list.=0A=0AWhat = I can say is that whatever the heck it is we are doing wrong on our end is = not obvious, but that's a different issue than the issue of knowing whether= or not we can trust the release(s), which it seems we certainly can. That= 's a relief.=0A=0AWith regard to 8.0 RC2&3, simply using the src/install.sh= script for the src works without the errors and corrupted files. Our scri= pt does the same thing, but obviously not quite. Weird, but we'll figure i= t out.=0A=0ARe 7.2 iso sources, based on the responses that no one has had = this type of problem, I assume this is our end again.=0A=0AThanks all!=0A= =0ATrever=0A=0A=0A=0A=0A--- On Fri, 11/13/09, Eygene Ryabinkin wrote:=0A=0A> From: Eygene Ryabinkin =0A> = Subject: Re: bad source in the distro iso's=0A> To: "Trever" =0A> Cc: freebsd-hackers@FreeBSD.org=0A> Date: Friday, November 1= 3, 2009, 11:57 PM=0A> Trever wrote:=0A> > I noticed in 7.2 that the /usr/sr= c installed from the=0A> ISO downloads=0A> > would not build without first = sup'ing for a few=0A> updates.=0A> > (disc1.iso's)=0A> >=0A> > I notice in = the 8.0RC2&3 that some of the source=0A> files are corrupted.=0A> =0A> Can = you be precise in what's going wrong?=A0 What=0A> objects can't be built,= =0A> what are error messages, etc?=0A> =0A> Thanks!=0A> -- =0A> Eygene=0A> = _=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=0A> ___=A0 =A0 =A0=A0=A0_.--.=A0=A0=A0#= =0A> =0A> \`.|\..----...-'`=A0=A0=A0`-._.-'_.-'`=A0=A0=A0#=A0=0A> Remember = that it is hard=0A> /=A0 ' `=A0 =A0 =A0 =A0=A0=A0,=A0=0A> =A0 =A0=A0=A0__.= --'=A0 =A0 =A0 #=A0=0A> to read the on-line manual=0A> )/' _/=A0=0A> =A0= =A0=A0\=A0=A0=A0`-_,=A0=A0=A0/=A0=0A> =A0 =A0 =A0 =A0 =A0 #=A0 while=0A> si= ngle-stepping the kernel.=0A> `-'" `"\_=A0 ,_.-;_.-\_ ',=A0=0A> fsc/as=A0= =A0=A0#=0A> =A0=0A> =A0=A0=A0_.-'_./=A0=A0=A0{_.'=A0=A0=A0;=0A> /=A0 =A0 = =A0 =A0 =A0=A0=A0#=A0=0A> =A0 -- FreeBSD Developers handbook=0A> =A0 =A0 {_= .-``-'=A0 =A0 =A0=0A> =A0=A0=A0{_/=A0 =A0 =A0 =A0 =A0=0A> =A0 #=0A> _______= ________________________________________=0A> freebsd-hackers@freebsd.org=0A= > mailing list=0A> http://lists.freebsd.org/mailman/listinfo/freebsd-hacker= s=0A> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd= .org"=0A> =0A=0A=0A From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 15 17:20:27 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF75B1065676 for ; Sun, 15 Nov 2009 17:20:27 +0000 (UTC) (envelope-from prirun@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 46E6C8FC15 for ; Sun, 15 Nov 2009 17:20:27 +0000 (UTC) Received: by fxm27 with SMTP id 27so5226710fxm.3 for ; Sun, 15 Nov 2009 09:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Jb9pu+c0z5ePH+LLGobTKP094sBzB3xsIcAW7mtC0Z8=; b=NrjJ9IwaGCZ8hXXubHuZHnTjR56jdZmi6eaYgS5tLCX0Fa/iWhFOBuzSvR766mlglV ZFFCSJdyKFw+0f4dFM3451YGxwSboKwUKPEWddBAB7d3XFqahVdWcVh7CITRV+n6VjbN r24aSfha8uTLKHwK8nRuZWhZotfSbTilDQTq0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=f442j2KnvPtskBF39CO1lwZ7U3TV23wXm8b76lsfuoRu8eccVhmar/Ls0+D5CctAAB sTa5HreI4TNIR7U1TYGUtzunQcz6IVBwswBcQXMGmnmS3d+oEslUKKZd0yP9rZPwICKH tqSWZCh28wqDovvmkjbAoNKFYl/NgDTcAZOkY= MIME-Version: 1.0 Received: by 10.223.29.193 with SMTP id r1mr1031792fac.29.1258303648687; Sun, 15 Nov 2009 08:47:28 -0800 (PST) In-Reply-To: References: Date: Sun, 15 Nov 2009 11:47:28 -0500 Message-ID: From: Jim Wilcoxson To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: acl_from_text leaking memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 17:20:27 -0000 I've been working on a new backup program, HashBackup, and believe I have found a memory leak with ACLs in PCBSD/FreeBSD 7.1 and OSX (Leopard). acl_from_text is a function that takes a text string as input, and returns a pointer to a malloc'd acl. This acl is then freed with acl_free. I noticed that acl_from_text appears to leak memory. This is not used during the backup of a filesystem, but is needed to do a restore. After looking at the acl_from_text source in /usr/src/lib/libc/posix1e (from PCBSD7.1), I believe the problem is that the duplicate text string, mybuf_p, is not freed on normal return of this function. Here is the end of this function: } #if 0 /* XXX Should we only return ACLs valid according to acl_valid? */ /* Verify validity of the ACL we read in. */ if (acl_valid(acl) == -1) { errno = EINVAL; goto error_label; } #endif return(acl); error_label: acl_free(acl); free(mybuf_p); return(NULL); } I think there should be a free(mybuf_p) before return(acl). Here is a PCBSD/FreeBSD test program that causes the memory leak: #include #include #include main() { acl_t acl; char* acltext; acltext = "user::rw-\n group::r--\n mask::r--\n other::r--\n"; while (1) { acl = acl_from_text(acltext); if (acl == NULL) printf("acl_from_text failed\n"); if (acl_free(acl) != 0) printf("acl_free failed\n"); } } I've subscribed to the lists for a few days in case there are questions or I can help test something. Thanks, Jim -- HashBackup beta: http://sites.google.com/site/hashbackup From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 02:56:39 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF8131065670 for ; Mon, 16 Nov 2009 02:56:39 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5EF148FC18 for ; Mon, 16 Nov 2009 02:56:39 +0000 (UTC) Received: (qmail 307 invoked by uid 399); 16 Nov 2009 02:56:38 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 16 Nov 2009 02:56:38 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B00BF6E.8070606@FreeBSD.org> Date: Sun, 15 Nov 2009 18:56:46 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: David DEMELIER References: In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Alps GlidePoint driver for synaptics. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 02:56:39 -0000 David DEMELIER wrote: > Hello there, > > I noticed that for the moment there is no support for alps based > touchpads, is there anyone working on a driver for -CURRENT ? By "no support" do you mean that it does not work at all, even with moused? Or do you mean no support for custom features of the touchpad? I have a similar model on my Dell laptop and it works fine with moused for basic features. It's old enough though that it doesn't have any features that are not basic. :) Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 09:52:00 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D6701065672 for ; Mon, 16 Nov 2009 09:52:00 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id E3CEB8FC12 for ; Mon, 16 Nov 2009 09:51:58 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 0A58F6D41C; Mon, 16 Nov 2009 09:51:56 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id BE4A1844D2; Mon, 16 Nov 2009 10:51:56 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Trever References: <159670.52451.qm@web113214.mail.gq1.yahoo.com> Date: Mon, 16 Nov 2009 10:51:56 +0100 In-Reply-To: <159670.52451.qm@web113214.mail.gq1.yahoo.com> (Trever's message of "Sun, 15 Nov 2009 02:49:43 -0800 (PST)") Message-ID: <86lji6pzk3.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@FreeBSD.org Subject: Re: bad source in the distro iso's X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 09:52:00 -0000 Trever writes: > With regard to 8.0 RC2&3, simply using the src/install.sh script for > the src works without the errors and corrupted files. I wonder why we still bother splitting the tarballs... it's not like anyone is going to try installing 8.0 from floppies. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 12:26:44 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C38B31065694 for ; Mon, 16 Nov 2009 12:26:44 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout4.freenet.de (mout4.freenet.de [IPv6:2001:748:100:40::2:6]) by mx1.freebsd.org (Postfix) with ESMTP id 5E5D18FC32 for ; Mon, 16 Nov 2009 12:26:44 +0000 (UTC) Received: from [195.4.92.10] (helo=0.mx.freenet.de) by mout4.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #92) id 1NA0fK-0004kI-FQ; Mon, 16 Nov 2009 13:26:42 +0100 Received: from te89d.t.pppool.de ([89.55.232.157]:24762 helo=ernst.jennejohn.org) by 0.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #94) id 1NA0fJ-0006Q5-RH; Mon, 16 Nov 2009 13:26:42 +0100 Date: Mon, 16 Nov 2009 13:26:41 +0100 From: Gary Jennejohn To: Jim Wilcoxson Message-ID: <20091116132641.6340432b@ernst.jennejohn.org> In-Reply-To: References: X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.2; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: acl_from_text leaking memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 12:26:44 -0000 On Sun, 15 Nov 2009 11:47:28 -0500 Jim Wilcoxson wrote: > I've been working on a new backup program, HashBackup, and believe I > have found a memory leak with ACLs in PCBSD/FreeBSD 7.1 and OSX > (Leopard). > > acl_from_text is a function that takes a text string as input, and > returns a pointer to a malloc'd acl. This acl is then freed with > acl_free. I noticed that acl_from_text appears to leak memory. This > is not used during the backup of a filesystem, but is needed to do a > restore. > > After looking at the acl_from_text source in /usr/src/lib/libc/posix1e > (from PCBSD7.1), I believe the problem is that the duplicate text > string, mybuf_p, is not freed on normal return of this function. Here > is the end of this function: > [snip code] Looks to me like you're right. Have you tried applying the suggested change and testing it for regressions? Reporting that it works without side effects would definitely be convincing and increase the chances of getting it committed. --- Gary Jennejohn From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 12:55:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0A9E1065672 for ; Mon, 16 Nov 2009 12:55:19 +0000 (UTC) (envelope-from lujiandong1001@yahoo.com.cn) Received: from web15707.mail.cnb.yahoo.com (web15707.mail.cnb.yahoo.com [202.165.102.74]) by mx1.freebsd.org (Postfix) with SMTP id B3C4A8FC0C for ; Mon, 16 Nov 2009 12:55:18 +0000 (UTC) Received: (qmail 44017 invoked by uid 60001); 16 Nov 2009 12:28:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.cn; s=s1024; t=1258374515; bh=M6op+hCeI35i5JP8MCDESfBmdsPe2IPpymbw1hpxE5I=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=pTWJwu/c+NyozBH4NxqjBpMGC8m/bzySxSZHMYnCe4gnsr+qxa1BOvchVHn2gjqcZHinr7rMvlQBrDLEhIY8NGS0CPRboV0gMFQCzUnG6+sEKncnofAfhdqQo4NYzTEFA0RrryZM7fUPpaoXoqS7hmPjU7p8r/9gFB1oqtfHIeg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=41w5f57Y1AVLNDqfcYw2DA5oMIoUJ+NEvmKXIE6ADtCOsZZ4823w+u5BaCDWGnkZCxpTL5DNc6beBPzBh2vaO9WO7htpxTPAcjddTulltoXOgbZlFW5J82SlTmuuAVmTeBXz02NDkG0OoxxmbidJSlG88sfU1l4KHeZeiNhWypM=; Message-ID: <900874.43629.qm@web15707.mail.cnb.yahoo.com> X-YMail-OSG: 4W2zqkEVM1mQO6VQih3PUOT6BqqQuvcjL4Fv.NWPEFEtXw5lFR3Kf7p2FCDu5mh2bGvnIxbGUBfAiiZcix2YU5YPh4WiiVjvR2Owo.YS2j6_k.zSzTzKNXlPvBB.eooynPCGwrQ9XbyGXHcYKD3CTyABD2v6qPpK0DU_6leeAo9ry4C6lo9N.7hGdGfEBabU_6U4Ra9B_4k6rv43DHDevUMLpWgf_pZ7zkQuv2FKlS1aPHyXeYogV8y17HLTLhc- Received: from [218.241.83.19] by web15707.mail.cnb.yahoo.com via HTTP; Mon, 16 Nov 2009 20:28:35 CST X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.7.361.4 Date: Mon, 16 Nov 2009 20:28:35 +0800 (CST) From: Jiandong Lu To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: how to build libthr except other components of 'world' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 12:55:19 -0000 --- 09=E5=B9=B411=E6=9C=8816=E6=97=A5=EF=BC=8C=E5=91=A8=E4=B8=80, Jiandong = Lu =E5=86=99=E9=81=93=EF=BC=9A =E5=8F=91=E4=BB=B6=E4=BA=BA: Jiandong Lu =E4=B8=BB=E9=A2=98: how to build libthr except other components of 'world' =E6=94=B6=E4=BB=B6=E4=BA=BA: freebsd-threads@freebsd.org =E6=97=A5=E6=9C=9F: 2009=E5=B9=B411=E6=9C=8816=E6=97=A5,=E5=91=A8=E4=B8=80,= =E4=B8=8B=E5=8D=886:48 Hi,everyone, =C2=A0=C2=A0=C2=A0 I checkout FreeBSD=E2=80=98s source codes to my /usr/src =C2=A0=C2=A0=C2=A0 I use command=20 =C2=A0=C2=A0=C2=A0 make buildworld=20 =C2=A0=C2=A0=C2=A0 int directory /usr/src to build a world.I want to do som= e debug to lib /usr/src/lib/libthr.If I modified some files in /usr/src/lib= /libthr/thread, how could I build libthr except other components of world? =C2=A0=C2=A0 btw,I execute command=20 =C2=A0=C2=A0 make =C2=A0=C2=A0 in /usr/src/lib/libthr get this : cc -O2 -fno-strict-aliasing -pipe=C2=A0 -DPTHREAD_KERNEL -I/usr/src/lib/lib= thr/../libc/include -I/usr/src/lib/libthr/thread=C2=A0 -I/usr/src/lib/libth= r/../../include -I/usr/src/lib/libthr/arch/i386/include -I/usr/src/lib/libt= hr/sys -I/usr/src/lib/libthr/../../libexec/rtld-elf -I/usr/src/lib/libthr/.= ./../libexec/rtld-elf/i386 -I/usr/src/lib/libthr/../libthread_db=0A -Winlin= e -D_PTHREADS_INVARIANTS -DSYSCALL_COMPAT -Wsystem-headers -Wall -Wno-forma= t-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wp= ointer-arith -Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/libthr/ar= ch/i386/i386/pthread_md.c In file included from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:33: /usr/src/lib/libthr/../../include/string.h:86: warning: no previous prototy= pe for 'strdup' /usr/src/lib/libthr/../../include/string.h: In function 'strdup': /usr/src/lib/libthr/../../include/string.h:86: error: expected declaration = specifiers before '__malloc_like' /usr/src/lib/libthr/../../include/string.h:96: warning: '__pure__' attribut= e ignored /usr/src/lib/libthr/../../include/string.h:101: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:104: error: expected '=3D', ',',= ';', 'asm' or '__attribute__' before '__malloc_like' /usr/src/lib/libthr/../../include/string.h:105:=0A warning: '__pure__' attr= ibute ignored /usr/src/lib/libthr/../../include/string.h:108: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:110: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:111: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:118: warning: '__pure__' attribu= te ignored /usr/src/lib/libthr/../../include/string.h:119: warning: '__pure__' attribu= te ignored In file included from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:34: /usr/src/lib/libthr/../../libexec/rtld-elf/rtld_tls.h:60: error: storage cl= ass specified for parameter '_rtld_allocate_tls' /usr/src/lib/libthr/../../libexec/rtld-elf/rtld_tls.h:67: error: storage cl= ass specified for parameter '_rtld_free_tls' In file included from=0A /usr/src/lib/libthr/arch/i386/include/pthread_md.h= :36, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:= 36: /usr/src/lib/libthr/../../include/stddef.h:45: error: storage class specifi= ed for parameter 'ptrdiff_t' /usr/src/lib/libthr/../../include/stddef.h:49: error: storage class specifi= ed for parameter 'rune_t' /usr/src/lib/libthr/../../include/stddef.h:61: error: storage class specifi= ed for parameter 'wchar_t' In file included from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:36: /usr/src/lib/libthr/arch/i386/include/pthread_md.h:52: warning: empty decla= ration /usr/src/lib/libthr/arch/i386/include/pthread_md.h:88: error: expected '=3D= ', ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/include/pthread_md.h:95: error: expected '=3D= ', ',', ';', 'asm' or '__attribute__' before '{'=0A token /usr/src/lib/libthr/arch/i386/include/pthread_md.h:102: error: expected '= =3D', ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:40: error: expected '=3D', = ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:54: error: expected '=3D', = ',', ';', 'asm' or '__attribute__' before '{' token /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:57: error: old-style parame= ter declarations in prototyped function definition /usr/src/lib/libthr/../../include/string.h:86: error: parameter name omitte= d /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:57: error: expected '{' at = end of input *** Error code 1 Stop in /usr/src/lib/libthr. ---------------------------------- thanks. =C2=A0=20 =0A=0A=0A =E5=A5=BD=E7=8E=A9=E8=B4=BA=E5=8D=A1=E7=AD=89=E4=BD=A0=E5= =8F=91=EF=BC=8C=E9=82=AE=E7=AE=B1=E8=B4=BA=E5=8D=A1=E5=85=A8=E6=96=B0=E4=B8= =8A=E7=BA=BF=EF=BC=81=0A=0A=0A _______________________________________= ____________________ =0A =E5=A5=BD=E7=8E=A9=E8=B4=BA=E5=8D=A1=E7=AD=89=E4= =BD=A0=E5=8F=91=EF=BC=8C=E9=82=AE=E7=AE=B1=E8=B4=BA=E5=8D=A1=E5=85=A8=E6=96= =B0=E4=B8=8A=E7=BA=BF=EF=BC=81 =0Ahttp://card.mail.cn.yahoo.com/ From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 12:57:10 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D2BD106566B for ; Mon, 16 Nov 2009 12:57:10 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [66.246.138.153]) by mx1.freebsd.org (Postfix) with ESMTP id E9EBC8FC14 for ; Mon, 16 Nov 2009 12:57:09 +0000 (UTC) Received: from unknown (87-194-158-129.bethere.co.uk [87.194.158.129]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 9E44181AA; Mon, 16 Nov 2009 12:57:08 +0000 (UTC) Date: Mon, 16 Nov 2009 12:56:25 +0000 From: Bruce Cran To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= Message-ID: <20091116125625.000058a7@unknown> In-Reply-To: <86lji6pzk3.fsf@ds4.des.no> References: <159670.52451.qm@web113214.mail.gq1.yahoo.com> <86lji6pzk3.fsf@ds4.des.no> X-Mailer: Claws Mail 3.7.2cvs15 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Trever , freebsd-hackers@FreeBSD.org Subject: Re: bad source in the distro iso's X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 12:57:10 -0000 On Mon, 16 Nov 2009 10:51:56 +0100 Dag-Erling Sm=F8rgrav wrote: > Trever writes: > > With regard to 8.0 RC2&3, simply using the src/install.sh script for > > the src works without the errors and corrupted files. >=20 > I wonder why we still bother splitting the tarballs... it's not like > anyone is going to try installing 8.0 from floppies. See http://lists.freebsd.org/pipermail/freebsd-stable/2009-October/052241.html - apparently people are still wanting to install from floppies. --=20 Bruce Cran From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 13:05:36 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9980410656AB for ; Mon, 16 Nov 2009 13:05:36 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 5B2B08FC13 for ; Mon, 16 Nov 2009 13:05:36 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 5395A6D41B; Mon, 16 Nov 2009 13:05:35 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 2427A8450B; Mon, 16 Nov 2009 14:05:35 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Bruce Cran References: <159670.52451.qm@web113214.mail.gq1.yahoo.com> <86lji6pzk3.fsf@ds4.des.no> <20091116125625.000058a7@unknown> Date: Mon, 16 Nov 2009 14:05:35 +0100 In-Reply-To: <20091116125625.000058a7@unknown> (Bruce Cran's message of "Mon, 16 Nov 2009 12:56:25 +0000") Message-ID: <867htqoc0w.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Trever , freebsd-hackers@FreeBSD.org Subject: Re: bad source in the distro iso's X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 13:05:36 -0000 Bruce Cran writes: > See > http://lists.freebsd.org/pipermail/freebsd-stable/2009-October/052241.html > - apparently people are still wanting to install from floppies. The mind boggles. If you can't boot from CD-ROM, use a USB stick. If you can't boot from a USB stick, use PXE. If your NIC doesn't do PXE, you can get one that does for $20. If that is not an option either, move the disk to another machine, install, and move it back. If you really want to install 7.2 from floppies, you will need 76 disks just to get a bootable system. For 8.0, you will need 84. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 13:08:46 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47669106566C for ; Mon, 16 Nov 2009 13:08:46 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 08B298FC14 for ; Mon, 16 Nov 2009 13:08:45 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id EB3346D44C; Mon, 16 Nov 2009 13:08:44 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id C953C844D2; Mon, 16 Nov 2009 14:08:44 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Bruce Cran References: <159670.52451.qm@web113214.mail.gq1.yahoo.com> <86lji6pzk3.fsf@ds4.des.no> <20091116125625.000058a7@unknown> <867htqoc0w.fsf@ds4.des.no> Date: Mon, 16 Nov 2009 14:08:44 +0100 In-Reply-To: <867htqoc0w.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Mon, 16 Nov 2009 14:05:35 +0100") Message-ID: <863a4eobvn.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Trever , freebsd-hackers@FreeBSD.org Subject: Re: bad source in the distro iso's X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 13:08:46 -0000 Dag-Erling Sm=C3=B8rgrav writes: > If you really want to install 7.2 from floppies, you will need 76 disks > just to get a bootable system. For 8.0, you will need 84. That's for i386, btw. For amd64, the numbers are 83 for 7.2 and 93 for 8.0. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 17:34:06 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A98CF106566B for ; Mon, 16 Nov 2009 17:34:06 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outB.internet-mail-service.net (outb.internet-mail-service.net [216.240.47.225]) by mx1.freebsd.org (Postfix) with ESMTP id 8EEFF8FC1B for ; Mon, 16 Nov 2009 17:34:06 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 2EEEE14DE8C; Mon, 16 Nov 2009 09:34:07 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id B51C82D6018; Mon, 16 Nov 2009 09:34:05 -0800 (PST) Message-ID: <4B018D0C.8060601@elischer.org> Date: Mon, 16 Nov 2009 09:34:04 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <159670.52451.qm@web113214.mail.gq1.yahoo.com> <86lji6pzk3.fsf@ds4.des.no> <20091116125625.000058a7@unknown> <867htqoc0w.fsf@ds4.des.no> In-Reply-To: <867htqoc0w.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Bruce Cran , Trever , freebsd-hackers@FreeBSD.org Subject: Re: bad source in the distro iso's X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 17:34:06 -0000 Dag-Erling Smørgrav wrote: > Bruce Cran writes: >> See >> http://lists.freebsd.org/pipermail/freebsd-stable/2009-October/052241.html >> - apparently people are still wanting to install from floppies. > > The mind boggles. > > If you can't boot from CD-ROM, use a USB stick. If you can't boot from > a USB stick, use PXE. If your NIC doesn't do PXE, you can get one that > does for $20. If that is not an option either, move the disk to another > machine, install, and move it back. > > If you really want to install 7.2 from floppies, you will need 76 disks > just to get a bootable system. For 8.0, you will need 84. > > DES I think the easiest answer would be: install 6.x or something, and upgrade. From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 20:32:07 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FA36106566B for ; Mon, 16 Nov 2009 20:32:07 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from Mail.elbekies.net (mail.elbekies.net [217.6.211.146]) by mx1.freebsd.org (Postfix) with ESMTP id 1780C8FC1B for ; Mon, 16 Nov 2009 20:32:06 +0000 (UTC) Received: from mail.vtec.ipme.de (C4906.c.ppp-pool.de [62.104.73.6]) by Mail.elbekies.net (Postfix) with ESMTPA id 6312667885; Mon, 16 Nov 2009 21:13:04 +0100 (CET) Received: from [192.168.16.4] (dardanos.sz.vwsoft.com [192.168.16.4]) by mail.vtec.ipme.de (Postfix) with ESMTP id E127734278; Mon, 16 Nov 2009 21:12:48 +0100 (CET) Message-ID: <4B01B23F.8040002@vwsoft.com> Date: Mon, 16 Nov 2009 21:12:47 +0100 From: volker@vwsoft.com User-Agent: Thunderbird 2.0.0.23 (X11/20090902) MIME-Version: 1.0 To: Jim Wilcoxson References: In-Reply-To: X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-ID: 6312667885.AA73E X-Elbekies-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com MailScanner-NULL-Check: 1259007193.09806@9YnDq+u+55Q3Uss2rwL9wA Cc: freebsd-hackers@freebsd.org Subject: Re: acl_from_text leaking memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 20:32:07 -0000 On 01/-10/63 20:59, Jim Wilcoxson wrote: > I've been working on a new backup program, HashBackup, and believe I > have found a memory leak with ACLs in PCBSD/FreeBSD 7.1 and OSX > (Leopard). > > acl_from_text is a function that takes a text string as input, and > returns a pointer to a malloc'd acl. This acl is then freed with > acl_free. I noticed that acl_from_text appears to leak memory. This > is not used during the backup of a filesystem, but is needed to do a > restore. > > After looking at the acl_from_text source in /usr/src/lib/libc/posix1e > (from PCBSD7.1), I believe the problem is that the duplicate text > string, mybuf_p, is not freed on normal return of this function. Here > is the end of this function: > > } > > #if 0 > /* XXX Should we only return ACLs valid according to acl_valid? */ > /* Verify validity of the ACL we read in. */ > if (acl_valid(acl) == -1) { > errno = EINVAL; > goto error_label; > } > #endif > > return(acl); > > error_label: > acl_free(acl); > free(mybuf_p); > return(NULL); > } > > I think there should be a free(mybuf_p) before return(acl). > > Here is a PCBSD/FreeBSD test program that causes the memory leak: > > #include > #include > #include > > main() { > acl_t acl; > char* acltext; > > acltext = "user::rw-\n group::r--\n mask::r--\n other::r--\n"; > while (1) { > acl = acl_from_text(acltext); > if (acl == NULL) > printf("acl_from_text failed\n"); > if (acl_free(acl) != 0) > printf("acl_free failed\n"); > } > } > > I've subscribed to the lists for a few days in case there are > questions or I can help test something. > > Thanks, > Jim > -- > HashBackup beta: http://sites.google.com/site/hashbackup > Jim, you may want to have a look at the manpage acl_from_text(3): "...This function may cause memory to be allocated. The caller should free any releasable memory, when the new ACL is no longer required, by calling acl_free(3) with the (void *)acl_t as an argument." Please use an acl_free(void *obj_p) call afterwards to avoid leaking memory. Volker From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 20:42:06 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 184FE1065676 for ; Mon, 16 Nov 2009 20:42:06 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout5.freenet.de (mout5.freenet.de [IPv6:2001:748:100:40::2:7]) by mx1.freebsd.org (Postfix) with ESMTP id CBA708FC14 for ; Mon, 16 Nov 2009 20:42:05 +0000 (UTC) Received: from [195.4.92.17] (helo=7.mx.freenet.de) by mout5.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #92) id 1NA8Oi-00073B-9u; Mon, 16 Nov 2009 21:42:04 +0100 Received: from te89d.t.pppool.de ([89.55.232.157]:30522 helo=ernst.jennejohn.org) by 7.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #94) id 1NA8Oi-0001Hz-1l; Mon, 16 Nov 2009 21:42:04 +0100 Date: Mon, 16 Nov 2009 21:42:02 +0100 From: Gary Jennejohn To: volker@vwsoft.com Message-ID: <20091116214202.480a0aa7@ernst.jennejohn.org> In-Reply-To: <4B01B23F.8040002@vwsoft.com> References: <4B01B23F.8040002@vwsoft.com> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.2; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Jim Wilcoxson Subject: Re: acl_from_text leaking memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 20:42:06 -0000 On Mon, 16 Nov 2009 21:12:47 +0100 volker@vwsoft.com wrote: > you may want to have a look at the manpage acl_from_text(3): > > "...This function may cause memory to be allocated. The caller should > free any releasable memory, when the new ACL is no longer required, by > calling acl_free(3) with the (void *)acl_t as an argument." > > Please use an acl_free(void *obj_p) call afterwards to avoid leaking memory. > The suggested fix was appplied to HEAD today. Apparently, the man page should now be updated. --- Gary Jennejohn From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 21:21:02 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30BFD1065679 for ; Mon, 16 Nov 2009 21:21:02 +0000 (UTC) (envelope-from prirun@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id BA9978FC17 for ; Mon, 16 Nov 2009 21:21:01 +0000 (UTC) Received: by fxm27 with SMTP id 27so6510975fxm.3 for ; Mon, 16 Nov 2009 13:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Lt7ywxiePBtysEJfZ7ogIBXeEmSS2XlEdXq8ZcdKZfs=; b=fcapPOmVKcPAsef60xLAPh70SS6MzpKWnOTToSprytc6SnT+G8u297OtiGtza5AKmF FsrvEIkE0DQqj3OeYu8xWb1fZNJ0sMRg3iph5dqhngqFlwhq1fZd2Jo5ZcoXTum0TxoK iCUlpp9LiEm83SCGswxi0L8b6pd8iXO+lbWrQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=jn5OIJ2HUSovMd2vNiFxMVrFJbMU6YixkAk4qLz6ekY377IIPa1Jughb/DCcw7mFy6 X5c5gEXL0XExIVIu340qAPGfLN6tQryAy+EEm5mASY4NiWEXNsFvwGVEVIhHCeeAWaMf ve5btZTP9cFeU5zUMbg/bAQybq+ht9B2C2ehE= MIME-Version: 1.0 Received: by 10.223.14.13 with SMTP id e13mr1278572faa.85.1258406460746; Mon, 16 Nov 2009 13:21:00 -0800 (PST) In-Reply-To: <20091116214202.480a0aa7@ernst.jennejohn.org> References: <4B01B23F.8040002@vwsoft.com> <20091116214202.480a0aa7@ernst.jennejohn.org> Date: Mon, 16 Nov 2009 16:21:00 -0500 Message-ID: From: Jim Wilcoxson To: gary.jennejohn@freenet.de Content-Type: text/plain; charset=ISO-8859-1 Cc: volker@vwsoft.com, freebsd-hackers@freebsd.org Subject: Re: acl_from_text leaking memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 21:21:02 -0000 The man page is correct and should not be changed. In the example program I submitted, it does call acl_free; this is not where the leak occurs. The leak occurs because of a temporary string that acl_from_text allocates to parse the text. Jim On 11/16/09, Gary Jennejohn wrote: > On Mon, 16 Nov 2009 21:12:47 +0100 > volker@vwsoft.com wrote: > >> you may want to have a look at the manpage acl_from_text(3): >> >> "...This function may cause memory to be allocated. The caller should >> free any releasable memory, when the new ACL is no longer required, by >> calling acl_free(3) with the (void *)acl_t as an argument." >> >> Please use an acl_free(void *obj_p) call afterwards to avoid leaking >> memory. >> > > The suggested fix was appplied to HEAD today. Apparently, the man page > should > now be updated. > > --- > Gary Jennejohn > From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 16 22:01:30 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F4F21065672 for ; Mon, 16 Nov 2009 22:01:30 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from Mail.elbekies.net (mail.elbekies.net [217.6.211.146]) by mx1.freebsd.org (Postfix) with ESMTP id 030438FC13 for ; Mon, 16 Nov 2009 22:01:29 +0000 (UTC) Received: from mail.vtec.ipme.de (C4906.c.ppp-pool.de [62.104.73.6]) by Mail.elbekies.net (Postfix) with ESMTPA id 7A91567885; Mon, 16 Nov 2009 23:01:20 +0100 (CET) Received: from [192.168.16.4] (dardanos.sz.vwsoft.com [192.168.16.4]) by mail.vtec.ipme.de (Postfix) with ESMTP id B8E5134278; Mon, 16 Nov 2009 23:01:12 +0100 (CET) Message-ID: <4B01CBA7.8030308@vwsoft.com> Date: Mon, 16 Nov 2009 23:01:11 +0100 From: volker@vwsoft.com User-Agent: Thunderbird 2.0.0.23 (X11/20090902) MIME-Version: 1.0 To: Jim Wilcoxson References: <4B01B23F.8040002@vwsoft.com> <20091116214202.480a0aa7@ernst.jennejohn.org> In-Reply-To: X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-ID: 7A91567885.AD58E X-Elbekies-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com MailScanner-NULL-Check: 1259013688.66949@301/zF2w6UTVSrwIYZ5VPg Cc: freebsd-hackers@freebsd.org Subject: Re: acl_from_text leaking memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2009 22:01:30 -0000 On 11/16/09 22:21, Jim Wilcoxson wrote: > The man page is correct and should not be changed. > > In the example program I submitted, it does call acl_free; this is not > where the leak occurs. The leak occurs because of a temporary string > that acl_from_text allocates to parse the text. > > Jim > > On 11/16/09, Gary Jennejohn wrote: >> On Mon, 16 Nov 2009 21:12:47 +0100 >> volker@vwsoft.com wrote: >> >>> you may want to have a look at the manpage acl_from_text(3): >>> >>> "...This function may cause memory to be allocated. The caller should >>> free any releasable memory, when the new ACL is no longer required, by >>> calling acl_free(3) with the (void *)acl_t as an argument." >>> >>> Please use an acl_free(void *obj_p) call afterwards to avoid leaking >>> memory. >>> >> The suggested fix was appplied to HEAD today. Apparently, the man page >> should >> now be updated. >> >> --- >> Gary Jennejohn >> > Yes, I see and c199317 fixed that leak correctly. Jim is right - the manpage still should not be changed as the caller is still responsible for free'ing allocated memory. Volker From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 17 10:20:23 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47A541065676 for ; Tue, 17 Nov 2009 10:20:23 +0000 (UTC) (envelope-from sharadc@in.niksun.com) Received: from in.niksun.com (210.18.76.166.sify.net [210.18.76.166]) by mx1.freebsd.org (Postfix) with ESMTP id 323D98FC2A for ; Tue, 17 Nov 2009 10:20:21 +0000 (UTC) Received: from sharadc.in.niksun.com (unknown [10.60.5.27]) by in.niksun.com (Postfix) with ESMTP id D92275CBE; Tue, 17 Nov 2009 15:39:17 +0530 (IST) From: Sharad Chandra Organization: NIKSUN To: freebsd-hackers@freebsd.org Date: Tue, 17 Nov 2009 15:29:19 +0530 User-Agent: KMail/1.9.4 X-Face: "$jQ]ksJ8"4@"hbi0lV=]BJ`myq*p; AcKl=e)=?utf-8?q?=5B3jei!uFob=0A=09?=(xpq6aZ|P(h&l}OxOfr`KGp2}$`IF-)7F6Pp[X#)n*&VF>=?utf-8?q?BoCU0iZ=3F6=7CAZpbi=23F=3B=5E0wP-d=0A=09W=5EucFs*nP?=@dj7x`; _PG@wRen8\in2VpfmCz(,.|>=?utf-8?q?U2KD*hIJHk86=5EH=5E=0A=09ct/-=3F=3D8i16u?=,oB'J*9^\#aN' MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_4PnALyOOKlA8Off" Message-Id: <200911171529.20098.sharadc@in.niksun.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Manprit Singh Subject: mprotect(2) clears the flag for whole page which causes program crash. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 10:20:23 -0000 --Boundary-00=_4PnALyOOKlA8Off Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, mportect clears the exec flag of whole page by which my program crashed. I am attaching sample code. It is performing below task 1) allocate memory1 2) allocate memory2 3) change permission of memory 1 and 2 to exec by mprotect. 4) clear the exec permission of memory 1 and free it. 5) execute the memory2 by mapping to pointer function. 6) clear the exec permission of memory 2 and free it. Program crashed at step 5 if memory 1 and 2 are in same page. $ uname -a FreeBSD app164.in.niksun.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 $ gcc -g -o test -Wall mprotect.c $ ./test mem1 at: 34369183888 mem2 at: 34369183892 address difference: 4 test_func1 function returned 0 test_func2 will crash here Segmentation fault (core dumped) Is it known bug or is there any workaround? How will a userland process make sure that process will not crash as malloc(3) can allocate where ever it get the memory free to use. -- Thanks, Sharad Chandra --Boundary-00=_4PnALyOOKlA8Off-- From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 17 12:29:00 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D7761065672 for ; Tue, 17 Nov 2009 12:29:00 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id B23BB8FC08 for ; Tue, 17 Nov 2009 12:28:59 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id nAHCStie044064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Nov 2009 14:28:55 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id nAHCSslt074054; Tue, 17 Nov 2009 14:28:54 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id nAHCSsoB074053; Tue, 17 Nov 2009 14:28:54 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 17 Nov 2009 14:28:54 +0200 From: Kostik Belousov To: Sharad Chandra Message-ID: <20091117122854.GB2331@deviant.kiev.zoral.com.ua> References: <200911171529.20098.sharadc@in.niksun.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zxXm0cXfUFja8sIt" Content-Disposition: inline In-Reply-To: <200911171529.20098.sharadc@in.niksun.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org, Manprit Singh Subject: Re: mprotect(2) clears the flag for whole page which causes program crash. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 12:29:00 -0000 --zxXm0cXfUFja8sIt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 17, 2009 at 03:29:19PM +0530, Sharad Chandra wrote: > Hi, >=20 > mportect clears the exec flag of whole page by which my program crashed. = I am=20 > attaching sample code. It is performing below task >=20 > 1) allocate memory1 > 2) allocate memory2 > 3) change permission of memory 1 and 2 to exec by mprotect. > 4) clear the exec permission of memory 1 and free it. > 5) execute the memory2 by mapping to pointer function. > 6) clear the exec permission of memory 2 and free it. >=20 > Program crashed at step 5 if memory 1 and 2 are in same page. >=20 > $ uname -a > FreeBSD app164.in.niksun.com 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May = 1=20 > 07:18:07 UTC 2009 =20 > root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >=20 > $ gcc -g -o test -Wall mprotect.c > $ ./test > mem1 at: 34369183888 > mem2 at: 34369183892 > address difference: 4 > test_func1 function returned 0 > test_func2 will crash here > Segmentation fault (core dumped) >=20 > Is it known bug or is there any workaround? How will a userland process m= ake=20 > sure that process will not crash as malloc(3) can allocate where ever it = get=20 > the memory free to use. Attachment was stripped. Anyway, mprotect(2) works on the page granularity. The first sentence from the mprotect manpage says: The mprotect() system call changes the specified pages to have protection prot. By design, mprotect uses hardware capabilities of the processor' MMU to enforce the protection, and MMU works on the page granularity. --zxXm0cXfUFja8sIt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksClwYACgkQC3+MBN1Mb4hdwgCglwB2VNql/2G/hZeK8W4gs6sa 5GsAoNym0s9XTi0Vergq9WFGNzBqc7AH =ioon -----END PGP SIGNATURE----- --zxXm0cXfUFja8sIt-- From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 17 18:56:35 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1F7B106566B for ; Tue, 17 Nov 2009 18:56:35 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 8B9658FC14 for ; Tue, 17 Nov 2009 18:56:35 +0000 (UTC) Received: by fxm27 with SMTP id 27so331017fxm.3 for ; Tue, 17 Nov 2009 10:56:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=urkaKyttsyVyO3DGRBtosOKT0LH1HiQjHmqL74f5yRY=; b=GV58cHI25J5r5c85RhE31/qrzhlJHvdvBOn3ZISls8EJ9gWryZ61LD4w6Ek71fePPM C+OiB/l5J2yvOysQP4J8DuN72Y/3665/6AP0O6A5bTALdi9kL9uYO6wJmUzoIFn3JErZ UI/wj9BqU6mDsOQDYQ01XLPHU5GFA3OlR4K9A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IM0LFWc4O/5K4sIFTy4UjnEqo3PSyPdBuR6ruFQLWoQabSB8Ef6LN/6ObdPR3SIhN3 ET3yKv/dV654bkdUvfPuwv7Cdm+FjcuBo98slwdQ7i2hbCN1cM/xIWwaI1gQWDGkUhLP iVklVohzbZn8nUQHb3r9vB9k4JVepz2Wk+pwk= MIME-Version: 1.0 Received: by 10.216.88.1 with SMTP id z1mr337678wee.49.1258484194274; Tue, 17 Nov 2009 10:56:34 -0800 (PST) Date: Tue, 17 Nov 2009 13:56:34 -0500 Message-ID: From: Aryeh Friedman To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: unit testing automated password assignment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 18:56:36 -0000 I have a script that automatically creates a user and sets their password: echo $3 | sudo pw useradd $1 -m -c "$2" -s tcsh -h0 and by my employer's policy I need to unit test... my question is how... the checking for user existence and such is easy but how do I test that the password is correct? From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 17 19:30:31 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DB3B106566C for ; Tue, 17 Nov 2009 19:30:31 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id 3C93D8FC19 for ; Tue, 17 Nov 2009 19:30:30 +0000 (UTC) Received: (qmail 15432 invoked from network); 17 Nov 2009 19:30:30 -0000 Received: from unknown (HELO ?10.0.0.158?) (spawk@128.238.64.31) by acm.poly.edu with AES256-SHA encrypted SMTP; 17 Nov 2009 19:30:30 -0000 Message-ID: <4B02F99E.2030205@acm.poly.edu> Date: Tue, 17 Nov 2009 14:29:34 -0500 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.23 (X11/20090910) MIME-Version: 1.0 To: Aryeh Friedman References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: unit testing automated password assignment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 19:30:31 -0000 Aryeh Friedman wrote: > I have a script that automatically creates a user and sets their password: > > echo $3 | sudo pw useradd $1 -m -c "$2" -s tcsh -h0 > > and by my employer's policy I need to unit test... my question is > how... the checking for user existence and such is easy but how do I > test that the password is correct? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > Have a look at http://cr.yp.to/checkpwd.html. A FreeBSD port is available in security/checkpassword. -Boris From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 18 10:18:29 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE356106566B for ; Wed, 18 Nov 2009 10:18:29 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 276028FC13 for ; Wed, 18 Nov 2009 10:18:28 +0000 (UTC) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id nAIAISuA079449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Nov 2009 11:18:28 +0100 (CET) (envelope-from uqs@spoerlein.net) Received: (from uqs@localhost) by acme.spoerlein.net (8.14.3/8.14.3/Submit) id nAIAISbd079448; Wed, 18 Nov 2009 11:18:28 +0100 (CET) (envelope-from uqs@spoerlein.net) Date: Wed, 18 Nov 2009 11:18:28 +0100 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Jiandong Lu Message-ID: <20091118101827.GJ20980@acme.spoerlein.net> Mail-Followup-To: Jiandong Lu , freebsd-hackers@freebsd.org References: <900874.43629.qm@web15707.mail.cnb.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <900874.43629.qm@web15707.mail.cnb.yahoo.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org Subject: Re: how to build libthr except other components of 'world' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 10:18:29 -0000 On Mon, 16.11.2009 at 20:28:35 +0800, Jiandong Lu wrote: > > > --- 09年11月16日,周一, Jiandong Lu 写道: > > 发件人: Jiandong Lu > 主题: how to build libthr except other components of 'world' > 收件人: freebsd-threads@freebsd.org > 日期: 2009年11月16日,周一,下午6:48 > > Hi,everyone, >     I checkout FreeBSD‘s source codes to my /usr/src >     I use command >     make buildworld >     int directory /usr/src to build a world.I want to do some debug to lib /usr/src/lib/libthr.If I modified some files in /usr/src/lib/libthr/thread, how could I build libthr except other components of world? >    btw,I execute command >    make >    in /usr/src/lib/libthr get this : > cc -O2 -fno-strict-aliasing -pipe  -DPTHREAD_KERNEL -I/usr/src/lib/libthr/../libc/include -I/usr/src/lib/libthr/thread  -I/usr/src/lib/libthr/../../include -I/usr/src/lib/libthr/arch/i386/include -I/usr/src/lib/libthr/sys -I/usr/src/lib/libthr/../../libexec/rtld-elf -I/usr/src/lib/libthr/../../libexec/rtld-elf/i386 -I/usr/src/lib/libthr/../libthread_db > -Winline -D_PTHREADS_INVARIANTS -DSYSCALL_COMPAT -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /usr/src/lib/libthr/arch/i386/i386/pthread_md.c > In file included from /usr/src/lib/libthr/arch/i386/i386/pthread_md.c:33: > /usr/src/lib/libthr/../../include/string.h:86: warning: no previous prototype for 'strdup' I have no strdup calls anywhere in libthr. If you have added this call, you need to make sure the right headers are included. Otherwise, this can be used to build only libthr and works fine on my system: cd /usr/src/lib/libthr make obj && make depend make Regards, Uli From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 18 12:29:48 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC1D810656A4 for ; Wed, 18 Nov 2009 12:29:48 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 79F508FC22 for ; Wed, 18 Nov 2009 12:29:48 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id 0674634B55; Wed, 18 Nov 2009 13:29:47 +0100 (CET) Received: from i011-63.fin-nrw.de (i011-63.fin-nrw.de [193.109.238.130]) by 0x20.net (Horde MIME library) with HTTP; Wed, 18 Nov 2009 13:29:46 +0100 Message-ID: <20091118132946.w7k3l8bm8c4gkook@0x20.net> X-Priority: 3 (Normal) Date: Wed, 18 Nov 2009 13:29:46 +0100 From: Lars Engels To: Boris Kochergin References: <4B02F99E.2030205@acm.poly.edu> In-Reply-To: <4B02F99E.2030205@acm.poly.edu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_7ak289ysyyo0"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) X-Mailman-Approved-At: Wed, 18 Nov 2009 12:45:18 +0000 Cc: freebsd-hackers@freebsd.org, Aryeh Friedman Subject: Re: unit testing automated password assignment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 12:29:48 -0000 This message is in MIME format and has been PGP signed. --=_7ak289ysyyo0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit Quoting Boris Kochergin : > Aryeh Friedman wrote: >> I have a script that automatically creates a user and sets their password: >> >> echo $3 | sudo pw useradd $1 -m -c "$2" -s tcsh -h0 >> >> and by my employer's policy I need to unit test... my question is >> how... the checking for user existence and such is easy but how do I >> test that the password is correct? And if you want to enforce strong passwords, take a look at pam_passwdqc(8). -- Lars Engels E-Mail: lars.engels@0x20.net --=_7ak289ysyyo0 Content-Type: application/pgp-signature Content-Description: PGP Digital Signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAksD6LoACgkQKc512sD3afhpiwCfRAWGoXN0PShrCEisPxg/16KO SiIAmQFRobp5Ded+vwyzXSpNHV2TIhMu =btms -----END PGP SIGNATURE----- --=_7ak289ysyyo0-- From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 18 12:48:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BA9E106566B for ; Wed, 18 Nov 2009 12:48:15 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 1C16B8FC18 for ; Wed, 18 Nov 2009 12:48:14 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 6492D6D44E; Wed, 18 Nov 2009 12:48:13 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 47AC1844CC; Wed, 18 Nov 2009 13:48:13 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Lars Engels References: <4B02F99E.2030205@acm.poly.edu> <20091118132946.w7k3l8bm8c4gkook@0x20.net> Date: Wed, 18 Nov 2009 13:48:13 +0100 In-Reply-To: <20091118132946.w7k3l8bm8c4gkook@0x20.net> (Lars Engels's message of "Wed, 18 Nov 2009 13:29:46 +0100") Message-ID: <86fx8cuhgy.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Boris Kochergin , Aryeh Friedman Subject: Re: unit testing automated password assignment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 12:48:15 -0000 Lars Engels writes: > And if you want to enforce strong passwords, take a look at pam_passwdqc(= 8). Or don't, it's waaay out of date. I should import a newer version, just never got around to it. Patches are welcome. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 18 15:02:22 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50C70106566C for ; Wed, 18 Nov 2009 15:02:22 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 0FFEE8FC13 for ; Wed, 18 Nov 2009 15:02:21 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id 2910934B55 for ; Wed, 18 Nov 2009 16:02:21 +0100 (CET) Received: from i011-63.fin-nrw.de (i011-63.fin-nrw.de [193.109.238.130]) by 0x20.net (Horde MIME library) with HTTP; Wed, 18 Nov 2009 16:02:21 +0100 Message-ID: <20091118160221.r4ofxiculcgo0gcc@0x20.net> X-Priority: 3 (Normal) Date: Wed, 18 Nov 2009 16:02:21 +0100 From: Lars Engels To: freebsd-hackers@freebsd.org References: <4B02F99E.2030205@acm.poly.edu> <20091118132946.w7k3l8bm8c4gkook@0x20.net> <86fx8cuhgy.fsf@ds4.des.no> In-Reply-To: <86fx8cuhgy.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_mulisy4z15w"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) X-Mailman-Approved-At: Wed, 18 Nov 2009 16:34:25 +0000 Subject: Re: unit testing automated password assignment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 15:02:22 -0000 This message is in MIME format and has been PGP signed. --=_mulisy4z15w Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Dag-Erling Sm=C3=B8rgrav : > Lars Engels writes: >> And if you want to enforce strong passwords, take a look at pam_passwdqc(= 8). > > Or don't, it's waaay out of date. I should import a newer version, just > never got around to it. Patches are welcome. Yes, today I was looking for the sources to use on Solaris and I saw =20 that there was some activity in during the last months. OTOH the module in our base is still working. I successfully it last week. --=_mulisy4z15w Content-Type: application/pgp-signature Content-Description: PGP Digital Signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAksEDH0ACgkQKc512sD3afhruwCgsnYP52MLI82t9W8Hvc73WfNS ZA4AoJ93Z046UHvRTgGh1mppsa9eiHpC =4eQS -----END PGP SIGNATURE----- --=_mulisy4z15w-- From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 18 18:52:02 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 679C610656A3 for ; Wed, 18 Nov 2009 18:52:02 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4227E8FC17 for ; Wed, 18 Nov 2009 18:52:02 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id D120346B5C; Wed, 18 Nov 2009 13:52:01 -0500 (EST) Date: Wed, 18 Nov 2009 18:52:01 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Sharad Chandra In-Reply-To: <200911171529.20098.sharadc@in.niksun.com> Message-ID: References: <200911171529.20098.sharadc@in.niksun.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Manprit Singh Subject: Re: mprotect(2) clears the flag for whole page which causes program crash. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 18:52:02 -0000 On Tue, 17 Nov 2009, Sharad Chandra wrote: > Is it known bug or is there any workaround? How will a userland process make > sure that process will not crash as malloc(3) can allocate where ever it get > the memory free to use. mprotect(2) operates on pages, so you'll want to use mmap(2) and munmap(2) to allocate and free pages directly rather than mallac(3), which manages byte ranges from pages managed using those same interfaces. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 18 19:34:03 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id DACED1065670; Wed, 18 Nov 2009 19:34:00 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-hackers@freebsd.org Date: Wed, 18 Nov 2009 14:33:46 -0500 User-Agent: KMail/1.6.2 References: <200911171529.20098.sharadc@in.niksun.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200911181433.52557.jkim@FreeBSD.org> Cc: Robert Watson , Manprit Singh , Sharad Chandra Subject: Re: mprotect(2) clears the flag for whole page which causes program crash. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 19:34:03 -0000 On Wednesday 18 November 2009 01:52 pm, Robert Watson wrote: > On Tue, 17 Nov 2009, Sharad Chandra wrote: > > Is it known bug or is there any workaround? How will a userland > > process make sure that process will not crash as malloc(3) can > > allocate where ever it get the memory free to use. > > mprotect(2) operates on pages, so you'll want to use mmap(2) and > munmap(2) to allocate and free pages directly rather than > mallac(3), which manages byte ranges from pages managed using those > same interfaces. For example: http://docs.freebsd.org/cgi/mid.cgi?200911181926.nAIJQHOR081471 Jung-uk Kim From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 06:57:46 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3082A106566C for ; Thu, 19 Nov 2009 06:57:46 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id B7A718FC1C for ; Thu, 19 Nov 2009 06:57:45 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so796321fga.13 for ; Wed, 18 Nov 2009 22:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition; bh=RHg5WLsDTsnQggEq01FNDyyji2qajQNLksF5TVLGjpA=; b=VnDxBcytuli9rOwlcUdL/5FqrEnfI5hWP+84dINqKKilpHPEUaNb0RG/7P3XUu7f2/ unvGqEJkb8pDU71wSSia1+bI5/T8quI5JbynEdSpVNZqJZIZ7Rx7kFNU7qRPadlcdcuy Xmm3NH+SBTnULCIPEfnYJfmBe5eRWWGeRxHCI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition; b=fA9Pxc8ye2oVueXEcD7P9tP4fDM9W8Pln+gi0a3U9ucxcSfPppnW1l3A4cLiQ9t4bm 65c21DdD1EyHjq4nviBKDg1vQMXRf4q+IdH2cYvg4VEHZEzkIm5RnDY9R5irM/4PSp90 oPwfhvDgwBPdUzEYoWlNfLB2pM5izhnhVzdCc= Received: by 10.216.88.71 with SMTP id z49mr1360647wee.90.1258613864543; Wed, 18 Nov 2009 22:57:44 -0800 (PST) Received: from viper.internal.network (dsl78-143-202-207.in-addr.fast.co.uk [78.143.202.207]) by mx.google.com with ESMTPS id g11sm442647gve.3.2009.11.18.22.57.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Nov 2009 22:57:44 -0800 (PST) Received: by viper.internal.network (Postfix, from userid 11001) id CA8934AD36; Thu, 19 Nov 2009 06:57:42 +0000 (GMT) Date: Thu, 19 Nov 2009 06:57:42 +0000 From: xorquewasp@googlemail.com To: freebsd-hackers@freebsd.org Message-ID: <20091119065742.GA28159@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 06:57:46 -0000 Hello. I've done a lot of reading on this problem and don't understand why what I have doesn't work. http://wiki.freebsd.org/Wine I have an entirely 32 bit jail, created by cross-compiling the world with TARGET=i386 and creating a jail from DESTDIR. The jail appears to be fully functional - all programs appear to work and the compiler produces i386 binaries. 'uname' has been configured to identify itself as 'i386', so even compiling programs from source works (autoconf correctly recognises the jail system as i386, etc). However, installing the wine port and attempting to do anything with it results in: $ wine hello.exe Bus error: 10 (core dumped) The program will immediately crash in all cases. $ winecfg Bus error: 10 (core dumped) According to every bit of documentation I can find online, this should work fine. Any idea what's gone wrong here? xw From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 07:19:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A52F71065670 for ; Thu, 19 Nov 2009 07:19:15 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outL.internet-mail-service.net (outl.internet-mail-service.net [216.240.47.235]) by mx1.freebsd.org (Postfix) with ESMTP id 8DC208FC0A for ; Thu, 19 Nov 2009 07:19:15 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id AA5A714DD6C; Wed, 18 Nov 2009 23:19:15 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id C25912D6011; Wed, 18 Nov 2009 23:19:14 -0800 (PST) Message-ID: <4B04F172.7070803@elischer.org> Date: Wed, 18 Nov 2009 23:19:14 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: xorquewasp@googlemail.com References: <20091119065742.GA28159@logik.internal.network> In-Reply-To: <20091119065742.GA28159@logik.internal.network> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 07:19:15 -0000 xorquewasp@googlemail.com wrote: > Hello. > > I've done a lot of reading on this problem and don't understand why what I have > doesn't work. > > http://wiki.freebsd.org/Wine > > I have an entirely 32 bit jail, created by cross-compiling the world with > TARGET=i386 and creating a jail from DESTDIR. > > The jail appears to be fully functional - all programs appear to work and > the compiler produces i386 binaries. > > 'uname' has been configured to identify itself as 'i386', so even compiling > programs from source works (autoconf correctly recognises the jail system > as i386, etc). > > However, installing the wine port and attempting to do anything with it > results in: > > $ wine hello.exe > Bus error: 10 (core dumped) > > The program will immediately crash in all cases. > > $ winecfg > Bus error: 10 (core dumped) > > According to every bit of documentation I can find online, this should > work fine. Any idea what's gone wrong here? Wine is an exceptional bit of software, in many ways. One way it is exceptional is that it uses the system in a number of ways that nothing else does. For example it sets various special segment register settings and defines several different segments on the LDT. This is something that is different to some extent between i386 and amd64 and it is possible that the code for 386 LDT syscalls under amd64 may not work correctly. nothing else would test this. > > xw > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 07:38:22 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FEB4106566B for ; Thu, 19 Nov 2009 07:38:22 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 1C0228FC0A for ; Thu, 19 Nov 2009 07:38:21 +0000 (UTC) Received: by bwz5 with SMTP id 5so2228575bwz.3 for ; Wed, 18 Nov 2009 23:38:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=ZJ3BYOYm4iQntEw5Fa51bK3B9Y0X1FaJaJ8ir8oVhK8=; b=rfosJ2kcgG10oG0KBj3sTPbB2kDGVPFEIB/YsAUmbIlUrzAfMRAFAxD1r2cjiT8xrQ eusfx9vZ0zaQFAT4akNsY/OH2wrqRGD4r+j+Z35qbA+mv5bOFpwcVe/jHiRMmBQ5UDEP v9T/PBhJXwUBeW9EPE5N3g1FHLGC5jDyzPIlM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=nRRh4I3ixbKXsYkkEHbFxkMVJgR84OuiE7Q0SWUnVbERZFKTUtogImljuxwdTzr8+1 VlgQG4FWgjM0/B6ZcliN8UDN7E7YkNIZIA68TRPQhVpYKIOW+ApBoe4QKpR9YWwynKvi Q0i7+3MLesboPO1iwG3WBrEPK28RZm2PRjqfw= Received: by 10.216.86.9 with SMTP id v9mr2129849wee.148.1258616300887; Wed, 18 Nov 2009 23:38:20 -0800 (PST) Received: from viper.internal.network (dsl78-143-202-207.in-addr.fast.co.uk [78.143.202.207]) by mx.google.com with ESMTPS id n12sm495807gve.14.2009.11.18.23.38.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Nov 2009 23:38:19 -0800 (PST) Received: by viper.internal.network (Postfix, from userid 11001) id 932C04AD36; Thu, 19 Nov 2009 07:38:18 +0000 (GMT) Date: Thu, 19 Nov 2009 07:38:18 +0000 From: xorquewasp@googlemail.com To: Julian Elischer Message-ID: <20091119073818.GA81272@logik.internal.network> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B04F172.7070803@elischer.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 07:38:22 -0000 On 2009-11-18 23:19:14, Julian Elischer wrote: > > Wine is an exceptional bit of software, in many ways. > One way it is exceptional is that it uses the system in a number of > ways that nothing else does. For example it sets various special > segment register settings and defines several different > segments on the LDT. This is something that is different to some > extent between i386 and amd64 and it is possible that > the code for 386 LDT syscalls under amd64 may not work correctly. > nothing else would test this. > I agree and would also have likely not even tried if it wasn't for reading on FreeBSD's own wiki (amonst other places) that it should actually work fine. I've tried various versions and always get the same result: http://wiki.freebsd.org/Wine "FreeBSD currently lacks support for 32bit ports on a 64bit system. However, with a little bit of effort you can build and use the 32 bit wine executable on an amd64 system (Diablo 2 works just fine)." His instructions show an essentially identical setup to mine (apart from the fact that he's running a chroot and I'm running a jail). Even any ideas on how to debug this would help. xw From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 09:05:10 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E2671065670 for ; Thu, 19 Nov 2009 09:05:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id A8F278FC17 for ; Thu, 19 Nov 2009 09:05:09 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id nAJ93fxj045147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Nov 2009 11:03:41 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id nAJ93fC1079890; Thu, 19 Nov 2009 11:03:41 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id nAJ93fbJ079889; Thu, 19 Nov 2009 11:03:41 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 19 Nov 2009 11:03:41 +0200 From: Kostik Belousov To: xorquewasp@googlemail.com Message-ID: <20091119090340.GY2331@deviant.kiev.zoral.com.ua> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7PmeW3pXf3bMZ8Ed" Content-Disposition: inline In-Reply-To: <20091119073818.GA81272@logik.internal.network> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org, Julian Elischer Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 09:05:10 -0000 --7PmeW3pXf3bMZ8Ed Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 19, 2009 at 07:38:18AM +0000, xorquewasp@googlemail.com wrote: > On 2009-11-18 23:19:14, Julian Elischer wrote: > > > > Wine is an exceptional bit of software, in many ways. > > One way it is exceptional is that it uses the system in a number of > > ways that nothing else does. For example it sets various special=20 > > segment register settings and defines several different > > segments on the LDT. This is something that is different to some=20 > > extent between i386 and amd64 and it is possible that > > the code for 386 LDT syscalls under amd64 may not work correctly. > > nothing else would test this. > >=20 >=20 > I agree and would also have likely not even tried if it wasn't for > reading on FreeBSD's own wiki (amonst other places) that it should > actually work fine. I've tried various versions and always get the > same result: >=20 > http://wiki.freebsd.org/Wine >=20 > "FreeBSD currently lacks support for 32bit ports on a 64bit system. > However, with a little bit of effort you can build and use the 32 bit > wine executable on an amd64 system (Diablo 2 works just fine)." >=20 > His instructions show an essentially identical setup to mine (apart > from the fact that he's running a chroot and I'm running a jail). >=20 > Even any ideas on how to debug this would help. You forgot to note the version of the kernel you use. --7PmeW3pXf3bMZ8Ed Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksFCewACgkQC3+MBN1Mb4jeAACbBnG6KTIsVHhBXWRcibpA+nVu Ex0AnjjIUrXJ7rubKX3KZCPiS882KTMe =lp44 -----END PGP SIGNATURE----- --7PmeW3pXf3bMZ8Ed-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 09:22:17 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F33CA1065693 for ; Thu, 19 Nov 2009 09:22:17 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 808368FC15 for ; Thu, 19 Nov 2009 09:22:17 +0000 (UTC) Received: by fxm27 with SMTP id 27so2236216fxm.3 for ; Thu, 19 Nov 2009 01:22:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=7iPzQDfmrewEPTMT9+8gf0+XEo1lnKKExFjLdizLXpc=; b=J4Sw23cG5my+UfIKAG1do4c/XZoric+IEyFZJe8P5OmZN4N+cMZiLEahEb6FjWCSuV lp74seaC2sqZDI/8mdQBMfwk8VdN2/9Q8MwmSEEwxuO7Y6u9tKEqKinQRkGCHbAcrZrp ibN0EgjlZLlSKnvOWHBS720FF/7E06dBiPboI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=TSwuOh2ogvOots3VRXJCzKVOZ/xnEKN+GT+GoxCb33x76vT2U3tTAJc3+UnYXgxTNA WzWOzmU7exqAaZDyJByQp+Nxrsg+kL3C/Qx3IJ1m8yLh8NvndF/5CoCef9xoLQG4sa2K SWbBiT/kSYES34SO9+IBqUj80+rla4yb75ayE= Received: by 10.216.90.14 with SMTP id d14mr210348wef.30.1258622536362; Thu, 19 Nov 2009 01:22:16 -0800 (PST) Received: from viper.internal.network (dsl78-143-202-207.in-addr.fast.co.uk [78.143.202.207]) by mx.google.com with ESMTPS id u14sm655203gvf.4.2009.11.19.01.22.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Nov 2009 01:22:15 -0800 (PST) Received: by viper.internal.network (Postfix, from userid 11001) id 4CE0A4AD36; Thu, 19 Nov 2009 09:22:14 +0000 (GMT) Date: Thu, 19 Nov 2009 09:22:14 +0000 From: xorquewasp@googlemail.com To: Kostik Belousov Message-ID: <20091119092214.GA53950@logik.internal.network> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <20091119090340.GY2331@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091119090340.GY2331@deviant.kiev.zoral.com.ua> Cc: freebsd-hackers@freebsd.org, Julian Elischer Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 09:22:18 -0000 On 2009-11-19 11:03:41, Kostik Belousov wrote: > > You forgot to note the version of the kernel you use. I'm using 7.2-RELEASE-p4 here. xw From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 09:27:03 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09C121065670 for ; Thu, 19 Nov 2009 09:27:03 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 6B04B8FC14 for ; Thu, 19 Nov 2009 09:27:02 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id nAJ9PnNI047931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Nov 2009 11:25:49 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id nAJ9PnBp080083; Thu, 19 Nov 2009 11:25:49 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id nAJ9Pn7D080082; Thu, 19 Nov 2009 11:25:49 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 19 Nov 2009 11:25:48 +0200 From: Kostik Belousov To: xorquewasp@googlemail.com Message-ID: <20091119092548.GZ2331@deviant.kiev.zoral.com.ua> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <20091119090340.GY2331@deviant.kiev.zoral.com.ua> <20091119092214.GA53950@logik.internal.network> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ovjlg6APpquCLvf4" Content-Disposition: inline In-Reply-To: <20091119092214.GA53950@logik.internal.network> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org, Julian Elischer Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 09:27:03 -0000 --ovjlg6APpquCLvf4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 19, 2009 at 09:22:14AM +0000, xorquewasp@googlemail.com wrote: > On 2009-11-19 11:03:41, Kostik Belousov wrote: > >=20 > > You forgot to note the version of the kernel you use. >=20 > I'm using 7.2-RELEASE-p4 here. Required syscalls only implemented in 8/HEAD. --ovjlg6APpquCLvf4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksFDxsACgkQC3+MBN1Mb4huawCdFcZ5WY2M1plI1CtGeZqd5dUI uQcAoNHD32DNXaIE5c0aN8QCqoK2u3hY =lU1k -----END PGP SIGNATURE----- --ovjlg6APpquCLvf4-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 09:36:58 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93BAA106568D for ; Thu, 19 Nov 2009 09:36:58 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 1DF758FC1B for ; Thu, 19 Nov 2009 09:36:57 +0000 (UTC) Received: by fxm27 with SMTP id 27so2249187fxm.3 for ; Thu, 19 Nov 2009 01:36:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=2CadymgPNN+P+p7Vf7OYFrcTzEBOqNNERNP5/iPR0ZU=; b=qbEdc1+3aXRTp5EQJyxFLfvwVeDwa5FVa6f0hcHVcuEFbJi6xsRErLyc93cFUH7n5l vCKsOX/PAoSq+RO5IEWYLYpQxBSMEFmzAo5865r9pqiewcxWPChySnkI09j2UqAEeJSZ uyYggSrycqjnhnQUU9x57byvOzY6ASKEF0F6s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=PbUDrebE4/dicif3uDUYVzBWWITMWgPkSIXoNPDOWPGni70kV0f0fK2ppu/aS/Nnoq au7sHUT7pPK6Iln38bNfkWVOkj29ZVRaBVFnILooUIpWWfIJc173gzRjvS9JSUI7IXdF mL1ZIUtT2ttT2X5wNQ7wsjdBaGBS48IRt8/Q8= Received: by 10.216.87.132 with SMTP id y4mr2335766wee.99.1258623417141; Thu, 19 Nov 2009 01:36:57 -0800 (PST) Received: from viper.internal.network (dsl78-143-202-207.in-addr.fast.co.uk [78.143.202.207]) by mx.google.com with ESMTPS id n12sm673737gve.29.2009.11.19.01.36.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Nov 2009 01:36:55 -0800 (PST) Received: by viper.internal.network (Postfix, from userid 11001) id BE7E54AD36; Thu, 19 Nov 2009 09:36:54 +0000 (GMT) Date: Thu, 19 Nov 2009 09:36:54 +0000 From: xorquewasp@googlemail.com To: Kostik Belousov Message-ID: <20091119093654.GA30714@logik.internal.network> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <20091119090340.GY2331@deviant.kiev.zoral.com.ua> <20091119092214.GA53950@logik.internal.network> <20091119092548.GZ2331@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091119092548.GZ2331@deviant.kiev.zoral.com.ua> Cc: freebsd-hackers@freebsd.org, Julian Elischer Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 09:36:58 -0000 On 2009-11-19 11:25:48, Kostik Belousov wrote: > > I'm using 7.2-RELEASE-p4 here. > > Required syscalls only implemented in 8/HEAD. Ah, thanks. I assume they won't have made it into 8.0-RELEASE when it shows up? xw From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 09:54:24 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DD3F1065679 for ; Thu, 19 Nov 2009 09:54:24 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 8BF538FC18 for ; Thu, 19 Nov 2009 09:54:23 +0000 (UTC) Received: (qmail invoked by alias); 19 Nov 2009 09:27:42 -0000 Received: from balu.cs.uni-paderborn.de (EHLO balu.cs.uni-paderborn.de) [131.234.21.37] by mail.gmx.net (mp072) with SMTP; 19 Nov 2009 10:27:42 +0100 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX19amZAbRW9aAVq199H4q3f93St5omYMPPwt0XM0WE b/AntfcRoovycT Received: from localhost ([127.0.0.1] helo=balu.cs.uni-paderborn.de) by balu.cs.uni-paderborn.de with esmtp (Exim 4.69) (envelope-from ) id KTCNM5-0004H4-ND for freebsd-hackers@freebsd.org; Thu, 19 Nov 2009 10:27:41 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "freebsd-hackers@freebsd.org" Date: Thu, 19 Nov 2009 10:27:41 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Matthias Andree" Organization: Message-ID: User-Agent: Opera Mail/10.01 (Win32) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.48 Subject: header file bug sys/types.h sys/file.h vs. _XOPEN_SOURCE standard X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 09:54:24 -0000 Greetings, this little C program (which is actual a minimum excerpt from sysutils/e2fsprogs) fails to compile on - among others - 8.0-PRERELEASE: $ cat fail.c #define _XOPEN_SOURCE 600 #include $ gcc -W -Wall -O -c fail.c In file included from fail.c:2: /usr/include/sys/file.h:161: error: expected specifier-qualifier-list before 'u_int' I can get the code to compile by removing the "#define _XOPEN_SOURCE 600". This happens here: 146 /* 147 * Userland version of struct file, for sysctl 148 */ 149 struct xfile { 150 size_t xf_size; /* size of struct xfile */ 151 pid_t xf_pid; /* owning process */ 152 uid_t xf_uid; /* effective uid of owning process */ 153 int xf_fd; /* descriptor number */ 154 void *xf_file; /* address of struct file */ 155 short xf_type; /* descriptor type */ 156 int xf_count; /* reference count */ 157 int xf_msgcount; /* references from message queue */ 158 off_t xf_offset; /* file offset */ 159 void *xf_data; /* file descriptor specific data */ 160 void *xf_vnode; /* vnode pointer */ !! 161 u_int xf_flag; /* flags (see fcntl.h) */ 162 }; The flow here is as follows: 1. sys/file.h (non-standard header) includes sys/types.h (POSIX/XSI standard header) and implictly sys/cdefs.h 2. since _XOPEN_SOURCE is defined, nonstandard symbols such as u_int aren't defined by the standard headers (this is in line with IEEE Std 1003.1-2008) 3. sys/file.h uses this non-standard and undefined u_int and breaks. I've talked to Theodore Y. Ts'o, who is the sysutils/e2fsprogs upstream maintainer and proposed to remove the _XOPEN_SOURCE definition (my idea was that the code shouldn't be claiming standards compliance while it uses non-standard headers), but he refused that (since it would break the e2fsprogs build on Solaris). Should non-standard system headers break if an application defines one of the standard feature test macros? Or could sys/file.h be changed (for instance by replacing u_int by unsigned int) to tolerate POSIX and XSI feature test macros? TIA. Cheers -- Matthias Andree mandree freebsd org From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 10:16:10 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90B14106566B for ; Thu, 19 Nov 2009 10:16:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id F322C8FC1F for ; Thu, 19 Nov 2009 10:16:09 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id nAJAFIVE052144 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Nov 2009 12:15:18 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id nAJAFIsH088876; Thu, 19 Nov 2009 12:15:18 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id nAJAFIlx088875; Thu, 19 Nov 2009 12:15:18 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 19 Nov 2009 12:15:18 +0200 From: Kostik Belousov To: xorquewasp@googlemail.com Message-ID: <20091119101518.GA2331@deviant.kiev.zoral.com.ua> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <20091119090340.GY2331@deviant.kiev.zoral.com.ua> <20091119092214.GA53950@logik.internal.network> <20091119092548.GZ2331@deviant.kiev.zoral.com.ua> <20091119093654.GA30714@logik.internal.network> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cBjtDd/yotmg6GXq" Content-Disposition: inline In-Reply-To: <20091119093654.GA30714@logik.internal.network> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org, Julian Elischer Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 10:16:10 -0000 --cBjtDd/yotmg6GXq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 19, 2009 at 09:36:54AM +0000, xorquewasp@googlemail.com wrote: > On 2009-11-19 11:25:48, Kostik Belousov wrote: > > > I'm using 7.2-RELEASE-p4 here. > >=20 > > Required syscalls only implemented in 8/HEAD. >=20 > Ah, thanks. >=20 > I assume they won't have made it into 8.0-RELEASE when it shows up? It is in 8.0. --cBjtDd/yotmg6GXq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksFGrYACgkQC3+MBN1Mb4ibQACg2xtmKEjsjZWwnTOSo64WcZdT jWMAoL+i5QaHaljqmv4wm1eSKYGnsoP9 =iqJh -----END PGP SIGNATURE----- --cBjtDd/yotmg6GXq-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 10:23:13 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F7CC1065672 for ; Thu, 19 Nov 2009 10:23:13 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id AA41A8FC16 for ; Thu, 19 Nov 2009 10:23:12 +0000 (UTC) Received: by bwz5 with SMTP id 5so2363695bwz.3 for ; Thu, 19 Nov 2009 02:23:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=5jD1D6krjulBggPubIhM9OU6h9jN1Bw0MUI5BMVRoRE=; b=Sgbp9mvmRI9jw8yoTAKBl8RmLV8HMGz0otsFKOKjvhuZ7BywDSiY3D46+iaMi2JDYy oSIv91BExdDyg4RwfOnaKUtPwGO3uybOs2mDNZKq1xPRbgy2yBaPO9pMSXmIEsImnkAy AOAAuBI8fjIT0IQCz3yDeUCKF9TRErGS1/g5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=qgG5Rov7N6hrgTrxtPBIWiqaoaN/cHiBU6FDAcsSX4EFuv6dVjKsvatsmw3oanpm/C 5ktNg0CVTPDH1CoRGApJqpmPW+J0yw0SvvDtYZ6FXeKzc6sxOg4EcYr+cmLZ4HpJBggM TaXIUFAxTK2riLfJ4AIbS58rvbs3u8lHarRrg= Received: by 10.216.85.212 with SMTP id u62mr1952558wee.164.1258626191660; Thu, 19 Nov 2009 02:23:11 -0800 (PST) Received: from viper.internal.network (dsl78-143-202-207.in-addr.fast.co.uk [78.143.202.207]) by mx.google.com with ESMTPS id x6sm739802gvf.22.2009.11.19.02.23.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Nov 2009 02:23:10 -0800 (PST) Received: by viper.internal.network (Postfix, from userid 11001) id 7A2414AD36; Thu, 19 Nov 2009 10:23:09 +0000 (GMT) Date: Thu, 19 Nov 2009 10:23:09 +0000 From: xorquewasp@googlemail.com To: Kostik Belousov Message-ID: <20091119102309.GB30714@logik.internal.network> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <20091119090340.GY2331@deviant.kiev.zoral.com.ua> <20091119092214.GA53950@logik.internal.network> <20091119092548.GZ2331@deviant.kiev.zoral.com.ua> <20091119093654.GA30714@logik.internal.network> <20091119101518.GA2331@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091119101518.GA2331@deviant.kiev.zoral.com.ua> Cc: freebsd-hackers@freebsd.org, Julian Elischer Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 10:23:13 -0000 On 2009-11-19 12:15:18, Kostik Belousov wrote: > On Thu, Nov 19, 2009 at 09:36:54AM +0000, xorquewasp@googlemail.com wrote: > > It is in 8.0. Excellent, thanks. From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 10:46:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C67F71065670 for ; Thu, 19 Nov 2009 10:46:15 +0000 (UTC) (envelope-from koffieyahoo@gmail.com) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.211.178]) by mx1.freebsd.org (Postfix) with ESMTP id 61C878FC1C for ; Thu, 19 Nov 2009 10:46:15 +0000 (UTC) Received: by ywh8 with SMTP id 8so1944224ywh.3 for ; Thu, 19 Nov 2009 02:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=/yX1Ovf2ZzWaRz4kujzDrO/shVyBYGrxsxpNaulH+8s=; b=Sq+zVBw3phPp6FWq8CiBe+UxJIRULqn4n6mUMSvnRoU8OoeJRIvGh5KD1QzVzJ98nR YBGC9+qYCPC6oCBji9hjov0lw4Dtbt9dD15siA1A/yufpQEOYC71c04sup12rssKd/DE abBB3JcdfbRf2o5X+XQEid2FwlGKl3uMohlUw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=o/GhAKbysEnDlK3Yw/QdHjEa60Q3xd5po2WdDPz4GwuHapaU2ZxjGqaEQTCdCPSjtG iOrEyBrgOnijlWHmFG89ZeUpDtltagiL4G2oJ6+v7Wi6NniFiUexLJ+0UyJbAPnzWkll qWYz+GQ7q5Wdbjvpqq3df4OEVmU3UuR9zFnsY= MIME-Version: 1.0 Received: by 10.150.101.37 with SMTP id y37mr4539396ybb.7.1258625687488; Thu, 19 Nov 2009 02:14:47 -0800 (PST) Date: Thu, 19 Nov 2009 11:14:47 +0100 Message-ID: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> From: Koffie Yahoo To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 10:46:15 -0000 Dear all, I've looked but not found (and I hope I'm in the right group here): Is there a way to get the user time and system time of a /running/ child from its parent (without having to mount procfs)? As far as I was able to tell, I can get the total of user and system time using kvm_getprocs, but it doesn't seem possible to get both values separately. Regards, Jay From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 10:59:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD857106578B for ; Thu, 19 Nov 2009 10:59:15 +0000 (UTC) (envelope-from sharadc@in.niksun.com) Received: from in.niksun.com (210.18.76.166.sify.net [210.18.76.166]) by mx1.freebsd.org (Postfix) with ESMTP id 3C6358FC1E for ; Thu, 19 Nov 2009 10:59:14 +0000 (UTC) Received: from sharadc.in.niksun.com (unknown [10.60.5.27]) by in.niksun.com (Postfix) with ESMTP id 9E7385CC4; Thu, 19 Nov 2009 16:37:33 +0530 (IST) From: Sharad Chandra Organization: NIKSUN To: freebsd-hackers@freebsd.org Date: Thu, 19 Nov 2009 16:27:33 +0530 User-Agent: KMail/1.9.4 References: <200911171529.20098.sharadc@in.niksun.com> <200911181433.52557.jkim@FreeBSD.org> In-Reply-To: <200911181433.52557.jkim@FreeBSD.org> X-Face: "$jQ]ksJ8"4@"hbi0lV=]BJ`myq*p; AcKl=e)=?utf-8?q?=5B3jei!uFob=0A=09?=(xpq6aZ|P(h&l}OxOfr`KGp2}$`IF-)7F6Pp[X#)n*&VF>=?utf-8?q?BoCU0iZ=3F6=7CAZpbi=23F=3B=5E0wP-d=0A=09W=5EucFs*nP?=@dj7x`; _PG@wRen8\in2VpfmCz(,.|>=?utf-8?q?U2KD*hIJHk86=5EH=5E=0A=09ct/-=3F=3D8i16u?=,oB'J*9^\#aN' MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200911191627.34076.sharadc@in.niksun.com> Cc: Kostik Belousov , Robert Watson , Manprit Singh , Jung-uk Kim Subject: Re: mprotect(2) clears the flag for whole page which causes program crash. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 10:59:15 -0000 ,---- [Jung-uk Kim wrote:] | On Wednesday 18 November 2009 01:52 pm, Robert Watson wrote: | > On Tue, 17 Nov 2009, Sharad Chandra wrote: | > > Is it known bug or is there any workaround? How will a userland | > > process make sure that process will not crash as malloc(3) can | > > allocate where ever it get the memory free to use. | > | > mprotect(2) operates on pages, so you'll want to use mmap(2) and | > munmap(2) to allocate and free pages directly rather than | > mallac(3), which manages byte ranges from pages managed using those | > same interfaces. | | For example: | | http://docs.freebsd.org/cgi/mid.cgi?200911181926.nAIJQHOR081471 | Thanks everyone. mmap(2) worked and program did not crash. Only problem with it I use only fraction of allocated memory (each request alocate minimum of one page and my request is in hundreds), rest is waste of it so no one else will get this memory to use. And if a process runs as daemon and makes many request, It can hold a lot of it. Just a question floated in mind. Many thanks, Sharad Chandra From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 11:42:35 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55494106568F; Thu, 19 Nov 2009 11:42:35 +0000 (UTC) (envelope-from rwatson@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2BBB98FC08; Thu, 19 Nov 2009 11:42:35 +0000 (UTC) Received: from [192.168.2.101] (host217-43-176-60.range217-43.btcentralplus.com [217.43.176.60]) by cyrus.watson.org (Postfix) with ESMTPSA id 0F44146B66; Thu, 19 Nov 2009 06:42:33 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: "Robert N. M. Watson" In-Reply-To: <200911191627.34076.sharadc@in.niksun.com> Date: Thu, 19 Nov 2009 11:42:32 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <80FAFE47-C19C-4666-A279-6AF6DA8B6127@freebsd.org> References: <200911171529.20098.sharadc@in.niksun.com> <200911181433.52557.jkim@FreeBSD.org> <200911191627.34076.sharadc@in.niksun.com> To: Sharad Chandra X-Mailer: Apple Mail (2.1077) Cc: Kostik Belousov , freebsd-hackers@freebsd.org, Manprit Singh , Jung-uk Kim Subject: Re: mprotect(2) clears the flag for whole page which causes program crash. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 11:42:35 -0000 On 19 Nov 2009, at 10:57, Sharad Chandra wrote: > Thanks everyone. mmap(2) worked and program did not crash. Only = problem with=20 > it I use only fraction of allocated memory (each request alocate = minimum of=20 > one page and my request is in hundreds), rest is waste of it so no one = else=20 > will get this memory to use. And if a process runs as daemon and makes = many=20 > request, It can hold a lot of it. Just a question floated in mind. One of the defining properties of pages is that they are the granularity = at which access protections are controlled in hardware, so your choices = are a minimum of one page per object, or having multiple objects that = share the same protection properties. However, it could be that you = could accomplish whatever your goals may be using techniques other than = paging; for example, using ptrace(2) to instrument individual accesses, = binary rewriting, a virtual machine, source code instrumentation, or = other methods along those lines that have been used for debugging and = security over the years. Robert= From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 13:25:12 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00737106566C for ; Thu, 19 Nov 2009 13:25:12 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id B7C8A8FC1B for ; Thu, 19 Nov 2009 13:25:11 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id F368B6D44E; Thu, 19 Nov 2009 13:25:10 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id CA350844D2; Thu, 19 Nov 2009 14:25:10 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Matthias Andree" References: Date: Thu, 19 Nov 2009 14:25:10 +0100 In-Reply-To: (Matthias Andree's message of "Thu, 19 Nov 2009 10:27:41 +0100") Message-ID: <86skca6409.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-hackers@freebsd.org" Subject: Re: header file bug sys/types.h sys/file.h vs. _XOPEN_SOURCE standard X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 13:25:12 -0000 "Matthias Andree" writes: > I've talked to Theodore Y. Ts'o, who is the sysutils/e2fsprogs > upstream maintainer and proposed to remove the _XOPEN_SOURCE > definition (my idea was that the code shouldn't be claiming standards > compliance while it uses non-standard headers), but he refused that > (since it would break the e2fsprogs build on Solaris). He's right. You misunderstand _XOPEN_SOURCE; it does not mean "my program complies with X/Open blah", it means "my program requires the facilities provided by X/Open blah". The problem lies in FreeBSD's headers, which don't implement namespace separation correctly. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 13:27:12 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6482106566C for ; Thu, 19 Nov 2009 13:27:12 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 6AA038FC1B for ; Thu, 19 Nov 2009 13:27:12 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 2DEF66D41D; Thu, 19 Nov 2009 13:27:11 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 163FA844D2; Thu, 19 Nov 2009 14:27:11 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Koffie Yahoo References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> Date: Thu, 19 Nov 2009 14:27:11 +0100 In-Reply-To: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> (Koffie Yahoo's message of "Thu, 19 Nov 2009 11:14:47 +0100") Message-ID: <86ocmy63ww.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 13:27:12 -0000 Koffie Yahoo writes: > I've looked but not found (and I hope I'm in the right group here): Is > there a way to get the user time and system time of a /running/ child > from its parent (without having to mount procfs)? If you have only one child, there's getrusage(2). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 14:27:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BB4C1065679 for ; Thu, 19 Nov 2009 14:27:19 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outY.internet-mail-service.net (outy.internet-mail-service.net [216.240.47.248]) by mx1.freebsd.org (Postfix) with ESMTP id 74A6D8FC12 for ; Thu, 19 Nov 2009 14:27:19 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 654FE14E03F; Thu, 19 Nov 2009 06:27:19 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id D08EB2D6020; Thu, 19 Nov 2009 06:27:18 -0800 (PST) Message-ID: <4B0555C6.8020105@elischer.org> Date: Thu, 19 Nov 2009 06:27:18 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: xorquewasp@googlemail.com References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> In-Reply-To: <20091119073818.GA81272@logik.internal.network> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 14:27:19 -0000 xorquewasp@googlemail.com wrote: > On 2009-11-18 23:19:14, Julian Elischer wrote: >> Wine is an exceptional bit of software, in many ways. >> One way it is exceptional is that it uses the system in a number of >> ways that nothing else does. For example it sets various special >> segment register settings and defines several different >> segments on the LDT. This is something that is different to some >> extent between i386 and amd64 and it is possible that >> the code for 386 LDT syscalls under amd64 may not work correctly. >> nothing else would test this. >> > > I agree and would also have likely not even tried if it wasn't for > reading on FreeBSD's own wiki (amonst other places) that it should > actually work fine. I've tried various versions and always get the > same result: > > http://wiki.freebsd.org/Wine > > "FreeBSD currently lacks support for 32bit ports on a 64bit system. > However, with a little bit of effort you can build and use the 32 bit > wine executable on an amd64 system (Diablo 2 works just fine)." > > His instructions show an essentially identical setup to mine (apart > from the fact that he's running a chroot and I'm running a jail). jail may not alow you to do the LDT system calls. have you tried a chroot? > > Even any ideas on how to debug this would help. > > xw From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 14:32:28 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7D4F1065698 for ; Thu, 19 Nov 2009 14:32:28 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outW.internet-mail-service.net (outw.internet-mail-service.net [216.240.47.246]) by mx1.freebsd.org (Postfix) with ESMTP id A8B4C8FC17 for ; Thu, 19 Nov 2009 14:32:28 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id B159814E045; Thu, 19 Nov 2009 06:32:28 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 949E62D6021; Thu, 19 Nov 2009 06:32:27 -0800 (PST) Message-ID: <4B0556FA.1080709@elischer.org> Date: Thu, 19 Nov 2009 06:32:26 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Sharad Chandra References: <200911171529.20098.sharadc@in.niksun.com> <200911181433.52557.jkim@FreeBSD.org> <200911191627.34076.sharadc@in.niksun.com> In-Reply-To: <200911191627.34076.sharadc@in.niksun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , freebsd-hackers@freebsd.org, Robert Watson , Jung-uk Kim , Manprit Singh Subject: Re: mprotect(2) clears the flag for whole page which causes program crash. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 14:32:28 -0000 Sharad Chandra wrote: > ,---- [Jung-uk Kim wrote:] > | On Wednesday 18 November 2009 01:52 pm, Robert Watson wrote: > | > On Tue, 17 Nov 2009, Sharad Chandra wrote: > | > > Is it known bug or is there any workaround? How will a userland > | > > process make sure that process will not crash as malloc(3) can > | > > allocate where ever it get the memory free to use. > | > > | > mprotect(2) operates on pages, so you'll want to use mmap(2) and > | > munmap(2) to allocate and free pages directly rather than > | > mallac(3), which manages byte ranges from pages managed using those > | > same interfaces. > | > | For example: > | > | http://docs.freebsd.org/cgi/mid.cgi?200911181926.nAIJQHOR081471 > | > > Thanks everyone. mmap(2) worked and program did not crash. Only problem with > it I use only fraction of allocated memory (each request alocate minimum of > one page and my request is in hundreds), rest is waste of it so no one else > will get this memory to use. And if a process runs as daemon and makes many > request, It can hold a lot of it. Just a question floated in mind. write your own allocator that efficiently divides up the mmapped pages among several requests? > > Many thanks, > Sharad Chandra > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 14:33:07 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A3B21065670 for ; Thu, 19 Nov 2009 14:33:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 8A8628FC1C for ; Thu, 19 Nov 2009 14:33:06 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id nAJEWxPx074715 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Nov 2009 16:32:59 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id nAJEWx9P087729; Thu, 19 Nov 2009 16:32:59 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id nAJEWxmd087728; Thu, 19 Nov 2009 16:32:59 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 19 Nov 2009 16:32:59 +0200 From: Kostik Belousov To: Julian Elischer Message-ID: <20091119143259.GC2331@deviant.kiev.zoral.com.ua> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <4B0555C6.8020105@elischer.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Px68sada/aQXkwG2" Content-Disposition: inline In-Reply-To: <4B0555C6.8020105@elischer.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org, xorquewasp@googlemail.com Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 14:33:07 -0000 --Px68sada/aQXkwG2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 19, 2009 at 06:27:18AM -0800, Julian Elischer wrote: > xorquewasp@googlemail.com wrote: > >On 2009-11-18 23:19:14, Julian Elischer wrote: > >>Wine is an exceptional bit of software, in many ways. > >>One way it is exceptional is that it uses the system in a number of > >>ways that nothing else does. For example it sets various special=20 > >>segment register settings and defines several different > >>segments on the LDT. This is something that is different to some=20 > >>extent between i386 and amd64 and it is possible that > >>the code for 386 LDT syscalls under amd64 may not work correctly. > >>nothing else would test this. > >> > > > >I agree and would also have likely not even tried if it wasn't for > >reading on FreeBSD's own wiki (amonst other places) that it should > >actually work fine. I've tried various versions and always get the > >same result: > > > > http://wiki.freebsd.org/Wine > > > > "FreeBSD currently lacks support for 32bit ports on a 64bit system. > > However, with a little bit of effort you can build and use the 32 bit > > wine executable on an amd64 system (Diablo 2 works just fine)." > > > >His instructions show an essentially identical setup to mine (apart > >from the fact that he's running a chroot and I'm running a jail). >=20 > jail may not alow you to do the LDT system calls. There are no restrictions for the sysarch(I386_GET/SET_LDT), neither for root-only, nor for inside the jail. >=20 > have you tried a chroot? >=20 > > > >Even any ideas on how to debug this would help. > > > >xw >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" --Px68sada/aQXkwG2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAksFVxsACgkQC3+MBN1Mb4hBSgCfRJLwCzO9z8eku23NmX8Ck35B CtoAmwWPoyHclROafBXVYDfaPEDDze3h =l4kc -----END PGP SIGNATURE----- --Px68sada/aQXkwG2-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 14:52:33 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36F1C106566B for ; Thu, 19 Nov 2009 14:52:33 +0000 (UTC) (envelope-from koffieyahoo@gmail.com) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.211.178]) by mx1.freebsd.org (Postfix) with ESMTP id C9D4C8FC13 for ; Thu, 19 Nov 2009 14:52:32 +0000 (UTC) Received: by ywh8 with SMTP id 8so2126942ywh.3 for ; Thu, 19 Nov 2009 06:52:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=P1UQVM4jjk5bj+o6Vzkv8CcgL7KMgcBuEuiZ3cmZe3o=; b=uJ0l8nvrNHb7FNCwrvqbeuktSN4QJXX6PZykwqy0NFLSqf3NShWVKJCPgGLJnux65A 3Kfzc+0c7l9oPaXpuCulTZE83W6I9w6bwMOQYIHCxJvPmTQyLH6oaJUDOsDekqVf1SP9 fposgeeHO3oQ0AtHUObvy/LX+r1QlQcqbQ7yM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=M6CjE3MVUIKEysahdNe0Z8MEGq3dFyNoTyNSDbjzlK1OPa4PZlkhQCuPHBbUVkY+A6 hJkQI+rnyJ1UaeoO+pDnshQGgwJCTs/P8YZ2xChARw7RNb2fmVT/zW9xoGYCgkCuBIXR 3SqKYNuzmWvTq+16iL9zCJzUTNOLmbtT0lXIk= MIME-Version: 1.0 Received: by 10.150.72.25 with SMTP id u25mr311591yba.57.1258642347332; Thu, 19 Nov 2009 06:52:27 -0800 (PST) In-Reply-To: <86ocmy63ww.fsf@ds4.des.no> References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> Date: Thu, 19 Nov 2009 15:52:27 +0100 Message-ID: <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> From: Koffie Yahoo To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 14:52:33 -0000 >> I've looked but not found (and I hope I'm in the right group here): Is >> there a way to get the user time and system time of a /running/ child >> from its parent (without having to mount procfs)? > > If you have only one child, there's getrusage(2). Unfortunately, that only works for children that have terminated, not for active children. I'm interested in active children. Jay From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 15:07:52 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21C4A1065700 for ; Thu, 19 Nov 2009 15:07:52 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id D2E0E8FC1E for ; Thu, 19 Nov 2009 15:07:51 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id D75E06D41B; Thu, 19 Nov 2009 15:07:50 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 79E1184438; Thu, 19 Nov 2009 16:07:50 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Koffie Yahoo References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> Date: Thu, 19 Nov 2009 16:07:50 +0100 In-Reply-To: <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> (Koffie Yahoo's message of "Thu, 19 Nov 2009 15:52:27 +0100") Message-ID: <86r5ru3649.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 15:07:52 -0000 Koffie Yahoo writes: > Unfortunately, that only works for children that have terminated, not > for active children. I'm interested in active children. Hmm, we could probably add a ptrace(2) operation, but ptrace(2) is inherently evil. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 15:12:54 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D758D106566C for ; Thu, 19 Nov 2009 15:12:54 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7651D8FC0C for ; Thu, 19 Nov 2009 15:12:54 +0000 (UTC) Received: (qmail 77173 invoked from network); 19 Nov 2009 15:12:53 -0000 Received: from unknown (HELO ?192.168.0.131?) (spawk@66.206.120.2) by acm.poly.edu with AES256-SHA encrypted SMTP; 19 Nov 2009 15:12:53 -0000 Message-ID: <4B056039.4040802@acm.poly.edu> Date: Thu, 19 Nov 2009 10:11:53 -0500 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.23 (X11/20090910) MIME-Version: 1.0 To: Koffie Yahoo References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> In-Reply-To: <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 15:12:54 -0000 Koffie Yahoo wrote: >>> I've looked but not found (and I hope I'm in the right group here): Is >>> there a way to get the user time and system time of a /running/ child >>> from its parent (without having to mount procfs)? >>> >> If you have only one child, there's getrusage(2). >> > > Unfortunately, that only works for children that have terminated, not > for active children. I'm interested in active children. > > Jay > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > It's not as portable as getrusage(2), but you could probably get the information you want using libkvm's kvm_getprocs(3) function. The information available is defined in the kinfo_proc structure in /usr/include/sys/user.h. -Boris From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 15:20:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D50C1065747 for ; Thu, 19 Nov 2009 15:20:15 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 604828FC29 for ; Thu, 19 Nov 2009 15:20:15 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 633916D41C; Thu, 19 Nov 2009 15:20:14 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 32D3B84463; Thu, 19 Nov 2009 16:20:14 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Boris Kochergin References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> <4B056039.4040802@acm.poly.edu> Date: Thu, 19 Nov 2009 16:20:14 +0100 In-Reply-To: <4B056039.4040802@acm.poly.edu> (Boris Kochergin's message of "Thu, 19 Nov 2009 10:11:53 -0500") Message-ID: <86einu35jl.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Koffie Yahoo Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 15:20:15 -0000 Boris Kochergin writes: > It's not as portable as getrusage(2), but you could probably get the > information you want using libkvm's kvm_getprocs(3) function. The > information available is defined in the kinfo_proc structure in > /usr/include/sys/user.h. Read the original post. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 15:23:28 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20FB21065693 for ; Thu, 19 Nov 2009 15:23:28 +0000 (UTC) (envelope-from koffieyahoo@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id D511A8FC1D for ; Thu, 19 Nov 2009 15:23:27 +0000 (UTC) Received: by gxk10 with SMTP id 10so2137645gxk.3 for ; Thu, 19 Nov 2009 07:23:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=jQfMT/1Gy+78CFRoqeNt2HOm3V+dt+k4Od/1mtyk2XQ=; b=slwOULfqIK+YA02hil84mnaQtDfcErKkq5GGq/87hQlb6dwiiFFyxMqcMrqf2GqEIX 3Ajj2rpsiM1ZU5fr4dK75v4hgty0rDvTg8MSFXM9N4+tG0d/2LL4M8pAgPmVsVfpXqWh 4VSj+dvKPsFGb5ICk/mozP/J5goPmR9vAmiX0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ltI/YDjQtfwZGJt71uSRBgG27R/XQjmDknXwOygCblpUajtt+WWaT2QQ4/Q/vTczb4 nIW91kS0HCxO5k10TBtnfVPY/Sb7UndOreC0CPsHa/Fkg4I1ZjJQmhz44Rkchxbad9BW Sa1RgeJKNsdpso/lxyC5VA18fzJBV0jofGBq0= MIME-Version: 1.0 Received: by 10.150.127.6 with SMTP id z6mr326987ybc.145.1258643754272; Thu, 19 Nov 2009 07:15:54 -0800 (PST) In-Reply-To: <4B056039.4040802@acm.poly.edu> References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> <4B056039.4040802@acm.poly.edu> Date: Thu, 19 Nov 2009 16:15:54 +0100 Message-ID: <9cb658f10911190715p404da03er9446b5dc5c31cb78@mail.gmail.com> From: Koffie Yahoo To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 15:23:28 -0000 > It's not as portable as getrusage(2), but you could probably get the > information you want using libkvm's kvm_getprocs(3) function. The > information available is defined in the kinfo_proc structure in > /usr/include/sys/user.h. Unfortunately, as far as I can see the kinfo_proc structure only contains the sum of user time and system time and not the two values separately, or have I missed something? Jay From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 15:09:03 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D56B1065672 for ; Thu, 19 Nov 2009 15:09:03 +0000 (UTC) (envelope-from guy.helmer@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 963598FC1F for ; Thu, 19 Nov 2009 15:09:02 +0000 (UTC) Received: by bwz5 with SMTP id 5so2673108bwz.3 for ; Thu, 19 Nov 2009 07:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=mz3aj5c2JIn0y8DsYjTeksfyHmzMJZ2uKxRLXoUSvvg=; b=ufRWTqpw4LNFMZKFipg+G0e/bfPcbPpxL8aXi4C/7JJ012jMWHbh9+fmoElrMZ6jPx qWyF8Zjz4BBcOLq9lE2gq8e4vp9PMfj1LUbsD7I3Twx9CnrlSlJXS6Jue7JDl4op+xFZ XsoWhQywKmAmTsjyAv5oICynprFMe8YVkTKzw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DiTHWCVvo8qx0OpPOsYIQ7TJam139bAGCtJozk2rfQWR8X/4GVnfZN8o+g6UIYU/jV 8dhisMlke7qc2XgpkxtcG65XUNbuxdxFe2IBesrcVM7V564LJIi2p2aO2viE4rFYa8ej 5enCL8FC67SKgrFSOn18heFaVebPPHsiZcwi8= MIME-Version: 1.0 Received: by 10.204.24.20 with SMTP id t20mr59842bkb.141.1258642122110; Thu, 19 Nov 2009 06:48:42 -0800 (PST) Date: Thu, 19 Nov 2009 08:48:41 -0600 Message-ID: <96c81adf0911190648x7a0ba6aeode654a89e1003e27@mail.gmail.com> From: Guy Helmer To: freebsd-hackers@freebsd.org X-Mailman-Approved-At: Thu, 19 Nov 2009 16:07:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Self-encrypting hard drives X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 15:09:03 -0000 I'm looking into using self-encrypting hard drives (TCG Opal standard) with FreeBSD. In particular I want to use the auto-lock mode. I can't seem to find the details regarding how the authentication key is provided to the drive, and where there is any support in FreeBSD to enable unlocking the drive for use. Any pointers would be appreciated. Thanks, Guy From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 16:53:38 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 782BD1065693 for ; Thu, 19 Nov 2009 16:53:38 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 393EC8FC08 for ; Thu, 19 Nov 2009 16:53:38 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id nAJGYgaL037160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 19 Nov 2009 10:34:42 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id nAJGYgNK031440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 19 Nov 2009 10:34:42 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id nAJGYfPX031309; Thu, 19 Nov 2009 10:34:41 -0600 (CST) (envelope-from dan) Date: Thu, 19 Nov 2009 10:34:40 -0600 From: Dan Nelson To: Koffie Yahoo Message-ID: <20091119163437.GE89004@dan.emsphone.com> References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> <4B056039.4040802@acm.poly.edu> <9cb658f10911190715p404da03er9446b5dc5c31cb78@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9cb658f10911190715p404da03er9446b5dc5c31cb78@mail.gmail.com> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Thu, 19 Nov 2009 10:34:42 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-hackers@freebsd.org Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 16:53:38 -0000 In the last episode (Nov 19), Koffie Yahoo said: > > It's not as portable as getrusage(2), but you could probably get the > > information you want using libkvm's kvm_getprocs(3) function. The > > information available is defined in the kinfo_proc structure in > > /usr/include/sys/user.h. > > Unfortunately, as far as I can see the kinfo_proc structure only contains > the sum of user time and system time and not the two values separately, > or have I missed something? Take a look at the the ki_rusage struct inside kinfo_proc. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 20:15:36 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E38F7106568D for ; Thu, 19 Nov 2009 20:15:36 +0000 (UTC) (envelope-from koffieyahoo@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id 9C4258FC16 for ; Thu, 19 Nov 2009 20:15:36 +0000 (UTC) Received: by gxk10 with SMTP id 10so196876gxk.3 for ; Thu, 19 Nov 2009 12:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=wpzRleIdu5xp6SOd5tftl+yMQKF+tkdQbWVgveoqLlM=; b=URLZ8kjcG4fJfo0rDqI27TvqclE9NWHNM2ZeTbShSU3fVLazBo3sym+VA3Nn3pEa2Z LX73wmbAv5K/Ic67LNh/m2sjQpWgoTzh+/4TV0LUcoxKQlLmYL6akglz2QwI54s8dxeJ w2UvU6WeiPpkoytSU3EjVhuvzGZFEVZVNVO1c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=D7sXRI+h/qcUhTCP5iNyGc3rLw/ZpVMMUt0dbMG6sqCWSRYMKiQi1Vi2dvQWCpwh6h rDPjf+JnloaBDQDNO7V65yGNIb7M5UXlmgIcUlUcRg5x0mQ7w5GsDwKFG+nuNoj67KXz SUfsLjfJgn4D3Kl7gKuS+t1tnoB5BrghtTaZQ= MIME-Version: 1.0 Received: by 10.150.127.6 with SMTP id z6mr918438ybc.145.1258661735211; Thu, 19 Nov 2009 12:15:35 -0800 (PST) In-Reply-To: <20091119163437.GE89004@dan.emsphone.com> References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> <4B056039.4040802@acm.poly.edu> <9cb658f10911190715p404da03er9446b5dc5c31cb78@mail.gmail.com> <20091119163437.GE89004@dan.emsphone.com> Date: Thu, 19 Nov 2009 21:15:35 +0100 Message-ID: <9cb658f10911191215w783c6406j5aca01ba92e6ad4d@mail.gmail.com> From: Koffie Yahoo To: Dan Nelson , freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 20:15:37 -0000 That's it! Thanks! Problem solved :-) Jay On Thu, Nov 19, 2009 at 5:34 PM, Dan Nelson wrote= : > In the last episode (Nov 19), Koffie Yahoo said: >> > It's not as portable as getrusage(2), but you could probably get the >> > information you want using libkvm's kvm_getprocs(3) function. The >> > information available is defined in the kinfo_proc structure in >> > /usr/include/sys/user.h. >> >> Unfortunately, as far as I can see the kinfo_proc structure only contain= s >> the sum of user time and system time and not the two values separately, >> or have I missed something? > > Take a look at the the ki_rusage struct inside kinfo_proc. > > -- > =A0 =A0 =A0 =A0Dan Nelson > =A0 =A0 =A0 =A0dnelson@allantgroup.com > From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 23:12:21 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82CF9106566C for ; Thu, 19 Nov 2009 23:12:21 +0000 (UTC) (envelope-from sfourman@gmail.com) Received: from mail-pz0-f185.google.com (mail-pz0-f185.google.com [209.85.222.185]) by mx1.freebsd.org (Postfix) with ESMTP id 580E08FC12 for ; Thu, 19 Nov 2009 23:12:21 +0000 (UTC) Received: by pzk15 with SMTP id 15so1879013pzk.3 for ; Thu, 19 Nov 2009 15:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9NgkYAYqzOn7K5LCm7iUMOFSngaWPLGxEos39D8kF3A=; b=Extt7OAxUCd+1pgKv0WlXaT+jdPpDBdp5NTd3AiKXK+f36ArQZ5UH73QEjqAIJZJRF BJggkN7f9YshPdDvmCJ0ransXNTrPyJGe9i6h2EJaUvB2gEdsxJA+yls0cJVSi2aY2rX C/M+pPS0d4s5qdWIg3SxzYuSth3a47PInecyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nsu7HRcVuK1s6L0EFcHIpd+xunsDFCKn0kt1HSeSkRAj6UE2VHTD4MkR8a7q46gXKj IcJtuGhxzHzknGZ4cwXaErEoHHQwTGkRQ6l0OdnxPUb9waNMXf/F9vMcd6NsEmH2w+JV +EX7kQlFeAbCqxys3BgC8vTlyIhhH6vgCsDvE= MIME-Version: 1.0 Received: by 10.142.2.24 with SMTP id 24mr61823wfb.139.1258672339327; Thu, 19 Nov 2009 15:12:19 -0800 (PST) In-Reply-To: <20091119065742.GA28159@logik.internal.network> References: <20091119065742.GA28159@logik.internal.network> Date: Thu, 19 Nov 2009 17:12:19 -0600 Message-ID: <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com> From: "Sam Fourman Jr." To: xorquewasp@googlemail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 23:12:21 -0000 On Thu, Nov 19, 2009 at 12:57 AM, wrote: > Hello. > > I've done a lot of reading on this problem and don't understand why what = I have > doesn't work. > > =A0http://wiki.freebsd.org/Wine > > I have an entirely 32 bit jail, created by cross-compiling the world with > TARGET=3Di386 and creating a jail from DESTDIR. > > The jail appears to be fully functional - all programs appear to work and > the compiler produces i386 binaries. > > 'uname' has been configured to identify itself as 'i386', so even compili= ng > programs from source works (autoconf correctly recognises the jail system > as i386, etc). I would like to help get this working.. is there a howto somewhere to setup a i386 jail on amd64? I used teh instructions on http://wiki.freebsd.org/Wine (and pointed the jail to /compat/i386) Inside teh jail uname -a still produces this: FreeBSD i386.puffybsd.com 8.0-RC3 FreeBSD 8.0-RC3 #0: Wed Nov 18 22:22:44 UTC 2009 root@:/usr/obj/usr/src/sys/WORKSTATION amd64 so trying to compile mesa-demos produces this /../../src/mesa/x86-64/glapi_x86-64.S:29003: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29004: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29005: Error: `6128(%rax)' is not a valid 32 bit base/index expression ../../../src/mesa/x86-64/glapi_x86-64.S:29006: Error: bad register name `%r= 11' ../../../src/mesa/x86-64/glapi_x86-64.S:29040: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29041: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29042: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29043: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29044: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29046: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29047: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29048: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29049: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29050: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29051: Error: `6136(%rax)' is not a valid 32 bit base/index expression ../../../src/mesa/x86-64/glapi_x86-64.S:29052: Error: bad register name `%r= 11' ../../../src/mesa/x86-64/glapi_x86-64.S:29086: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29087: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29088: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29090: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29091: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29092: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29093: Error: `6144(%rax)' is not a valid 32 bit base/index expression ../../../src/mesa/x86-64/glapi_x86-64.S:29094: Error: bad register name `%r= 11' ../../../src/mesa/x86-64/glapi_x86-64.S:29124: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29125: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29126: Error: suffix or operands invalid for `push' ../../../src/mesa/x86-64/glapi_x86-64.S:29128: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29129: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29130: Error: suffix or operands invalid for `pop' ../../../src/mesa/x86-64/glapi_x86-64.S:29131: Error: `6152(%rax)' is not a valid 32 bit base/index expression ../../../src/mesa/x86-64/glapi_x86-64.S:29132: Error: bad register name `%r= 11' gmake[2]: *** [../../../src/mesa/x86-64/glapi_x86-64.o] Error 1 gmake[2]: Leaving directory `/usr/ports/graphics/mesa-demos/work/Mesa-7.4.4/src/glx/x11' gmake[1]: *** [subdirs] Error 1 gmake[1]: Leaving directory `/usr/ports/graphics/mesa-demos/work/Mesa-7.4.4= /src' gmake: *** [default] Error 1 *** Error code 1 Sam Fourman Jr. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 20 03:30:01 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E863106566B for ; Fri, 20 Nov 2009 03:30:01 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id E06EF8FC14 for ; Fri, 20 Nov 2009 03:30:00 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 22so659578eye.9 for ; Thu, 19 Nov 2009 19:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=cy0xNPkvvOoY2OSxVI+vAYRFpnqx4JO43iHnc2y8F6Y=; b=Q23B6SobdUdoMYh/oxRrzXW4AWv5GVcI0Dtr0muV0efM7qd+7imucayvb9c+trrD7Q XJSe/IufxCS6jnumJpMdwC3pNoLNxXwJPHf4/zcCB/18R5spCjSmyulJ70cexFnj9Pib UUOxgA03d0VbLoV7agTdlhKH0KK7qS1Gy4aGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=cb04ESFtKkpmUX5CtAP3rvpu1Caoct2/fMcVDooXUB0i8tGbcMkKf3gHlJBEGEkdHw yRAhznP6GndqDSBfhuhNlw8UydKtrQtuEVieuUVnfdrHVaHoKNkVrq5Q8Bww6wCunIXM zBie95oRpktKLrWK+4UTC2B6Ujd7WWVmTLR2Q= Received: by 10.216.85.132 with SMTP id u4mr258253wee.191.1258687798620; Thu, 19 Nov 2009 19:29:58 -0800 (PST) Received: from viper.internal.network (dsl78-143-202-207.in-addr.fast.co.uk [78.143.202.207]) by mx.google.com with ESMTPS id p10sm1968168gvf.13.2009.11.19.19.29.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Nov 2009 19:29:57 -0800 (PST) Received: by viper.internal.network (Postfix, from userid 11001) id 135CF4AD53; Fri, 20 Nov 2009 03:29:56 +0000 (GMT) Date: Fri, 20 Nov 2009 03:29:56 +0000 From: xorquewasp@googlemail.com To: "Sam Fourman Jr." Message-ID: <20091120032955.GA27847@logik.internal.network> References: <20091119065742.GA28159@logik.internal.network> <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 03:30:01 -0000 On 2009-11-19 17:12:19, Sam Fourman Jr. wrote: > > I would like to help get this working.. is there a howto somewhere to > setup a i386 jail on amd64? > I used teh instructions on http://wiki.freebsd.org/Wine (and pointed > the jail to /compat/i386) > Inside teh jail uname -a still produces this: > FreeBSD i386.puffybsd.com 8.0-RC3 FreeBSD 8.0-RC3 #0: Wed Nov 18 > 22:22:44 UTC 2009 root@:/usr/obj/usr/src/sys/WORKSTATION amd64 Hello. Not sure about the mesa problem at the moment, but I made uname identify itself as i386 by just setting UNAME_m=i386 in the environment. You could put this in the shell environment of the user you run as inside the jail. xw From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 20 13:43:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58FAB1065672 for ; Fri, 20 Nov 2009 13:43:19 +0000 (UTC) (envelope-from gatinhodosseussonhos@hotmail.com) Received: from snt0-omc2-s16.snt0.hotmail.com (snt0-omc2-s16.snt0.hotmail.com [65.55.90.91]) by mx1.freebsd.org (Postfix) with ESMTP id 297FC8FC21 for ; Fri, 20 Nov 2009 13:43:19 +0000 (UTC) Received: from SNT102-W45 ([65.55.90.71]) by snt0-omc2-s16.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 20 Nov 2009 05:31:18 -0800 Message-ID: X-Originating-IP: [187.5.238.187] From: Fulano Tal To: Date: Fri, 20 Nov 2009 14:31:18 +0100 Importance: Normal In-Reply-To: <20091120032955.GA27847@logik.internal.network> References: <20091119065742.GA28159@logik.internal.network>, <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com>, <20091120032955.GA27847@logik.internal.network> MIME-Version: 1.0 X-OriginalArrivalTime: 20 Nov 2009 13:31:18.0226 (UTC) FILETIME=[BD905320:01CA69E5] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: RE: Wine on amd64 in 32 bit jail - for stupid peaple only X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 13:43:19 -0000 Use IPMI to read architecture information is easy=2C but a nice ploy is to = sed-out i386 and amd64 related #ifdefs=2C and have nightmares with chains..= . sorry=2C I mean You will have a bi-archtecture system after some work wit= h a cool new personalized tables compatible with 32 and 64 images. You will= have the honorable scout's ribbon of scratch a file system in your chest a= fter stark in short=2C something like an homunculus with AB positive blood = type. =20 good luck. =20 =20 ps.: Do I waste time sending replies that maybe will not help anybody=2C wi= th idiot thoughs like: "hey guys=2C what about we taylor an prototype of an= a.i. managed not human operating system=2C that is not so simple to be han= dled by any simple person except for a few seconds at every century by prod= igy minds more exceptional than any existing mythological wisdom=2C and wit= hout any crt and hack objects or strange acpi boring dependencies that nobo= dy want to explain=2C just to perform the simple task of running other two = kernels=2C like a freebsd code at cpu0 and a slackware code at cpu1=2C and = have triple-eyed super-kernel force balancing shared jobs of an world wide = clustered extensible system?" nevermind. =20 =20 =20 > Date: Fri=2C 20 Nov 2009 03:29:56 +0000 > From: xorquewasp@googlemail.com > To: sfourman@gmail.com > CC: freebsd-hackers@freebsd.org > Subject: Re: Wine on amd64 in 32 bit jail >=20 > On 2009-11-19 17:12:19=2C Sam Fourman Jr. wrote: > >=20 > > I would like to help get this working.. is there a howto somewhere to > > setup a i386 jail on amd64? > > I used teh instructions on http://wiki.freebsd.org/Wine (and pointed > > the jail to /compat/i386) > > Inside teh jail uname -a still produces this: > > FreeBSD i386.puffybsd.com 8.0-RC3 FreeBSD 8.0-RC3 #0: Wed Nov 18 > > 22:22:44 UTC 2009 root@:/usr/obj/usr/src/sys/WORKSTATION amd64 >=20 > Hello. >=20 > Not sure about the mesa problem at the moment=2C but I made uname identif= y > itself as i386 by just setting UNAME_m=3Di386 in the environment. >=20 > You could put this in the shell environment of the user you run as inside > the jail. >=20 > xw > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe=2C send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg" =20 _________________________________________________________________ Novo windowslive.com.br. Descubra como juntar a galera com os produtos Wind= ows Live. http://www.windowslive.com.br/?ocid=3DWindowsLive09_MSN_Hotmail_Tagline_out= 09= From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 20 18:43:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1949E106566B for ; Fri, 20 Nov 2009 18:43:19 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outL.internet-mail-service.net (outl.internet-mail-service.net [216.240.47.235]) by mx1.freebsd.org (Postfix) with ESMTP id F3B638FC1F for ; Fri, 20 Nov 2009 18:43:18 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 1D51114DF64; Fri, 20 Nov 2009 10:44:08 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 48FC72D6015; Fri, 20 Nov 2009 10:43:18 -0800 (PST) Message-ID: <4B06E345.4030603@elischer.org> Date: Fri, 20 Nov 2009 10:43:17 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Fulano Tal References: <20091119065742.GA28159@logik.internal.network>, <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com>, <20091120032955.GA27847@logik.internal.network> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail - for stupid peaple only X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 18:43:19 -0000 Fulano Tal wrote: > Use IPMI to read architecture information is easy, but a nice ploy is to sed-out i386 and amd64 related #ifdefs, and have nightmares with chains... sorry, I mean You will have a bi-archtecture system after some work with a cool new personalized tables compatible with 32 and 64 images. You will have the honorable scout's ribbon of scratch a file system in your chest after stark in short, something like an homunculus with AB positive blood type. > > > > > good luck. > > > > > ps.: Do I waste time sending replies that maybe will not help anybody, with idiot thoughs like: "hey guys, what about we taylor an prototype of an a.i. managed not human operating system, that is not so simple to be handled by any simple person except for a few seconds at every century by prodigy minds more exceptional than any existing mythological wisdom, and without any crt and hack objects or strange acpi boring dependencies that nobody want to explain, just to perform the simple task of running other two kernels, like a freebsd code at cpu0 and a slackware code at cpu1, and have triple-eyed super-kernel force balancing shared jobs of an world wide clustered extensible system?" > > > nevermind. > Didn't your mother tell you to not eat other people's medications? :-) Julian From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 20 19:08:26 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72C1A1065694 for ; Fri, 20 Nov 2009 19:08:26 +0000 (UTC) (envelope-from gatinhodosseussonhos@hotmail.com) Received: from snt0-omc4-s14.snt0.hotmail.com (snt0-omc4-s14.snt0.hotmail.com [65.55.90.217]) by mx1.freebsd.org (Postfix) with ESMTP id 445608FC1B for ; Fri, 20 Nov 2009 19:08:26 +0000 (UTC) Received: from SNT102-W34 ([65.55.90.200]) by snt0-omc4-s14.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 20 Nov 2009 11:08:25 -0800 Message-ID: X-Originating-IP: [187.5.238.187] From: Fulano Tal To: Date: Fri, 20 Nov 2009 20:08:25 +0100 Importance: Normal In-Reply-To: <4B06E345.4030603@elischer.org> References: <20091119065742.GA28159@logik.internal.network>, , <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com>, , <20091120032955.GA27847@logik.internal.network>, , <4B06E345.4030603@elischer.org> MIME-Version: 1.0 X-OriginalArrivalTime: 20 Nov 2009 19:08:25.0885 (UTC) FILETIME=[D63024D0:01CA6A14] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: RE: Wine on amd64 in 32 bit jail - for stupid peaple only X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 19:08:26 -0000 neither I believe I was sober=2C bleh :P =20 Underdog - planning to write a book now =20 > Date: Fri=2C 20 Nov 2009 10:43:17 -0800 > From: julian@elischer.org > To: gatinhodosseussonhos@hotmail.com > CC: freebsd-hackers@freebsd.org > Subject: Re: Wine on amd64 in 32 bit jail - for stupid peaple only >=20 > Fulano Tal wrote: > > Use IPMI to read architecture information is easy=2C but a nice ploy > is to sed-out i386 and amd64 related #ifdefs=2C and have nightmares with > chains... sorry=2C I mean You will have a bi-archtecture system after > some work with a cool new personalized tables compatible with 32 and > 64 images. You will have the honorable scout's ribbon of scratch a > file system in your chest after stark in short=2C something like an > homunculus with AB positive blood type. > >=20 > >=20 > >=20 > >=20 > > good luck. > >=20 > >=20 > >=20 > >=20 > > ps.: Do I waste time sending replies that maybe will not help > anybody=2C with idiot thoughs like: "hey guys=2C what about we taylor an > prototype of an a.i. managed not human operating system=2C that is not > so simple to be handled by any simple person except for a few seconds > at every century by prodigy minds more exceptional than any existing > mythological wisdom=2C and without any crt and hack objects or strange > acpi boring dependencies that nobody want to explain=2C just to perform > the simple task of running other two kernels=2C like a freebsd code at > cpu0 and a slackware code at cpu1=2C and have triple-eyed super-kernel > force balancing shared jobs of an world wide clustered extensible system?= " > >=20 > >=20 > > nevermind. > >=20 >=20 > Didn't your mother tell you to not eat other people's medications? >=20 >=20 > :-) >=20 > Julian >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe=2C send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg" =20 _________________________________________________________________ Agora a pressa =E9 amiga da perfei=E7=E3o. Chegou o Windows 7. Conhe=E7a! http://www.microsoft.com/brasil/windows7/default.html?WT.mc_id=3D1539= From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 20 23:17:51 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60FBF1065670 for ; Fri, 20 Nov 2009 23:17:51 +0000 (UTC) (envelope-from kayve@sfsu.edu) Received: from iron3.sfsu.edu (iron3.sfsu.edu [130.212.10.128]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4CD8FC15 for ; Fri, 20 Nov 2009 23:17:50 +0000 (UTC) X-Inbound-SFSU: False X-onepass: IPPSC X-From-SFSU: True X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAMetBkuC1B9B/2dsb2JhbADGVgEJBYVviE+CUoFqBIFvgiCBSIRS Received: from edg01.sfsu.edu ([130.212.31.65]) by iron3.sfsu.edu with ESMTP; 20 Nov 2009 15:17:50 -0800 Received: from EHB01.ad.sfsu.edu (130.212.31.27) by EDG01.sfsu.edu (130.212.31.65) with Microsoft SMTP Server (TLS) id 8.2.176.0; Fri, 20 Nov 2009 15:17:50 -0800 Received: from smtp01.sfsu.edu (130.212.10.100) by ehb.ad.sfsu.edu (130.212.31.27) with Microsoft SMTP Server id 8.2.176.0; Fri, 20 Nov 2009 15:17:49 -0800 Received: from libra.sfsu.edu ([130.212.10.238]) by mail05a.sfsu.edu (Lotus Domino Release 7.0.4HF59) with ESMTP id 2009112015174739-555 ; Fri, 20 Nov 2009 15:17:47 -0800 Date: Fri, 20 Nov 2009 15:17:47 -0800 From: KAYVEN RIESE To: Julian Elischer In-Reply-To: <4B0555C6.8020105@elischer.org> Message-ID: References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <4B0555C6.8020105@elischer.org> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on MAIL05a/SERVERS/SFSU(Release 7.0.4HF59 | August 11, 2009) at 11/20/2009 15:17:47, Serialize by Router on SMTP01/SERVERS/SFSU(Release 7.0.4|March 23, 2009) at 11/20/2009 15:17:50, Serialize complete at 11/20/2009 15:17:50 Content-Type: text/plain; charset="US-ASCII"; format=flowed Cc: freebsd-hackers@freebsd.org, xorquewasp@googlemail.com Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 23:17:51 -0000 On Thu, 19 Nov 2009, Julian Elischer wrote: > xorquewasp@googlemail.com wrote: >> On 2009-11-18 23:19:14, Julian Elischer wrote: >>> Wine is an exceptional bit of software, in many ways. >> http://wiki.freebsd.org/Wine >> >> "FreeBSD currently lacks support for 32bit ports on a 64bit system. >> However, with a little bit of effort you can build and use the 32 bit >> wine executable on an amd64 system (Diablo 2 works just fine)." >> >> His instructions show an essentially identical setup to mine (apart >> from the fact that he's running a chroot and I'm running a jail). > > jail may not alow you to do the LDT system calls. > > have you tried a chroot? Is there any reason to fear Microsoft viruses infecting Wine programs? Is that why he is using a jail? Would there be a greater danger of virus infection with chroot? > >> >> Even any ideas on how to debug this would help. >> >> xw > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > *----------------------------------------------------------* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *----------------------------------------------------------* From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 20 23:51:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06479106566C for ; Fri, 20 Nov 2009 23:51:19 +0000 (UTC) (envelope-from kayve@sfsu.edu) Received: from iron1.sfsu.edu (iron1.sfsu.edu [130.212.10.35]) by mx1.freebsd.org (Postfix) with ESMTP id D36AF8FC13 for ; Fri, 20 Nov 2009 23:51:18 +0000 (UTC) X-Inbound-SFSU: False X-onepass: IPPSC X-From-SFSU: True X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEADO6BkuC1B9C/2dsb2JhbACQGbZOAQkFhXCIT4JSgWoEgW+CIIFIhFI Received: from edg02.sfsu.edu ([130.212.31.66]) by iron1.sfsu.edu with ESMTP; 20 Nov 2009 15:51:18 -0800 Received: from EHB02.ad.sfsu.edu (130.212.31.84) by EDG02.sfsu.edu (130.212.31.66) with Microsoft SMTP Server (TLS) id 8.2.176.0; Fri, 20 Nov 2009 15:51:18 -0800 Received: from smtp01.sfsu.edu (130.212.10.100) by ehb.ad.sfsu.edu (130.212.31.28) with Microsoft SMTP Server id 8.2.176.0; Fri, 20 Nov 2009 15:51:17 -0800 Received: from libra.sfsu.edu ([130.212.10.238]) by mail05a.sfsu.edu (Lotus Domino Release 7.0.4HF59) with ESMTP id 2009112015511704-558 ; Fri, 20 Nov 2009 15:51:17 -0800 Date: Fri, 20 Nov 2009 15:51:16 -0800 From: KAYVEN RIESE To: Fulano Tal In-Reply-To: Message-ID: References: <20091119065742.GA28159@logik.internal.network>, , <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com>, , <20091120032955.GA27847@logik.internal.network>, , <4B06E345.4030603@elischer.org> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on MAIL05a/SERVERS/SFSU(Release 7.0.4HF59 | August 11, 2009) at 11/20/2009 15:51:17, Serialize by Router on SMTP01/SERVERS/SFSU(Release 7.0.4|March 23, 2009) at 11/20/2009 15:51:17, Serialize complete at 11/20/2009 15:51:17 Content-Type: multipart/mixed; boundary="-559023410-758783491-1258761076=:5398" Cc: freebsd-hackers@freebsd.org, julian@elischer.org Subject: RE: Wine on amd64 in 32 bit jail - for stupid peaple only X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 23:51:19 -0000 ---559023410-758783491-1258761076=:5398 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Type: text/plain; charset="iso-8859-1"; format=flowed On Fri, 20 Nov 2009, Fulano Tal wrote: > > neither I believe I was sober, bleh :P > > > > Underdog - planning to write a book now S00per! {:D what's it gonna be called? > > > >> Date: Fri, 20 Nov 2009 10:43:17 -0800 >> From: julian@elischer.org >> To: gatinhodosseussonhos@hotmail.com >> CC: freebsd-hackers@freebsd.org >> Subject: Re: Wine on amd64 in 32 bit jail - for stupid peaple only >> >> Fulano Tal wrote: >>> Use IPMI to read architecture information is easy, but a nice ploy >> is to sed-out i386 and amd64 related #ifdefs, and have nightmares with >> chains... sorry, I mean You will have a bi-archtecture system after >> some work with a cool new personalized tables compatible with 32 and >> 64 images. You will have the honorable scout's ribbon of scratch a >> file system in your chest after stark in short, something like an >> homunculus with AB positive blood type. >>> >>> >>> >>> >>> good luck. >>> >>> >>> >>> >>> ps.: Do I waste time sending replies that maybe will not help >> anybody, with idiot thoughs like: "hey guys, what about we taylor an >> prototype of an a.i. managed not human operating system, that is not >> so simple to be handled by any simple person except for a few seconds >> at every century by prodigy minds more exceptional than any existing >> mythological wisdom, and without any crt and hack objects or strange >> acpi boring dependencies that nobody want to explain, just to perform >> the simple task of running other two kernels, like a freebsd code at >> cpu0 and a slackware code at cpu1, and have triple-eyed super-kernel >> force balancing shared jobs of an world wide clustered extensible system= ?" >>> >>> >>> nevermind. >>> >> >> Didn't your mother tell you to not eat other people's medications? >> >> >> :-) >> >> Julian >> >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.or= g" > > _________________________________________________________________ > Agora a pressa =E9 amiga da perfei=E7=E3o. Chegou o Windows 7. Conhe=E7a! > http://www.microsoft.com/brasil/windows7/default.html?WT.mc_id=3D1539____= ___________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > *----------------------------------------------------------* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *----------------------------------------------------------* ---559023410-758783491-1258761076=:5398-- From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 21 00:27:50 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6D23106566B for ; Sat, 21 Nov 2009 00:27:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outK.internet-mail-service.net (outk.internet-mail-service.net [216.240.47.234]) by mx1.freebsd.org (Postfix) with ESMTP id 990BC8FC1A for ; Sat, 21 Nov 2009 00:27:50 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 6A41914DEE7; Fri, 20 Nov 2009 16:28:16 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id BCA2C2D6017; Fri, 20 Nov 2009 16:27:49 -0800 (PST) Message-ID: <4B073404.407@elischer.org> Date: Fri, 20 Nov 2009 16:27:48 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: KAYVEN RIESE References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <4B0555C6.8020105@elischer.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, xorquewasp@googlemail.com Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 00:27:50 -0000 KAYVEN RIESE wrote: > > On Thu, 19 Nov 2009, Julian Elischer wrote: >> xorquewasp@googlemail.com wrote: >>> On 2009-11-18 23:19:14, Julian Elischer wrote: > >>>> Wine is an exceptional bit of software, in many ways. > >>> http://wiki.freebsd.org/Wine >>> >>> "FreeBSD currently lacks support for 32bit ports on a 64bit system. >>> However, with a little bit of effort you can build and use the 32 bit >>> wine executable on an amd64 system (Diablo 2 works just fine)." >>> >>> His instructions show an essentially identical setup to mine (apart >>> from the fact that he's running a chroot and I'm running a jail). >> >> jail may not alow you to do the LDT system calls. >> >> have you tried a chroot? > > Is there any reason to fear Microsoft viruses infecting Wine programs? > Is that why he is using a jail? Would there be a greater danger of > virus infection with chroot? I was thinking just as a test, but others have answered the question I believe. > > >> >>> >>> Even any ideas on how to debug this would help. >>> >>> xw >> >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org" >> > > *----------------------------------------------------------* > Kayven Riese, BSCS, MS (Physiology and Biophysics) > (415) 902 5513 cellular > http://kayve.net > Webmaster http://ChessYoga.org > *----------------------------------------------------------* > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 21 09:10:56 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 193D41065693 for ; Sat, 21 Nov 2009 09:10:56 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (unknown [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id E49848FC15 for ; Sat, 21 Nov 2009 09:10:55 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id nAL9AtNM089022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 21 Nov 2009 01:10:55 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id nAL9Athu089021; Sat, 21 Nov 2009 01:10:55 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA13284; Sat, 21 Nov 09 01:01:41 PST Date: Sat, 21 Nov 2009 01:01:59 -0800 From: perryh@pluto.rain.com To: kayve@sfsu.edu Message-Id: <4b07ac87.h6ReR06qiwiC2CTM%perryh@pluto.rain.com> References: <20091119065742.GA28159@logik.internal.network> <4B04F172.7070803@elischer.org> <20091119073818.GA81272@logik.internal.network> <4B0555C6.8020105@elischer.org> In-Reply-To: User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 09:10:56 -0000 KAYVEN RIESE wrote: > Is there any reason to fear Microsoft viruses infecting Wine programs? In principle, yes, because Wine is supposed to be a complete reimplementation of the win32 API, thus any program that runs differently on Wine than on Windows demonstrates a bug in Wine. (IIRC there are a few Windows viruses that do run on wine.) In practice, any Wine bug that impairs only viruses will probably not be a high priority to get fixed :) From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 21 13:21:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E6EA1065670 for ; Sat, 21 Nov 2009 13:21:19 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from fallbackmx09.syd.optusnet.com.au (fallbackmx09.syd.optusnet.com.au [211.29.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id BE3E78FC22 for ; Sat, 21 Nov 2009 13:21:17 +0000 (UTC) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by fallbackmx09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id nALAqnMg020392 for ; Sat, 21 Nov 2009 21:52:49 +1100 Received: from server.vk2pj.dyndns.org (c122-106-232-83.belrs3.nsw.optusnet.com.au [122.106.232.83]) by mail12.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id nALAqjnX003739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 21 Nov 2009 21:52:46 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id nALAqjnf037501; Sat, 21 Nov 2009 21:52:45 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id nALAqi0s037500; Sat, 21 Nov 2009 21:52:44 +1100 (EST) (envelope-from peter) Date: Sat, 21 Nov 2009 21:52:44 +1100 From: Peter Jeremy To: "Sam Fourman Jr." Message-ID: <20091121105244.GA35595@server.vk2pj.dyndns.org> References: <20091119065742.GA28159@logik.internal.network> <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 13:21:19 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2009-Nov-19 17:12:19 -0600, "Sam Fourman Jr." wrote: >I would like to help get this working.. is there a howto somewhere to >setup a i386 jail on amd64? >I used teh instructions on http://wiki.freebsd.org/Wine (and pointed >the jail to /compat/i386) I haven't tried wine, but I do have an i386 jail on my main amd64 server (primarily to build apps for my netbook) and have managed to build all the apps I want (including Firefox, OpenOffice.org and jdk15). I have a full i386 world installed in the jail and have the following overrides in my environment: MACHINE=3Di386 UNAME_p=3Di386 UNAME_m=3Di386 I did run into problems initially because my i386 userland wasn't aligned with my amd64 kernel but rebuilding both fixed that (I'm running 8.0-RC1 and a bit). Note that some tools that poke around in kernel innards won't work - ps and lsof are the most obvious. ktrace works but the resultant ktrace.out files need to read with an amd64 kdump. >Inside teh jail uname -a still produces this: >FreeBSD i386.puffybsd.com 8.0-RC3 FreeBSD 8.0-RC3 #0: Wed Nov 18 >22:22:44 UTC 2009 root@:/usr/obj/usr/src/sys/WORKSTATION amd64 You are missing the UNAME_x environment variables. >so trying to compile mesa-demos produces this It will compile and run with the above environment changes. --=20 Peter Jeremy --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAksHxnwACgkQ/opHv/APuIf6CgCbBDSYnpLYmRlhsB2V8ZLu285m PRMAnAkGveZpqHIb/vLTOOhasudZ5E/9 =b4tr -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx-- From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 21 18:22:28 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2B761065672 for ; Sat, 21 Nov 2009 18:22:28 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-iw0-f190.google.com (mail-iw0-f190.google.com [209.85.223.190]) by mx1.freebsd.org (Postfix) with ESMTP id 4219B8FC15 for ; Sat, 21 Nov 2009 18:22:28 +0000 (UTC) Received: by iwn28 with SMTP id 28so3148378iwn.3 for ; Sat, 21 Nov 2009 10:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=eR0C1GMzuUh6qBg6U/tKon0Xme3HpvBQo3M7a5iz5Sw=; b=tOewjlzK8onF0J8wkiMRMk3ruJtDPNoIarQG5RHRpQS0ivZSRtN+lS+51+SJ/+2HnP sEuoP1haXOPDmSvAfQYz1kr3jMy5NYzyKNeybGpo3TWxq8JTvY0T4/i0DkAh5kQ8V7K0 k3iLtkAw0+N1BQQ7WRzS7hMpoCRTh7qVfcauk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=i1mRBhR1HxQ5zvUGxvEKrma5rVaM8iTU6JOUqsgBpiG2ff7spPUDY1lNeiL8tDUOFS xCxavNOEnV5bqXH/qkmAzYj07QWj67tlV96ubz7/fHuXfzftcJLuyCNHhPH9NCKT8cUn +XZy1gO2d90LO1Z3TNCGupNMzZubFyi06y0oE= MIME-Version: 1.0 Sender: artemb@gmail.com Received: by 10.231.9.218 with SMTP id m26mr3163078ibm.29.1258826072538; Sat, 21 Nov 2009 09:54:32 -0800 (PST) In-Reply-To: <20091121105244.GA35595@server.vk2pj.dyndns.org> References: <20091119065742.GA28159@logik.internal.network> <11167f520911191512q5fa951dbu6ab7cf35de31825@mail.gmail.com> <20091121105244.GA35595@server.vk2pj.dyndns.org> Date: Sat, 21 Nov 2009 09:54:32 -0800 X-Google-Sender-Auth: dbf79ce4b6e55daf Message-ID: From: Artem Belevich To: Peter Jeremy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "Sam Fourman Jr." , freebsd-hackers@freebsd.org Subject: Re: Wine on amd64 in 32 bit jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 18:22:28 -0000 > Note that some tools that poke around in kernel innards won't work - > ps and lsof are the most obvious. =A0ktrace works but the resultant > ktrace.out files need to read with an amd64 kdump. Some of those issues can be solved by using within 32-bit jail statically linked 64-bit binaries. It does work for ps which is available in /rescue . --Artem From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 21 21:01:35 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDCF5106566B for ; Sat, 21 Nov 2009 21:01:35 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id 87E2F8FC16 for ; Sat, 21 Nov 2009 21:01:35 +0000 (UTC) Received: by ewy26 with SMTP id 26so758111ewy.3 for ; Sat, 21 Nov 2009 13:01:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=GrVRBShY3aXbOA0WhNUD/g0gznPaRHALyMLuu/v9oXo=; b=iMyjcQYP9N7vUhdrzMFTcv0I4X1U1P+QGqgtGKTB0qOuSCHkuzvlCy9gd8lX/c6I/5 S4C1r6KHk9yZPtAEn49+nlnjrKs59Hek8FqW7lXCeB6OZyk7I8Y2p3E2qUfAGKN7HmEa ESim0FgNzP7PmoKviKIzBKoxeuRsGjnfunrkQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=PL1YvWCFVHOwJI0Ddi4/viPWedode1Sn9bH8k+NCr0uhGAhUFVfFDttcbNj9BYzDZK Qs5UGdaYN28d8pPuvOKOWEIHWCLdgGO5HJyQA0ZtrioiuBClj1iN2zYijybIXq8KM909 evR4uY/s1na7ggbxmzTVnnMnUHjiXJsiLevto= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.93.75 with SMTP id k53mr869808wef.209.1258836057274; Sat, 21 Nov 2009 12:40:57 -0800 (PST) From: Ivan Voras Date: Sat, 21 Nov 2009 21:40:37 +0100 X-Google-Sender-Auth: 9b44392f6e05f2fa Message-ID: <9bbcef730911211240n342d412dg21af8c76b4e1b429@mail.gmail.com> To: hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: Subject: PUFFS SoC project? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Nov 2009 21:01:36 -0000 What is the status of this year's SoC projects? Specifically, does anyone know what happened to PUFFS? (http://wiki.freebsd.org/SOC2009TatsianaSeveryna) ?