From owner-freebsd-current Sun Feb 2 1: 4:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7037837B401 for ; Sun, 2 Feb 2003 01:04:26 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3C7443F43 for ; Sun, 2 Feb 2003 01:04:24 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h1294Nd6060036; Sun, 2 Feb 2003 12:04:23 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h1294MDF060035; Sun, 2 Feb 2003 12:04:22 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 12:04:22 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: current@FreeBSD.org Subject: Re: rand() is broken Message-ID: <20030202090422.GA59750@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20030202070644.GA9987@rot13.obsecurity.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 01, 2003 at 23:06:50 -0800, Kris Kennaway wrote: > FreeBSD's rand() implementation has been broken for the past 23 > months, since the following commit: > i.e. the first value returned from rand() is correlated with the seed > given to srand(). This is a big problem unless your seed is randomly > chosen over its entire integer range. I noticed this because awk > exhibits the same problem, and the script seeds the generator with a > PID. The script works fine under 4.x since the rand() implementation > does not have this "feature". Yes, first value correlation is there, but old formulae have even worse effect "The random sequences do not vary much with the seed", as source file comments and whole discussion about old RNG bad effects shown. I.e. = =20 for different time+PID sequence, especially increased monotonically, like in common practice, you'l got the same random sequence with old formulae (which can't be called "works fine" because this fine work was the main reason for change). So, returning to old formulae is not an option. The real problem is not in formulae, but in srand() funclion. This simple patch can fix first value correlation, and I plan to commit it, if we all agree. I not find better value for NSHUFF right now, but think that something like 10 will be enough to fight corellation completely. Some generating picture tests needed. --- stdlib/rand.c.bak Sat Jan 4 20:39:19 2003 +++ stdlib/rand.c Sun Feb 2 11:56:01 2003 @@ -51,6 +51,8 @@ #include #endif /* TEST */ =20 +#define NSHUFF 3 + static int do_rand(unsigned long *ctx) { @@ -103,7 +105,11 @@ srand(seed) u_int seed; { + int i; + next =3D seed; + for (i =3D 0; i < NSHUFF; i++) + (void)do_rand(&next); } =20 =20 @@ -117,7 +123,7 @@ void sranddev() { - int fd, done; + int fd, done, i; =20 done =3D 0; fd =3D _open("/dev/random", O_RDONLY, 0); @@ -133,6 +139,8 @@ =20 gettimeofday(&tv, NULL); next =3D (getpid() << 16) ^ tv.tv_sec ^ tv.tv_usec ^ junk; + for (i =3D 0; i < NSHUFF; i++) + (void)do_rand(&next); } } =20 --=20 Andrey A. Chernov http://ache.pp.ru/ --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPjzfFuJgpPLZnQjrAQGjNAP+Lrf+q4WX8JMLAznPY33Fjt/cvq5O3i0K +vbYYhHh1elr3NKRZMQGJmPj3im+sJMtn6vlBMVEVeRtU5UHLKWE70Fh7CkwlzrT Et8ZyWwsmWG6v6N/g854+fFOeNoO9xM9kj/ughWbZG8u/z4VWHXs0xJ04vp3Q5ms TJWwG3lO7Fk= =ZJVn -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 1: 6:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C630237B401; Sun, 2 Feb 2003 01:06:57 -0800 (PST) Received: from accms33.physik.rwth-aachen.de (accms33.physik.RWTH-Aachen.DE [137.226.46.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40BA743F79; Sun, 2 Feb 2003 01:06:56 -0800 (PST) (envelope-from kuku@accms33.physik.rwth-aachen.de) Received: (from kuku@localhost) by accms33.physik.rwth-aachen.de (8.9.3/8.9.3) id KAA01011; Sun, 2 Feb 2003 10:06:54 +0100 Date: Sun, 2 Feb 2003 10:06:54 +0100 From: "Christoph P. Kukulies" To: phk@FreeBSD.ORG Cc: Christoph Kukulies , freebsd-current@FreeBSD.ORG Subject: Re: ata0: resetting device - ASUS P4S8X Message-ID: <20030202100654.A976@gilberto.physik.rwth-aachen.de> References: <200302011726.SAA18502@accms33.physik.rwth-aachen.de> <62982.1044120645@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <62982.1044120645@critter.freebsd.dk>; from phk@FreeBSD.ORG on Sat, Feb 01, 2003 at 06:30:45PM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 01, 2003 at 06:30:45PM +0100, phk@FreeBSD.ORG wrote: > In message <200302011726.SAA18502@accms33.physik.rwth-aachen.de>, Christoph Kuk > ulies writes: > > > >I bought new hardware for a server today, an ASUS P4S8X with > >an 1.8 GHZ P4 CPU, nothing fancy I would say, which has an > >onboard RAID controller (Promise) but I'm not using it > >for the moment. I attached an IBM 60GB Deskstar ATA/IDE disk to > >the IDE 1 port. FreeBSD 5.0R boots until the point where > >it says: > > > >ad0: READ command timeout tag=0 serv=0 - resetting > >ata0: resetting device > > > >and there it hangs forever. > > set hw.ata.ata_dma=0 Is there a way to edit loader.conf (or what that file may be) from the boot prompt? Otherwise I would have to mount the disk back into into the host system, where I did the installation. > > in the bootloader. > > Sos@ is working the issue and will love to have a tester :-) > -- Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 1:11:10 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84FC637B401 for ; Sun, 2 Feb 2003 01:11:08 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6470143F3F for ; Sun, 2 Feb 2003 01:11:07 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id BCFF567C6F; Sun, 2 Feb 2003 01:11:06 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 9A909908; Sun, 2 Feb 2003 01:11:06 -0800 (PST) Date: Sun, 2 Feb 2003 01:11:06 -0800 From: Kris Kennaway To: "Andrey A. Chernov" Cc: Kris Kennaway , current@FreeBSD.org Subject: Re: rand() is broken Message-ID: <20030202091106.GA72723@rot13.obsecurity.org> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: <20030202090422.GA59750@nagual.pp.ru> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 12:04:22PM +0300, Andrey A. Chernov wrote: > Yes, first value correlation is there, but old formulae have even worse > effect "The random sequences do not vary much with the seed", as source > file comments and whole discussion about old RNG bad effects shown. I.e. = =20 > for different time+PID sequence, especially increased monotonically, like > in common practice, you'l got the same random sequence with old formulae > (which can't be called "works fine" because this fine work was the main > reason for change). So, returning to old formulae is not an option. >=20 > The real problem is not in formulae, but in srand() funclion. This simple > patch can fix first value correlation, and I plan to commit it, if we all > agree. I not find better value for NSHUFF right now, but think > that something like 10 will be enough to fight corellation completely. > Some generating picture tests needed. Another problem (noticed by tjr) is that once the sequence hits '0' it jumps to INT_MAX and stays there forever. For example, seeding with srand(0) produces nothing but INT_MAX from rand(). It looks like a lot more validation of this PRNG is needed. Kris --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+POCqWry0BWjoQKURApTTAKCGV+NLYk2nEYyF/dL9N6YkMlpuowCgh5/K 5mHYw132I5P1PA6SVtlx6MY= =XdrF -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 1:13:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C4F437B401 for ; Sun, 2 Feb 2003 01:13:38 -0800 (PST) Received: from 100m.mpr200-1.esr.lvcm.net (100m.mpr200-1.esr.lvcm.net [24.234.0.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F9AE43F75 for ; Sun, 2 Feb 2003 01:13:33 -0800 (PST) (envelope-from tdondich@majiknetworks.com) Received: from majiknetworks.com (ip68-96-99-237.lv.lv.cox.net [68.96.99.237]) by 100m.mpr200-1.esr.lvcm.net (Mirapoint Messaging Server MOS 2.9.3.5) with ESMTP id ASL96058; Sun, 2 Feb 2003 01:13:20 -0800 (PST) Message-ID: <3E3CE249.8010409@majiknetworks.com> Date: Sun, 02 Feb 2003 01:18:01 -0800 From: Taylor Dondich User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Subject: First time CURRENT user having problems with new boot loader install Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG After reading src/UPDATING and attempting to follow the directions to upgrade from 4.7-RELEASE to -CURRENT, I'm having some difficulty, after successfully building world and building and installing the kernel, I attempted to make install in src/sys/boot. I'm getting the following error: ((inappropriate text taken out)) ====> i386/mbr install -o root -g wheel -m 444 mbr /boot install: mbr: No such file or directory *** Error code 71 Sadly, I'm not experienced, this is my first CURRENT build, and I'm hoping I researched enough of it, but if I'm missing something that's documented, I'd love if someone pointed it out so I can further educate myself. Thanks, Taylor Dondich Majik Networks Incorporated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 1:27:23 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBF4537B401 for ; Sun, 2 Feb 2003 01:27:21 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 603E443F43 for ; Sun, 2 Feb 2003 01:27:20 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h129RJd6060259; Sun, 2 Feb 2003 12:27:19 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h129RIas060258; Sun, 2 Feb 2003 12:27:18 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 12:27:18 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: current@FreeBSD.org Subject: Re: rand() is broken Message-ID: <20030202092718.GA60116@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20030202091106.GA72723@rot13.obsecurity.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 01:11:06 -0800, Kris Kennaway wrote: >=20 > Another problem (noticed by tjr) is that once the sequence hits '0' it > jumps to INT_MAX and stays there forever. For example, seeding with > srand(0) produces nothing but INT_MAX from rand(). >=20 > It looks like a lot more validation of this PRNG is needed. Don't have an idea about this thing yet, maybe some sign or variable size= =20 change fix required. BTW, note that new formulae also used in the kernel (by BSD developers) and taken from there - libkern/random.c - so all you say is true there too. --=20 Andrey A. Chernov http://ache.pp.ru/ --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPjzkduJgpPLZnQjrAQHveAP/VcFwDHdMfrWbAcc6r2j4Kyb4niIz3vp2 9rW9/JjGsxTchj73mf7h/zET1klZ1JOjn42r7+svIkdiwBpiHlvVx9Z4h0tx+16W VHPK15tmiQHxbao55jALioe2PU/qm5/n5JzWtP7EYCh+UphngLx9ejZguwgVw1uM SGOVeq1y1oE= =2jVo -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 1:31:48 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F93D37B401 for ; Sun, 2 Feb 2003 01:31:47 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B70243F43 for ; Sun, 2 Feb 2003 01:31:46 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h129Vd4W033365; Sun, 2 Feb 2003 10:31:39 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: Kris Kennaway , current@freebsd.org Subject: Re: rand() is broken From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 12:27:18 +0300." <20030202092718.GA60116@nagual.pp.ru> Date: Sun, 02 Feb 2003 10:31:39 +0100 Message-ID: <33364.1044178299@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030202092718.GA60116@nagual.pp.ru>, "Andrey A. Chernov" writes: > >--SUOF0GtieIMvvwua >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline >Content-Transfer-Encoding: quoted-printable > >On Sun, Feb 02, 2003 at 01:11:06 -0800, Kris Kennaway wrote: >>=20 >> Another problem (noticed by tjr) is that once the sequence hits '0' it >> jumps to INT_MAX and stays there forever. For example, seeding with >> srand(0) produces nothing but INT_MAX from rand(). >>=20 >> It looks like a lot more validation of this PRNG is needed. > >Don't have an idea about this thing yet, maybe some sign or variable size= >=20 >change fix required. > >BTW, note that new formulae also used in the kernel (by BSD developers) >and taken from there - libkern/random.c - so all you say is true there >too. It should be nuked from the kernel, and arc4random() used instead. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 2: 6:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89BF437B401; Sun, 2 Feb 2003 02:06:52 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96BC543F3F; Sun, 2 Feb 2003 02:06:51 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12A6oLf074511; Sun, 2 Feb 2003 10:06:50 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12A6o7F074510; Sun, 2 Feb 2003 10:06:50 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12A4paX045387; Sun, 2 Feb 2003 12:04:52 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021004.h12A4paX045387@grimreaper.grondar.org> To: phk@FreeBSD.ORG Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 10:31:39 +0100." <33364.1044178299@critter.freebsd.dk> Date: Sun, 02 Feb 2003 10:04:51 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk@FreeBSD.ORG writes: > >BTW, note that new formulae also used in the kernel (by BSD developers) > >and taken from there - libkern/random.c - so all you say is true there > >too. > > It should be nuked from the kernel, and arc4random() used instead. I agree. If no-one objects, I'll do this? M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 2:26:27 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 604F737B405 for ; Sun, 2 Feb 2003 02:26:25 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED5B243F9B for ; Sun, 2 Feb 2003 02:26:23 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12AQMd6060932; Sun, 2 Feb 2003 13:26:22 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12AQLFF060931; Sun, 2 Feb 2003 13:26:21 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 13:26:21 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: current@FreeBSD.org Subject: Re: rand() is broken Message-ID: <20030202102621.GA60900@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <20030202091106.GA72723@rot13.obsecurity.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 01:11:06 -0800, Kris Kennaway wrote: >=20 > Another problem (noticed by tjr) is that once the sequence hits '0' it > jumps to INT_MAX and stays there forever. For example, seeding with > srand(0) produces nothing but INT_MAX from rand(). >=20 > It looks like a lot more validation of this PRNG is needed. As I see searching through various sources, this is not simple overlook but fundamental feature of this formulae - it can't be initialized with zero and BSD developers try to deal with that fact by simple adding of INT_MAX in zero case (which is not in the original formulae), but gain nothing this way. Workaround I find so far is something like that #define MASK 123459876 seed ^=3D MASK; =2E.. calculate value ... seed ^=3D MASK; Which just add another magick value, but fix zero.=20 I am still searching... --=20 Andrey A. Chernov http://ache.pp.ru/ --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPjzyTeJgpPLZnQjrAQGBwwP5Ae/dZqhYgeqAH3ZUkOHkObIPmXhmVZPl 0091968Inv2g3RAZj/qw2TaxjDZSAllUi2PjRhfqy25T2qOPV3v4EgoFHYMzQywP reHIw7p0jNZ2m7HBRJhWhx96kCQNwJsMp04klcNgbz8gdmGZJITgt6fjEXLyb3Qy 47LaVPkvys8= =AukL -----END PGP SIGNATURE----- --ibTvN161/egqYuK8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 3:29:23 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E20A737B405; Sun, 2 Feb 2003 03:29:09 -0800 (PST) Received: from mike.reifenberger.com (pD9E5016D.dip.t-dialin.net [217.229.1.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id 440EC43F75; Sun, 2 Feb 2003 03:29:06 -0800 (PST) (envelope-from Michael@Reifenberger.com) Received: from www.reifenberger.com (localhost [127.0.0.1]) by mike.reifenberger.com (8.12.6/8.12.6) with ESMTP id h12BSX9O040926; Sun, 2 Feb 2003 12:28:49 +0100 (CET) (envelope-from Michael@Reifenberger.com) From: "mike" To: Hidetoshi Shimokawa Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & 2 external FW-disks Date: Sun, 2 Feb 2003 13:28:33 +0200 Message-Id: <20030202112833.M8458@Reifenberger.com> In-Reply-To: References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> X-Mailer: Open WebMail 1.81 20021127 X-OriginatingIP: 10.0.0.2 (mike) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=OPENWEBMAIL_ATT_0.426965617574751" X-Spam-Status: No, hits=-0.5 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=OPENWEBMAIL_ATT_0.426965617574751 Content-Type: text/plain; charset=iso-8859-1 On Thu, 30 Jan 2003 14:41:59 +0900, Hidetoshi Shimokawa wrote > Do you get timeout only for sbp0:0:0? > Is the other drive still working? > > I have no problem with concurrent accesses with `iozone -s 102400m -r > 1024k`. ... > try some of the following: > > - fwcontorl -g 20 > - sysctl hw.firewire.sbp.max_speed=0 > - change SBP_QUEUE_LEN in sbp.c to 1 and rebuld module. > - sysctl machdep.cpu_idle_hlt=0 > - sysctl debug.sbp_debug=1 and send me a dmesg. with all of the above I get the attached dmesg soon after setting up two concurrent iozones (one per disk): -- Michael Reifenberger ------=OPENWEBMAIL_ATT_0.426965617574751 Content-Type: text/plain; name="dmesg.txt" Content-Transfer-Encoding: base64 Y2FtOiBpbnZhbGlkIHZhbHVlIGZvciB0dW5hYmxlIGtlcm4uY2FtLnNjc2lfZGVsYXkKQ29weXJp Z2h0IChjKSAxOTkyLTIwMDMgVGhlIEZyZWVCU0QgUHJvamVjdC4KQ29weXJpZ2h0IChjKSAxOTc5 LCAxOTgwLCAxOTgzLCAxOTg2LCAxOTg4LCAxOTg5LCAxOTkxLCAxOTkyLCAxOTkzLCAxOTk0CglU aGUgUmVnZW50cyBvZiB0aGUgVW5pdmVyc2l0eSBvZiBDYWxpZm9ybmlhLiBBbGwgcmlnaHRzIHJl c2VydmVkLgpGcmVlQlNEIDUuMC1DVVJSRU5UICMxOiBTdW4gRmViICAyIDEyOjAyOjE2IENFVCAy MDAzCiAgICByb290QG5paGlsOi91c3Ivc3JjL3N5cy9pMzg2L2NvbXBpbGUvbmloaWwKUHJlbG9h ZGVkIGVsZiBrZXJuZWwgIi9ib290L2tlcm5lbC9rZXJuZWwiIGF0IDB4YzA1NTYwMDAuClByZWxv YWRlZCB1c2VyY29uZmlnX3NjcmlwdCAiL2Jvb3Qva2VybmVsLmNvbmYiIGF0IDB4YzA1NTYwYTgu ClByZWxvYWRlZCBlbGYgbW9kdWxlICIvYm9vdC9rZXJuZWwvcHJvY2ZzLmtvIiBhdCAweGMwNTU2 MGY4LgpQcmVsb2FkZWQgZWxmIG1vZHVsZSAiL2Jvb3Qva2VybmVsL3BzZXVkb2ZzLmtvIiBhdCAw eGMwNTU2MWE0LgpQcmVsb2FkZWQgZWxmIG1vZHVsZSAiL2Jvb3Qva2VybmVsL21kLmtvIiBhdCAw eGMwNTU2MjU0LgpQcmVsb2FkZWQgZWxmIG1vZHVsZSAiL2Jvb3Qva2VybmVsL2xpbnV4LmtvIiBh dCAweGMwNTU2MmZjLgpQcmVsb2FkZWQgZWxmIG1vZHVsZSAiL2Jvb3Qva2VybmVsL3N5c3ZzaG0u a28iIGF0IDB4YzA1NTYzYTguClByZWxvYWRlZCBlbGYgbW9kdWxlICIvYm9vdC9rZXJuZWwvc3lz dnNlbS5rbyIgYXQgMHhjMDU1NjQ1NC4KUHJlbG9hZGVkIGVsZiBtb2R1bGUgIi9ib290L2tlcm5l bC9zeXN2bXNnLmtvIiBhdCAweGMwNTU2NTAwLgpQcmVsb2FkZWQgZWxmIG1vZHVsZSAiL2Jvb3Qv a2VybmVsL21paWJ1cy5rbyIgYXQgMHhjMDU1NjVhYy4KUHJlbG9hZGVkIGVsZiBtb2R1bGUgIi9i b290L2tlcm5lbC9pZl9kYy5rbyIgYXQgMHhjMDU1NjY1OC4KUHJlbG9hZGVkIGVsZiBtb2R1bGUg Ii9ib290L2tlcm5lbC9pZl9lZC5rbyIgYXQgMHhjMDU1NjcwNC4KUHJlbG9hZGVkIGVsZiBtb2R1 bGUgIi9ib290L2tlcm5lbC9pZl9lcC5rbyIgYXQgMHhjMDU1NjdiMC4KUHJlbG9hZGVkIGVsZiBt b2R1bGUgIi9ib290L2tlcm5lbC9pZl9meHAua28iIGF0IDB4YzA1NTY4NWMuClByZWxvYWRlZCBl bGYgbW9kdWxlICIvYm9vdC9rZXJuZWwvc25kX2ljaC5rbyIgYXQgMHhjMDU1NjkwOC4KUHJlbG9h ZGVkIGVsZiBtb2R1bGUgIi9ib290L2tlcm5lbC9zbmRfcGNtLmtvIiBhdCAweGMwNTU2OWI0LgpQ cmVsb2FkZWQgZWxmIG1vZHVsZSAiL2Jvb3Qva2VybmVsL3VzYi5rbyIgYXQgMHhjMDU1NmE2MC4K UHJlbG9hZGVkIGVsZiBtb2R1bGUgIi9ib290L2tlcm5lbC91bXMua28iIGF0IDB4YzA1NTZiMDgu ClByZWxvYWRlZCBlbGYgbW9kdWxlICIvYm9vdC9rZXJuZWwvdW1hc3Mua28iIGF0IDB4YzA1NTZi YjAuClByZWxvYWRlZCBlbGYgbW9kdWxlICIvYm9vdC9rZXJuZWwvdXNjYW5uZXIua28iIGF0IDB4 YzA1NTZjNWMuClByZWxvYWRlZCBlbGYgbW9kdWxlICIvYm9vdC9rZXJuZWwvbGlucHJvY2ZzLmtv IiBhdCAweGMwNTU2ZDBjLgpQcmVsb2FkZWQgZWxmIG1vZHVsZSAiL2Jvb3Qva2VybmVsL3JhZGVv bi5rbyIgYXQgMHhjMDU1NmRiYy4KUHJlbG9hZGVkIGVsZiBtb2R1bGUgIi9ib290L2tlcm5lbC9h aWMua28iIGF0IDB4YzA1NTZlNjguClByZWxvYWRlZCBlbGYgbW9kdWxlICIvYm9vdC9rZXJuZWwv bmZzc2VydmVyLmtvIiBhdCAweGMwNTU2ZjEwLgpQcmVsb2FkZWQgZWxmIG1vZHVsZSAiL2Jvb3Qv a2VybmVsL25mc2NsaWVudC5rbyIgYXQgMHhjMDU1NmZjMC4KUHJlbG9hZGVkIGVsZiBtb2R1bGUg Ii9ib290L2tlcm5lbC9maXJld2lyZS5rbyIgYXQgMHhjMDU1NzA3MC4KUHJlbG9hZGVkIGVsZiBt b2R1bGUgIi9ib290L2tlcm5lbC9zYnAua28iIGF0IDB4YzA1NTcxMjAuClByZWxvYWRlZCBlbGYg bW9kdWxlICIvYm9vdC9rZXJuZWwvYWNwaS5rbyIgYXQgMHhjMDU1NzFjOC4KVGltZWNvdW50ZXIg Imk4MjU0IiAgZnJlcXVlbmN5IDExOTMxODIgSHoKVGltZWNvdW50ZXIgIlRTQyIgIGZyZXF1ZW5j eSAxMTk4OTg2ODExIEh6CkNQVTogSW50ZWwoUikgUGVudGl1bShSKSBJSUkgTW9iaWxlIENQVSAg ICAgIDEyMDBNSHogKDExOTguOTktTUh6IDY4Ni1jbGFzcyBDUFUpCiAgT3JpZ2luID0gIkdlbnVp bmVJbnRlbCIgIElkID0gMHg2YjEgIFN0ZXBwaW5nID0gMQogIEZlYXR1cmVzPTB4MzgzZjlmZjxG UFUsVk1FLERFLFBTRSxUU0MsTVNSLFBBRSxNQ0UsQ1g4LFNFUCxNVFJSLFBHRSxNQ0EsQ01PVixQ QVQsUFNFMzYsTU1YLEZYU1IsU1NFPgpyZWFsIG1lbW9yeSAgPSAxMDczMDg2NDY0ICgxMDIzIE1C KQphdmFpbCBtZW1vcnkgPSAxMDM3NzQ2MTc2ICg5ODkgTUIpCkluaXRpYWxpemluZyBHRU9NZXRy eSBzdWJzeXN0ZW0KUGVudGl1bSBQcm8gTVRSUiBzdXBwb3J0IGVuYWJsZWQKVkVTQTogdjIuMCwg MzI3MDRrIG1lbW9yeSwgZmxhZ3M6MHgxLCBtb2RlIHRhYmxlOjB4YzAzNGY5NDIgKDEwMDAwMjIp ClZFU0E6IEFUSSBNT0JJTElUWSBSQURFT04KbnB4MDogPG1hdGggcHJvY2Vzc29yPiBvbiBtb3Ro ZXJib2FyZApucHgwOiBJTlQgMTYgaW50ZXJmYWNlCmFjcGkwOiA8SUJNICAgIFRQLTFFICAgPiBv biBtb3RoZXJib2FyZAogICAgQUNQSS0wNjI1OiAqKiogSW5mbzogR1BFIEJsb2NrMCBkZWZpbmVk IGFzIEdQRTAgdG8gR1BFMTUKICAgIEFDUEktMDYyNTogKioqIEluZm86IEdQRSBCbG9jazEgZGVm aW5lZCBhcyBHUEUxNiB0byBHUEUzMQpVc2luZyAkUElSIHRhYmxlLCAxNCBlbnRyaWVzIGF0IDB4 YzAwZmRlYjAKICAgIEFDUEktMTI4NzogKioqIEVycm9yOiBNZXRob2QgZXhlY3V0aW9uIGZhaWxl ZCwgQUVfTk9UX0VYSVNUCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjogTWV0aG9kIGV4ZWN1dGlv biBmYWlsZWQsIEFFX05PVF9FWElTVAogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBl eGVjdXRpb24gZmFpbGVkLCBBRV9OT1RfRVhJU1QKICAgIEFDUEktMTI4NzogKioqIEVycm9yOiBN ZXRob2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfTk9UX0VYSVNUCiAgICBBQ1BJLTEyODc6ICoqKiBF cnJvcjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQsIEFFX05PVF9FWElTVAogICAgQUNQSS0xMjg3 OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9OT1RfRVhJU1QKICAgIEFD UEktMTI4NzogKioqIEVycm9yOiBNZXRob2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfTk9UX0VYSVNU CiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQsIEFFX05P VF9FWElTVAogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24gZmFpbGVk LCBBRV9OT1RfRVhJU1QKICAgIEFDUEktMTI4NzogKioqIEVycm9yOiBNZXRob2QgZXhlY3V0aW9u IGZhaWxlZCwgQUVfTk9UX0VYSVNUCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjogTWV0aG9kIGV4 ZWN1dGlvbiBmYWlsZWQsIEFFX05PVF9FWElTVAogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1l dGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9OT1RfRVhJU1QKICAgIEFDUEktMTI4NzogKioqIEVy cm9yOiBNZXRob2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfTk9UX0VYSVNUCiAgICBBQ1BJLTEyODc6 ICoqKiBFcnJvcjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQsIEFFX05PVF9FWElTVAogICAgQUNQ SS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9OT1RfRVhJU1QK ICAgIEFDUEktMTI4NzogKioqIEVycm9yOiBNZXRob2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfTk9U X0VYSVNUCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQs IEFFX05PVF9FWElTVAphY3BpMDogcG93ZXIgYnV0dG9uIGlzIGhhbmRsZWQgYXMgYSBmaXhlZCBm ZWF0dXJlIHByb2dyYW1taW5nIG1vZGVsLgpUaW1lY291bnRlciAiQUNQSS1mYXN0IiAgZnJlcXVl bmN5IDM1Nzk1NDUgSHoKICAgIEFDUEktMTI4NzogKioqIEVycm9yOiBNZXRob2QgZXhlY3V0aW9u IGZhaWxlZCwgQUVfTk9UX0VYSVNUCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjogTWV0aG9kIGV4 ZWN1dGlvbiBmYWlsZWQsIEFFX05PVF9FWElTVAogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1l dGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9OT1RfRVhJU1QKICAgIEFDUEktMTI4NzogKioqIEVy cm9yOiBNZXRob2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfTk9UX0VYSVNUCiAgICBBQ1BJLTEyODc6 ICoqKiBFcnJvcjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQsIEFFX05PVF9FWElTVAogICAgQUNQ SS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9OT1RfRVhJU1QK ICAgIEFDUEktMTI4NzogKioqIEVycm9yOiBNZXRob2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfTk9U X0VYSVNUCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQs IEFFX05PVF9FWElTVAogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24g ZmFpbGVkLCBBRV9OT1RfRVhJU1QKICAgIEFDUEktMTI4NzogKioqIEVycm9yOiBNZXRob2QgZXhl Y3V0aW9uIGZhaWxlZCwgQUVfTk9UX0VYSVNUCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjogTWV0 aG9kIGV4ZWN1dGlvbiBmYWlsZWQsIEFFX05PVF9FWElTVAogICAgQUNQSS0xMjg3OiAqKiogRXJy b3I6IE1ldGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9OT1RfRVhJU1QKICAgIEFDUEktMTI4Nzog KioqIEVycm9yOiBNZXRob2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfTk9UX0VYSVNUCiAgICBBQ1BJ LTEyODc6ICoqKiBFcnJvcjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQsIEFFX05PVF9FWElTVAog ICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9OT1Rf RVhJU1QKYWNwaV90aW1lcjA6IDwyNC1iaXQgdGltZXIgYXQgMy41Nzk1NDVNSHo+IHBvcnQgMHgx MDA4LTB4MTAwYiBvbiBhY3BpMAphY3BpX2NwdTA6IDxDUFU+IG9uIGFjcGkwCmFjcGlfdHowOiA8 dGhlcm1hbCB6b25lPiBvbiBhY3BpMAphY3BpX2xpZDA6IDxDb250cm9sIE1ldGhvZCBMaWQgU3dp dGNoPiBvbiBhY3BpMAogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24g ZmFpbGVkLCBBRV9OT1RfRVhJU1QKYWNwaV9idXR0b24wOiA8U2xlZXAgQnV0dG9uPiBvbiBhY3Bp MAogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9O T1RfRVhJU1QKcGNpYjA6IDxBQ1BJIEhvc3QtUENJIGJyaWRnZT4gcG9ydCAweGNmOC0weGNmZiBv biBhY3BpMApwY2kwOiA8QUNQSSBQQ0kgYnVzPiBvbiBwY2liMAphZ3AwOiA8SW50ZWwgODI4MzAg aG9zdCB0byBBR1AgYnJpZGdlPiBtZW0gMHhkMDAwMDAwMC0weGRmZmZmZmZmIGF0IGRldmljZSAw LjAgb24gcGNpMApwY2liMTogPEFDUEkgUENJLVBDSSBicmlkZ2U+IGF0IGRldmljZSAxLjAgb24g cGNpMApwY2kxOiA8QUNQSSBQQ0kgYnVzPiBvbiBwY2liMQpkcm0wOiA8QVRJIFJhZGVvbiBMWSBN b2JpbGl0eSA2IChBR1ApPiBwb3J0IDB4MzAwMC0weDMwZmYgbWVtIDB4YzAxMDAwMDAtMHhjMDEw ZmZmZiwweGUwMDAwMDAwLTB4ZTdmZmZmZmYgaXJxIDExIGF0IGRldmljZSAwLjAgb24gcGNpMQpp bmZvOiBbZHJtXSBBR1AgYXQgMHhkMDAwMDAwMCAyNTZNQgppbmZvOiBbZHJtXSBJbml0aWFsaXpl ZCByYWRlb24gMS4xLjEgMjAwMTA0MDUgb24gbWlub3IgMAp1aGNpMDogPEludGVsIDgyODAxQ0Ev Q0FNIChJQ0gzKSBVU0IgY29udHJvbGxlciBVU0ItQT4gcG9ydCAweDE4MDAtMHgxODFmIGlycSAx MSBhdCBkZXZpY2UgMjkuMCBvbiBwY2kwCnVzYjA6IDxJbnRlbCA4MjgwMUNBL0NBTSAoSUNIMykg VVNCIGNvbnRyb2xsZXIgVVNCLUE+IG9uIHVoY2kwCnVzYjA6IFVTQiByZXZpc2lvbiAxLjAKdWh1 YjA6IEludGVsIFVIQ0kgcm9vdCBodWIsIGNsYXNzIDkvMCwgcmV2IDEuMDAvMS4wMCwgYWRkciAx CnVodWIwOiAyIHBvcnRzIHdpdGggMiByZW1vdmFibGUsIHNlbGYgcG93ZXJlZAp1aGNpMTogPElu dGVsIDgyODAxQ0EvQ0FNIChJQ0gzKSBVU0IgY29udHJvbGxlciBVU0ItQj4gcG9ydCAweDE4MjAt MHgxODNmIGlycSAxMSBhdCBkZXZpY2UgMjkuMSBvbiBwY2kwCnVzYjE6IDxJbnRlbCA4MjgwMUNB L0NBTSAoSUNIMykgVVNCIGNvbnRyb2xsZXIgVVNCLUI+IG9uIHVoY2kxCnVzYjE6IFVTQiByZXZp c2lvbiAxLjAKdWh1YjE6IEludGVsIFVIQ0kgcm9vdCBodWIsIGNsYXNzIDkvMCwgcmV2IDEuMDAv MS4wMCwgYWRkciAxCnVodWIxOiAyIHBvcnRzIHdpdGggMiByZW1vdmFibGUsIHNlbGYgcG93ZXJl ZAp1bXMwOiBMb2dpdGVjaCBVU0ItUFMvMiBPcHRpY2FsIE1vdXNlLCByZXYgMi4wMC8xMS4wMCwg YWRkciAyLCBpY2xhc3MgMy8xCnVtczA6IDMgYnV0dG9ucyBhbmQgWiBkaXIuCnVoY2kyOiA8SW50 ZWwgODI4MDFDQS9DQU0gKElDSDMpIFVTQiBjb250cm9sbGVyIFVTQi1DPiBwb3J0IDB4MTg0MC0w eDE4NWYgaXJxIDExIGF0IGRldmljZSAyOS4yIG9uIHBjaTAKdXNiMjogPEludGVsIDgyODAxQ0Ev Q0FNIChJQ0gzKSBVU0IgY29udHJvbGxlciBVU0ItQz4gb24gdWhjaTIKdXNiMjogVVNCIHJldmlz aW9uIDEuMAp1aHViMjogSW50ZWwgVUhDSSByb290IGh1YiwgY2xhc3MgOS8wLCByZXYgMS4wMC8x LjAwLCBhZGRyIDEKdWh1YjI6IDIgcG9ydHMgd2l0aCAyIHJlbW92YWJsZSwgc2VsZiBwb3dlcmVk CnBjaWIyOiA8QUNQSSBQQ0ktUENJIGJyaWRnZT4gYXQgZGV2aWNlIDMwLjAgb24gcGNpMApwY2ky OiA8QUNQSSBQQ0kgYnVzPiBvbiBwY2liMgpjYmIwOiA8UkY1QzQ3OCBQQ0ktQ2FyZEJ1cyBCcmlk Z2U+IG1lbSAweDUwMDAwMDAwLTB4NTAwMDBmZmYgaXJxIDExIGF0IGRldmljZSAwLjAgb24gcGNp MgpzdGFydCAoNTAwMDAwMDApIDwgc2MtPm1lbWJhc2UgKGMwMjAwMDAwKQpzdGFydCAoNTAwMDAw MDApIDwgc2MtPnBtZW1iYXNlIChlODAwMDAwMCkKY2FyZGJ1czA6IDxDYXJkQnVzIGJ1cz4gb24g Y2JiMApwY2NhcmQwOiA8MTYtYml0IFBDQ2FyZCBidXM+IG9uIGNiYjAKY2JiMDogY2JiX3Bvd2Vy OiBDQVJEX1ZDQ18wViBhbmQgQ0FSRF9WUFBfMFYgWzQ0XQpjYmIxOiA8UkY1QzQ3OCBQQ0ktQ2Fy ZEJ1cyBCcmlkZ2U+IG1lbSAweDUwMTAwMDAwLTB4NTAxMDBmZmYgaXJxIDExIGF0IGRldmljZSAw LjEgb24gcGNpMgpzdGFydCAoNTAxMDAwMDApIDwgc2MtPm1lbWJhc2UgKGMwMjAwMDAwKQpzdGFy dCAoNTAxMDAwMDApIDwgc2MtPnBtZW1iYXNlIChlODAwMDAwMCkKY2FyZGJ1czE6IDxDYXJkQnVz IGJ1cz4gb24gY2JiMQpwY2NhcmQxOiA8MTYtYml0IFBDQ2FyZCBidXM+IG9uIGNiYjEKY2JiMTog Y2JiX3Bvd2VyOiBDQVJEX1ZDQ18wViBhbmQgQ0FSRF9WUFBfMFYgWzQ0XQpmd29oY2kwOiB2ZW5k b3I9MTE4MCwgZGV2PTUyMgpmd29oY2kwOiA8MTM5NCBPcGVuIEhvc3QgQ29udHJvbGxlciBJbnRl cmZhY2U+IG1lbSAweGMwMjAxMDAwLTB4YzAyMDE3ZmYgaXJxIDExIGF0IGRldmljZSAwLjIgb24g cGNpMgpmd29oY2kwOiBQQ0kgYnVzIGxhdGVuY3kgd2FzIGNoYW5naW5nIHRvIDI1MC4KZndvaGNp MDogT0hDSSB2ZXJzaW9uIDEuMCAoUk9NPTApCmZ3b2hjaTA6IE5vLiBvZiBJc29jaHJvbm91cyBj aGFubmVsIGlzIDQuCmZ3b2hjaTA6IEVVSTY0IDAwOjA2OjFiOjAyOjAxOjAwOjBlOjkyCmZ3b2hj aTA6IFBoeSAxMzk0YSBhdmFpbGFibGUgUzQwMCwgMiBwb3J0cy4KZndvaGNpMDogTGluayBTNDAw LCBtYXhfcmVjIDIwNDggYnl0ZXMuCmZpcmV3aXJlMDogPElFRUUxMzk0KEZpcmVXaXJlKSBidXM+ IG9uIGZ3b2hjaTAKc2JwMDogPFNCUDIvU0NTSSBvdmVyIGZpcmV3aXJlPiBvbiBmaXJld2lyZTAK ZnhwMDogPEludGVsIFByby8xMDAgRXRoZXJuZXQ+IHBvcnQgMHg4MDAwLTB4ODAzZiBtZW0gMHhj MDIwMDAwMC0weGMwMjAwZmZmIGlycSAxMSBhdCBkZXZpY2UgOC4wIG9uIHBjaTIKZnhwMDogRXRo ZXJuZXQgYWRkcmVzcyAwMDpkMDo1OTozNDo4MTpkMwppbnBoeTA6IDxpODI1NjJFVCAxMC8xMDAg bWVkaWEgaW50ZXJmYWNlPiBvbiBtaWlidXMwCmlucGh5MDogIDEwYmFzZVQsIDEwYmFzZVQtRkRY LCAxMDBiYXNlVFgsIDEwMGJhc2VUWC1GRFgsIGF1dG8KaXNhYjA6IDxQQ0ktSVNBIGJyaWRnZT4g YXQgZGV2aWNlIDMxLjAgb24gcGNpMAppc2EwOiA8SVNBIGJ1cz4gb24gaXNhYjAKYXRhcGNpMDog PEludGVsIElDSDMgQVRBMTAwIGNvbnRyb2xsZXI+IHBvcnQgMHgxODYwLTB4MTg2ZiwweDM3NC0w eDM3NywweDE3MC0weDE3NywweDNmNC0weDNmNywweDFmMC0weDFmNyBhdCBkZXZpY2UgMzEuMSBv biBwY2kwCmF0YTA6IGF0IDB4MWYwIGlycSAxNCBvbiBhdGFwY2kwCmF0YTE6IGF0IDB4MTcwIGly cSAxNSBvbiBhdGFwY2kwCmljaHNtYjA6IDxJbnRlbCA4MjgwMUNBIChJQ0gzKSBTTUJ1cyBjb250 cm9sbGVyPiBwb3J0IDB4MTg4MC0weDE4OWYgaXJxIDExIGF0IGRldmljZSAzMS4zIG9uIHBjaTAK c21idXMwOiA8U3lzdGVtIE1hbmFnZW1lbnQgQnVzPiBvbiBpY2hzbWIwCnNtYjA6IDxTTUJ1cyBn ZW5lcmljIEkvTz4gb24gc21idXMwCnBjbTA6IDxJbnRlbCA4MjgwMUNBIChJQ0gzKT4gcG9ydCAw eDE4YzAtMHgxOGZmLDB4MWMwMC0weDFjZmYgaXJxIDExIGF0IGRldmljZSAzMS41IG9uIHBjaTAK cGNpMDogPHNpbXBsZSBjb21tcz4gYXQgZGV2aWNlIDMxLjYgKG5vIGRyaXZlciBhdHRhY2hlZCkK YXRrYmRjMDogPEtleWJvYXJkIGNvbnRyb2xsZXIgKGk4MDQyKT4gcG9ydCAweDY0LDB4NjAgaXJx IDEgb24gYWNwaTAKYXRrYmQwOiA8QVQgS2V5Ym9hcmQ+IGlycSAxIG9uIGF0a2JkYzAKcHNtMDog PFBTLzIgTW91c2U+IGlycSAxMiBvbiBhdGtiZGMwCnBzbTA6IG1vZGVsIEdlbmVyaWMgUFMvMiBt b3VzZSwgZGV2aWNlIElEIDAKc2lvMCBwb3J0IDB4M2Y4LTB4M2ZmIGlycSA0IG9uIGFjcGkwCnNp bzA6IHR5cGUgMTY1NTBBCnBwYzAgcG9ydCAweDdiYy0weDdiZSwweDNiYy0weDNjMyBpcnEgNyBk cnEgMCBvbiBhY3BpMApwcGMwOiBHZW5lcmljIGNoaXBzZXQgKEVDUC9QUzIvTklCQkxFKSBpbiBD T01QQVRJQkxFIG1vZGUKcHBpMDogPFBhcmFsbGVsIEkvTz4gb24gcHBidXMwCnBwczA6IDxQdWxz ZSBwZXIgc2Vjb25kIFRpbWluZyBJbnRlcmZhY2U+IG9uIHBwYnVzMApzaW8xIHBvcnQgMHgyZjgt MHgyZmYgaXJxIDMgZHJxIDMgb24gYWNwaTAKc2lvMTogdHlwZSAxNjU1MEEKYWNwaV9lYzA6IDxl bWJlZGRlZCBjb250cm9sbGVyPiBwb3J0IDB4NjYsMHg2MiBvbiBhY3BpMAphY3BpX2NtYmF0MDog PENvbnRyb2wgbWV0aG9kIEJhdHRlcnk+IG9uIGFjcGkwCmFjcGlfY21iYXQxOiA8Q29udHJvbCBt ZXRob2QgQmF0dGVyeT4gb24gYWNwaTAKYWNwaV9hY2FkMDogPEFDIGFkYXB0ZXI+IG9uIGFjcGkw Cm9ybTA6IDxPcHRpb24gUk9Ncz4gYXQgaW9tZW0gMHhlMDAwMC0weGVmZmZmLDB4ZGMwMDAtMHhk ZmZmZiwweGQxMDAwLTB4ZDFmZmYsMHhkMDAwMC0weGQwZmZmLDB4YzAwMDAtMHhjZmZmZiBvbiBp c2EwCnNjMDogPFN5c3RlbSBjb25zb2xlPiBvbiBpc2EwCnNjMDogVkdBIDwxNiB2aXJ0dWFsIGNv bnNvbGVzLCBmbGFncz0weDIwMD4KdmdhMDogPEdlbmVyaWMgSVNBIFZHQT4gYXQgcG9ydCAweDNj MC0weDNkZiBpb21lbSAweGEwMDAwLTB4YmZmZmYgb24gaXNhMApUaW1lY291bnRlcnMgdGljayBl dmVyeSAxMC4wMDAgbXNlYwpJUHNlYzogSW5pdGlhbGl6ZWQgU2VjdXJpdHkgQXNzb2NpYXRpb24g UHJvY2Vzc2luZy4KZndvaGNpMDogQlVTIHJlc2V0CmZ3b2hjaTA6IG5vZGVfaWQgPSAweGM4MDBm ZmMwLCBDWUNMRU1BU1RFUiBtb2RlCmZpcmV3aXJlMDogMSBub2RlcywgbWF4aG9wIDw9IDAsIGNh YmxlIElSTSA9IDAgKG1lKQpzeXN0ZW0gcG93ZXIgcHJvZmlsZSBjaGFuZ2VkIHRvICdlY29ub215 JwphZDA6IDQ1NzgwTUIgPElDMjVUMDQ4QVREQTA1LTA+IFs5MzAxNS8xNi82M10gYXQgYXRhMC1t YXN0ZXIgVURNQTEwMAphZDE6IDMwNTIwTUIgPElCTS1ESlNBLTIzMj4gWzYyMDEwLzE2LzYzXSBh dCBhdGExLW1hc3RlciBVRE1BNjYKYWNkMDogQ0QtUlcgPFRPU0hJQkEgRFZELVJPTSBTRC1SMjAw Mj4gYXQgYXRhMC1zbGF2ZSBVRE1BMzMKY2QwIGF0IGF0YTAgYnVzIDAgdGFyZ2V0IDEgbHVuIDAK Y2QwOiA8VE9TSElCQSBEVkQtUk9NIFNELVIyMDAyIDEyMzA+IFJlbW92YWJsZSBDRC1ST00gU0NT SS0wIGRldmljZSAKY2QwOiAzMy4wMDBNQi9zIHRyYW5zZmVycwpjZDA6IGNkIHByZXNlbnQgWzQw OTg2MjMgeCAyMDQ4IGJ5dGUgcmVjb3Jkc10KTW91bnRpbmcgcm9vdCBmcm9tIHVmczovZGV2L2Fk MHMzYQpzeXN0ZW0gcG93ZXIgcHJvZmlsZSBjaGFuZ2VkIHRvICdwZXJmb3JtYW5jZScKICAgIEFD UEktMDQzMjogKioqIEVycm9yOiBIYW5kbGVyIGZvciBbRW1iZWRkZWRDb250cm9sXSByZXR1cm5l ZCBBRV9FUlJPUgogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24gZmFp bGVkLCBBRV9FUlJPUgogICAgQUNQSS0wNDMyOiAqKiogRXJyb3I6IEhhbmRsZXIgZm9yIFtFbWJl ZGRlZENvbnRyb2xdIHJldHVybmVkIEFFX0VSUk9SCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjog TWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQsIEFFX0VSUk9SCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJv cjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQsIEFFX0FNTF9JTlRFUk5BTAogICAgQUNQSS0xMjg3 OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRpb24gZmFpbGVkLCBBRV9BTUxfSU5URVJOQUwKICAg IEFDUEktMTI4NzogKioqIEVycm9yOiBNZXRob2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfQU1MX0lO VEVSTkFMCiAgICBBQ1BJLTEyODc6ICoqKiBFcnJvcjogTWV0aG9kIGV4ZWN1dGlvbiBmYWlsZWQs IEFFX0FNTF9JTlRFUk5BTAogICAgQUNQSS0xMjg3OiAqKiogRXJyb3I6IE1ldGhvZCBleGVjdXRp b24gZmFpbGVkLCBBRV9BTUxfSU5URVJOQUwKICAgIEFDUEktMTI4NzogKioqIEVycm9yOiBNZXRo b2QgZXhlY3V0aW9uIGZhaWxlZCwgQUVfQU1MX0lOVEVSTkFMCmZ3b2hjaTA6IEJVUyByZXNldApm d29oY2kwOiBub2RlX2lkID0gMHhjODAwZmZjMSwgQ1lDTEVNQVNURVIgbW9kZQpmaXJld2lyZTA6 IDIgbm9kZXMsIG1heGhvcCA8PSAxLCBjYWJsZSBJUk0gPSAxIChtZSkKZmlyZXdpcmUwOiBOZXcg UzQwMCBkZXZpY2UgSUQ6MDAwMWQyMDBlMDBkMzFmMQpmaXJld2lyZTA6IERldmljZSBTQlAtSUkK c2JwX3Bvc3RfZXhwbG9yZTogRVVJOjAwMDFkMjAwZTAwZDMxZjEgc3BlYz0xIGtleT0xLgp0YXJn ZXQgMCBsdW4gMCBmb3VuZApzYnAwOjA6MCBMT0dJTgpzYnAwOjA6MCBvcmRlcmVkOjAgdHlwZTow IEVVSTowMDAxZDIwMGUwMGQzMWYxIG5vZGU6MCBzcGVlZDoyIG1heHJlYzo1IG5ldyEKc2JwMDow OjAgJ094Zm9yZCBTZW1pY29uZHVjdG9yIEx0ZC4gICAnICdPWEZPUkQgSURFIERldmljZSBMVU4g MCAnICc0NDQxMzMnCnNicDA6MDowIGxvZ2luOiBsZW4gMTYsIElEIDAsIGNtZCAwMDAwZmZmZmYw MTAwMDAwLCByZWNvbl9ob2xkIDAKc2JwMDowOjAgc2JwX2J1c3lfdGltZW91dApzYnAwOjA6MCBz YnBfYWdlbnRfcmVzZXQKc2JwMDowOjAgc2JwX2RvX2F0dGFjaApzYnAwOjA6MCBzYnBfY2FtX3Nj YW5fbHVuCmRhMCBhdCBzYnAwIGJ1cyAwIHRhcmdldCAwIGx1biAwCmRhMDogPE94Zm9yZCBTIE9Y Rk9SRCBJREUgRGV2aWMgNDEzMz4gRml4ZWQgU2ltcGxpZmllZCBEaXJlY3QgQWNjZXNzIFNDU0kt NCBkZXZpY2UgCmRhMDogNTAuMDAwTUIvcyB0cmFuc2ZlcnMKZGEwOiAxOTQ0ODFNQiAoMzk4Mjk3 MDg4IDUxMiBieXRlIHNlY3RvcnM6IDI1NUggNjNTL1QgMjQ3OTJDKQpmd29oY2kwOiBCVVMgcmVz ZXQKZndvaGNpMDogbm9kZV9pZCA9IDB4YzgwMGZmYzIsIENZQ0xFTUFTVEVSIG1vZGUKZmlyZXdp cmUwOiAzIG5vZGVzLCBtYXhob3AgPD0gMiwgY2FibGUgSVJNID0gMiAobWUpCmZpcmV3aXJlMDog TmV3IFM0MDAgZGV2aWNlIElEOjAwMDFkMjAwZTAwZDJmNWQKZmlyZXdpcmUwOiBEZXZpY2UgU0JQ LUlJCnNicF9wb3N0X2V4cGxvcmU6IEVVSTowMDAxZDIwMGUwMGQyZjVkIHNwZWM9MSBrZXk9MS4K dGFyZ2V0IDEgbHVuIDAgZm91bmQKc2JwMDoxOjAgTE9HSU4Kc2JwMDoxOjAgb3JkZXJlZDowIHR5 cGU6MCBFVUk6MDAwMWQyMDBlMDBkMmY1ZCBub2RlOjAgc3BlZWQ6MiBtYXhyZWM6NSBuZXchCnNi cDA6MTowICdPeGZvcmQgU2VtaWNvbmR1Y3RvciBMdGQuICAgJyAnT1hGT1JEIElERSBEZXZpY2Ug TFVOIDAgJyAnNDQ0MTMzJwpzYnBfcG9zdF9leHBsb3JlOiBFVUk6MDAwMWQyMDBlMDBkMzFmMSBz cGVjPTEga2V5PTEuCnNicDA6MDowIFJFQ09OTkVDVApzYnAwOjA6MCBvcmRlcmVkOjAgdHlwZTow IEVVSTowMDAxZDIwMGUwMGQzMWYxIG5vZGU6MSBzcGVlZDoyIG1heHJlYzo1CnNicDA6MDowICdP eGZvcmQgU2VtaWNvbmR1Y3RvciBMdGQuICAgJyAnT1hGT1JEIElERSBEZXZpY2UgTFVOIDAgJyAn NDQ0MTMzJwpzYnAwOjA6MCByZWNvbm5lY3Q6IGxlbiAxNiwgSUQgMCwgY21kIDAwMDBmZmZmZjAx MDAwMDAKc2JwMDoxOjAgbG9naW46IGxlbiAxNiwgSUQgMCwgY21kIDAwMDBmZmZmZjAxMDAwMDAs IHJlY29uX2hvbGQgMApzYnAwOjE6MCBzYnBfYnVzeV90aW1lb3V0CnNicDA6MTowIHNicF9hZ2Vu dF9yZXNldApzYnAwOjE6MCBzYnBfZG9fYXR0YWNoCnNicDA6MTowIHNicF9jYW1fc2Nhbl9sdW4K ZGExIGF0IHNicDAgYnVzIDAgdGFyZ2V0IDEgbHVuIDAKZGExOiA8T3hmb3JkIFMgT1hGT1JEIElE RSBEZXZpYyA0MTMzPiBGaXhlZCBTaW1wbGlmaWVkIERpcmVjdCBBY2Nlc3MgU0NTSS00IGRldmlj ZSAKZGExOiA1MC4wMDBNQi9zIHRyYW5zZmVycwpkYTE6IDE5NDQ4MU1CICgzOTgyOTcwODggNTEy IGJ5dGUgc2VjdG9yczogMjU1SCA2M1MvVCAyNDc5MkMpCnNicDA6MDowIE5vIG9jYiBvbiB0aGUg cXVldWUKc2JwMDowOjAgdW5vcmRlcmVkIGV4ZWN1dGlvbiBvcmRlcjoxCnNicDA6MDowIHVub3Jk ZXJlZCBleGVjdXRpb24gb3JkZXI6MQpzYnAwOjA6MCB1bm9yZGVyZWQgZXhlY3V0aW9uIG9yZGVy OjEKc2JwMDowOjAgdW5vcmRlcmVkIGV4ZWN1dGlvbiBvcmRlcjoxCnNicDA6MDowIHVub3JkZXJl ZCBleGVjdXRpb24gb3JkZXI6MQpzYnAwOjA6MCB1bm9yZGVyZWQgZXhlY3V0aW9uIG9yZGVyOjEK c2JwMDowOjAgdW5vcmRlcmVkIGV4ZWN1dGlvbiBvcmRlcjoxCnNicDA6MDowIHVub3JkZXJlZCBl eGVjdXRpb24gb3JkZXI6MQpzYnAwOjA6MCB1bm9yZGVyZWQgZXhlY3V0aW9uIG9yZGVyOjEKc2Jw MDowOjAgdW5vcmRlcmVkIGV4ZWN1dGlvbiBvcmRlcjoxCnNicDA6MDowIHVub3JkZXJlZCBleGVj dXRpb24gb3JkZXI6MQpzYnAwOjA6MCB1bm9yZGVyZWQgZXhlY3V0aW9uIG9yZGVyOjEKc2JwMDow OjAgdW5vcmRlcmVkIGV4ZWN1dGlvbiBvcmRlcjoxCnNicDA6MDowIHVub3JkZXJlZCBleGVjdXRp b24gb3JkZXI6MQpzYnAwOjA6MCB1bm9yZGVyZWQgZXhlY3V0aW9uIG9yZGVyOjEKc2JwMDowOjAg Tm8gb2NiIG9uIHRoZSBxdWV1ZQpzYnAwOjA6MCBObyBvY2Igb24gdGhlIHF1ZXVlCnNicDA6MDow IE5vIG9jYiBvbiB0aGUgcXVldWUKc2JwMDowOjAgTm8gb2NiIG9uIHRoZSBxdWV1ZQpzYnAwOjA6 MCBObyBvY2Igb24gdGhlIHF1ZXVlCnNicDA6MDowIE5vIG9jYiBvbiB0aGUgcXVldWUKc2JwMDow OjAgTm8gb2NiIG9uIHRoZSBxdWV1ZQpzYnAwOjA6MCBObyBvY2Igb24gdGhlIHF1ZXVlCnNicDA6 MDowIE5vIG9jYiBvbiB0aGUgcXVldWUKc2JwMDowOjAgTm8gb2NiIG9uIHRoZSBxdWV1ZQpzYnAw OjA6MCBObyBvY2Igb24gdGhlIHF1ZXVlCnNicDA6MDowIE5vIG9jYiBvbiB0aGUgcXVldWUKc2Jw MDowOjAgcmVxdWVzdCB0aW1lb3V0IC4uLiByZXF1ZXVlCnNicDA6MDowIHNicF9hYm9ydF9vY2Ig MHhiCnNicDA6MDowIFhQVF9TQ1NJX0lPOiBjbWQ6IDJhIDAwIDAwIDEyIDA1IGZlIDAwIDAwIDgw IDAwLCBmbGFnczogMHg4MCwgMTBiIGNtZC82NTUzNmIgZGF0YS8zMmIgc2Vuc2UKc2JwMDowOjAg c2JwX2Fib3J0X29jYiAweGIKc2JwMDowOjAgWFBUX1NDU0lfSU86IGNtZDogMmEgMDAgMDAgMTIg MGQgZmUgMDAgMDAgODAgMDAsIGZsYWdzOiAweDgwLCAxMGIgY21kLzY1NTM2YiBkYXRhLzMyYiBz ZW5zZQpzYnAwOjA6MCBzYnBfYWJvcnRfb2NiIDB4YgpzYnAwOjA6MCBYUFRfU0NTSV9JTzogY21k OiAyYSAwMCAwMCAxMiAwZSA3ZSAwMCAwMCA4MCAwMCwgZmxhZ3M6IDB4ODAsIDEwYiBjbWQvNjU1 MzZiIGRhdGEvMzJiIHNlbnNlCnNicDA6MDowIHNicF9hYm9ydF9vY2IgMHhiCnNicDA6MDowIFhQ VF9TQ1NJX0lPOiBjbWQ6IDJhIDAwIDAwIDEyIDBlIGZlIDAwIDAwIDgwIDAwLCBmbGFnczogMHg4 MCwgMTBiIGNtZC82NTUzNmIgZGF0YS8zMmIgc2Vuc2UKc2JwMDowOjAgcmVxdWVzdCB0aW1lb3V0 IC4uLiByZXF1ZXVlCnNicDA6MTowIHJlcXVlc3QgdGltZW91dCAuLi4gcmVxdWV1ZQpzYnAwOjA6 MCByZXF1ZXN0IHRpbWVvdXQgLi4uIHJlcXVldWUK ------=OPENWEBMAIL_ATT_0.426965617574751-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 3:48:26 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4876D37B401 for ; Sun, 2 Feb 2003 03:48:21 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85A7B43E4A for ; Sun, 2 Feb 2003 03:48:20 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h12BmHNt044515; Sun, 2 Feb 2003 03:48:17 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h12BmHBD044514; Sun, 2 Feb 2003 03:48:17 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sun, 2 Feb 2003 03:48:17 -0800 From: David Schultz To: "Andrey A. Chernov" Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202114817.GA41041@HAL9000.homeunix.com> Mail-Followup-To: "Andrey A. Chernov" , Kris Kennaway , current@FreeBSD.ORG References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202090422.GA59750@nagual.pp.ru> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Andrey A. Chernov : > Yes, first value correlation is there, but old formulae have even worse > effect "The random sequences do not vary much with the seed", as source > file comments and whole discussion about old RNG bad effects shown. I.e. > for different time+PID sequence, especially increased monotonically, like > in common practice, you'l got the same random sequence with old formulae > (which can't be called "works fine" because this fine work was the main > reason for change). So, returning to old formulae is not an option. > > The real problem is not in formulae, but in srand() funclion. This simple > patch can fix first value correlation, and I plan to commit it, if we all > agree. I not find better value for NSHUFF right now, but think > that something like 10 will be enough to fight corellation completely. > Some generating picture tests needed. Throwing away the first 10 numbers is probably not good enough to eliminate randomness with respect to the initial seed. Knuth suggests throwing away the first 2000, but he is conservative.[1] But no amount of throwing away the initial sequence will help as long as the generator itself doesn't look very random. Specifically, rand() isn't very interesting in the lower-order bits, and it spectacularly fails nearly all of Marsaglia's randomness tests.[2] If rand() is a concern to someone, they should either find LCG parameters that produce better behavior, or research a replacement algorithm. [1] His PRNG is available from http://www-cs-faculty.stanford.edu/~knuth/programs/rng.c [2] http://stat.fsu.edu/~geo/diehard.html (you need ports/lang/f2c) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 3:58: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FF2137B409; Sun, 2 Feb 2003 03:57:58 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C7CD43F43; Sun, 2 Feb 2003 03:57:57 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12Bvu4Z058895; Sun, 2 Feb 2003 12:57:56 +0100 (CET) (envelope-from phk@freebsd.org) Date: Sun, 02 Feb 2003 12:57:56 +0100 Message-ID: <58894.1044187076@critter.freebsd.dk> From: Poul-Henning Kamp Subject: End-Of-Life announcement for M-Systems DiskOnChip driver ("fla"). MIME-Version: 1.0 Content-Type: multipart/digest; boundary="----- =_aaaaaaaaaa" To: undisclosed-recipients: ; Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ------- =_aaaaaaaaaa To: hackers@freebsd.org Subject: End-Of-Life announcement for M-Systems DiskOnChip driver ("fla"). From: Poul-Henning Kamp Date: Sun, 02 Feb 2003 12:57:56 +0100 Message-ID: <58894.1044187076@critter.freebsd.dk> This is _only_ about the driver for the DiskOnChip devices from M-Systems. This does not affect any other device. If you have never seen a /dev/fla0 mounted on your system, you don't need to read the rest. I realize that there are users of the DiskOnChip hardware out there now, but I seriously don't expect there to be any users once we get to FreeBSD 6.0 so I plant to remove the driver once the 5-stable branch is laid down. This means that the 5.x series of FreeBSD releases will be the last to have built in support for the Disk-On-Chip driver. The driver in the tree works with the M-systems devices I have to test with, but M-Systems have neither sent me the necessary software updates nor hardware samples of the latest generation of the DoC and I have received no emails from people who were stuck because of this. Combine this with the fact that the DoC is a CPU-poll technology where you busy-wait for the flash devices to do their thing, rather than get an interrupt when they are done, I think we can safely say that the DoC is well past its prime time. As far as I can tell, people use CompactFlash these days instead. Protests to: phk@freebsd.org Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ------- =_aaaaaaaaaa-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 4:10: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12DF037B401 for ; Sun, 2 Feb 2003 04:09:58 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id B524D43F93 for ; Sun, 2 Feb 2003 04:09:57 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h12C9vP5056885 for ; Sun, 2 Feb 2003 04:09:57 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h12C9vMa056883 for current@freebsd.org; Sun, 2 Feb 2003 04:09:57 -0800 (PST) Date: Sun, 2 Feb 2003 04:09:57 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302021209.h12C9vMa056883@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Sun Feb 2 03:09:03 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Sun Feb 2 03:40:05 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Sun Feb 2 03:40:05 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4447: warning: duplicate script for target "geom_bsd.o" ignored /h/des/src/sys/dev/lmc/if_lmc.c:32:2: warning: #warning "The lmc driver is broken and is not compiled with LINT" /h/des/src/sys/dev/pdq/pdq.c: In function `pdq_initialize': /h/des/src/sys/dev/pdq/pdq.c:1606: warning: cast discards qualifiers from pointer target type /h/des/src/sys/pci/meteor.c:149:2: warning: #warning "The meteor driver is broken and is not compiled with LINT" /h/des/src/sys/pci/simos.c:30:2: warning: #warning "The simos driver is broken and is not compiled with LINT" /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_open': /h/des/src/sys/dev/gfb/gfb_pci.c:268: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:268: (Each undeclared identifier is reported only once /h/des/src/sys/dev/gfb/gfb_pci.c:268: for each function it appears in.) cc1: warnings being treated as errors /h/des/src/sys/dev/gfb/gfb_pci.c:275: warning: passing arg 1 of `genfbopen' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_close': /h/des/src/sys/dev/gfb/gfb_pci.c:284: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:285: warning: passing arg 1 of `genfbclose' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_read': /h/des/src/sys/dev/gfb/gfb_pci.c:293: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:294: warning: passing arg 1 of `genfbread' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_write': /h/des/src/sys/dev/gfb/gfb_pci.c:302: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:303: warning: passing arg 1 of `genfbwrite' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_ioctl': /h/des/src/sys/dev/gfb/gfb_pci.c:311: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:312: warning: passing arg 1 of `genfbioctl' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_mmap': /h/des/src/sys/dev/gfb/gfb_pci.c:320: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:321: warning: passing arg 1 of `genfbmmap' from incompatible pointer type *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 4:18:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2811F37B401; Sun, 2 Feb 2003 04:18:36 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5971543F43; Sun, 2 Feb 2003 04:18:30 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 8436E21812D; Sun, 2 Feb 2003 21:18:23 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h12CINc04481; Sun, 2 Feb 2003 21:18:23 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHU00390; Sun, 2 Feb 2003 21:18:22 +0900 (JST) Date: Sun, 02 Feb 2003 21:18:22 +0900 Message-ID: From: Hidetoshi Shimokawa To: "mike" Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & 2 external FW-disks In-Reply-To: <20030202112833.M8458@Reifenberger.com> References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> <20030202112833.M8458@Reifenberger.com> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Sun, 2 Feb 2003 13:28:33 +0200, mike wrote: > > try some of the following: > > > > - fwcontorl -g 20 > > - sysctl hw.firewire.sbp.max_speed=0 > > - change SBP_QUEUE_LEN in sbp.c to 1 and rebuld module. > > - sysctl machdep.cpu_idle_hlt=0 > > - sysctl debug.sbp_debug=1 and send me a dmesg. > > with all of the above I get the attached dmesg soon after > setting up two concurrent iozones (one per disk): Hmm, Are you sure that you have chaned SBP_QUEUE_LEN to 1 and rebuild and reinstalled it? I suppose 'unordered execution' shouldn't happen for SBP_QUEUE_LEN=1 case. Anyway, how about change 'maxopenings' for cam_simq_alloc() in sbp.c to 1? BTW, after timeout message, did the transfer resume? /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 4:29:10 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A1C937B401 for ; Sun, 2 Feb 2003 04:29:09 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58FFE43E4A for ; Sun, 2 Feb 2003 04:29:07 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12CT5d6063009; Sun, 2 Feb 2003 15:29:05 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12CT59M063008; Sun, 2 Feb 2003 15:29:05 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 15:29:05 +0300 From: "Andrey A. Chernov" To: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202122905.GA62977@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202114817.GA41041@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202114817.GA41041@HAL9000.homeunix.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 03:48:17 -0800, David Schultz wrote: > Specifically, rand() isn't very interesting in the lower-order > bits, and it spectacularly fails nearly all of Marsaglia's It seems that you speak about old formulae, we use new one (which intended to fix low-ordered bits), see our rand.c source. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 4:30:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E244C37B406 for ; Sun, 2 Feb 2003 04:30:37 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE4B843F43 for ; Sun, 2 Feb 2003 04:30:36 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12CUZd6063040; Sun, 2 Feb 2003 15:30:35 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12CUZe2063039; Sun, 2 Feb 2003 15:30:35 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 15:30:35 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202123035.GB62977@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20030202102621.GA60900@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 13:26:21 +0300, Andrey A. Chernov wrote: > Workaround I find so far is something like that >=20 > #define MASK 123459876 I found nothing better. Here is fix for 0 problem I plan to commit: --- stdlib/rand.c.old Sat Jan 4 20:39:19 2003 +++ stdlib/rand.c Sun Feb 2 14:43:42 2003 @@ -70,14 +70,18 @@ * Park and Miller, Communications of the ACM, vol. 31, no. 10, * October 1988, p. 1195. */ +#define SHIFT_MASK 123459876 long hi, lo, x; =20 - hi =3D *ctx / 127773; - lo =3D *ctx % 127773; + /* Can't be initialized with 0, so use shifting mask. */ + x =3D *ctx ^ SHIFT_MASK; + hi =3D x / 127773; + lo =3D x % 127773; x =3D 16807 * lo - 2836 * hi; - if (x <=3D 0) + if (x < 0) x +=3D 0x7fffffff; - return ((*ctx =3D x) % ((u_long)RAND_MAX + 1)); + *ctx =3D x ^ SHIFT_MASK; + return (x % ((u_long)RAND_MAX + 1)); #endif /* !USE_WEAK_SEEDING */ } =20 @@ -86,8 +90,10 @@ rand_r(unsigned int *ctx) { u_long val =3D (u_long) *ctx; - *ctx =3D do_rand(&val); - return (int) *ctx; + int r =3D do_rand(&val); + + *ctx =3D (unsigned int) val; + return (r); } =20 =20 --- stdlib/random.c.old Sun Mar 24 23:42:48 2002 +++ stdlib/random.c Sun Feb 2 15:24:38 2003 @@ -142,6 +142,10 @@ */ #define MAX_TYPES 5 /* max number of types above */ =20 +#ifndef USE_WEAK_SEEDING +#define SHIFT_MASK 123459876 +#endif + static long degrees[MAX_TYPES] =3D { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 }; static long seps [MAX_TYPES] =3D { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 }; =20 @@ -171,12 +175,12 @@ 0x36413f93, 0xc622c298, 0xf5a42ab8, 0x8a88d77b, 0xf5ad9d0e, 0x8999220b, 0x27fb47b9, #else /* !USE_WEAK_SEEDING */ - 0x991539b1, 0x16a5bce3, 0x6774a4cd, 0x3e01511e, 0x4e508aaa, 0x61048c05, - 0xf5500617, 0x846b7115, 0x6a19892c, 0x896a97af, 0xdb48f936, 0x14898454, - 0x37ffd106, 0xb58bff9c, 0x59e17104, 0xcf918a49, 0x09378c83, 0x52c7a471, - 0x8d293ea9, 0x1f4fc301, 0xc3db71be, 0x39b44e1c, 0xf8a44ef9, 0x4c8b80b1, - 0x19edc328, 0x87bf4bdd, 0xc9b240e5, 0xe9ee4b1b, 0x4382aee7, 0x535b6b41, - 0xf3bec5da + 0x52a59789, 0x43164b1c, 0x7be52a82, 0x748ef343, 0x642a8923, 0x6ade1cd8, + 0x1ae76e27, 0x24b915ee, 0x2c42f326, 0x12ab3ee1, 0x4679af03, 0x876d19a0, + 0xe9e535ba, 0xad2471c8, 0x710262f8, 0xe1c16494, 0x29224bcc, 0x9710c348, + 0x7347f8e4, 0xe01ef1b4, 0x2030c33f, 0xd465e38, 0x925375aa, 0x6091d15d, + 0x467ee7d7, 0x92713312, 0x32346127, 0x8350e834, 0x3dadc6ea, 0x391364f2, + 0x8226561c, #endif /* !USE_WEAK_SEEDING */ }; =20 @@ -236,12 +240,14 @@ */ long hi, lo; =20 + /* Can't be initialized with 0, so use shifting mask. */ + x ^=3D SHIFT_MASK; hi =3D x / 127773; lo =3D x % 127773; x =3D 16807 * lo - 2836 * hi; - if (x <=3D 0) + if (x < 0) x +=3D 0x7fffffff; - return (x); + return (x ^ SHIFT_MASK); /* return state, not value */ #endif /* !USE_WEAK_SEEDING */ } =20 @@ -473,7 +479,12 @@ =20 if (rand_type =3D=3D TYPE_0) { i =3D state[0]; - state[0] =3D i =3D (good_rand(i)) & 0x7fffffff; + state[0] =3D good_rand(i); +#ifndef USE_WEAK_SEEDING + i =3D state[0] ^ SHIFT_MASK; +#else + i =3D state[0] & 0x7fffffff; +#endif } else { /* * Use local variables rather than static variables for speed. --=20 Andrey A. Chernov http://ache.pp.ru/ --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPj0Pa+JgpPLZnQjrAQHMKQQAnZ6EThQ43Ds/Y9vWya76ZtOOrhizBTSj dMHZ2apqog6yiOvnh4EHBPq63keSJIBFQGXMihWk/Otw9JVJXgt9RiqoaYELRDPX mUAnVTNyGmF3/nR34u3B9Jiuaq7afA2gqglq4T3wvSU9o5ulbRVHLHgm7Vy25tEf kBSkWpBtJtE= =imhb -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 4:39: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A5FF37B401 for ; Sun, 2 Feb 2003 04:38:55 -0800 (PST) Received: from 12-234-22-23.client.attbi.com (12-234-22-23.client.attbi.com [12.234.22.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F93343E4A for ; Sun, 2 Feb 2003 04:38:55 -0800 (PST) (envelope-from DougB@FreeBSD.org) Received: from slave.gorean.org (3i76awr1gjziv1os@slave.gorean.org [10.0.0.1]) by 12-234-22-23.client.attbi.com (8.12.6/8.12.6) with ESMTP id h12CcrfS079238; Sun, 2 Feb 2003 04:38:54 -0800 (PST) (envelope-from DougB@FreeBSD.org) Date: Sun, 2 Feb 2003 04:38:53 -0800 (PST) From: Doug Barton To: "Andrey A. Chernov" Cc: Kris Kennaway , current@FreeBSD.org Subject: Re: rand() is broken In-Reply-To: <20030202123035.GB62977@nagual.pp.ru> Message-ID: <20030202043722.E77226@12-234-22-23.pyvrag.nggov.pbz> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2 Feb 2003, Andrey A. Chernov wrote: > On Sun, Feb 02, 2003 at 13:26:21 +0300, Andrey A. Chernov wrote: > > > Workaround I find so far is something like that > > > > #define MASK 123459876 > > I found nothing better. Here is fix for 0 problem I plan to commit: I think it's worthwhile to wait till we get a chance to try arc4random(). Also, have you run the code you're proposing through the tests in the post that David Schultz just made? Before leaping ahead with another band-aid it would be nice to give this some serious thought. Doug -- If it's moving, encrypt it. If it's not moving, encrypt it till it moves, then encrypt it some more. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 4:43: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A47737B401; Sun, 2 Feb 2003 04:43:01 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07EA743F43; Sun, 2 Feb 2003 04:43:00 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Cgwd6063173; Sun, 2 Feb 2003 15:42:58 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12Cgw6G063172; Sun, 2 Feb 2003 15:42:58 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 15:42:58 +0300 From: "Andrey A. Chernov" To: Doug Barton Cc: Kris Kennaway , current@FreeBSD.org Subject: Re: rand() is broken Message-ID: <20030202124258.GA63153@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030202043722.E77226@12-234-22-23.pyvrag.nggov.pbz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202043722.E77226@12-234-22-23.pyvrag.nggov.pbz> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 04:38:53 -0800, Doug Barton wrote: > > I think it's worthwhile to wait till we get a chance to try arc4random(). This is libc's rand/random, it can't be fixed with arc4random() as designed. > Also, have you run the code you're proposing through the tests in the post > that David Schultz just made? This is fix form problem with 0, not for seed -> 1st value correlation. I can't deal with two problems with same time, lets be sequental. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 5:17:54 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1230337B405 for ; Sun, 2 Feb 2003 05:17:53 -0800 (PST) Received: from smtp04.iprimus.com.au (smtp04.iprimus.com.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D4FF43F75 for ; Sun, 2 Feb 2003 05:17:48 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from smtp02.iprimus.net.au (210.50.76.70) by smtp04.iprimus.com.au (6.7.010) id 3E3608DE000FBBEC for current@FreeBSD.org; Mon, 3 Feb 2003 00:17:40 +1100 Received: from dilbert.robbins.dropbear.id.au ([203.134.135.129]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Mon, 3 Feb 2003 00:17:39 +1100 Received: from dilbert.robbins.dropbear.id.au (y1nff0j6npg4hofv@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id h12DHaVY031341; Mon, 3 Feb 2003 00:17:37 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id h12DHZIe031340; Mon, 3 Feb 2003 00:17:35 +1100 (EST) (envelope-from tim) Date: Mon, 3 Feb 2003 00:17:35 +1100 From: Tim Robbins To: "Andrey A. Chernov" Cc: Kris Kennaway , current@FreeBSD.org Subject: Re: rand() is broken Message-ID: <20030203001735.A30440@dilbert.robbins.dropbear.id.au> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030202123035.GB62977@nagual.pp.ru>; from ache@nagual.pp.ru on Sun, Feb 02, 2003 at 03:30:35PM +0300 X-OriginalArrivalTime: 02 Feb 2003 13:17:40.0043 (UTC) FILETIME=[763241B0:01C2CABD] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 03:30:35PM +0300, Andrey A. Chernov wrote: > On Sun, Feb 02, 2003 at 13:26:21 +0300, Andrey A. Chernov wrote: > > > Workaround I find so far is something like that > > > > #define MASK 123459876 > > I found nothing better. Here is fix for 0 problem I plan to commit: > > --- stdlib/rand.c.old Sat Jan 4 20:39:19 2003 > +++ stdlib/rand.c Sun Feb 2 14:43:42 2003 > @@ -70,14 +70,18 @@ > * Park and Miller, Communications of the ACM, vol. 31, no. 10, > * October 1988, p. 1195. > */ > +#define SHIFT_MASK 123459876 > long hi, lo, x; > > - hi = *ctx / 127773; > - lo = *ctx % 127773; > + /* Can't be initialized with 0, so use shifting mask. */ > + x = *ctx ^ SHIFT_MASK; > + hi = x / 127773; > + lo = x % 127773; > x = 16807 * lo - 2836 * hi; > - if (x <= 0) > + if (x < 0) > x += 0x7fffffff; > - return ((*ctx = x) % ((u_long)RAND_MAX + 1)); > + *ctx = x ^ SHIFT_MASK; > + return (x % ((u_long)RAND_MAX + 1)); > #endif /* !USE_WEAK_SEEDING */ > } I believe that this change just moves the "bad" seed to 123459876; after calling srand() with that seed, each call to rand() returns 0. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 5:42:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9971637B408; Sun, 2 Feb 2003 05:42:28 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3510843E4A; Sun, 2 Feb 2003 05:42:27 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12DgPd6063703; Sun, 2 Feb 2003 16:42:25 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12DgPaU063702; Sun, 2 Feb 2003 16:42:25 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 16:42:25 +0300 From: "Andrey A. Chernov" To: Tim Robbins Cc: Kris Kennaway , current@FreeBSD.org Subject: Re: rand() is broken Message-ID: <20030202134225.GA63673@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030203001735.A30440@dilbert.robbins.dropbear.id.au> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 00:17:35 +1100, Tim Robbins wrote: > > I believe that this change just moves the "bad" seed to 123459876; after > calling srand() with that seed, each call to rand() returns 0. Yes. Nothing better is possible for this formulae and this is documented in algorithm, some value must be excluded. Excluding 0 is bad only because srand(0) is commonly used and srand(123459876) is not. Ragarding to old formulae, the question is: what is worse, generate non-random lover bits everytime (old variant) or exclude one seed value (new variant)? Of course formulae can be changed to some another algorithm, but keep in mind that rand() must be simple and speedy. Now used variant is most simpler, others are much more complex. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 5:47:48 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09C2A37B401 for ; Sun, 2 Feb 2003 05:47:47 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D81F43F75 for ; Sun, 2 Feb 2003 05:47:46 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h12Dld1e078120; Sun, 2 Feb 2003 06:47:39 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 02 Feb 2003 06:47:07 -0700 (MST) Message-Id: <20030202.064707.11429179.imp@bsdimp.com> To: ob@e-Gitt.NET Cc: freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept From: "M. Warner Losh" In-Reply-To: <20030201182012.GC97784@e-Gitt.NET> References: <20030201182012.GC97784@e-Gitt.NET> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20030201182012.GC97784@e-Gitt.NET> Oliver Brandmueller writes: : Hi, : : I'm currently experimenting with 5-CURRENT on my Notebook an have a : question regarding the concept of devd. : : With 4-STABLE I had pccardd running. Whenever a pccard was inserted I : had pccardd starting the corresponding scripts. I have configured devd : to do so now (especially for my wavelan pccard). So far everything : works, except for one case: When the pccard is already inserted during : boot, devd does not recognize the card as newly inserted device (of : course, it's already there). So I have currently setup a script in : /usr/local/etc/rc.d which starts the script corresponding to the wavelan : pccard, if interface wi0 is found during boot. I think this cannot be : the considered solution for that problem? : : What am I missing about the concept of devd? devd works for me when I have devices in my machine at boot. It does run the start script for me. I just confirmed this on my machine. I put my wi card in, booted and it picked up a dhcp address. What script are you trying to run? What does your configuration file look like? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 5:58:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E428C37B401 for ; Sun, 2 Feb 2003 05:58:13 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2331543F75 for ; Sun, 2 Feb 2003 05:58:13 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h12Dw41e078181; Sun, 2 Feb 2003 06:58:04 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 02 Feb 2003 06:57:32 -0700 (MST) Message-Id: <20030202.065732.108375307.imp@bsdimp.com> To: oberman@es.net Cc: ob@e-Gitt.NET, freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept From: "M. Warner Losh" In-Reply-To: <20030201233621.916935D04@ptavv.es.net> References: <20030201182012.GC97784@e-Gitt.NET> <20030201233621.916935D04@ptavv.es.net> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20030201233621.916935D04@ptavv.es.net> "Kevin Oberman" writes: : > Date: Sat, 1 Feb 2003 19:20:12 +0100 : > From: Oliver Brandmueller : > Sender: owner-freebsd-current@FreeBSD.ORG : > : > Hi, : > : > I'm currently experimenting with 5-CURRENT on my Notebook an have a : > question regarding the concept of devd. : > : > With 4-STABLE I had pccardd running. Whenever a pccard was inserted I : > had pccardd starting the corresponding scripts. I have configured devd : > to do so now (especially for my wavelan pccard). So far everything : > works, except for one case: When the pccard is already inserted during : > boot, devd does not recognize the card as newly inserted device (of : > course, it's already there). So I have currently setup a script in : > /usr/local/etc/rc.d which starts the script corresponding to the wavelan : > pccard, if interface wi0 is found during boot. I think this cannot be : > the considered solution for that problem? : > : > What am I missing about the concept of devd? : : While I think you have the concept down fine, the execution may still : be a bit fuzzy in places. : : If the device is in place when the system boots, devd should not be : required, as it should be probed in the traditional manner. But this : does not seem to execute the added things that need to be done to : bring up a new network interface. After the system is up I need to : execute /etc/pccard_ether to get the interface on-line. Can you put a echo "I'm in pccard_ether" type line in /etc/pccard_ether and see if that's being run at boot. Like I said in my last response, I just confirmed that it is running on my machine. I've had some problems with CardBus cards on boot not probing, but that's a different problem that I'm aware of and working on a solution for and has nothing to do with devd. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 6: 2:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ADD437B405; Sun, 2 Feb 2003 06:02:27 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95A4A43F9B; Sun, 2 Feb 2003 06:02:24 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12E2Nd6063897; Sun, 2 Feb 2003 17:02:23 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12E2NIf063896; Sun, 2 Feb 2003 17:02:23 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 17:02:23 +0300 From: "Andrey A. Chernov" To: Tim Robbins Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202140223.GA63836@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202134225.GA63673@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 16:42:25 +0300, Andrey A. Chernov wrote: > On Mon, Feb 03, 2003 at 00:17:35 +1100, Tim Robbins wrote: > > > > I believe that this change just moves the "bad" seed to 123459876; after > > calling srand() with that seed, each call to rand() returns 0. > > Yes. Nothing better is possible for this formulae and this is documented > in algorithm, some value must be excluded. Excluding 0 is bad only because > srand(0) is commonly used and srand(123459876) is not. This workaround can be improved more, to make generator not stuck ever with 123459876 by simple way: if (seed == 123459876) seed = 123459877; It can be done even with original variant using more simpler patch: if (seed == 0) seed = 123459876; I'll produce and send it a bit later. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 6:16: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8BFC37B401; Sun, 2 Feb 2003 06:16:07 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 661BA43F3F; Sun, 2 Feb 2003 06:16:06 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12EG5d6064181; Sun, 2 Feb 2003 17:16:05 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12EG5ro064180; Sun, 2 Feb 2003 17:16:05 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 17:16:05 +0300 From: "Andrey A. Chernov" To: Tim Robbins Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202141605.GA64157@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202140223.GA63836@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 17:02:23 +0300, Andrey A. Chernov wrote: > > I'll produce and send it a bit later. Here it is. --- stdlib/rand.c.old Sat Jan 4 20:39:19 2003 +++ stdlib/rand.c Sun Feb 2 17:06:08 2003 @@ -72,10 +72,13 @@ */ long hi, lo, x; + /* Can't be initialized with 0, so use another value. */ + if (*ctx == 0) + *ctx = 123459876; hi = *ctx / 127773; lo = *ctx % 127773; x = 16807 * lo - 2836 * hi; - if (x <= 0) + if (x < 0) x += 0x7fffffff; return ((*ctx = x) % ((u_long)RAND_MAX + 1)); #endif /* !USE_WEAK_SEEDING */ @@ -86,8 +89,10 @@ rand_r(unsigned int *ctx) { u_long val = (u_long) *ctx; - *ctx = do_rand(&val); - return (int) *ctx; + int r = do_rand(&val); + + *ctx = (unsigned int) val; + return (r); } --- stdlib/random.c.old Sun Mar 24 23:42:48 2002 +++ stdlib/random.c Sun Feb 2 17:09:19 2003 @@ -236,10 +236,13 @@ */ long hi, lo; + /* Can't be initialized with 0, so use another value. */ + if (x == 0) + x = 123459876; hi = x / 127773; lo = x % 127773; x = 16807 * lo - 2836 * hi; - if (x <= 0) + if (x < 0) x += 0x7fffffff; return (x); #endif /* !USE_WEAK_SEEDING */ -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 6:19:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 710FF37B401 for ; Sun, 2 Feb 2003 06:19:37 -0800 (PST) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A00543F43 for ; Sun, 2 Feb 2003 06:19:31 -0800 (PST) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 3.36 #1) id 18fKxw-0004y9-00 for freebsd-current@FreeBSD.ORG; Sun, 02 Feb 2003 15:19:24 +0100 Date: Sun, 2 Feb 2003 15:19:24 +0100 From: Oliver Brandmueller To: freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept Message-ID: <20030202141924.GA17831@e-Gitt.NET> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <20030201182012.GC97784@e-Gitt.NET> <20030202.064707.11429179.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202.064707.11429179.imp@bsdimp.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Warner. On Sun, Feb 02, 2003 at 06:47:07AM -0700, M. Warner Losh wrote: > devd works for me when I have devices in my machine at boot. It does > run the start script for me. I just confirmed this on my machine. I > put my wi card in, booted and it picked up a dhcp address. > > What script are you trying to run? What does your configuration file > look like? gruftie# uname -a FreeBSD gruftie 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Sat Feb 1 19:55:36 CET 2003 root@gruftie:/usr/obj/usr/src/sys/GRUFTIE i386 (cvsup was just before buildkernel/buildworld - the version before was about 4-5 days old and showed the same effect) In /etc/devd.conf I added the following lines for my Lucent Orinoco Gold Card (which works just fine when I plug in the pccard after the system has started): --- CUT HERE --- attach 50 { device-name "wi[0-9]"; action "/usr/local/etc/netconf/bin/netconf $device-name start"; }; detach 50 { device-name "wi[0-9]"; action "/usr/local/etc/netconf/bin/netconf $device-name stop"; }; --- CUT HERE --- This netconf script (yeah, I know, /usr/local/etc is not a good place for something like that) is something I wrote which get's a bunch of small config files for each known wireless network and then configures the card to the first matching WLAN. This script logs to syslog and so I know it is not even started on bootup, if the card is already plugged in. If I take the pccard out and put it back in again, everything works fine. Any ideas? - Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 7:10:54 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA94637B405; Sun, 2 Feb 2003 07:10:52 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3436B43F75; Sun, 2 Feb 2003 07:10:51 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12FAnd6064906; Sun, 2 Feb 2003 18:10:50 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12FAnKH064905; Sun, 2 Feb 2003 18:10:49 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 18:10:49 +0300 From: "Andrey A. Chernov" To: Tim Robbins Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030202151049.GA64866@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> <20030202141605.GA64157@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202141605.GA64157@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG So far, this is final variant for 0 problem fixing ready for committing. Any objections? --- stdlib/rand.c.old Sat Jan 4 20:39:19 2003 +++ stdlib/rand.c Sun Feb 2 17:34:34 2003 @@ -72,10 +72,13 @@ */ long hi, lo, x; + /* Can't be initialized with 0, so use another value. */ + if (*ctx == 0) + *ctx = 123459876; hi = *ctx / 127773; lo = *ctx % 127773; x = 16807 * lo - 2836 * hi; - if (x <= 0) + if (x < 0) x += 0x7fffffff; return ((*ctx = x) % ((u_long)RAND_MAX + 1)); #endif /* !USE_WEAK_SEEDING */ --- stdlib/random.c.old Sun Mar 24 23:42:48 2002 +++ stdlib/random.c Sun Feb 2 17:09:19 2003 @@ -236,10 +236,13 @@ */ long hi, lo; + /* Can't be initialized with 0, so use another value. */ + if (x == 0) + x = 123459876; hi = x / 127773; lo = x % 127773; x = 16807 * lo - 2836 * hi; - if (x <= 0) + if (x < 0) x += 0x7fffffff; return (x); #endif /* !USE_WEAK_SEEDING */ -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 7:31:38 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B092037B401 for ; Sun, 2 Feb 2003 07:31:37 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AB7943F3F for ; Sun, 2 Feb 2003 07:31:37 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id A08115371; Sun, 2 Feb 2003 16:31:34 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: David Schultz Cc: "Andrey A. Chernov" , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202114817.GA41041@HAL9000.homeunix.com> From: Dag-Erling Smorgrav Date: Sun, 02 Feb 2003 16:31:33 +0100 In-Reply-To: <20030202114817.GA41041@HAL9000.homeunix.com> (David Schultz's message of "Sun, 2 Feb 2003 03:48:17 -0800") Message-ID: Lines: 10 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386--freebsd) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Schultz writes: > [2] http://stat.fsu.edu/~geo/diehard.html (you need ports/lang/f2c) There's a native C version on Marsaglia's random number CD: http://stat.fsu.edu/pub/diehard/cdrom/die.c/ DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 7:35:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF40B37B401 for ; Sun, 2 Feb 2003 07:35:13 -0800 (PST) Received: from marstons.services.quay.plus.net (marstons.services.quay.plus.net [212.159.14.223]) by mx1.FreeBSD.org (Postfix) with SMTP id C2C5743F43 for ; Sun, 2 Feb 2003 07:35:07 -0800 (PST) (envelope-from trent@limekiln.vcisp.net) Received: (qmail 16397 invoked by uid 10001); 2 Feb 2003 15:35:06 -0000 Received: from limekiln.vcisp.net (212.159.16.110) by marstons.services.quay.plus.net with SMTP; 2 Feb 2003 15:35:06 -0000 Received: by limekiln.vcisp.net (Postfix, from userid 1001) id D2777508; Sun, 2 Feb 2003 15:35:00 +0000 (GMT) Date: Sun, 2 Feb 2003 15:35:00 +0000 From: Trent Nelson To: current@freebsd.org Subject: buildkernel dying from unresolved sched_* symbols Message-ID: <20030202153500.GA28378@limekiln.vcisp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm not sure if this is a result of the recent sched_ule import, but buildkernel is dying on a bunch of undefined symbols (that from what I can see, are definitely present in both sched_(4bsd|ule)). I fol- llowed a discussion on -arch about being able to nominate the prefe- rred scheduler, but I'd assume both would be compiled, no? Trent. linking kernel.debug init_main.o: In function `proc0_init': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:319: undefined reference to `kse0_sched' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:320: undefined reference to `ksegrp0_sched' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:321: undefined reference to `proc0_sched' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:322: undefined reference to `thread0_sched' kern_clock.o: In function `statclock_process': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_clock.c:445: undefined reference to `sched_clock' kern_condvar.o: In function `cv_wait': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' kern_condvar.o: In function `cv_wait_sig': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' kern_condvar.o: In function `cv_timedwait': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' kern_condvar.o: In function `cv_timedwait_sig': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' kern_exit.o: In function `wait1': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_exit.c:623: undefined reference to `sched_exit' kern_fork.o: In function `fork1': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_fork.c:513: undefined reference to `sched_fork' kern_idle.o: In function `idle_proc': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_idle.c:110: undefined reference to `sched_runnable' kern_mutex.o: In function `propagate_priority': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_mutex.c:153: undefined reference to `sched_prio' kern_proc.o: In function `procinit': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_proc.c:125: undefined reference to `sched_sizeof_proc' kern_proc.o: In function `fill_kinfo_proc': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_proc.c:745: undefined reference to `sched_pctcpu' kern_resource.o: In function `donice': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_resource.c:299: undefined reference to `sched_nice' kern_subr.o: In function `uio_yield': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_subr.c:557: undefined reference to `sched_prio' kern_switch.o: In function `choosethread': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:126: undefined reference to `sched_choose' kern_switch.o: In function `kse_reassign': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:278: undefined reference to `sched_add' kern_switch.o: In function `adjustrunqueue': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:395: undefined reference to `sched_rem' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:396: undefined reference to `sched_add' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:411: undefined reference to `sched_rem' kern_switch.o: In function `setrunqueue': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:493: undefined reference to `sched_rem' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:556: undefined reference to `sched_add' kern_synch.o: In function `msleep': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:242: undefined reference to `sched_sleep' kern_synch.o: In function `mi_switch': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:503: undefined reference to `sched_switchout' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:509: undefined reference to `sched_switchin' kern_synch.o: In function `setrunnable': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:578: undefined reference to `sched_wakeup' kern_synch.o: In function `yield': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:658: undefined reference to `sched_prio' kern_thread.o: In function `threadinit': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:623: undefined reference to `sched_sizeof_thread' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:639: undefined reference to `sched_sizeof_ksegrp' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:642: undefined reference to `sched_sizeof_kse' subr_trap.o: In function `userret': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/subr_trap.c:96: undefined reference to `sched_userret' subr_trap.o: In function `ast': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/subr_trap.c:245: undefined reference to `sched_prio' ksched.o: In function `ksched_attach': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:62: undefined reference to `sched_rr_interval' ksched.o: In function `ksched_setscheduler': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:192: undefined reference to `sched_prio' /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:222: undefined reference to `sched_prio' vm_zeroidle.o: In function `vm_pagezero': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/vm/vm_zeroidle.c:132: undefined reference to `sched_runnable' vm_pageout.o: In function `vm_pageout_scan': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/vm/vm_pageout.c:1237: undefined reference to `sched_nice' machdep.o: In function `cpu_idle': /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/i386/i386/machdep.c:1028: undefined reference to `sched_runnable' *** Error code 1 Stop in /obj/shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/CHERRY. *** Error code 1 Stop in /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src. *** Error code 1 Stop in /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 7:36:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCD5F37B405; Sun, 2 Feb 2003 07:36:58 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8680F43F79; Sun, 2 Feb 2003 07:36:57 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12FauLf076939; Sun, 2 Feb 2003 15:36:56 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12Faum9076938; Sun, 2 Feb 2003 15:36:56 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12FWWaX047973; Sun, 2 Feb 2003 17:32:32 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021532.h12FWWaX047973@grimreaper.grondar.org> To: "Jeroen C. van Gelderen" Cc: phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 14:26:41 +0100." Date: Sun, 02 Feb 2003 15:32:32 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Jeroen C. van Gelderen" writes: > Wouldn't it be a good idea to change the name at the same time? Or > should it be retained for compatibility reasons with other BSDs? > > Currently the name needlessly exposes implementation detail. Callers > expect good, cheap, non-blocking randomness but don't give a hoot if > that is actually provided trough use of RC4 or not. I see no reason why > the implementation could be changed if the contract is maintained. Good point. We can re-implement random() internally with arc4rand(). Objections? M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 7:44: 1 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 262D137B405; Sun, 2 Feb 2003 07:44:00 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 187B143F43; Sun, 2 Feb 2003 07:43:58 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Fhud6065213; Sun, 2 Feb 2003 18:43:56 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12Fhu0a065212; Sun, 2 Feb 2003 18:43:56 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 18:43:56 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202154356.GA65166@nagual.pp.ru> References: <200302021532.h12FWWaX047973@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302021532.h12FWWaX047973@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 15:32:32 +0000, Mark Murray wrote: > "Jeroen C. van Gelderen" writes: > > Wouldn't it be a good idea to change the name at the same time? Or > > should it be retained for compatibility reasons with other BSDs? > > > > Currently the name needlessly exposes implementation detail. Callers > > expect good, cheap, non-blocking randomness but don't give a hoot if > > that is actually provided trough use of RC4 or not. I see no reason why > > the implementation could be changed if the contract is maintained. > > Good point. We can re-implement random() internally with arc4rand(). > > Objections? We can't, simple because sequence must be repeated for the same seed across the calls. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 7:50:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E81AA37B401 for ; Sun, 2 Feb 2003 07:50:46 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6800543E4A for ; Sun, 2 Feb 2003 07:50:46 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h12FoeXv070589; Sun, 2 Feb 2003 07:50:40 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h12FoeTv070588; Sun, 2 Feb 2003 07:50:40 -0800 (PST) Date: Sun, 2 Feb 2003 07:50:40 -0800 From: Steve Kargl To: Trent Nelson Cc: current@FreeBSD.ORG Subject: Re: buildkernel dying from unresolved sched_* symbols Message-ID: <20030202155040.GA70523@troutmask.apl.washington.edu> References: <20030202153500.GA28378@limekiln.vcisp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202153500.GA28378@limekiln.vcisp.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 03:35:00PM +0000, Trent Nelson wrote: > I'm not sure if this is a result of the recent sched_ule import, but > buildkernel is dying on a bunch of undefined symbols (that from what > I can see, are definitely present in both sched_(4bsd|ule)). I fol- > llowed a discussion on -arch about being able to nominate the prefe- > rred scheduler, but I'd assume both would be compiled, no? > You need to read src/UPDATING. Then you need to fix your kernel config file. -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 7:51:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4481637B401 for ; Sun, 2 Feb 2003 07:51:40 -0800 (PST) Received: from nebula.wanadoo.fr (ca-sqy-4-87.abo.wanadoo.fr [80.8.57.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7888F43F75 for ; Sun, 2 Feb 2003 07:51:38 -0800 (PST) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost.wanadoo.fr [127.0.0.1]) by nebula.wanadoo.fr (8.12.6/8.12.6) with ESMTP id h12FpaR2007220; Sun, 2 Feb 2003 16:51:37 +0100 (CET) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.6/8.12.6/Submit) id h12FpaAH007195; Sun, 2 Feb 2003 16:51:36 +0100 (CET) Date: Sun, 2 Feb 2003 16:51:35 +0100 From: Aurelien Nephtali To: Trent Nelson Cc: current@FreeBSD.ORG Subject: Re: buildkernel dying from unresolved sched_* symbols Message-ID: <20030202155135.GA4982@nebula.wanadoo.fr> References: <20030202153500.GA28378@limekiln.vcisp.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <20030202153500.GA28378@limekiln.vcisp.net> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, You _must_ add SCHED_4BSD (old scheduler) or SCHED_ULE (new scheduler) to y= our config file. -- Aurelien On Sun, Feb 02, 2003 at 03:35:00PM +0000, Trent Nelson wrote: > I'm not sure if this is a result of the recent sched_ule import, but > buildkernel is dying on a bunch of undefined symbols (that from what > I can see, are definitely present in both sched_(4bsd|ule)). I fol- > llowed a discussion on -arch about being able to nominate the prefe- > rred scheduler, but I'd assume both would be compiled, no? >=20 > Trent. >=20 >=20 > linking kernel.debug > init_main.o: In function `proc0_init': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:319: un= defined reference to `kse0_sched' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:320: un= defined reference to `ksegrp0_sched' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:321: un= defined reference to `proc0_sched' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:322: un= defined reference to `thread0_sched' > kern_clock.o: In function `statclock_process': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_clock.c:445: u= ndefined reference to `sched_clock' > kern_condvar.o: In function `cv_wait': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180:= undefined reference to `sched_sleep' > kern_condvar.o: In function `cv_wait_sig': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180:= undefined reference to `sched_sleep' > kern_condvar.o: In function `cv_timedwait': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180:= undefined reference to `sched_sleep' > kern_condvar.o: In function `cv_timedwait_sig': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180:= undefined reference to `sched_sleep' > kern_exit.o: In function `wait1': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_exit.c:623: un= defined reference to `sched_exit' > kern_fork.o: In function `fork1': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_fork.c:513: un= defined reference to `sched_fork' > kern_idle.o: In function `idle_proc': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_idle.c:110: un= defined reference to `sched_runnable' > kern_mutex.o: In function `propagate_priority': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_mutex.c:153: u= ndefined reference to `sched_prio' > kern_proc.o: In function `procinit': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_proc.c:125: un= defined reference to `sched_sizeof_proc' > kern_proc.o: In function `fill_kinfo_proc': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_proc.c:745: un= defined reference to `sched_pctcpu' > kern_resource.o: In function `donice': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_resource.c:299= : undefined reference to `sched_nice' > kern_subr.o: In function `uio_yield': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_subr.c:557: un= defined reference to `sched_prio' > kern_switch.o: In function `choosethread': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:126: = undefined reference to `sched_choose' > kern_switch.o: In function `kse_reassign': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:278: = undefined reference to `sched_add' > kern_switch.o: In function `adjustrunqueue': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:395: = undefined reference to `sched_rem' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:396: = undefined reference to `sched_add' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:411: = undefined reference to `sched_rem' > kern_switch.o: In function `setrunqueue': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:493: = undefined reference to `sched_rem' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:556: = undefined reference to `sched_add' > kern_synch.o: In function `msleep': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:242: u= ndefined reference to `sched_sleep' > kern_synch.o: In function `mi_switch': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:503: u= ndefined reference to `sched_switchout' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:509: u= ndefined reference to `sched_switchin' > kern_synch.o: In function `setrunnable': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:578: u= ndefined reference to `sched_wakeup' > kern_synch.o: In function `yield': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:658: u= ndefined reference to `sched_prio' > kern_thread.o: In function `threadinit': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:623: = undefined reference to `sched_sizeof_thread' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:639: = undefined reference to `sched_sizeof_ksegrp' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:642: = undefined reference to `sched_sizeof_kse' > subr_trap.o: In function `userret': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/subr_trap.c:96: und= efined reference to `sched_userret' > subr_trap.o: In function `ast': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/subr_trap.c:245: un= defined reference to `sched_prio' > ksched.o: In function `ksched_attach': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:62: unde= fined reference to `sched_rr_interval' > ksched.o: In function `ksched_setscheduler': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:192: und= efined reference to `sched_prio' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:222: und= efined reference to `sched_prio' > vm_zeroidle.o: In function `vm_pagezero': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/vm/vm_zeroidle.c:132: un= defined reference to `sched_runnable' > vm_pageout.o: In function `vm_pageout_scan': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/vm/vm_pageout.c:1237: un= defined reference to `sched_nice' > machdep.o: In function `cpu_idle': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/i386/i386/machdep.c:1028= : undefined reference to `sched_runnable' > *** Error code 1 >=20 > Stop in /obj/shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/CHERRY. > *** Error code 1 >=20 > Stop in /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src. > *** Error code 1 >=20 > Stop in /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src. >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PT6HDNsbHbt8ok8RAuMVAKCpg9C+rtrMZIlSs2MWYqoeN9a93wCgjGd0 BZwQDzHhAbuv/eNrQiEETSA= =rsF5 -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 7:54:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBB3837B401 for ; Sun, 2 Feb 2003 07:54:16 -0800 (PST) Received: from murphys.services.quay.plus.net (murphys.services.quay.plus.net [212.159.14.225]) by mx1.FreeBSD.org (Postfix) with SMTP id 8D80643F43 for ; Sun, 2 Feb 2003 07:54:15 -0800 (PST) (envelope-from trent@limekiln.vcisp.net) Received: (qmail 29666 invoked from network); 2 Feb 2003 15:54:10 -0000 Received: from limekiln.vcisp.net (212.159.16.110) by murphys.services.quay.plus.net with SMTP; 2 Feb 2003 15:54:10 -0000 Received: by limekiln.vcisp.net (Postfix, from userid 1001) id 7E04A508; Sun, 2 Feb 2003 15:54:08 +0000 (GMT) Date: Sun, 2 Feb 2003 15:54:08 +0000 From: Trent Nelson To: current@freebsd.org Subject: Re: buildkernel dying from unresolved sched_* symbols Message-ID: <20030202155408.GB28378@limekiln.vcisp.net> References: <20030202153500.GA28378@limekiln.vcisp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202153500.GA28378@limekiln.vcisp.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Okay, so it seems either 'options SCHED_4BSD/SCHED_ULE' needs to be added to your kernel config file. Considering that this is a comp- letely new line, would it not be wise to update UPDATING? I'm not sure if /sbin/config has been modified to complain if one of either isn't present -- as I haven't installworld'd yet -- but it'd be ni- ce if it did. Trent. On Sun, Feb 02, 2003 at 03:35:00PM +0000, Trent Nelson wrote: > I'm not sure if this is a result of the recent sched_ule import, but > buildkernel is dying on a bunch of undefined symbols (that from what > I can see, are definitely present in both sched_(4bsd|ule)). I fol- > llowed a discussion on -arch about being able to nominate the prefe- > rred scheduler, but I'd assume both would be compiled, no? > > Trent. > > > linking kernel.debug > init_main.o: In function `proc0_init': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:319: undefined reference to `kse0_sched' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 8:39: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C737F37B405 for ; Sun, 2 Feb 2003 08:39:06 -0800 (PST) Received: from ip68-14-60-78.no.no.cox.net (ip68-14-60-78.no.no.cox.net [68.14.60.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 980EB43F79 for ; Sun, 2 Feb 2003 08:39:05 -0800 (PST) (envelope-from conrads@ip68-14-60-78.no.no.cox.net) Received: from ip68-14-60-78.no.no.cox.net (localhost [127.0.0.1]) by ip68-14-60-78.no.no.cox.net (8.12.6/8.12.6) with ESMTP id h12Gf1jC044066; Sun, 2 Feb 2003 10:41:01 -0600 (CST) (envelope-from conrads@ip68-14-60-78.no.no.cox.net) Received: (from conrads@localhost) by ip68-14-60-78.no.no.cox.net (8.12.6/8.12.6/Submit) id h12GeqCM044065; Sun, 2 Feb 2003 10:40:52 -0600 (CST) Message-ID: X-Mailer: XFMail 1.5.3 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3E3CE249.8010409@majiknetworks.com> Date: Sun, 02 Feb 2003 10:40:52 -0600 (CST) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: Conrad Sabatier To: Taylor Dondich Subject: Re: First time CURRENT user having problems with new boot loader install Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 02-Feb-2003 Taylor Dondich wrote: > After reading src/UPDATING and attempting to follow the directions to > upgrade from 4.7-RELEASE to -CURRENT, I'm having some difficulty, after > successfully building world and building and installing the kernel, I > attempted to make install in src/sys/boot. I'm getting the following error: > > ((inappropriate text taken out)) > ====> i386/mbr > install -o root -g wheel -m 444 mbr /boot > install: mbr: No such file or directory > *** Error code 71 Do a simple make first, then a make install. > Sadly, I'm not experienced, this is my first CURRENT build, and I'm > hoping I researched enough of it, but if I'm missing something that's > documented, I'd love if someone pointed it out so I can further educate > myself. The source tree doesn't work like ports, where "make install" will do all the prerequisite steps first. If you say "make install" in /usr/src/*, you'd better have already built something! :-) -- Conrad Sabatier - "In Unix veritas" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 8:39:25 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C507D37B405 for ; Sun, 2 Feb 2003 08:39:23 -0800 (PST) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C97043E4A for ; Sun, 2 Feb 2003 08:39:21 -0800 (PST) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) by alpha.siliconlandmark.com (8.12.6/8.12.6) with ESMTP id h12GdFmF012055; Sun, 2 Feb 2003 11:39:15 -0500 (EST) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost) by alpha.siliconlandmark.com (8.12.6/8.12.6/Submit) with ESMTP id h12GdDwp012052; Sun, 2 Feb 2003 11:39:14 -0500 (EST) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Sun, 2 Feb 2003 11:39:13 -0500 (EST) From: Andre Guibert de Bruet To: quaxxx@tiscalinet.it Cc: Pascal Giannakakis , freebsd-current@FreeBSD.ORG Subject: Re: removing debugging options In-Reply-To: <3E39D2C1.1050608@gmx.net> Message-ID: <20030202111745.R4104@alpha.siliconlandmark.com> References: <1043946573.17844.24.camel@zoccola.quaxima.com> <3E39D2C1.1050608@gmx.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 31 Jan 2003, Pascal Giannakakis wrote: > Nicolao Ren=E8 schrieb: > > Hi I've just upgraded to FreeBSD-Stable, the UPDATING file says that > > many debugging options are enabled. But how do I remove them? thanks. > > One way would be to compile your own kernel: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-bu= ilding.html > (choose procedure 2 when building). > > In your custom kernel-conf change this: > > ---- > #To statically compile in device wiring instead of /boot/device.hints > #hints "GENERIC.hints" #Default places to look for devic= es. > > makeoptions DEBUG=3D-g #Build kernel with gdb(1) debug > symbols > ---- > > uncomment makeoptions and symbols. I dont know for Userland though, sorry= =2E With userland, you're left tweaking CFLAGS and CXXFLAGS in /etc/make.conf. Here's a few things you might want to consider: - Removing any reference to '-g' (Debug symbols). - Adding -O or -O2 (Code optimizations). Use of -O3 is not a good idea. - Adding CPUTYPE=3Di686 (or whatever is appropriate for your machine) will enable cpu-specific optimizations. Once you've made these changes, recompile and install world. A mergemaster would probably be in order as well. Regards, > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 8:54: 7 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E351C37B405 for ; Sun, 2 Feb 2003 08:54:05 -0800 (PST) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id C803D43F3F for ; Sun, 2 Feb 2003 08:53:59 -0800 (PST) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 3.36 #1) id 18fNNR-000A7S-00 for freebsd-current@FreeBSD.ORG; Sun, 02 Feb 2003 17:53:53 +0100 Date: Sun, 2 Feb 2003 17:53:53 +0100 From: Oliver Brandmueller To: freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept Message-ID: <20030202165352.GA6957@e-Gitt.NET> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <20030201182012.GC97784@e-Gitt.NET> <20030202.064707.11429179.imp@bsdimp.com> <20030202141924.GA17831@e-Gitt.NET> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202141924.GA17831@e-Gitt.NET> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. Sorry for answering my own mail now. On Sun, Feb 02, 2003 at 03:19:24PM +0100, Oliver Brandmueller wrote: > action "/usr/local/etc/netconf/bin/netconf $device-name start"; David Wolfskill gave a good pointer, that devd starts before all non-root disks are mounted. I'm just trying to move my script to the root partition (for the moment I move it to /etc/netconf/ just to test it). Although the scripts works when manually started after booting I have still no evidence it is even called on boot, but for the moment I suspect my script maybe has some problems in that early stage and I will try to give it some debugging stuff. I'll keep you informed 'bout my findings. Thanx so far, Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 8:57:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD11437B401 for ; Sun, 2 Feb 2003 08:57:42 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F67C43E4A for ; Sun, 2 Feb 2003 08:57:42 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h12GvaXv070941; Sun, 2 Feb 2003 08:57:36 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h12Gvabi070940; Sun, 2 Feb 2003 08:57:36 -0800 (PST) Date: Sun, 2 Feb 2003 08:57:36 -0800 From: Steve Kargl To: Trent Nelson Cc: current@FreeBSD.ORG Subject: Re: buildkernel dying from unresolved sched_* symbols Message-ID: <20030202165736.GA70596@troutmask.apl.washington.edu> References: <20030202153500.GA28378@limekiln.vcisp.net> <20030202155408.GB28378@limekiln.vcisp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202155408.GB28378@limekiln.vcisp.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 03:54:08PM +0000, Trent Nelson wrote: > > Okay, so it seems either 'options SCHED_4BSD/SCHED_ULE' needs to be > added to your kernel config file. Considering that this is a comp- > letely new line, would it not be wise to update UPDATING? I'm not Have you looked at src/UPDATING? 20030125: The scheduler framework has grown a second scheduler and consequently you must specify one and only one scheduler in your kernel config. The in cvs config files have been updated to use the old scheduler which may be selected via 'options SCHED_4BSD'. If you would like to try the new, much more experimental, scheduler please try -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9: 3: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6952237B401 for ; Sun, 2 Feb 2003 09:03:06 -0800 (PST) Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2247143F3F for ; Sun, 2 Feb 2003 09:03:05 -0800 (PST) (envelope-from redjupiter@ntlworld.com) Received: from [80.6.83.175] by mta03-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20030202170303.FGMS14341.mta03-svc.ntlworld.com@[80.6.83.175]>; Sun, 2 Feb 2003 17:03:03 +0000 Subject: Re: buildkernel dying from unresolved sched_* symbols From: Redjupiter To: Trent Nelson Cc: current@freebsd.org In-Reply-To: <20030202153500.GA28378@limekiln.vcisp.net> References: <20030202153500.GA28378@limekiln.vcisp.net> Content-Type: text/plain Organization: Message-Id: <1044205382.773.7.camel@byblos> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 02 Feb 2003 17:03:02 +0000 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG HI, I had the same unresolved symbols and it baffled me for a while. After cvsupping several times to an avail, I deleted the new kernel build. i.e. I deleted my kernel file and its directory (the one created when you do config ), copied generic to a new kernel file, added my own configs, and did a a new config and the whole thing worked again. That was yesterday. Assuming you have added the proper configuration in your kernel. Hope this helps :-) georges On Sun, 2003-02-02 at 15:35, Trent Nelson wrote: > I'm not sure if this is a result of the recent sched_ule import, but > buildkernel is dying on a bunch of undefined symbols (that from what > I can see, are definitely present in both sched_(4bsd|ule)). I fol- > llowed a discussion on -arch about being able to nominate the prefe- > rred scheduler, but I'd assume both would be compiled, no? > > Trent. > > > linking kernel.debug > init_main.o: In function `proc0_init': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:319: undefined reference to `kse0_sched' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:320: undefined reference to `ksegrp0_sched' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:321: undefined reference to `proc0_sched' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:322: undefined reference to `thread0_sched' > kern_clock.o: In function `statclock_process': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_clock.c:445: undefined reference to `sched_clock' > kern_condvar.o: In function `cv_wait': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' > kern_condvar.o: In function `cv_wait_sig': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' > kern_condvar.o: In function `cv_timedwait': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' > kern_condvar.o: In function `cv_timedwait_sig': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' > kern_exit.o: In function `wait1': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_exit.c:623: undefined reference to `sched_exit' > kern_fork.o: In function `fork1': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_fork.c:513: undefined reference to `sched_fork' > kern_idle.o: In function `idle_proc': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_idle.c:110: undefined reference to `sched_runnable' > kern_mutex.o: In function `propagate_priority': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_mutex.c:153: undefined reference to `sched_prio' > kern_proc.o: In function `procinit': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_proc.c:125: undefined reference to `sched_sizeof_proc' > kern_proc.o: In function `fill_kinfo_proc': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_proc.c:745: undefined reference to `sched_pctcpu' > kern_resource.o: In function `donice': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_resource.c:299: undefined reference to `sched_nice' > kern_subr.o: In function `uio_yield': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_subr.c:557: undefined reference to `sched_prio' > kern_switch.o: In function `choosethread': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:126: undefined reference to `sched_choose' > kern_switch.o: In function `kse_reassign': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:278: undefined reference to `sched_add' > kern_switch.o: In function `adjustrunqueue': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:395: undefined reference to `sched_rem' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:396: undefined reference to `sched_add' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:411: undefined reference to `sched_rem' > kern_switch.o: In function `setrunqueue': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:493: undefined reference to `sched_rem' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:556: undefined reference to `sched_add' > kern_synch.o: In function `msleep': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:242: undefined reference to `sched_sleep' > kern_synch.o: In function `mi_switch': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:503: undefined reference to `sched_switchout' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:509: undefined reference to `sched_switchin' > kern_synch.o: In function `setrunnable': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:578: undefined reference to `sched_wakeup' > kern_synch.o: In function `yield': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:658: undefined reference to `sched_prio' > kern_thread.o: In function `threadinit': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:623: undefined reference to `sched_sizeof_thread' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:639: undefined reference to `sched_sizeof_ksegrp' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:642: undefined reference to `sched_sizeof_kse' > subr_trap.o: In function `userret': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/subr_trap.c:96: undefined reference to `sched_userret' > subr_trap.o: In function `ast': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/subr_trap.c:245: undefined reference to `sched_prio' > ksched.o: In function `ksched_attach': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:62: undefined reference to `sched_rr_interval' > ksched.o: In function `ksched_setscheduler': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:192: undefined reference to `sched_prio' > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:222: undefined reference to `sched_prio' > vm_zeroidle.o: In function `vm_pagezero': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/vm/vm_zeroidle.c:132: undefined reference to `sched_runnable' > vm_pageout.o: In function `vm_pageout_scan': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/vm/vm_pageout.c:1237: undefined reference to `sched_nice' > machdep.o: In function `cpu_idle': > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/i386/i386/machdep.c:1028: undefined reference to `sched_runnable' > *** Error code 1 > > Stop in /obj/shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/CHERRY. > *** Error code 1 > > Stop in /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src. > *** Error code 1 > > Stop in /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9: 4:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9A9A37B401 for ; Sun, 2 Feb 2003 09:04:36 -0800 (PST) Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE13C43F75 for ; Sun, 2 Feb 2003 09:04:35 -0800 (PST) (envelope-from redjupiter@ntlworld.com) Received: from [80.6.83.175] by mta03-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20030202170434.FHNR14341.mta03-svc.ntlworld.com@[80.6.83.175]>; Sun, 2 Feb 2003 17:04:34 +0000 Subject: Re: buildkernel dying from unresolved sched_* symbols From: Redjupiter To: Trent Nelson Cc: current@freebsd.org In-Reply-To: <1044205382.773.7.camel@byblos> References: <20030202153500.GA28378@limekiln.vcisp.net> <1044205382.773.7.camel@byblos> Content-Type: text/plain Organization: Message-Id: <1044205474.773.9.camel@byblos> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 02 Feb 2003 17:04:34 +0000 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, One other step I did before that is buildworld, and then I did buildkernel KERNCONF=ykernel HTH On Sun, 2003-02-02 at 17:03, Redjupiter wrote: > HI, > > I had the same unresolved symbols and it baffled me for a while. After > cvsupping several times to an avail, I deleted the new kernel build. > i.e. I deleted my kernel file and its directory (the one created when > you do config ), copied generic to a new kernel file, added my > own configs, and did a a new config and the whole thing worked again. > That was yesterday. Assuming you have added the proper configuration in > your kernel. > > Hope this helps :-) > > georges > On Sun, 2003-02-02 at 15:35, Trent Nelson wrote: > > I'm not sure if this is a result of the recent sched_ule import, but > > buildkernel is dying on a bunch of undefined symbols (that from what > > I can see, are definitely present in both sched_(4bsd|ule)). I fol- > > llowed a discussion on -arch about being able to nominate the prefe- > > rred scheduler, but I'd assume both would be compiled, no? > > > > Trent. > > > > > > linking kernel.debug > > init_main.o: In function `proc0_init': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:319: undefined reference to `kse0_sched' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:320: undefined reference to `ksegrp0_sched' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:321: undefined reference to `proc0_sched' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/init_main.c:322: undefined reference to `thread0_sched' > > kern_clock.o: In function `statclock_process': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_clock.c:445: undefined reference to `sched_clock' > > kern_condvar.o: In function `cv_wait': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' > > kern_condvar.o: In function `cv_wait_sig': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' > > kern_condvar.o: In function `cv_timedwait': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' > > kern_condvar.o: In function `cv_timedwait_sig': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_condvar.c:180: undefined reference to `sched_sleep' > > kern_exit.o: In function `wait1': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_exit.c:623: undefined reference to `sched_exit' > > kern_fork.o: In function `fork1': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_fork.c:513: undefined reference to `sched_fork' > > kern_idle.o: In function `idle_proc': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_idle.c:110: undefined reference to `sched_runnable' > > kern_mutex.o: In function `propagate_priority': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_mutex.c:153: undefined reference to `sched_prio' > > kern_proc.o: In function `procinit': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_proc.c:125: undefined reference to `sched_sizeof_proc' > > kern_proc.o: In function `fill_kinfo_proc': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_proc.c:745: undefined reference to `sched_pctcpu' > > kern_resource.o: In function `donice': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_resource.c:299: undefined reference to `sched_nice' > > kern_subr.o: In function `uio_yield': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_subr.c:557: undefined reference to `sched_prio' > > kern_switch.o: In function `choosethread': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:126: undefined reference to `sched_choose' > > kern_switch.o: In function `kse_reassign': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:278: undefined reference to `sched_add' > > kern_switch.o: In function `adjustrunqueue': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:395: undefined reference to `sched_rem' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:396: undefined reference to `sched_add' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:411: undefined reference to `sched_rem' > > kern_switch.o: In function `setrunqueue': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:493: undefined reference to `sched_rem' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_switch.c:556: undefined reference to `sched_add' > > kern_synch.o: In function `msleep': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:242: undefined reference to `sched_sleep' > > kern_synch.o: In function `mi_switch': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:503: undefined reference to `sched_switchout' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:509: undefined reference to `sched_switchin' > > kern_synch.o: In function `setrunnable': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:578: undefined reference to `sched_wakeup' > > kern_synch.o: In function `yield': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_synch.c:658: undefined reference to `sched_prio' > > kern_thread.o: In function `threadinit': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:623: undefined reference to `sched_sizeof_thread' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:639: undefined reference to `sched_sizeof_ksegrp' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/kern_thread.c:642: undefined reference to `sched_sizeof_kse' > > subr_trap.o: In function `userret': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/subr_trap.c:96: undefined reference to `sched_userret' > > subr_trap.o: In function `ast': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/kern/subr_trap.c:245: undefined reference to `sched_prio' > > ksched.o: In function `ksched_attach': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:62: undefined reference to `sched_rr_interval' > > ksched.o: In function `ksched_setscheduler': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:192: undefined reference to `sched_prio' > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/posix4/ksched.c:222: undefined reference to `sched_prio' > > vm_zeroidle.o: In function `vm_pagezero': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/vm/vm_zeroidle.c:132: undefined reference to `sched_runnable' > > vm_pageout.o: In function `vm_pageout_scan': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/vm/vm_pageout.c:1237: undefined reference to `sched_nice' > > machdep.o: In function `cpu_idle': > > /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/i386/i386/machdep.c:1028: undefined reference to `sched_runnable' > > *** Error code 1 > > > > Stop in /obj/shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src/sys/CHERRY. > > *** Error code 1 > > > > Stop in /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src. > > *** Error code 1 > > > > Stop in /shared/work/BSD/FreeBSD/FreeBSD-CURRENT/src. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-current" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:19:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E380137B401; Sun, 2 Feb 2003 09:19:42 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A08D143F75; Sun, 2 Feb 2003 09:19:41 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h12HJRP4074888; Sun, 2 Feb 2003 12:19:27 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sun, 2 Feb 2003 12:19:26 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Oliver Brandmueller Cc: freebsd-current@FreeBSD.ORG, imp@FreeBSD.ORG Subject: Re: Question about devd concept In-Reply-To: <20030202165352.GA6957@e-Gitt.NET> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2 Feb 2003, Oliver Brandmueller wrote: > Sorry for answering my own mail now. > > On Sun, Feb 02, 2003 at 03:19:24PM +0100, Oliver Brandmueller wrote: > > action "/usr/local/etc/netconf/bin/netconf $device-name start"; > > David Wolfskill gave a good pointer, that devd starts before all > non-root disks are mounted. I'm just trying to move my script to the > root partition (for the moment I move it to /etc/netconf/ just to test > it). Although the scripts works when manually started after booting I > have still no evidence it is even called on boot, but for the moment I > suspect my script maybe has some problems in that early stage and I will > try to give it some debugging stuff. > > I'll keep you informed 'bout my findings. I ran into a similar problem, actually -- programs like dhclient rely on being able to write to lease and pid files. It's almost as though we'd like an additional set of events when the system is "more booted". I.e., a devd event for each device when the network is started, etc. Actually, I suspect what we want is to have a seperate network event management daemon -- arrival of the device is not the same as arrival of the interface. dhclient events (and related things) should happen as a result of the interface arriving, not the newbus device arrival. I.e., a netd that listens to routing socket and kqueue events relating to the network stack. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:30:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E49837B405 for ; Sun, 2 Feb 2003 09:30:33 -0800 (PST) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F15F43F93 for ; Sun, 2 Feb 2003 09:30:32 -0800 (PST) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 3.36 #1) id 18fNwt-000Bob-00 for freebsd-current@FreeBSD.ORG; Sun, 02 Feb 2003 18:30:31 +0100 Date: Sun, 2 Feb 2003 18:30:31 +0100 From: Oliver Brandmueller To: freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept Message-ID: <20030202173031.GB6957@e-Gitt.NET> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <20030202165352.GA6957@e-Gitt.NET> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. On Sun, Feb 02, 2003 at 12:19:26PM -0500, Robert Watson wrote: > > I'll keep you informed 'bout my findings. > > I ran into a similar problem, actually -- programs like dhclient rely on > being able to write to lease and pid files. It's almost as though we'd > like an additional set of events when the system is "more booted". I.e., > a devd event for each device when the network is started, etc. > > Actually, I suspect what we want is to have a seperate network event > management daemon -- arrival of the device is not the same as arrival of > the interface. dhclient events (and related things) should happen as a > result of the interface arriving, not the newbus device arrival. I.e., a > netd that listens to routing socket and kqueue events relating to the > network stack. Well, it did not really help to put a "sleep 20" at the beginnging of my script, it did help anyhow to put a put a "sleep 20 ; " in front of the script execution in the attach line. So I know now, the script actually get's started. Although it's a viable way to have the sleep in the attach line, this is clearly not a good solution: I do not really know, how long the system needs for booting to a stage, when the script can be executed. And I don't really want to wait 15 or 20 seconds everytime I insert the network card before the script actually beghins to work. OK, I get around it, as I usually don't exchange network cards too often. So maybe there should be for devd the possibilty to delay script execution for some time or better until a certain event for the booting case. Comments from anyone who's involved in devd development? - Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:36:56 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48AC937B401; Sun, 2 Feb 2003 09:36:55 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 244CA43F43; Sun, 2 Feb 2003 09:36:54 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12HarLf077950; Sun, 2 Feb 2003 17:36:53 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12HarBf077949; Sun, 2 Feb 2003 17:36:53 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12HUmaX048964; Sun, 2 Feb 2003 19:30:48 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021730.h12HUmaX048964@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: Doug Barton , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 15:42:58 +0300." <20030202124258.GA63153@nagual.pp.ru> Date: Sun, 02 Feb 2003 17:30:48 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Sun, Feb 02, 2003 at 04:38:53 -0800, Doug Barton wrote: > > > > I think it's worthwhile to wait till we get a chance to try arc4random(). > > This is libc's rand/random, it can't be fixed with arc4random() as > designed. Why not? Arc4 is a) deterministic and b) good for all bits. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:36:58 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFADB37B406; Sun, 2 Feb 2003 09:36:55 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 690F443F79; Sun, 2 Feb 2003 09:36:54 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12HarLf077955; Sun, 2 Feb 2003 17:36:53 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12Har7F077954; Sun, 2 Feb 2003 17:36:53 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12HWvaX048978; Sun, 2 Feb 2003 19:32:57 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021732.h12HWvaX048978@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: Tim Robbins , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 16:42:25 +0300." <20030202134225.GA63673@nagual.pp.ru> Date: Sun, 02 Feb 2003 17:32:57 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Mon, Feb 03, 2003 at 00:17:35 +1100, Tim Robbins wrote: > > > > I believe that this change just moves the "bad" seed to 123459876; after > > calling srand() with that seed, each call to rand() returns 0. > > Yes. Nothing better is possible for this formulae and this is documented > in algorithm, some value must be excluded. Excluding 0 is bad only because > srand(0) is commonly used and srand(123459876) is not. This means that this routine has a chance of failing spectacularly. We should not use it. > Ragarding to old formulae, the question is: what is worse, generate > non-random lover bits everytime (old variant) or exclude one seed value > (new variant)? Neither. New RNG is needed. > Of course formulae can be changed to some another algorithm, but keep in > mind that rand() must be simple and speedy. Now used variant is most > simpler, others are much more complex. RC4 is fast. RC4 is simple. Any objections? :-) M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:36:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D65BD37B408; Sun, 2 Feb 2003 09:36:55 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD0A243F85; Sun, 2 Feb 2003 09:36:54 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12HasLf077960; Sun, 2 Feb 2003 17:36:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12HaruB077959; Sun, 2 Feb 2003 17:36:53 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12HYJaX049011; Sun, 2 Feb 2003 19:34:19 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021734.h12HYJaX049011@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 18:43:56 +0300." <20030202154356.GA65166@nagual.pp.ru> Date: Sun, 02 Feb 2003 17:34:19 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > > Objections? > > We can't, simple because sequence must be repeated for the same seed > across the calls. RC4 is repeatable. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:41:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86B6F37B401 for ; Sun, 2 Feb 2003 09:41:26 -0800 (PST) Received: from shell.dragondata.com (shell.dragondata.com [66.17.132.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id A889D43FA3 for ; Sun, 2 Feb 2003 09:41:25 -0800 (PST) (envelope-from toasty@dragondata.com) Received: (from root@localhost) by shell.dragondata.com (8.12.6/8.12.6) id h12HfMSR062609 for freebsd-current@freebsd.org; Sun, 2 Feb 2003 11:41:22 -0600 (CST) (envelope-from toasty@dragondata.com) Received: from KEVIN-AW.dragondata.com (toasty@localhost.dragondata.com [127.0.0.1]) by shell.dragondata.com (8.12.6/8.12.6av) with ESMTP id h12HfHeA062599 for ; Sun, 2 Feb 2003 11:41:18 -0600 (CST) (envelope-from toasty@dragondata.com) Message-Id: <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> X-Sender: toasty@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Sun, 02 Feb 2003 11:41:32 -0600 To: freebsd-current@freebsd.org From: Kevin Day Subject: Using 4.3-RELEASE's libc on 5.0 causes hard lockups Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by Dragondata mail server Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG We had a system running 4.3-RELEASE that I used the sysinstall upgrade mechanism to upgrade to 5.0-RELEASE. I installed "compat4x" to use our existing 4.x binaries. Immediately after rebooting, I noticed most old 4.x binaries were complaining about "_stdoutp" being an undefined symbol. However, the scary part was that when I started apache/mod_php4 the server crashed (hard lockup) within 10 seconds under load. This was easily reproducible, at least a dozen times while trying to debug this I started httpd, and the server locked up within 10 seconds. I recompiled all of apache, mod_php4 and all of its libraries, started up httpd and had no problems with that. Things were fine that night until an "analog" cron job ran, every time THAT ran, I also got a hard lockup of the server, OR between 100 and 500 of my httpd processes would suddenly SEGV. After a little more poking around, I saw in /usr/lib: lrwxr-xr-x 1 root wheel 9 Feb 1 00:18 libc.so -> libc.so.5 lrwxr-xr-x 1 root wheel 16 Jul 5 2002 libc.so.3 -> /usr/lib/libc.so -r--r--r-- 1 root wheel 571480 Aug 5 13:45 libc.so.4 -r--r--r-- 1 root wheel 836892 Feb 1 00:18 libc.so.5 Shouldn't libc.so.4 have been a symlink to libc.so after a compat4x install? In any case, doing that myself seemed to fix everything. My questions: 1) Shouldn't something along the way of doing a sysinstall upgrade or installing compat4x have fixed /usr/lib/libc.so.4 into a symlink? (That is the correct situation, right?) 2) Is it possible that some kernel interface has changed, and something isn't being validated in the kernel side? Non-root userland applications being able to lockup the server, and/or affect other processes simply by using a different libc would seem to indicate this. I know this is a pretty vague bug report, but this is a production server, so I wasn't able to play around too much with it. I do have a backup of the entire server before it was upgraded to 5.0 if you'd like me to check anything there. I did compile with INVARIANTS and WITNESS and got no debugging output when things did lock up. The keyboard and serial console were totally dead when this happened, so DDB isn't an option either. (originally emailed security-officer about this because of the possibility for a security issue, who told me to forward this here) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:45: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9B6137B401 for ; Sun, 2 Feb 2003 09:45:03 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AB9543F85 for ; Sun, 2 Feb 2003 09:45:03 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id AB487A6; Sun, 2 Feb 2003 11:45:02 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id BFD8E58B0; Sun, 2 Feb 2003 11:42:23 -0600 (CST) Date: Sun, 2 Feb 2003 11:42:23 -0600 From: "Jacques A. Vidrine" To: Kevin Day Cc: freebsd-current@freebsd.org Subject: Re: Using 4.3-RELEASE's libc on 5.0 causes hard lockups Message-ID: <20030202174223.GB36076@opus.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , Kevin Day , freebsd-current@freebsd.org References: <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 11:41:32AM -0600, Kevin Day wrote: > lrwxr-xr-x 1 root wheel 9 Feb 1 00:18 libc.so -> libc.so.5 > lrwxr-xr-x 1 root wheel 16 Jul 5 2002 libc.so.3 -> /usr/lib/libc.so ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is seriously messed up. See below. > -r--r--r-- 1 root wheel 571480 Aug 5 13:45 libc.so.4 > -r--r--r-- 1 root wheel 836892 Feb 1 00:18 libc.so.5 > > > Shouldn't libc.so.4 have been a symlink to libc.so after a compat4x > install? In any case, doing that myself seemed to fix everything. No, this would cause you major problems. Binaries that expected the libc.so.4 interface would be calling into libc.so.5, and probably causing very strange behaviour. Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:45:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E38E437B401 for ; Sun, 2 Feb 2003 09:45:16 -0800 (PST) Received: from nebula.wanadoo.fr (ca-sqy-4-87.abo.wanadoo.fr [80.8.57.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3212D43F85 for ; Sun, 2 Feb 2003 09:45:15 -0800 (PST) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost.wanadoo.fr [127.0.0.1]) by nebula.wanadoo.fr (8.12.6/8.12.6) with ESMTP id h12HjCR2075054 for ; Sun, 2 Feb 2003 18:45:12 +0100 (CET) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.6/8.12.6/Submit) id h12HjCpc075053 for current@freebsd.org; Sun, 2 Feb 2003 18:45:12 +0100 (CET) Date: Sun, 2 Feb 2003 18:45:11 +0100 From: Aurelien Nephtali To: current@freebsd.org Subject: make buildworld broken Message-ID: <20030202174511.GA75024@nebula.wanadoo.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, With a fresh -CURRENT tree, I got: cc -fno-merge-constants -mcpu=pentiumpro -Werror -Wall -Wno-format-y2k -Wno-unin itialized -c /usr/src/lib/libdisk/rules.c -o rules.o cc1: warnings being treated as errors /usr/src/lib/libdisk/rules.c: In function `Check_Chunk': /usr/src/lib/libdisk/rules.c:265: warning: enumeration value `p_any' not handled in switch /usr/src/lib/libdisk/rules.c:265: warning: enumeration value `p_alpha' not handl ed in switch /usr/src/lib/libdisk/rules.c:265: warning: enumeration value `p_sparc64' not han dled in switch /usr/src/lib/libdisk/rules.c:265: warning: enumeration value `p_ia64' not handle d in switch /usr/src/lib/libdisk/rules.c:265: warning: enumeration value `p_ppc' not handled in switch *** Error code 1 Stop in /usr/src/lib/libdisk. *** Error code 1 This error happens for about 2 days. -- Aurelien --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PVknDNsbHbt8ok8RApbNAJ9jtHAAzH+2+/wFF5rhLoYWKK8CbACfeEl1 79/GKhknAWKiYFQYQd1ReaE= =DGki -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:53:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89EB437B401; Sun, 2 Feb 2003 09:53:15 -0800 (PST) Received: from shell.dragondata.com (shell.dragondata.com [66.17.132.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id B907643F3F; Sun, 2 Feb 2003 09:53:14 -0800 (PST) (envelope-from toasty@dragondata.com) Received: (from root@localhost) by shell.dragondata.com (8.12.6/8.12.6) id h12HrBJt063130; Sun, 2 Feb 2003 11:53:11 -0600 (CST) (envelope-from toasty@dragondata.com) Received: from KEVIN-AW.dragondata.com (toasty@localhost.dragondata.com [127.0.0.1]) by shell.dragondata.com (8.12.6/8.12.6av) with ESMTP id h12Hr6eA063121; Sun, 2 Feb 2003 11:53:07 -0600 (CST) (envelope-from toasty@dragondata.com) Message-Id: <5.1.1.5.2.20030202114819.044fd230@127.0.0.1> X-Sender: toasty@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Sun, 02 Feb 2003 11:53:22 -0600 To: "Jacques A. Vidrine" From: Kevin Day Subject: Re: Using 4.3-RELEASE's libc on 5.0 causes hard lockups Cc: freebsd-current@freebsd.org In-Reply-To: <20030202174223.GB36076@opus.celabo.org> References: <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by Dragondata mail server Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 11:42 AM 2/2/2003, Jacques A. Vidrine wrote: >On Sun, Feb 02, 2003 at 11:41:32AM -0600, Kevin Day wrote: > > lrwxr-xr-x 1 root wheel 9 Feb 1 00:18 libc.so -> libc.so.5 > > lrwxr-xr-x 1 root wheel 16 Jul 5 2002 libc.so.3 -> /usr/lib/libc.so > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >This is seriously messed up. See below. > > > -r--r--r-- 1 root wheel 571480 Aug 5 13:45 libc.so.4 > > -r--r--r-- 1 root wheel 836892 Feb 1 00:18 libc.so.5 > > > > > > Shouldn't libc.so.4 have been a symlink to libc.so after a compat4x > > install? In any case, doing that myself seemed to fix everything. > >No, this would cause you major problems. Binaries that expected the >libc.so.4 interface would be calling into libc.so.5, and probably >causing very strange behaviour. Ok, I admit, no matter how it happened, an application using the wrong libc is a bad thing. But, how are things supposed to work? Apps that were using the old libc.so.4 complained about unresolved symbols(_stdoutp usually). If I removed /usr/lib/libc.so.4 they complained that they couldn't find libc, If I did create link libc.so.4 to libc.so.5 everything appeared to work just fine, but I know that's probably a fluke. In any case, a system lockup or being able to crash other user's processes just by having the wrong libc shouldn't be possible no matter what happens. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:57:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95C5837B401 for ; Sun, 2 Feb 2003 09:57:36 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AA0743F79 for ; Sun, 2 Feb 2003 09:57:36 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 9D05645; Sun, 2 Feb 2003 11:57:35 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id 80AB858B0; Sun, 2 Feb 2003 11:54:56 -0600 (CST) Date: Sun, 2 Feb 2003 11:54:56 -0600 From: "Jacques A. Vidrine" To: Kevin Day Cc: freebsd-current@freebsd.org Subject: Re: Using 4.3-RELEASE's libc on 5.0 causes hard lockups Message-ID: <20030202175456.GC36076@opus.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , Kevin Day , freebsd-current@freebsd.org References: <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> <5.1.1.5.2.20030202114819.044fd230@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.1.5.2.20030202114819.044fd230@127.0.0.1> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 11:53:22AM -0600, Kevin Day wrote: > Ok, I admit, no matter how it happened, an application using the wrong libc > is a bad thing. > > But, how are things supposed to work? Apps that need the old libc.so.4 will find it in /usr/lib/compat/libc.so.4 (or /usr/lib/libc.so.4 if you didn't remove it, for that matter). [...] > In any case, a system lockup or being able to crash other user's processes > just by having the wrong libc shouldn't be possible no matter what happens. Probably not, although if you have processes running as root and using the `wrong' libc, all bets are off. Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 9:59:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8E7237B401 for ; Sun, 2 Feb 2003 09:59:11 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3549443F75 for ; Sun, 2 Feb 2003 09:59:11 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h12Hx9Xv071254; Sun, 2 Feb 2003 09:59:09 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h12Hx93E071253; Sun, 2 Feb 2003 09:59:09 -0800 (PST) Date: Sun, 2 Feb 2003 09:59:09 -0800 From: Steve Kargl To: Kevin Day Cc: freebsd-current@FreeBSD.ORG Subject: Re: Using 4.3-RELEASE's libc on 5.0 causes hard lockups Message-ID: <20030202175909.GA70957@troutmask.apl.washington.edu> References: <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 11:41:32AM -0600, Kevin Day wrote: > > > lrwxr-xr-x 1 root wheel 9 Feb 1 00:18 libc.so -> libc.so.5 > lrwxr-xr-x 1 root wheel 16 Jul 5 2002 libc.so.3 -> /usr/lib/libc.so Delete this. > -r--r--r-- 1 root wheel 571480 Aug 5 13:45 libc.so.4 Delete this. > -r--r--r-- 1 root wheel 836892 Feb 1 00:18 libc.so.5 > > Shouldn't libc.so.4 have been a symlink to libc.so after a compat4x > install? In any case, doing that myself seemed to fix everything. The compat4x installs the libraries in /usr/lib/compat. kargl[202] ldd /usr/local/lib/NAGWare/f95 /usr/local/lib/NAGWare/f95: libm.so.2 => /usr/lib/libm.so.2 (0x28075000) libc.so.4 => /usr/lib/compat/libc.so.4 (0x28092000) What does ldd report for the binaries that die? > > My questions: > > 1) Shouldn't something along the way of doing a sysinstall upgrade or > installing compat4x have fixed /usr/lib/libc.so.4 into a symlink? (That is > the correct situation, right?) No. The reason for the version number bump from 4 to 5 is an ABI/API has changed. In this case, _stdinp, _stdoutp, and _stderrp have changed. > I know this is a pretty vague bug report, but this is a production server, > so I wasn't able to play around too much with it. I do have a backup of the > entire server before it was upgraded to 5.0 if you'd like me to check > anything there. 5.0 isn't recommended for production servers. -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:13: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16CE837B401; Sun, 2 Feb 2003 10:13:02 -0800 (PST) Received: from shell.dragondata.com (shell.dragondata.com [66.17.132.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9EAC43F79; Sun, 2 Feb 2003 10:13:00 -0800 (PST) (envelope-from toasty@dragondata.com) Received: (from root@localhost) by shell.dragondata.com (8.12.6/8.12.6) id h12ID0SN064322; Sun, 2 Feb 2003 12:13:00 -0600 (CST) (envelope-from toasty@dragondata.com) Received: from KEVIN-AW.dragondata.com (toasty@localhost.dragondata.com [127.0.0.1]) by shell.dragondata.com (8.12.6/8.12.6av) with ESMTP id h12ICueA064313; Sun, 2 Feb 2003 12:12:57 -0600 (CST) (envelope-from toasty@dragondata.com) Message-Id: <5.1.1.5.2.20030202115928.036a1268@127.0.0.1> X-Sender: toasty@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Sun, 02 Feb 2003 12:13:12 -0600 To: "Jacques A. Vidrine" From: Kevin Day Subject: Re: Using 4.3-RELEASE's libc on 5.0 causes hard lockups Cc: freebsd-current@freebsd.org In-Reply-To: <20030202175456.GC36076@opus.celabo.org> References: <5.1.1.5.2.20030202114819.044fd230@127.0.0.1> <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> <5.1.1.5.2.20030202114819.044fd230@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by Dragondata mail server Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 11:54 AM 2/2/2003, Jacques A. Vidrine wrote: > > Ok, I admit, no matter how it happened, an application using the wrong > libc > > is a bad thing. > > > > But, how are things supposed to work? > >Apps that need the old libc.so.4 will find it in >/usr/lib/compat/libc.so.4 (or /usr/lib/libc.so.4 if you didn't remove >it, for that matter). Well, things were definitely picking /usr/lib/libc.so.4 over anything in compat. Should sysinstall have nuked my /usr/lib/libc if it was putting the correct one in compat? > In any case, a system lockup or being able to crash other user's processes > > just by having the wrong libc shouldn't be possible no matter what happens. > >Probably not, although if you have processes running as root and using >the `wrong' libc, all bets are off. Well, after I recompiled httpd (which did have a single process owned by root) and rebooted, nothing at all owned by root touched anything that was compiled under 4.x. Non-privileged regular users owned the process owned by analog, which caused the same behavior. Me running analog under my normal account could kill processes owned by "nobody" with segfaults. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:20:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2214E37B406; Sun, 2 Feb 2003 10:20:13 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7899A43FA7; Sun, 2 Feb 2003 10:20:10 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12IK9d6066357; Sun, 2 Feb 2003 21:20:09 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12IK9e9066356; Sun, 2 Feb 2003 21:20:09 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 21:20:09 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: Doug Barton , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202182009.GA66318@nagual.pp.ru> References: <20030202124258.GA63153@nagual.pp.ru> <200302021730.h12HUmaX048964@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302021730.h12HUmaX048964@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 17:30:48 +0000, Mark Murray wrote: > > Why not? Arc4 is a) deterministic and b) good for all bits. If you mean arc4random() function - not, because it use true randomness, if you mean RC4 algorithm, probably yes, but we should compare its distribution with our current variant and be sure that speed is acceptable. What form RC4 distribution have? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:21:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA8AC37B401; Sun, 2 Feb 2003 10:21:49 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC23443F43; Sun, 2 Feb 2003 10:21:48 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12ILld6066380; Sun, 2 Feb 2003 21:21:47 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12ILlQf066379; Sun, 2 Feb 2003 21:21:47 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 21:21:47 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202182147.GB66318@nagual.pp.ru> References: <20030202154356.GA65166@nagual.pp.ru> <200302021734.h12HYJaX049011@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302021734.h12HYJaX049011@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 17:34:19 +0000, Mark Murray wrote: > "Andrey A. Chernov" writes: > > > Objections? > > > > We can't, simple because sequence must be repeated for the same seed > > across the calls. > > RC4 is repeatable. It seems we mean different things saying arc4random(), see my answer in the thread. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:25:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADAA537B401; Sun, 2 Feb 2003 10:25:45 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id A157F43F3F; Sun, 2 Feb 2003 10:25:44 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12IPhd6066429; Sun, 2 Feb 2003 21:25:43 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12IPhgF066428; Sun, 2 Feb 2003 21:25:43 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 21:25:43 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: Doug Barton , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202182543.GC66318@nagual.pp.ru> References: <20030202124258.GA63153@nagual.pp.ru> <200302021730.h12HUmaX048964@grimreaper.grondar.org> <20030202182009.GA66318@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202182009.GA66318@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 21:20:09 +0300, Andrey A. Chernov wrote: > On Sun, Feb 02, 2003 at 17:30:48 +0000, Mark Murray wrote: > > > > Why not? Arc4 is a) deterministic and b) good for all bits. > > If you mean arc4random() function - not, because it use true randomness, > if you mean RC4 algorithm, probably yes, but we should compare its > distribution with our current variant and be sure that speed is > acceptable. What form RC4 distribution have? BTW, if we ever think about replacing our current variant with such complex and unknown (at least to me) thing as RC4-based PseudoRNG, I simpatize more to Knuth variant mentioned by David Schultz: http://www-cs-faculty.stanford.edu/~knuth/programs/rng.c RC4 is good for hashing existen randomness, but is it good as PseudoRNG? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:29:56 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 056D437B401; Sun, 2 Feb 2003 10:29:55 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA82F43E4A; Sun, 2 Feb 2003 10:29:53 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h12ITm1e079666; Sun, 2 Feb 2003 11:29:48 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 02 Feb 2003 11:29:11 -0700 (MST) Message-Id: <20030202.112911.101834304.imp@bsdimp.com> To: rwatson@FreeBSD.ORG Cc: ob@e-Gitt.NET, freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept From: "M. Warner Losh" In-Reply-To: References: <20030202165352.GA6957@e-Gitt.NET> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: Robert Watson writes: : I ran into a similar problem, actually -- programs like dhclient rely on : being able to write to lease and pid files. It's almost as though we'd : like an additional set of events when the system is "more booted". I.e., : a devd event for each device when the network is started, etc. That might make sense. Part of the problem is that while the system is booting there is only some vague notion of system state once you get to init. Part of the problem also is that devices have no information about what type of device any given device is. There's no way that one could "hold in abeyance" those devices that are network devices because we have no clue what a network device is and what isn't. It gets muddier when devices have multiple uses. Is sio a network device? If it is used for a ppp link it is, but if it is used for a serial console it isn't... : Actually, I suspect what we want is to have a seperate network event : management daemon -- arrival of the device is not the same as arrival of : the interface. dhclient events (and related things) should happen as a : result of the interface arriving, not the newbus device arrival. I.e., a : netd that listens to routing socket and kqueue events relating to the : network stack. Trouble is that "network interface arrival" is the same as "device arrival" The network interface is attached in foo_attach() so that's not a better time to do things because it is the same time. Since it happens in foo_attach, it actually happens before the device is entirely attached to the tree, so you are suggesting doing something that happens earlier :-). While carrier detect might be slightly better, it still is insufficient because that usually happens before init is run too. If it was that easy, I'd do it. I'm still trying to find the best place to start devd. Right now it starts before everything else. Maybe it needs to start just after the network starts, but that's arbitrary. That would ensure that we have a writeable /var for dhclient, but might preclude other interesting uses for devd. One could also make a case for just before network starts too. Doing it after means that one only has to put the 'don't configure it again' check into one place rather than two. The one in the second place has generated some problem reports that I need to look into. Part of the problem too is that we're now doing the configuration of devices in two places. Network devices are the only ones where we do interesting things with, but I think that we're seeing growning pains introducing dynamic things into a formerly static system. It is little different than when pccard and dynamic device loading was added to the kernel... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:33: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D257637B401; Sun, 2 Feb 2003 10:33:01 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id F40C843E4A; Sun, 2 Feb 2003 10:33:00 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12IWo4W029597; Sun, 2 Feb 2003 19:32:50 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: Mark Murray , Doug Barton , Kris Kennaway , current@freebsd.org Subject: Re: rand() is broken From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 21:20:09 +0300." <20030202182009.GA66318@nagual.pp.ru> Date: Sun, 02 Feb 2003 19:32:50 +0100 Message-ID: <29596.1044210770@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030202182009.GA66318@nagual.pp.ru>, "Andrey A. Chernov" writes: >On Sun, Feb 02, 2003 at 17:30:48 +0000, Mark Murray wrote: >> >> Why not? Arc4 is a) deterministic and b) good for all bits. > >If you mean arc4random() function - not, because it use true randomness, >if you mean RC4 algorithm, probably yes, but we should compare its >distribution with our current variant and be sure that speed is >acceptable. What form RC4 distribution have? RC4 can be implemented in about 4 lines of C. Anyway, last time we discussed this, I think we stuck with the rand() we had because we feared that people were using it's repeatable well documented sequence of random numbers in regression testing. This is still a valid concern, but I don't know how significant a concern it is. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:38:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C945637B401; Sun, 2 Feb 2003 10:38:28 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE5FA43E4A; Sun, 2 Feb 2003 10:38:27 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12IcQd6066513; Sun, 2 Feb 2003 21:38:26 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12IcQUd066512; Sun, 2 Feb 2003 21:38:26 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 21:38:26 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: Mark Murray , Doug Barton , Kris Kennaway , current@freebsd.org Subject: Re: rand() is broken Message-ID: <20030202183826.GA66487@nagual.pp.ru> References: <20030202182009.GA66318@nagual.pp.ru> <29596.1044210770@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29596.1044210770@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 19:32:50 +0100, phk@freebsd.org wrote: > > Anyway, last time we discussed this, I think we stuck with the rand() > we had because we feared that people were using it's repeatable well > documented sequence of random numbers in regression testing. As documented, it must be repeatable across the calls for same seed, that is all. It not means repeatable accross platforms or across different OS versions. In fact it is already not repeatable across different OS'es, so regression is limited. Also, regression must not stop bugs fixing progress in anycase. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:41:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBFA037B401 for ; Sun, 2 Feb 2003 10:41:57 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D743243F79 for ; Sun, 2 Feb 2003 10:41:56 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12IfsLf078695; Sun, 2 Feb 2003 18:41:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12IfsSt078694; Sun, 2 Feb 2003 18:41:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12Ia2aX049696; Sun, 2 Feb 2003 20:36:03 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021836.h12Ia2aX049696@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 21:20:09 +0300." <20030202182009.GA66318@nagual.pp.ru> Date: Sun, 02 Feb 2003 18:36:02 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Sun, Feb 02, 2003 at 17:30:48 +0000, Mark Murray wrote: > > > > Why not? Arc4 is a) deterministic and b) good for all bits. > > If you mean arc4random() function - not, because it use true randomness, > if you mean RC4 algorithm, probably yes, but we should compare its > distribution with our current variant and be sure that speed is > acceptable. What form RC4 distribution have? (I have read the whole thread) I think we need four things. 1) void srandom(int arg) which uses the argument to seed. 2) void srandomdev(void) which uses system entropy to seed. 3) int random(void) which returns a number statistically random in all bits. 4) which returns as many bytes of randomness (statistically random in all bits) as the caller asks for. We have most of this, and RC4 can deliver. RC4's "licence" is fine. Call it "ArCFour" and there is no problem. The code is small, fast and repeatable, and meets conditions 1-4 above. Coding is Junior-high-school level, given the spec. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:43:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B256337B401; Sun, 2 Feb 2003 10:43:46 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9C7643F43; Sun, 2 Feb 2003 10:43:45 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12Ihj4W031533; Sun, 2 Feb 2003 19:43:45 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: Mark Murray , Doug Barton , Kris Kennaway , current@freebsd.org Subject: Re: rand() is broken From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 21:38:26 +0300." <20030202183826.GA66487@nagual.pp.ru> Date: Sun, 02 Feb 2003 19:43:44 +0100 Message-ID: <31532.1044211424@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030202183826.GA66487@nagual.pp.ru>, "Andrey A. Chernov" writes: >On Sun, Feb 02, 2003 at 19:32:50 +0100, phk@freebsd.org wrote: >> >> Anyway, last time we discussed this, I think we stuck with the rand() >> we had because we feared that people were using it's repeatable well >> documented sequence of random numbers in regression testing. > >As documented, it must be repeatable across the calls for same seed, that >is all. It not means repeatable accross platforms or across different OS >versions. In fact it is already not repeatable across different OS'es, so >regression is limited. Also, regression must not stop bugs fixing progress >in anycase. Our manual pages do not comprehensively list all compatibility concerns or concessions, waving our manpage about does not address the concern. As I said, I don't know how big a concern this is. But last time it was enough of a concern to make us keep rand() as it was. Please surf the mail-archives to find the discussion, it contained a lot of good arguments from both sides, arguments which should be thought about before changing rand(). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:47:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D441B37B401 for ; Sun, 2 Feb 2003 10:47:13 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9A9A43E4A for ; Sun, 2 Feb 2003 10:47:12 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12IlC4W032213; Sun, 2 Feb 2003 19:47:12 +0100 (CET) (envelope-from phk@freebsd.org) To: Mark Murray Cc: "Andrey A. Chernov" , current@freebsd.org Subject: Re: rand() is broken From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 18:36:02 GMT." <200302021836.h12Ia2aX049696@grimreaper.grondar.org> Date: Sun, 02 Feb 2003 19:47:12 +0100 Message-ID: <32212.1044211632@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302021836.h12Ia2aX049696@grimreaper.grondar.org>, Mark Murray wr ites: >We have most of this, and RC4 can deliver. RC4's "licence" is >fine. Call it "ArCFour" and there is no problem. The code is >small, fast and repeatable, and meets conditions 1-4 above. There are some concerns about RC4's strength and predictability. In cases were we just want trivial "randomness", this doesn't matter, but when we start to seed it with /dev/random to get good randomness we to be more careful. Maybe we should spend an AES on it, just in case ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:48:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 564D437B401; Sun, 2 Feb 2003 10:48:29 -0800 (PST) Received: from agamemnon.cnchost.com (agamemnon.cnchost.com [207.155.252.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 472BF43F43; Sun, 2 Feb 2003 10:48:25 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by agamemnon.cnchost.com id NAA19508; Sun, 2 Feb 2003 13:48:01 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302021848.NAA19508@agamemnon.cnchost.com> To: Mark Murray Cc: "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 15:32:32 GMT." <200302021532.h12FWWaX047973@grimreaper.grondar.org> Date: Sun, 02 Feb 2003 10:48:00 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Good point. We can re-implement random() internally with arc4rand(). > > Objections? Guys, please realize that random() is also used in generating simulation inputs (or timing or whatever). If you go change the underlying algorithm or its parameters one can't generate the same sequence from the same seed when repeating a test. Some chip bug symptoms show up after hours/days of simulation time and only with specific inputs so repeatablity is a requirement. The old 16 bit rand() was broken enough that it didn't matter much (read: _I_ don't care) if its behavior got changed but random() has a pretty long cycle and enough "randomness" to be very useful and it *is* used. *Please* don't change random() -- if you do that you will break existing tests. It is not a matter of just rewriting tests since there is no easy way to predict which input triggers a certain bug -- one can try to use the same binaries but that prevents fixing of bugs in the test generation code itself. If you think random() is not random enough for your purposes, go create a new function with a *new* name. [I see from his latest email that PHK remembered the old discussion!] -- bakul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:49:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94B3E37B401; Sun, 2 Feb 2003 10:49:27 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7432843F43; Sun, 2 Feb 2003 10:49:26 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12InPd6066651; Sun, 2 Feb 2003 21:49:25 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12InP8N066650; Sun, 2 Feb 2003 21:49:25 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 21:49:25 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: Mark Murray , Doug Barton , Kris Kennaway , current@freebsd.org Subject: Re: rand() is broken Message-ID: <20030202184925.GA66622@nagual.pp.ru> References: <20030202183826.GA66487@nagual.pp.ru> <31532.1044211424@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31532.1044211424@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 19:43:44 +0100, phk@freebsd.org wrote: > > Please surf the mail-archives to find the discussion, it contained > a lot of good arguments from both sides, arguments which should > be thought about before changing rand(). I remember well that we decide to allow it be changed in that discussion, moreover we already change it once. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:53:54 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58C6F37B401 for ; Sun, 2 Feb 2003 10:53:53 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5215E43F3F for ; Sun, 2 Feb 2003 10:53:52 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Irpd6066684; Sun, 2 Feb 2003 21:53:51 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12IroXx066683; Sun, 2 Feb 2003 21:53:50 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 21:53:50 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202185350.GB66622@nagual.pp.ru> References: <20030202182009.GA66318@nagual.pp.ru> <200302021836.h12Ia2aX049696@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302021836.h12Ia2aX049696@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 18:36:02 +0000, Mark Murray wrote: > I think we need four things. > > 1) void srandom(int arg) which uses the argument to seed. > 2) void srandomdev(void) which uses system entropy to seed. > 3) int random(void) which returns a number statistically > random in all bits. > 4) which returns as many bytes of randomness > (statistically random in all bits) as the caller asks for. > > We have most of this, and RC4 can deliver. RC4's "licence" is > fine. Call it "ArCFour" and there is no problem. The code is > small, fast and repeatable, and meets conditions 1-4 above. > > Coding is Junior-high-school level, given the spec. random() is not needed to be changed at all, it already use algorithm which is resistent to bad initial steering PseudoRNG as designed. The RNG in question is rand() only. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:56:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85B0537B401; Sun, 2 Feb 2003 10:56:56 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 581D743F43; Sun, 2 Feb 2003 10:56:55 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12IusLf078898; Sun, 2 Feb 2003 18:56:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12IusgR078897; Sun, 2 Feb 2003 18:56:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12IqiaX049893; Sun, 2 Feb 2003 20:52:44 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021852.h12IqiaX049893@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: phk@freebsd.org, Doug Barton , Kris Kennaway , current@freebsd.org Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 21:38:26 +0300." <20030202183826.GA66487@nagual.pp.ru> Date: Sun, 02 Feb 2003 18:52:44 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Sun, Feb 02, 2003 at 19:32:50 +0100, phk@freebsd.org wrote: > > > Anyway, last time we discussed this, I think we stuck with the > > rand() we had because we feared that people were using it's > > repeatable well documented sequence of random numbers in regression > > testing. > > As documented, it must be repeatable across the calls for same seed, > that is all. It not means repeatable accross platforms or across > different OS versions. In fact it is already not repeatable across > different OS'es, so regression is limited. Also, regression must not > stop bugs fixing progress in anycase. Given a particular seed, it is repeatable across anything that can compile C. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:56:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D11737B407; Sun, 2 Feb 2003 10:56:56 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3916443E4A; Sun, 2 Feb 2003 10:56:55 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12IusLf078893; Sun, 2 Feb 2003 18:56:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12IurTX078892; Sun, 2 Feb 2003 18:56:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12IpIaX049876; Sun, 2 Feb 2003 20:51:18 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021851.h12IpIaX049876@grimreaper.grondar.org> To: phk@freebsd.org Cc: "Andrey A. Chernov" , Doug Barton , Kris Kennaway , current@freebsd.org Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 19:32:50 +0100." <29596.1044210770@critter.freebsd.dk> Date: Sun, 02 Feb 2003 18:51:18 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk@freebsd.org writes: > RC4 can be implemented in about 4 lines of C. Yah. If you like writing obfuscated C! > Anyway, last time we discussed this, I think we stuck with the rand() > we had because we feared that people were using it's repeatable well > documented sequence of random numbers in regression testing. I guess those arguments are now moot? > This is still a valid concern, but I don't know how significant a > concern it is. "Insignificant", IMO. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 10:58:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1EB737B401; Sun, 2 Feb 2003 10:58:48 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECD6243F75; Sun, 2 Feb 2003 10:58:47 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Iwld6066755; Sun, 2 Feb 2003 21:58:47 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12IwlBW066754; Sun, 2 Feb 2003 21:58:47 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 21:58:46 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: Mark Murray , current@freebsd.org Subject: Re: rand() is broken Message-ID: <20030202185846.GC66622@nagual.pp.ru> References: <200302021836.h12Ia2aX049696@grimreaper.grondar.org> <32212.1044211632@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32212.1044211632@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 19:47:12 +0100, phk@freebsd.org wrote: > In message <200302021836.h12Ia2aX049696@grimreaper.grondar.org>, Mark Murray wr > ites: > > >We have most of this, and RC4 can deliver. RC4's "licence" is > >fine. Call it "ArCFour" and there is no problem. The code is > >small, fast and repeatable, and meets conditions 1-4 above. > > There are some concerns about RC4's strength and predictability. Yes. That why I say we need to run some tests to compare RC4 distribution and other vital parameters with our current variant. The worst case will be if we replace good PRNG with bad. F.e. Knuth variant I already mention already proven as better than what we currently have, so don't have such problem as RC4-based PRNG probably have. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11: 6:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A71837B401 for ; Sun, 2 Feb 2003 11:06:50 -0800 (PST) Received: from 100m.mpr200-2.esr.lvcm.net (100m.mpr200-2.esr.lvcm.net [24.234.0.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 094F843F43 for ; Sun, 2 Feb 2003 11:06:50 -0800 (PST) (envelope-from tdondich@majiknetworks.com) Received: from majiknetworks.com (ip68-96-99-237.lv.lv.cox.net [68.96.99.237]) by 100m.mpr200-2.esr.lvcm.net (Mirapoint Messaging Server MOS 2.9.3.5) with ESMTP id AQL65968; Sun, 2 Feb 2003 11:06:33 -0800 (PST) Message-ID: <3E3D6D53.2070700@majiknetworks.com> Date: Sun, 02 Feb 2003 11:11:15 -0800 From: Taylor Dondich User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Subject: Still having problems compiling boot loader Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG After doing a make in /usr/src/sys/boot/, I get this error and compile ends: In file included from /usr/src/sys/boot/ficl/loader.c:40: /usr/src/sys/boot/ficl/../common/bootstrap.h:254: syntax error before 'struct' /usr/src/sys/boot/ficl/../common/bootstrap.h:254: warning: data definition has no type or storage class *** Error code 1 Stop in /usr/src/sys/boot/ficl. *** Error code 1 Stop in /usr/src/sys/boot. Any ideas anyone? Taylor Dondich To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11: 6:55 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8C7737B409; Sun, 2 Feb 2003 11:06:53 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36C7043F75; Sun, 2 Feb 2003 11:06:52 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12J6pLf079002; Sun, 2 Feb 2003 19:06:51 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12J6p4N079001; Sun, 2 Feb 2003 19:06:51 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12J0IaX050026; Sun, 2 Feb 2003 21:00:18 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021900.h12J0IaX050026@grimreaper.grondar.org> To: phk@freebsd.org Cc: "Andrey A. Chernov" , current@freebsd.org Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 19:47:12 +0100." <32212.1044211632@critter.freebsd.dk> Date: Sun, 02 Feb 2003 19:00:18 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk@freebsd.org writes: > In message <200302021836.h12Ia2aX049696@grimreaper.grondar.org>, Mark Murray > wr > ites: > > >We have most of this, and RC4 can deliver. RC4's "licence" is > >fine. Call it "ArCFour" and there is no problem. The code is > >small, fast and repeatable, and meets conditions 1-4 above. > > There are some concerns about RC4's strength and predictability. Not here. We are talking statistical randomness, not cryptographic. RC4 is juuuust fine. > In cases were we just want trivial "randomness", this doesn't matter, > but when we start to seed it with /dev/random to get good randomness > we to be more careful. Sure. srandomdev() needs to "burn" some output. > Maybe we should spend an AES on it, just in case ? Hold that thought. The "moral equivalent" of 'dd if=random() of=/dev/null bs=1 count=4096' is enough for now. Any problems, and I'll be right with you! M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11: 7:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 023AD37B401; Sun, 2 Feb 2003 11:07:58 -0800 (PST) Received: from agamemnon.cnchost.com (agamemnon.cnchost.com [207.155.252.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E97743F79; Sun, 2 Feb 2003 11:07:57 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by agamemnon.cnchost.com id OAA04015; Sun, 2 Feb 2003 14:07:51 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302021907.OAA04015@agamemnon.cnchost.com> To: phk@FreeBSD.ORG Cc: "Andrey A. Chernov" , Mark Murray , Doug Barton , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 19:43:44 +0100." <31532.1044211424@critter.freebsd.dk> Date: Sun, 02 Feb 2003 11:07:51 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > As I said, I don't know how big a concern this is. But last time > it was enough of a concern to make us keep rand() as it was. [I know you are talking about rand() but Mark Murray's earlier email about wanting to re-implement random() really concerned me so I want to make sure my point gets across] Not changing random() was of real concern to me when I was doing chip simulations. ASIC design verification folks won't be happy if the rug is pulled out from under them. In general crypto and simulation needs are different and I don't trust the crypto guys to look out for the simulation guys! I don't care any more if rand() is changed but _please_ leave random() alone! And it would be nice to indicate *why* in the source code for the next time this discussion comes up. Thanks! -- bakul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11:12:19 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F45837B401; Sun, 2 Feb 2003 11:12:17 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EE5243F75; Sun, 2 Feb 2003 11:12:16 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12JBxLf079041; Sun, 2 Feb 2003 19:11:59 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12JBwJ6079040; Sun, 2 Feb 2003 19:11:59 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12J8laX050048; Sun, 2 Feb 2003 21:08:47 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021908.h12J8laX050048@grimreaper.grondar.org> To: Bakul Shah Cc: "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 10:48:00 PST." <200302021848.NAA19508@agamemnon.cnchost.com> Date: Sun, 02 Feb 2003 19:08:47 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > > Good point. We can re-implement random() internally with arc4rand(). > > > > Objections? > > Guys, please realize that random() is also used in generating > simulation inputs (or timing or whatever). If you go change > the underlying algorithm or its parameters one can't generate > the same sequence from the same seed when repeating a test. > Some chip bug symptoms show up after hours/days of simulation > time and only with specific inputs so repeatablity is a > requirement. RC4 is _utterly_ repeatable, given a particular seed/key. > The old 16 bit rand() was broken enough that it didn't matter > much (read: _I_ don't care) if its behavior got changed but > random() has a pretty long cycle and enough "randomness" to > be very useful and it *is* used. Yes. And it breaks, and we have a complainant. > *Please* don't change random() -- if you do that you will > break existing tests. It is not a matter of just rewriting > tests since there is no easy way to predict which input > triggers a certain bug -- one can try to use the same > binaries but that prevents fixing of bugs in the test > generation code itself. Heisenbug. Which tests do we break? Tests for specific output, or tests for more general cases? The random() function in libc is documented to give the same pseudo-random output for a particular seed. if you link your program against a _different_ libc, you cannot expect your results to follow a particular number sequence. We have to be able to fix bugs, and a bug has been identified. If you want a stable generator here, link statically, and keep a set of compatiblity libraries around. > If you think random() is not random enough for your purposes, > go create a new function with a *new* name. Any supporters of this request? > [I see from his latest email that PHK remembered the old > discussion!] So did I! M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11:31:22 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C5F437B401 for ; Sun, 2 Feb 2003 11:31:21 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BE0043F79 for ; Sun, 2 Feb 2003 11:31:20 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h12JVA1e080090; Sun, 2 Feb 2003 12:31:10 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 02 Feb 2003 12:30:30 -0700 (MST) Message-Id: <20030202.123030.27713537.imp@bsdimp.com> To: oberman@es.net Cc: ob@e-Gitt.NET, freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept From: "M. Warner Losh" In-Reply-To: <20030201233621.916935D04@ptavv.es.net> References: <20030201182012.GC97784@e-Gitt.NET> <20030201233621.916935D04@ptavv.es.net> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Consider the following patch. Since you have custom configuration, it might rely on other parts of the system being active before they will work. This patch moves devd from starting 'first' to starting before we have to mount the 'critical' remote disks. If you require critical remote disks to depend on devd, I might need to make a couple of changes to devd to call daemon after it has done the configuration actions for devices that match, but this should work for those people that use, say, /usr/local/bin/perl. There's also a couple of "fixes" to network1 that I can back out with these changes. Index: devd =================================================================== RCS file: /cache/ncvs/src/etc/rc.d/devd,v retrieving revision 1.3 diff -u -r1.3 devd --- devd 22 Dec 2002 22:18:41 -0000 1.3 +++ devd 2 Feb 2003 19:22:00 -0000 @@ -3,9 +3,9 @@ # $FreeBSD: src/etc/rc.d/devd,v 1.3 2002/12/22 22:18:41 dillon Exp $ # -# REQUIRE: rcconf +# REQUIRE: NETWORKING # PROVIDE: devd -# BEFORE: disks +# BEFORE: mountcritremote # KEYWORD: FreeBSD . /etc/rc.subr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11:32:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ADBF37B401 for ; Sun, 2 Feb 2003 11:32:13 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B3E043F3F for ; Sun, 2 Feb 2003 11:32:12 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12JVrLf079221; Sun, 2 Feb 2003 19:31:53 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12JVrNU079220; Sun, 2 Feb 2003 19:31:53 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12JPHaX050249; Sun, 2 Feb 2003 21:25:17 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021925.h12JPHaX050249@grimreaper.grondar.org> To: Bakul Shah Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 11:07:51 PST." <200302021907.OAA04015@agamemnon.cnchost.com> Date: Sun, 02 Feb 2003 19:25:17 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > Not changing random() was of real concern to me when I was > doing chip simulations. ASIC design verification folks won't > be happy if the rug is pulled out from under them. In > general crypto and simulation needs are different and I don't > trust the crypto guys to look out for the simulation guys! Are you a Verilog guy ar a VRML guy? Something else maybe? M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11:33:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEB6237B401 for ; Sun, 2 Feb 2003 11:33:29 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5729A43F79 for ; Sun, 2 Feb 2003 11:33:28 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h12JXN1e080109; Sun, 2 Feb 2003 12:33:23 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 02 Feb 2003 12:32:43 -0700 (MST) Message-Id: <20030202.123243.71842594.imp@bsdimp.com> To: ob@e-Gitt.NET Cc: freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept From: "M. Warner Losh" In-Reply-To: <20030202141924.GA17831@e-Gitt.NET> References: <20030201182012.GC97784@e-Gitt.NET> <20030202.064707.11429179.imp@bsdimp.com> <20030202141924.GA17831@e-Gitt.NET> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20030202141924.GA17831@e-Gitt.NET> Oliver Brandmueller writes: : fine. Any ideas? Thanks for the info! I've sent in a different message that I think will fix this problem. The problem is that /usr/local isn't mounted when devd starts, so /usr/local/etc/netconf/bin/netconf won't run, so we terminate immediately (and maybe this points to a bug in devd not logging bad things that happen). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11:35:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5A2237B405; Sun, 2 Feb 2003 11:35:15 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id A81C243F3F; Sun, 2 Feb 2003 11:35:13 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from graves.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 2 Feb 2003 19:35:12 +0000 (GMT) Date: Sun, 2 Feb 2003 19:35:10 +0000 From: David Malone To: Mark Murray Cc: Bakul Shah , "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202193510.A6945@graves.maths.tcd.ie> References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302021908.h12J8laX050048@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.2i In-Reply-To: <200302021908.h12J8laX050048@grimreaper.grondar.org>; from mark@grondar.org on Sun, Feb 02, 2003 at 07:08:47PM +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 07:08:47PM +0000, Mark Murray wrote: > RC4 is _utterly_ repeatable, given a particular seed/key. I presume it also produces reasonably uniform output for most seeds too. > > The old 16 bit rand() was broken enough that it didn't matter > > much (read: _I_ don't care) if its behavior got changed but > > random() has a pretty long cycle and enough "randomness" to > > be very useful and it *is* used. > > Yes. And it breaks, and we have a complainant. I thought the complaint was about rand, not random? > > If you think random() is not random enough for your purposes, > > go create a new function with a *new* name. > > Any supporters of this request? I'd support that. People who are using rand and random for crypto type randomness are deceiving themselves, as neither are portably suitable for that use. Lots of people are using rand, random and the rand48 suite for simulation or games, and this type of randomness has different requirements (as Bakul points out - repeatability being a useful one). I'd suggest we ammend the rand and random man pages saying that sequences produced from either cannot be expected to be suitable for cryptographic purposes, but are should be OK for simulation and games. (I guess a couple of numbers produced after calling srandomdev might be safe, but I wouldn't like to bet on them being that safe...) The man page can refer people on to arc4random, the apropriate OpenSSL pages, uuidgen and so on. As different consumers have different, sometimes contradictory, requirements for "randomness" it seems foolish to try to lump them all into one group of functions. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11:41:31 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCB0837B434 for ; Sun, 2 Feb 2003 11:41:29 -0800 (PST) Received: from a.smtp.serv.lythe.org.uk (pc4-oxfd1-6-cust225.oxfd.cable.ntl.com [62.254.141.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CAB543F43 for ; Sun, 2 Feb 2003 11:41:24 -0800 (PST) (envelope-from ejb@lythe.org.uk) Received: from there (fisk.lythe.org.uk [192.168.1.180]) by a.smtp.serv.lythe.org.uk (8.12.6/8.12.6) with SMTP id h12JfJ1a004169; Sun, 2 Feb 2003 19:41:19 GMT (envelope-from ejb@lythe.org.uk) Message-Id: <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: Edward Brocklesby To: Bakul Shah Subject: Re: rand() is broken Date: Sun, 2 Feb 2003 19:41:17 +0000 X-Mailer: KMail [version 1.3.2] Cc: current@FreeBSD.ORG References: <200302021848.NAA19508@agamemnon.cnchost.com> In-Reply-To: <200302021848.NAA19508@agamemnon.cnchost.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 02 February 2003 6:48 pm, Bakul Shah wrote: > Guys, please realize that random() is also used in generating > simulation inputs (or timing or whatever). If you go change > the underlying algorithm or its parameters one can't generate > the same sequence from the same seed when repeating a test. Maybe I missed something, but why cannot you just rip random() from libc, rename it to bakul_shah_random() and use that in your testing code? Then you are safe from any changes to random(), and indeed have a portable RNG if your host OS changes. Regards, Edward. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11:47: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E3F337B401; Sun, 2 Feb 2003 11:47:06 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B82E43F85; Sun, 2 Feb 2003 11:47:05 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12JkwLf079361; Sun, 2 Feb 2003 19:46:58 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12JkvaJ079360; Sun, 2 Feb 2003 19:46:57 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12JhEaX050421; Sun, 2 Feb 2003 21:43:14 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302021943.h12JhEaX050421@grimreaper.grondar.org> To: David Malone Cc: Bakul Shah , "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 19:35:10 GMT." <20030202193510.A6945@graves.maths.tcd.ie> Date: Sun, 02 Feb 2003 19:43:14 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Malone writes: > On Sun, Feb 02, 2003 at 07:08:47PM +0000, Mark Murray wrote: > > RC4 is _utterly_ repeatable, given a particular seed/key. > > I presume it also produces reasonably uniform output for most > seeds too. Yes. Modulo the requirement to "burn" a bit of output after a reseed. > > > The old 16 bit rand() was broken enough that it didn't matter > > > much (read: _I_ don't care) if its behavior got changed but > > > random() has a pretty long cycle and enough "randomness" to > > > be very useful and it *is* used. > > > > Yes. And it breaks, and we have a complainant. > > I thought the complaint was about rand, not random? Erm, yes. Similar difference though. PRNGs are _trouble_ unless designed properly. > > > If you think random() is not random enough for your purposes, > > > go create a new function with a *new* name. > > > > Any supporters of this request? > > I'd support that. People who are using rand and random for crypto type > randomness are deceiving themselves, as neither are portably suitable > for that use. Lots of people are using rand, random and the rand48 > suite for simulation or games, and this type of randomness has different > requirements (as Bakul points out - repeatability being a useful one). Repeatability is fine. Is convergence-to-constant OK? > I'd suggest we ammend the rand and random man pages saying that sequences > produced from either cannot be expected to be suitable for cryptographic > purposes, but are should be OK for simulation and games. (I guess a > couple of numbers produced after calling srandomdev might be safe, > but I wouldn't like to bet on them being that safe...) I'm fine with this. > The man page can refer people on to arc4random, the apropriate OpenSSL > pages, uuidgen and so on. As different consumers have different, sometimes > contradictory, requirements for "randomness" it seems foolish to try to > lump them all into one group of functions. Yes. We should separately document (or at least clarify) the differences between cryptographic randomness and statistical randomness. We should also make sure that both are bug-free. Cast-in-stone algorithms are dumb, but if you really want those, its probably best to put them in your own code. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 11:55:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2979837B401; Sun, 2 Feb 2003 11:55:43 -0800 (PST) Received: from glatton.cnchost.com (glatton.cnchost.com [207.155.248.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA56E43F3F; Sun, 2 Feb 2003 11:55:42 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by glatton.cnchost.com id OAA20742; Sun, 2 Feb 2003 14:55:25 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302021955.OAA20742@glatton.cnchost.com> To: Mark Murray Cc: "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 19:08:47 GMT." <200302021908.h12J8laX050048@grimreaper.grondar.org> Date: Sun, 02 Feb 2003 11:55:25 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > RC4 is _utterly_ repeatable, given a particular seed/key. May be but it is not the same as the current random(). Also, I know you will want to change it the next time some one points out a problem with RC4. > Yes. And it breaks, and we have a complainant. So create a new function! Or use a different function to generate or initialize the seed. I think one has to treat a behavior bug very carefully. If enough people are depending on it, it pretty much has to get enshrined as part of the spec -- sort of like the timeout arg to select(). > The random() function in libc is documented to give the same > pseudo-random output for a particular seed. if you link your > program against a _different_ libc, you cannot expect your > results to follow a particular number sequence. There is an expectation that on subsequent releases of the same OS things continue to work. Historically rand() and random() under unix have been used the most for simulation. [aside: Earl T. Cohen (the author of random(3)) also has had a lot to do in this area] Why not totally separate all uses of crypto related random number generator uses from the traditional simulation use? That way you can change crypto_random to your heart's content as the crypto needs change (as they will). -- bakul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12: 5:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A4E837B401; Sun, 2 Feb 2003 12:05:32 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 3CC4C43FAF; Sun, 2 Feb 2003 12:05:31 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from gosset.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 2 Feb 2003 20:05:30 +0000 (GMT) To: Mark Murray Cc: Bakul Shah , "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 19:43:14 GMT." <200302021943.h12JhEaX050421@grimreaper.grondar.org> X-Request-Do: Date: Sun, 02 Feb 2003 20:05:29 +0000 From: David Malone Message-ID: <200302022005.aa62194@salmon.maths.tcd.ie> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I presume it also produces reasonably uniform output for most > > seeds too. > Yes. Modulo the requirement to "burn" a bit of output after a > reseed. I guess the crypto guys would have junked it otherwise ;-) > > I thought the complaint was about rand, not random? > Erm, yes. Similar difference though. PRNGs are _trouble_ unless > designed properly. I thought random was relatively carefully designed, though I don't know what the design goals were. I guess we should find out so we can do a fair comparison. > > I'd support that. People who are using rand and random for crypto type > > randomness are deceiving themselves, as neither are portably suitable > > for that use. Lots of people are using rand, random and the rand48 > > suite for simulation or games, and this type of randomness has different > > requirements (as Bakul points out - repeatability being a useful one). > Repeatability is fine. Is convergence-to-constant OK? While we have no obligation to keep our implimantation constant accross between versions of libc, it may be a pain for users if we change the implimentation. We should just consider that before we decide to make a change. If it our change really is an improvement for most users, then it may be worth making anyway. [I presume you mean our rand* implimentation is slowly converging-to-constant code ;-] > > The man page can refer people on to arc4random, the apropriate OpenSSL > > pages, uuidgen and so on. As different consumers have different, sometimes > > contradictory, requirements for "randomness" it seems foolish to try to > > lump them all into one group of functions. > Yes. We should separately document (or at least clarify) the differences > between cryptographic randomness and statistical randomness. We should also > make sure that both are bug-free. Good idea - though it might make a better paper than a man page! > Cast-in-stone algorithms are dumb, but if > you really want those, its probably best to put them in your own code. Indeed, that's what I've done when I really want portable repeatibility. Infact the old crappy rand() implimentation had some interesting interactions when used when one of the MSc students here used it to test some of the AES candidates. [It may be mentioned in that document that I sent you recently.] David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12: 7: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37A5B37B401 for ; Sun, 2 Feb 2003 12:07:02 -0800 (PST) Received: from valiant.cnchost.com (valiant.concentric.net [207.155.252.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id C846143F75 for ; Sun, 2 Feb 2003 12:07:01 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by valiant.cnchost.com id PAA25355; Sun, 2 Feb 2003 15:06:56 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302022006.PAA25355@valiant.cnchost.com> To: Edward Brocklesby Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 19:41:17 GMT." <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk> Date: Sun, 02 Feb 2003 12:06:56 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Maybe I missed something, but why cannot you just rip random() from libc, > rename it to bakul_shah_random() and use that in your testing code? Then you > are safe from any changes to random(), and indeed have a portable RNG if your > host OS changes. Yes, *I* can do it but I don't work at every place they do simulation! If in the extreme you are suggesting that a portable application shouldn't rely on any OS features, you are of course right but that kind of makes mockery of any claims of compatibility. The point of compatibility is to not break interfaces unless there is a significant benefit. -- bakul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:18:22 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 078F537B401 for ; Sun, 2 Feb 2003 12:18:21 -0800 (PST) Received: from a.smtp.serv.lythe.org.uk (pc4-oxfd1-6-cust225.oxfd.cable.ntl.com [62.254.141.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 528D843E4A for ; Sun, 2 Feb 2003 12:18:19 -0800 (PST) (envelope-from ejb@lythe.org.uk) Received: from there (fisk.lythe.org.uk [192.168.1.180]) by a.smtp.serv.lythe.org.uk (8.12.6/8.12.6) with SMTP id h12KIC1a008066; Sun, 2 Feb 2003 20:18:13 GMT (envelope-from ejb@lythe.org.uk) Message-Id: <200302022018.h12KIC1a008066@a.smtp.serv.lythe.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: Edward Brocklesby To: Bakul Shah Subject: Re: rand() is broken Date: Sun, 2 Feb 2003 20:18:11 +0000 X-Mailer: KMail [version 1.3.2] Cc: current@FreeBSD.ORG References: <200302022006.PAA25355@valiant.cnchost.com> In-Reply-To: <200302022006.PAA25355@valiant.cnchost.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 02 February 2003 8:06 pm, Bakul Shah wrote: > > Maybe I missed something, but why cannot you just rip random() from libc, > > rename it to bakul_shah_random() and use that in your testing code? Then > > you are safe from any changes to random(), and indeed have a portable RNG > > if your host OS changes. > > Yes, *I* can do it but I don't work at every place they do > simulation! If in the extreme you are suggesting that a > portable application shouldn't rely on any OS features, No, that wasn't what I meant; yes, there are things should be able to rely on not changing between platforms, however ... > The point of compatibility is to > not break interfaces unless there is a significant benefit. ... I think there is more than one level of 'compatibility'; I for one would not expect random() to return the same results across platforms, certainly, or even between seperate releases of one platform, even though its API may be the same. For two reasons, mainly, the first that you know someone will change it somewhere anyway ;-), and second I think that's placing too much of a restriction on the OS. If FreeBSD makes random2() using RC4 to avoid changing rand() or random(), will people then start relying on random2()'s behaviour, and when someone finds a problem in RC4, then the next will be random3()? If you require implementation of random(), then I don't think that it's so bad that you should be expected to provide it yourself, rather than assuming this is what the OS uses. But then maybe this comes down to difference of opinion. Would you have a problem with changes in the TCP/IP stack changing the content of packets sent out when you connect(), if it breaks your TCP/IP simulations? Regards, Edward. (PS: Even though it's rand(), not random() being changed, I think this issue applies to both..) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:22: 7 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A2FE37B401; Sun, 2 Feb 2003 12:22:05 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BA2543F85; Sun, 2 Feb 2003 12:22:03 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12KLsLf079645; Sun, 2 Feb 2003 20:21:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12KLsZW079644; Sun, 2 Feb 2003 20:21:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12KF5aX050851; Sun, 2 Feb 2003 22:15:05 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022015.h12KF5aX050851@grimreaper.grondar.org> To: Bakul Shah Cc: "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 11:55:25 PST." <200302021955.OAA20742@glatton.cnchost.com> Date: Sun, 02 Feb 2003 20:15:05 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > > RC4 is _utterly_ repeatable, given a particular seed/key. > > May be but it is not the same as the current random(). Also, > I know you will want to change it the next time some one > points out a problem with RC4. Yes. This is called "fixing bugs". We (OS maintainers) reserve that right. If you need something more predictable, please maintain your own code. > > Yes. And it breaks, and we have a complainant. > > So create a new function! Or use a different function to > generate or initialize the seed. I think one has to treat a > behavior bug very carefully. If enough people are depending > on it, it pretty much has to get enshrined as part of the > spec -- sort of like the timeout arg to select(). The documented behaviour is rand(3)/random(3). No guarantee of lifelong repeatability is provided. Would you prefer that we defined random() as int random(void) { static int retval = 0; return retval++; } and worked on statistical randomness somewhere else? > > The random() function in libc is documented to give the same > > pseudo-random output for a particular seed. If you link your > > program against a _different_ libc, you cannot expect your > > results to follow a particular number sequence. > > There is an expectation that on subsequent releases of the > same OS things continue to work. Where is that expectation guaranteed? Where is that expectation supported? > Historically rand() and random() under unix have been used > the most for simulation. [aside: Earl T. Cohen (the author > of random(3)) also has had a lot to do in this area] > > Why not totally separate all uses of crypto related random > number generator uses from the traditional simulation use? > That way you can change crypto_random to your heart's content > as the crypto needs change (as they will). The two are related topics. Consider the (joking reference to) "elephant-free biology". :-) M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:26:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19B3637B401 for ; Sun, 2 Feb 2003 12:26:58 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38CCA43E4A for ; Sun, 2 Feb 2003 12:26:57 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12KQsLf079679; Sun, 2 Feb 2003 20:26:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12KQsUn079678; Sun, 2 Feb 2003 20:26:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12KMoaX051016; Sun, 2 Feb 2003 22:22:50 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022022.h12KMoaX051016@grimreaper.grondar.org> To: Bakul Shah Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 12:06:56 PST." <200302022006.PAA25355@valiant.cnchost.com> Date: Sun, 02 Feb 2003 20:22:50 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > Yes, *I* can do it but I don't work at every place they do > simulation! If in the extreme you are suggesting that a > portable application shouldn't rely on any OS features, you > are of course right but that kind of makes mockery of any > claims of compatibility. The point of compatibility is to > not break interfaces unless there is a significant benefit. We are not proposing interface breaks. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:39:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 655D037B401; Sun, 2 Feb 2003 12:39:14 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91A0043F75; Sun, 2 Feb 2003 12:39:12 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Kd5d6067481; Sun, 2 Feb 2003 23:39:05 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12Kd4sY067480; Sun, 2 Feb 2003 23:39:04 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 23:39:04 +0300 From: "Andrey A. Chernov" To: David Malone Cc: Mark Murray , Bakul Shah , "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202203904.GA67454@nagual.pp.ru> References: <200302021943.h12JhEaX050421@grimreaper.grondar.org> <200302022005.aa62194@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022005.aa62194@salmon.maths.tcd.ie> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 20:05:29 +0000, David Malone wrote: > > > I presume it also produces reasonably uniform output for most > > > seeds too. > > > Yes. Modulo the requirement to "burn" a bit of output after a > > reseed. > > I guess the crypto guys would have junked it otherwise ;-) Notice that it will happens _each_ time for rand() due to rand_r() requirement 1) to output the same sequence as rand() and to 2) to store one word seed value each time. I.e. it will be reseed on each call. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:39:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6545537B401 for ; Sun, 2 Feb 2003 12:39:45 -0800 (PST) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97B2643E4A for ; Sun, 2 Feb 2003 12:39:44 -0800 (PST) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) by alpha.siliconlandmark.com (8.12.6/8.12.6) with ESMTP id h12KdcmF014774; Sun, 2 Feb 2003 15:39:38 -0500 (EST) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost) by alpha.siliconlandmark.com (8.12.6/8.12.6/Submit) with ESMTP id h12Kdccw014771; Sun, 2 Feb 2003 15:39:38 -0500 (EST) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Sun, 2 Feb 2003 15:39:38 -0500 (EST) From: Andre Guibert de Bruet To: Taylor Dondich Cc: current@FreeBSD.ORG Subject: Re: Still having problems compiling boot loader In-Reply-To: <3E3D6D53.2070700@majiknetworks.com> Message-ID: <20030202153606.L4104@alpha.siliconlandmark.com> References: <3E3D6D53.2070700@majiknetworks.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Taylor, May I ask why you're running this command? Are you trying to upgrade 4.X to 5.0-R/C? If so, make sure that you've followed all the steps listed in /usr/src/UPDATING. If your problems persist, try doing a fresh cvsup, clear out /usr/obj/ and retry the steps listed in UPDATING. Regards, > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ > On Sun, 2 Feb 2003, Taylor Dondich wrote: > After doing a make in /usr/src/sys/boot/, I get this error and compile ends: > > In file included from /usr/src/sys/boot/ficl/loader.c:40: > /usr/src/sys/boot/ficl/../common/bootstrap.h:254: syntax error before > 'struct' > /usr/src/sys/boot/ficl/../common/bootstrap.h:254: warning: data > definition has no type or storage class > *** Error code 1 > > Stop in /usr/src/sys/boot/ficl. > *** Error code 1 > > Stop in /usr/src/sys/boot. > > Any ideas anyone? > > Taylor Dondich > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:39:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7C0F37B401 for ; Sun, 2 Feb 2003 12:39:57 -0800 (PST) Received: from warspite.cnchost.com (warspite.concentric.net [207.155.248.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DD8D43F3F for ; Sun, 2 Feb 2003 12:39:57 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by warspite.cnchost.com id PAA13951; Sun, 2 Feb 2003 15:39:50 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302022039.PAA13951@warspite.cnchost.com> To: Edward Brocklesby Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 20:18:11 GMT." <200302022018.h12KIC1a008066@a.smtp.serv.lythe.org.uk> Date: Sun, 02 Feb 2003 12:39:50 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > a restriction on the OS. If FreeBSD makes random2() using RC4 to avoid > changing rand() or random(), will people then start relying on random2()'s > behaviour, and when someone finds a problem in RC4, then the next will be > random3()? What I am suggesting is to leave random() as it is and guarantee its behavior won't change and add cryto_random() or whatever, and indicate it *may* change. > Would you have a problem with changes in the TCP/IP stack changing the > content of packets sent out when you connect(), if it breaks your TCP/IP > simulations? This is not a similar situation. Note that it is rand() that is broken, not random() as can be seen by modifying Kris Kennaways' test so I don't see why Mark Murray was talking about changing it in the first place. #include #include int main() { int i; for(i = 1; i <= 1000; i++) { srandom(i); printf("%d: %d\n", i, random()); } } 1: 1804289383 2: 1505335290 3: 1205554746 4: 1968078301 5: 590011675 6: 290852541 7: 1045618677 8: 757547896 9: 444454915 10: 1215069295 11: 1989311423 12: 1687063760 13: 1358590890 14: 2146406683 15: 762299093 16: 462648444 17: 1227918265 ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:48:22 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F76937B401 for ; Sun, 2 Feb 2003 12:48:21 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6475543E4A for ; Sun, 2 Feb 2003 12:48:20 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12KmFd6067608; Sun, 2 Feb 2003 23:48:15 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12Km3O9067607; Sun, 2 Feb 2003 23:48:03 +0300 (MSK) (envelope-from ache) Date: Sun, 2 Feb 2003 23:48:03 +0300 From: "Andrey A. Chernov" To: Bakul Shah Cc: Edward Brocklesby , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202204803.GA67572@nagual.pp.ru> References: <200302022018.h12KIC1a008066@a.smtp.serv.lythe.org.uk> <200302022039.PAA13951@warspite.cnchost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022039.PAA13951@warspite.cnchost.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 12:39:50 -0800, Bakul Shah wrote: > > Note that it is rand() that is broken, not random() as can be > seen by modifying Kris Kennaways' test so I don't see why > Mark Murray was talking about changing it in the first place. About correlation bug: it is srand() which is broken, not rand(). It is common practice for this type of PRNGs to throw out N values after seeding to remove correlation and srand() not follow this. My first patch fix this. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:49:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44C3C37B401 for ; Sun, 2 Feb 2003 12:49:29 -0800 (PST) Received: from falcon.midgard.homeip.net (h76n3fls20o913.telia.com [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id CFC9E43F85 for ; Sun, 2 Feb 2003 12:49:26 -0800 (PST) (envelope-from ertr1013@student.uu.se) Received: (qmail 80126 invoked by uid 1001); 2 Feb 2003 20:49:25 -0000 Date: Sun, 2 Feb 2003 21:49:24 +0100 From: Erik Trulsson To: Bakul Shah Cc: Edward Brocklesby , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202204924.GA74800@falcon.midgard.homeip.net> Mail-Followup-To: Bakul Shah , Edward Brocklesby , current@FreeBSD.ORG References: <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk> <200302022006.PAA25355@valiant.cnchost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022006.PAA25355@valiant.cnchost.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 12:06:56PM -0800, Bakul Shah wrote: > > Maybe I missed something, but why cannot you just rip random() from libc, > > rename it to bakul_shah_random() and use that in your testing code? Then you > > are safe from any changes to random(), and indeed have a portable RNG if your > > host OS changes. > > Yes, *I* can do it but I don't work at every place they do > simulation! If in the extreme you are suggesting that a > portable application shouldn't rely on any OS features, you > are of course right but that kind of makes mockery of any > claims of compatibility. The point of compatibility is to > not break interfaces unless there is a significant benefit. If your program depends on the exact algorithm used by random() (or rand() for that matter) to not change between OS updates (not to mention between different systems) then that is a bug in your program. The interface will not change just because a different algorithm is used. The exact sequence of random numbers produced is not a part of the interface but rather an implementation detail that portable programs should not depend on. It might also be worth noting that if a good PRNG is needed then one should not use random() or rand() since on some systems their output is not very random. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:52:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DEB437B401; Sun, 2 Feb 2003 12:52:56 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56FE243F85; Sun, 2 Feb 2003 12:52:55 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id C287167C6F; Sun, 2 Feb 2003 12:52:54 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 9E4E2963; Sun, 2 Feb 2003 12:52:54 -0800 (PST) Date: Sun, 2 Feb 2003 12:52:54 -0800 From: Kris Kennaway To: Bakul Shah Cc: Mark Murray , "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202205254.GC74654@rot13.obsecurity.org> References: <200302021908.h12J8laX050048@grimreaper.grondar.org> <200302021955.OAA20742@glatton.cnchost.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline In-Reply-To: <200302021955.OAA20742@glatton.cnchost.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 11:55:25AM -0800, Bakul Shah wrote: > > RC4 is _utterly_ repeatable, given a particular seed/key. >=20 > May be but it is not the same as the current random(). Also, > I know you will want to change it the next time some one > points out a problem with RC4. Since you keep talking about random(), I must conclude you're knee-jerking, since we're not discussing that function. Please stay on-topic :-) Kris --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PYUmWry0BWjoQKURAgMMAJ9eNYggBWSpDJsxLXNYENYrBr4eYACfb97R sWt50YswEoHAGwSPFCxqyJw= =CA/g -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:55: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B61437B401 for ; Sun, 2 Feb 2003 12:55:01 -0800 (PST) Received: from tonnant.cnchost.com (tonnant.concentric.net [207.155.248.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDA7343F85 for ; Sun, 2 Feb 2003 12:55:00 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by tonnant.cnchost.com id PAA23917; Sun, 2 Feb 2003 15:54:58 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302022054.PAA23917@tonnant.cnchost.com> To: Mark Murray Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 20:15:05 GMT." <200302022015.h12KF5aX050851@grimreaper.grondar.org> Date: Sun, 02 Feb 2003 12:54:58 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Would you prefer that we defined random() as > > int > random(void) > { > static int retval = 0; > > return retval++; > } No because that would be a change from the exisiting random() behavior :-) As I indicated in my earlier email random() is not broken, srand() is (as corrected by Andrey Chernov) so you won't be fixing any bugs by changing random(). If you guys had left the original rand() alone we wouldn't be discussing any of this.... random(3) also provides an initstate() call which presumably allows you to change the amount of randomnes. So here is another suggestion: why not fold your algorithm change in that function? For example, initstate(seed, "RC4", 3); changes the algorithm to RC4. Yes, this is a change in the interface but one I am sure most people can live with. > > There is an expectation that on subsequent releases of the > > same OS things continue to work. > > Where is that expectation guaranteed? > Where is that expectation supported? This expectation is a reasonable one. Most commerical OSes do a good job of maintaining compatibility. IRIX certainly did a pretty good job of it. FreeBSD also does a pretty good job on the whole. > The two are related topics. Yes, but not the same. > Consider the (joking reference to) "elephant-free biology". :-) The way things are going we will be there pretty soon :-( To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 12:57:56 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB3DE37B401; Sun, 2 Feb 2003 12:57:55 -0800 (PST) Received: from holly.dyndns.org (adsl-208-191-149-232.dsl.hstntx.swbell.net [208.191.149.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id E437043F43; Sun, 2 Feb 2003 12:57:54 -0800 (PST) (envelope-from chris@holly.dyndns.org) Received: (from chris@localhost) by holly.dyndns.org (8.12.6/8.11.6) id h12L0slK052153; Sun, 2 Feb 2003 15:00:54 -0600 (CST) (envelope-from chris) Date: Sun, 2 Feb 2003 15:00:54 -0600 From: Chris Costello To: Soeren Schmidt Cc: hackers@FreeBSD.org, current@FreeBSD.org Subject: Re: Request for info from SiS chipset owners Message-ID: <20030202210054.GG40801@holly.machined.net> Reply-To: chris@FreeBSD.org References: <200302011102.h11B25xk077482@spider.deepcore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302011102.h11B25xk077482@spider.deepcore.dk> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG $ pciconf -l chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x07351039 rev=0x01 hdr=0x00 pcib2@pci0:1:0: class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01 isab0@pci0:2:0: class=0x060100 card=0x00000000 chip=0x00081039 rev=0x00 hdr=0x00 ohci0@pci0:2:2: class=0x0c0310 card=0x0a141019 chip=0x70011039 rev=0x07 hdr=0x00 ohci1@pci0:2:3: class=0x0c0310 card=0x0a141019 chip=0x70011039 rev=0x07 hdr=0x00 atapci0@pci0:2:5: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00 pcm0@pci0:2:7: class=0x040100 card=0x030013f6 chip=0x70121039 rev=0xa0 hdr=0x00 sis0@pci0:3:0: class=0x020000 card=0x0a141019 chip=0x09001039 rev=0x90 hdr=0x00 ed0@pci0:13:0: class=0x020000 card=0x802910ec chip=0x802910ec rev=0x00 hdr=0x00 none0@pci1:0:0: class=0x030000 card=0x03001039 chip=0x03001039 rev=0x90 hdr=0x00 -- Chris Costello FreeBSD Project http://www.FreeBSD.org/ TrustedBSD Project http://www.TrustedBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13: 0:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E47B537B401 for ; Sun, 2 Feb 2003 13:00:16 -0800 (PST) Received: from tonnant.cnchost.com (tonnant.concentric.net [207.155.248.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 844FB43F3F for ; Sun, 2 Feb 2003 13:00:16 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by tonnant.cnchost.com id PAA26422; Sun, 2 Feb 2003 15:57:45 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302022057.PAA26422@tonnant.cnchost.com> To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 12:52:54 PST." <20030202205254.GC74654@rot13.obsecurity.org> Date: Sun, 02 Feb 2003 12:57:45 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Since you keep talking about random(), I must conclude you're > knee-jerking, since we're not discussing that function. Please stay > on-topic :-) Read through the thread. In particular see Mark's message <200302021532.h12FWWaX047973@grimreaper.grondar.org> where he says Good point. We can re-implement random() internally with arc4rand(). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13: 2:12 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 574AD37B401 for ; Sun, 2 Feb 2003 13:02:11 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74D4043F93 for ; Sun, 2 Feb 2003 13:02:10 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12L1vLf080076; Sun, 2 Feb 2003 21:01:58 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12L1vkg080075; Sun, 2 Feb 2003 21:01:57 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12Kx8aX051383; Sun, 2 Feb 2003 22:59:08 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022059.h12Kx8aX051383@grimreaper.grondar.org> To: Bakul Shah Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 12:39:50 PST." <200302022039.PAA13951@warspite.cnchost.com> Date: Sun, 02 Feb 2003 20:59:08 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > Note that it is rand() that is broken, not random() as can be > seen by modifying Kris Kennaways' test so I don't see why > Mark Murray was talking about changing it in the first place. rand(3) says: STANDARDS The rand() and srand() functions conform to ISO/IEC 9899:1990 (``ISO C89''). rand(3) does not specify an exact algorithm (the man page does, but not the standard). random(3) has no such standardisation. Any code that assumes particular constants is _broken_[1]. If it has been recompiled or if it is dynamically linked against a shared library other than the one it was tested aginst, different results are a _feature_. M [1] no nitpicking on INT_MAX, please. -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13: 5: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CECE137B401 for ; Sun, 2 Feb 2003 13:05:01 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34CB143E4A for ; Sun, 2 Feb 2003 13:05:01 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 993F367C6F; Sun, 2 Feb 2003 13:05:00 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 75813899; Sun, 2 Feb 2003 13:05:00 -0800 (PST) Date: Sun, 2 Feb 2003 13:05:00 -0800 From: Kris Kennaway To: Bakul Shah Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202210500.GD74654@rot13.obsecurity.org> References: <20030202205254.GC74654@rot13.obsecurity.org> <200302022057.PAA26422@tonnant.cnchost.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/3yNEOqWowh/8j+e" Content-Disposition: inline In-Reply-To: <200302022057.PAA26422@tonnant.cnchost.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --/3yNEOqWowh/8j+e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 12:57:45PM -0800, Bakul Shah wrote: > > Since you keep talking about random(), I must conclude you're > > knee-jerking, since we're not discussing that function. Please stay > > on-topic :-) >=20 > Read through the thread. In particular see Mark's message > <200302021532.h12FWWaX047973@grimreaper.grondar.org> where he > says >=20 > Good point. We can re-implement random() internally with arc4rand(). I assume he transposed and meant "rand() internally with arc4random()". Kris --/3yNEOqWowh/8j+e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PYf7Wry0BWjoQKURAtWrAJ4hp2reGVH35lbuCq7l1/KWc7u2qwCg4CPh WQt+2Z0BSbU4i9m8MmyLF98= =PPcr -----END PGP SIGNATURE----- --/3yNEOqWowh/8j+e-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13: 6:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E767837B401; Sun, 2 Feb 2003 13:06:09 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3178F43F43; Sun, 2 Feb 2003 13:06:09 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id CD8E867C85; Sun, 2 Feb 2003 13:06:08 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id B2445E3B; Sun, 2 Feb 2003 13:06:08 -0800 (PST) Date: Sun, 2 Feb 2003 13:06:08 -0800 From: Kris Kennaway To: "Andrey A. Chernov" Cc: Tim Robbins , Kris Kennaway , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030202210608.GA74910@rot13.obsecurity.org> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> <20030202141605.GA64157@nagual.pp.ru> <20030202151049.GA64866@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <20030202151049.GA64866@nagual.pp.ru> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 06:10:49PM +0300, Andrey A. Chernov wrote: > So far, this is final variant for 0 problem fixing ready for committing.= =20 > Any objections? What tests have you run on this code to ensure it doesn't still have strange problems? Kris --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PYhAWry0BWjoQKURAitmAJ4srONtiCDhCEhyoQm6DxjZrpaH1ACgtQxU cpK9WfwuZ2/hLhqbytrjWlo= =8nZH -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13: 9:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A44337B401 for ; Sun, 2 Feb 2003 13:09:26 -0800 (PST) Received: from msgbas2x.cos.agilent.com (msgbas2x.cos.agilent.com [192.25.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EAC243E4A for ; Sun, 2 Feb 2003 13:09:25 -0800 (PST) (envelope-from darrylo@soco.agilent.com) Received: from relcos2.cos.agilent.com (relcos2.cos.agilent.com [130.29.152.237]) by msgbas2x.cos.agilent.com (Postfix) with ESMTP id DC402274A for ; Sun, 2 Feb 2003 14:09:24 -0700 (MST) Received: from mina.soco.agilent.com (mina.soco.agilent.com [141.121.54.157]) by relcos2.cos.agilent.com (Postfix) with ESMTP id 8F2A876A for ; Sun, 2 Feb 2003 14:09:24 -0700 (MST) Received: from mina.soco.agilent.com (darrylo@localhost [127.0.0.1]) by mina.soco.agilent.com (8.9.3 (PHNE_25184)/8.9.3 SMKit7.1.1_Agilent) with ESMTP id NAA05075 for ; Sun, 2 Feb 2003 13:09:24 -0800 (PST) Message-Id: <200302022109.NAA05075@mina.soco.agilent.com> To: freebsd-current@freebsd.org Subject: gbde & vnode md devices? Reply-To: Darryl Okahata Mime-Version: 1.0 (generated by tm-edit 1.7) Content-Type: multipart/mixed; boundary="Multipart_Sun_Feb__2_13:09:23_2003-1" Content-Transfer-Encoding: 7bit Date: Sun, 02 Feb 2003 13:09:23 -0800 From: Darryl Okahata Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Multipart_Sun_Feb__2_13:09:23_2003-1 Content-Type: text/plain; charset=US-ASCII Has anyone gotten gbde working with vnode md devices (file-based)? I'm trying to create a gbde-managed device from a file, and I keep on getting various ioctl() failures. See attached log file. Thanks, -- Darryl Okahata darrylo@soco.agilent.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Agilent Technologies, or of the little green men that have been following him all day. --Multipart_Sun_Feb__2_13:09:23_2003-1 Content-Type: text/plain; charset=US-ASCII Content-Disposition: attachment; filename="gbde.log" Content-Transfer-Encoding: quoted-printable # # First attempt: use entire md device for gbde # su-2.05b# cd /tmp su-2.05b# dd if=3D/dev/zero bs=3D1k count=3D16k of=3Dfoo 16384+0 records in 16384+0 records out 16777216 bytes transferred in 2.256249 secs (7435888 bytes/sec) su-2.05b# ll foo* -rw-r--r-- 1 root wheel 16777216 Feb 2 12:06 foo su-2.05b# mdconfig -a -t vnode -f /tmp/foo md0 su-2.05b# ll /dev/md* crw-r----- 1 root operator 4, 17 Jan 27 22:50 /dev/md0 crw------- 1 root wheel 95, 0xffff00ff Jan 27 22:50 /dev/mdctl su-2.05b# gbde init /dev/md0 -L /tmp/foo.lock Enter new passphrase: Reenter new passphrase: Wrote key 0 at 1400320 su-2.05b# gbde attach md0 -l /tmp/foo.lock Enter passphrase: gbde: ioctl(GEOMCONFIGGEOM): Invalid argument # # Second attempt: use first slice for gbde # su-2.05b# mdconfig -d -u md0 su-2.05b# rm foo* su-2.05b# dd if=3D/dev/zero bs=3D1k count=3D16k of=3Dfoo 16384+0 records in 16384+0 records out 16777216 bytes transferred in 2.365870 secs (7091352 bytes/sec) su-2.05b# ll foo -rw-r--r-- 1 root wheel 16777216 Feb 2 12:10 foo su-2.05b# mdconfig -a -t vnode -f /tmp/foo md0 su-2.05b# fdisk -I md0 ******* Working on device /dev/md0 ******* fdisk: invalid fdisk partition table found su-2.05b# fdisk md0 ******* Working on device /dev/md0 ******* parameters extracted from in-core disklabel are: cylinders=3D520 heads=3D1 sectors/track=3D63 (63 blks/cyl) parameters to be used for BIOS calculations are: cylinders=3D520 heads=3D1 sectors/track=3D63 (63 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 32697 (15 Meg), flag 80 (active) beg: cyl 1/ head 0/ sector 1; end: cyl 519/ head 0/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: su-2.05b# gbde init /dev/md0s1 -L /tmp/foo.lock Enter new passphrase: Reenter new passphrase: Wrote key 0 at 312320 su-2.05b# gbde attach md0s1 -l /tmp/foo.lock Enter passphrase: gbde: ioctl(GEOMCONFIGGEOM): Invalid argument # # Third attempt: use a partition for gbde # su-2.05b# mdconfig -d -u md0 su-2.05b# rm foo* su-2.05b# dd if=3D/dev/zero bs=3D1k count=3D16k of=3Dfoo 16384+0 records in 16384+0 records out 16777216 bytes transferred in 2.267865 secs (7397802 bytes/sec) su-2.05b# mdconfig -a -t vnode -f /tmp/foo md0 su-2.05b# fdisk -I md0 ******* Working on device /dev/md0 ******* fdisk: invalid fdisk partition table found su-2.05b# disklabel md0s1 disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device --Multipart_Sun_Feb__2_13:09:23_2003-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:12: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27CA737B401 for ; Sun, 2 Feb 2003 13:11:58 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4161443F43 for ; Sun, 2 Feb 2003 13:11:57 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12LBsLf080157; Sun, 2 Feb 2003 21:11:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12LBsXK080156; Sun, 2 Feb 2003 21:11:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12L6naX051530; Sun, 2 Feb 2003 23:06:49 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022106.h12L6naX051530@grimreaper.grondar.org> To: Bakul Shah Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 12:54:58 PST." <200302022054.PAA23917@tonnant.cnchost.com> Date: Sun, 02 Feb 2003 21:06:49 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > random(3) also provides an initstate() call which presumably > allows you to change the amount of randomnes. So here is > another suggestion: why not fold your algorithm change in > that function? For example, > > initstate(seed, "RC4", 3); > > changes the algorithm to RC4. Yes, this is a change in the > interface but one I am sure most people can live with. No. Evil interface change. #ifdef hell while programs try to figure out OS differences. If an os provides a function, that function should be as good as possible while not breaking standards. We have lousy functions like gets(3), that we have to keep because the standards say we do and programmers keep on writing code that uses them. rand() and random() have a docimented interface, and empirical programmer expectations about their outputs simply result in bad code. > > > There is an expectation that on subsequent releases of the > > > same OS things continue to work. > > > > Where is that expectation guaranteed? > > Where is that expectation supported? > > This expectation is a reasonable one. Most commerical OSes > do a good job of maintaining compatibility. IRIX certainly > did a pretty good job of it. FreeBSD also does a pretty good > job on the whole. "Reasonable" is an opinion. It is not shared by me. :-) Irix was well known for its bugs. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:13: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F0DE37B401; Sun, 2 Feb 2003 13:13:02 -0800 (PST) Received: from 12-234-22-23.client.attbi.com (12-234-22-23.client.attbi.com [12.234.22.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 971A343E4A; Sun, 2 Feb 2003 13:13:01 -0800 (PST) (envelope-from DougB@FreeBSD.org) Received: from slave.gorean.org (k4n8pkh5tgrqlw2a@slave.gorean.org [10.0.0.1]) by 12-234-22-23.client.attbi.com (8.12.6/8.12.6) with ESMTP id h12LCtfS082956; Sun, 2 Feb 2003 13:12:55 -0800 (PST) (envelope-from DougB@FreeBSD.org) Date: Sun, 2 Feb 2003 13:12:55 -0800 (PST) From: Doug Barton To: "Andrey A. Chernov" Cc: Tim Robbins , Kris Kennaway , current@FreeBSD.org Subject: Re: Final fix for 0 problem (was Re: rand() is broken) In-Reply-To: <20030202151049.GA64866@nagual.pp.ru> Message-ID: <20030202131025.A79739@12-234-22-23.pyvrag.nggov.pbz> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> <20030202141605.GA64157@nagual.pp.ru> <20030202151049.GA64866@nagual.pp.ru> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2 Feb 2003, Andrey A. Chernov wrote: > So far, this is final variant for 0 problem fixing ready for committing. > Any objections? Several people, including myself have asked for A) Enough discussion to reach a consensus, and B) Thorough testing of the agreed upon solution. You have allowed us neither in the 17 minutes you waited between posting this patch and committing it. If I had to guess, I'd say that you're eager to fix the mistake you made, and I suppose that's commendable. However, it's been broken for two years, it can wait another couple days for a more thorough fix. Doug -- If it's moving, encrypt it. If it's not moving, encrypt it till it moves, then encrypt it some more. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:18:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81DAA37B401 for ; Sun, 2 Feb 2003 13:18:17 -0800 (PST) Received: from a.smtp.serv.lythe.org.uk (pc4-oxfd1-6-cust225.oxfd.cable.ntl.com [62.254.141.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76D0243F43 for ; Sun, 2 Feb 2003 13:18:16 -0800 (PST) (envelope-from ejb@insolence.lythe.org.uk) Received: from insolence.lythe.org.uk (ejb@localhost [IPv6:::1]) by a.smtp.serv.lythe.org.uk (8.12.6/8.12.6) with ESMTP id h12LHn1a071486; Sun, 2 Feb 2003 21:17:49 GMT (envelope-from ejb@insolence.lythe.org.uk) Received: by insolence.lythe.org.uk (8.12.6/8.12.6/Submit) id h12LHnqG071480; Sun, 2 Feb 2003 21:17:49 GMT (envelope-from ejb) From: Edward Brocklesby To: Bakul Shah Subject: Re: rand() is broken Date: Sun, 2 Feb 2003 21:17:49 +0000 User-Agent: KMail/1.5 Cc: current@FreeBSD.ORG References: <200302022039.PAA13951@warspite.cnchost.com> In-Reply-To: <200302022039.PAA13951@warspite.cnchost.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302022117.49248.ejb@lythe.org.uk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 02 February 2003 8:39 pm, Bakul Shah wrote: > What I am suggesting is to leave random() as it is and > guarantee its behavior won't change and add cryto_random() or > whatever, and indicate it *may* change. Where was it indicated that random() wouldn't change? > Note that it is rand() that is broken, not random() as can be > seen by modifying Kris Kennaways' test so I don't see why > Mark Murray was talking about changing it in the first place. rand()/random() -- either way, the same thing applies, it just happens you use random() rather than rand(). (I see no problem to changing either; do you object to this rand() change on the same basis?) Regards, Edward. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:19:55 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCA7937B401 for ; Sun, 2 Feb 2003 13:19:54 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 017C843F75 for ; Sun, 2 Feb 2003 13:19:54 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12LJo4W074237; Sun, 2 Feb 2003 22:19:51 +0100 (CET) (envelope-from phk@freebsd.org) To: Darryl Okahata Cc: freebsd-current@freebsd.org Subject: Re: gbde & vnode md devices? From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 13:09:23 PST." <200302022109.NAA05075@mina.soco.agilent.com> Date: Sun, 02 Feb 2003 22:19:50 +0100 Message-ID: <74236.1044220790@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302022109.NAA05075@mina.soco.agilent.com>, Darryl Okahata writes : >su-2.05b# gbde init /dev/md0 -L /tmp/foo.lock Don't use the -L and -l arguments unless you have to. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:23:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAF2B37B401 for ; Sun, 2 Feb 2003 13:23:41 -0800 (PST) Received: from 12-234-22-23.client.attbi.com (12-234-22-23.client.attbi.com [12.234.22.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 246D043F9B for ; Sun, 2 Feb 2003 13:23:41 -0800 (PST) (envelope-from DougB@FreeBSD.org) Received: from slave.gorean.org (5zngsercth7t71sz@slave.gorean.org [10.0.0.1]) by 12-234-22-23.client.attbi.com (8.12.6/8.12.6) with ESMTP id h12LNcfS083081; Sun, 2 Feb 2003 13:23:38 -0800 (PST) (envelope-from DougB@FreeBSD.org) Date: Sun, 2 Feb 2003 13:23:38 -0800 (PST) From: Doug Barton To: Bakul Shah Cc: current@FreeBSD.org Subject: Re: rand() is broken In-Reply-To: <200302022006.PAA25355@valiant.cnchost.com> Message-ID: <20030202131437.V79739@12-234-22-23.pyvrag.nggov.pbz> References: <200302022006.PAA25355@valiant.cnchost.com> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2 Feb 2003, Bakul Shah wrote: > Yes, *I* can do it but I don't work at every place they do > simulation! Well the code is still going to be available in cvs. It's not like we're going to magically make it disappear. :) > If in the extreme you are suggesting that a > portable application shouldn't rely on any OS features, you > are of course right but that kind of makes mockery of any > claims of compatibility. The point of compatibility is to > not break interfaces unless there is a significant benefit. I can think of one significant benefit... I had noticed that my perl script to pick random windowmaker themes (which uses rand()) seemed to be picking the same themes over and over again. Now I know why. :) I had to create a "last seen" list to artificially increase the "randomness." Oh wait, TWO benefits... xscreensaver is having the same problem. Seriously though, I think the (vast?) majority of our userbase expects random (or even pseudo-random) numbers to be, well, random. For a sufficiently naive definition of random anyway. While I can certainly sympathize with your needs here, with all due respect I think it's an edge case, and one that could be handled with a little customization on your part. Even if you didn't want a code solution, you could spool off BIGNUM "random" numbers from whatever source you choose and save them to disk so that you could get 100% repeatability. Your needs have more than one solution, but I don't think that depending on rand[om]() not to be random is a good one. Doug -- If it's moving, encrypt it. If it's not moving, encrypt it till it moves, then encrypt it some more. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:27: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DA9937B401 for ; Sun, 2 Feb 2003 13:26:59 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A98443F3F for ; Sun, 2 Feb 2003 13:26:58 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12LQuLf080271; Sun, 2 Feb 2003 21:26:56 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12LQtj1080270; Sun, 2 Feb 2003 21:26:55 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12LNhaX051805; Sun, 2 Feb 2003 23:23:43 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022123.h12LNhaX051805@grimreaper.grondar.org> To: Bakul Shah Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 12:57:45 PST." <200302022057.PAA26422@tonnant.cnchost.com> Date: Sun, 02 Feb 2003 21:23:43 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > > Since you keep talking about random(), I must conclude you're > > knee-jerking, since we're not discussing that function. Please stay > > on-topic :-) > > Read through the thread. In particular see Mark's message > <200302021532.h12FWWaX047973@grimreaper.grondar.org> where he > says > > Good point. We can re-implement random() internally with arc4rand(). Quote it in context, please. That was random(9). KERNEL random(). However, the argument applies equally well to rand(3) and random(3). M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:31:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C10537B401; Sun, 2 Feb 2003 13:31:14 -0800 (PST) Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA4BE43F93; Sun, 2 Feb 2003 13:31:12 -0800 (PST) (envelope-from darrylo@soco.agilent.com) Received: from relcos2.cos.agilent.com (relcos2.cos.agilent.com [130.29.152.237]) by msgbas1x.cos.agilent.com (Postfix) with ESMTP id 8AEC0157E8; Sun, 2 Feb 2003 14:31:05 -0700 (MST) Received: from mina.soco.agilent.com (mina.soco.agilent.com [141.121.54.157]) by relcos2.cos.agilent.com (Postfix) with ESMTP id 5C68F1A; Sun, 2 Feb 2003 14:30:59 -0700 (MST) Received: from mina.soco.agilent.com (darrylo@localhost [127.0.0.1]) by mina.soco.agilent.com (8.9.3 (PHNE_25184)/8.9.3 SMKit7.1.1_Agilent) with ESMTP id NAA05422; Sun, 2 Feb 2003 13:30:53 -0800 (PST) Message-Id: <200302022130.NAA05422@mina.soco.agilent.com> To: phk@freebsd.org Cc: freebsd-current@freebsd.org Subject: Re: gbde & vnode md devices? Reply-To: Darryl Okahata In-Reply-To: Your message of "Sun, 02 Feb 2003 22:19:50 +0100." <74236.1044220790@critter.freebsd.dk> Mime-Version: 1.0 (generated by tm-edit 1.7) Content-Type: text/plain; charset=US-ASCII Date: Sun, 02 Feb 2003 13:30:52 -0800 From: Darryl Okahata Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk@freebsd.org wrote: > >su-2.05b# gbde init /dev/md0 -L /tmp/foo.lock > > Don't use the -L and -l arguments unless you have to. Thanks, but that was what I originally tried, and I still got the "gbde: ioctl(GEOMCONFIGGEOM): Invalid argument" error. In other words, I get the same error regardless of whether or not I use the -L/-l options. [ Sorry for being unclear, but I originally tried gbde(8) without -L or -l. I switched to using -L and -l because that's what the man page showed, and I assumed that the man page knew something I didn't. ] -- Darryl Okahata darrylo@soco.agilent.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Agilent Technologies, or of the little green men that have been following him all day. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:32:20 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E262A37B405; Sun, 2 Feb 2003 13:32:19 -0800 (PST) Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBAD343F3F; Sun, 2 Feb 2003 13:32:18 -0800 (PST) (envelope-from darrylo@soco.agilent.com) Received: from relcos2.cos.agilent.com (relcos2.cos.agilent.com [130.29.152.237]) by msgbas1x.cos.agilent.com (Postfix) with ESMTP id 92499157DD; Sun, 2 Feb 2003 14:32:17 -0700 (MST) Received: from mina.soco.agilent.com (mina.soco.agilent.com [141.121.54.157]) by relcos2.cos.agilent.com (Postfix) with ESMTP id 665A51C; Sun, 2 Feb 2003 14:32:15 -0700 (MST) Received: from mina.soco.agilent.com (darrylo@localhost [127.0.0.1]) by mina.soco.agilent.com (8.9.3 (PHNE_25184)/8.9.3 SMKit7.1.1_Agilent) with ESMTP id NAA05465; Sun, 2 Feb 2003 13:32:14 -0800 (PST) Message-Id: <200302022132.NAA05465@mina.soco.agilent.com> To: phk@FreeBSD.ORG Cc: freebsd-current@FreeBSD.ORG Subject: Re: gbde & vnode md devices? Reply-To: Darryl Okahata In-Reply-To: Your message of "Sun, 02 Feb 2003 22:19:50 +0100." <74236.1044220790@critter.freebsd.dk> Mime-Version: 1.0 (generated by tm-edit 1.7) Content-Type: text/plain; charset=US-ASCII Date: Sun, 02 Feb 2003 13:32:14 -0800 From: Darryl Okahata Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sorry, I'm being forgetful: I'm getting these errors under 5.0-RELEASE. -- Darryl Okahata darrylo@soco.agilent.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Agilent Technologies, or of the little green men that have been following him all day. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:35:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2400A37B401 for ; Sun, 2 Feb 2003 13:35:31 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 398B843F43 for ; Sun, 2 Feb 2003 13:35:30 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12LZS4W077128; Sun, 2 Feb 2003 22:35:29 +0100 (CET) (envelope-from phk@freebsd.org) To: Darryl Okahata Cc: freebsd-current@freebsd.org Subject: Re: gbde & vnode md devices? From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 13:30:52 PST." <200302022130.NAA05422@mina.soco.agilent.com> Date: Sun, 02 Feb 2003 22:35:28 +0100 Message-ID: <77127.1044221728@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302022130.NAA05422@mina.soco.agilent.com>, Darryl Okahata writes : >phk@freebsd.org wrote: > >> >su-2.05b# gbde init /dev/md0 -L /tmp/foo.lock >> >> Don't use the -L and -l arguments unless you have to. > > Thanks, but that was what I originally tried, and I still got the >"gbde: ioctl(GEOMCONFIGGEOM): Invalid argument" error. In other words, >I get the same error regardless of whether or not I use the -L/-l >options. Can you please try this: mdconfig -a -t malloc -s 4m -u 75 gbde init /dev/md75 gbde attach md75 -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:41:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1685637B405; Sun, 2 Feb 2003 13:41:13 -0800 (PST) Received: from msgbas2x.cos.agilent.com (msgbas2x.cos.agilent.com [192.25.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA4A743FAF; Sun, 2 Feb 2003 13:41:11 -0800 (PST) (envelope-from darrylo@soco.agilent.com) Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas2x.cos.agilent.com (Postfix) with ESMTP id 62A082418; Sun, 2 Feb 2003 14:41:11 -0700 (MST) Received: from mina.soco.agilent.com (mina.soco.agilent.com [141.121.54.157]) by relcos1.cos.agilent.com (Postfix) with ESMTP id 04573365; Sun, 2 Feb 2003 14:41:11 -0700 (MST) Received: from mina.soco.agilent.com (darrylo@localhost [127.0.0.1]) by mina.soco.agilent.com (8.9.3 (PHNE_25184)/8.9.3 SMKit7.1.1_Agilent) with ESMTP id NAA05629; Sun, 2 Feb 2003 13:41:10 -0800 (PST) Message-Id: <200302022141.NAA05629@mina.soco.agilent.com> To: phk@freebsd.org Cc: freebsd-current@freebsd.org Subject: Re: gbde & vnode md devices? Reply-To: Darryl Okahata In-Reply-To: Your message of "Sun, 02 Feb 2003 22:35:28 +0100." <77127.1044221728@critter.freebsd.dk> Mime-Version: 1.0 (generated by tm-edit 1.7) Content-Type: text/plain; charset=US-ASCII Date: Sun, 02 Feb 2003 13:41:09 -0800 From: Darryl Okahata Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk@freebsd.org wrote: > Can you please try this: > > mdconfig -a -t malloc -s 4m -u 75 > gbde init /dev/md75 > gbde attach md75 Nope, exact same error. -- Darryl Okahata darrylo@soco.agilent.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Agilent Technologies, or of the little green men that have been following him all day. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:46:58 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 515A037B401 for ; Sun, 2 Feb 2003 13:46:57 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 665C743F3F for ; Sun, 2 Feb 2003 13:46:56 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12Lkt4W079171; Sun, 2 Feb 2003 22:46:55 +0100 (CET) (envelope-from phk@freebsd.org) To: Darryl Okahata Cc: freebsd-current@freebsd.org Subject: Re: gbde & vnode md devices? From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 13:41:09 PST." <200302022141.NAA05629@mina.soco.agilent.com> Date: Sun, 02 Feb 2003 22:46:55 +0100 Message-ID: <79170.1044222415@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302022141.NAA05629@mina.soco.agilent.com>, Darryl Okahata writes : >phk@freebsd.org wrote: > >> Can you please try this: >> >> mdconfig -a -t malloc -s 4m -u 75 >> gbde init /dev/md75 >> gbde attach md75 > > Nope, exact same error. That is weird, it works like a charm here. syv# mdconfig -a -t malloc -s 4m -u 75 syv# gbde init /dev/md75 Enter new passphrase: Reenter new passphrase: Wrote key 0 at 814080 syv# gbde attach md75 Enter passphrase: syv# gbde detach md75 Say, do you actually have the GEOM_BDE option in your kernel ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:50: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC6C837B401; Sun, 2 Feb 2003 13:50:05 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84B3643F9B; Sun, 2 Feb 2003 13:49:47 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Lnkd6068437; Mon, 3 Feb 2003 00:49:46 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12LnkAv068436; Mon, 3 Feb 2003 00:49:46 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 00:49:46 +0300 From: "Andrey A. Chernov" To: Doug Barton Cc: Tim Robbins , Kris Kennaway , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030202214946.GA68356@nagual.pp.ru> References: <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> <20030202141605.GA64157@nagual.pp.ru> <20030202151049.GA64866@nagual.pp.ru> <20030202131025.A79739@12-234-22-23.pyvrag.nggov.pbz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202131025.A79739@12-234-22-23.pyvrag.nggov.pbz> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 13:12:55 -0800, Doug Barton wrote: > > If I had to guess, I'd say that you're eager to fix the mistake you made, > and I suppose that's commendable. However, it's been broken for two years, > it can wait another couple days for a more thorough fix. If you talk about 0 problem, this mistake is not mine, but inherited from BSD developers who made it in the first place in the kernel. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:55:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EF2D37B401; Sun, 2 Feb 2003 13:55:42 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11B5F43F3F; Sun, 2 Feb 2003 13:55:41 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Lted6068485; Mon, 3 Feb 2003 00:55:40 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12LteDn068484; Mon, 3 Feb 2003 00:55:40 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 00:55:40 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030202215539.GB68356@nagual.pp.ru> References: <20030202090422.GA59750@nagual.pp.ru> <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> <20030202141605.GA64157@nagual.pp.ru> <20030202151049.GA64866@nagual.pp.ru> <20030202210608.GA74910@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <20030202210608.GA74910@rot13.obsecurity.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 13:06:08 -0800, Kris Kennaway wrote: > On Sun, Feb 02, 2003 at 06:10:49PM +0300, Andrey A. Chernov wrote: > > So far, this is final variant for 0 problem fixing ready for committing= .=20 > > Any objections? >=20 > What tests have you run on this code to ensure it doesn't still have > strange problems? Uhm, I don't understand you well here. Any code can have strange problems, nobody can be sure. Lets concentrate to this particular problem which I call 0 problem. 0 seed is illegal by algorithm desing and BSD developers try to made workaround, but their attempt was unsuccessful with result you describe. Now successfull attempt comes. It not add any new bugs, because value 0 simple mapped to another value (which could be any, but I choose to not touch lower ones), which make generator non-stick at 0 again. --=20 Andrey A. Chernov http://ache.pp.ru/ --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPj2T2+JgpPLZnQjrAQGbXQP/ZjsjYO8KnJvnugb6mD7VemCLxaDZTlZh GWiMHjWmXPyRloNJUbC6Pc8P7sCocG2ZxNB9hVCrG9rBC5aPAh04CXZyxgqVcd8s 9oM89HDzBFNFAjMlewGBOvfCpI8k386VBl7EFcsfe42oIEIGEEDuz1Ers8LtNnIt IPFy0Fxl8bU= =Hk/5 -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 13:59:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 827BE37B401 for ; Sun, 2 Feb 2003 13:59:32 -0800 (PST) Received: from wellington.cnchost.com (wellington.concentric.net [207.155.252.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 303DE43F79 for ; Sun, 2 Feb 2003 13:59:32 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by wellington.cnchost.com id QAA13933; Sun, 2 Feb 2003 16:59:25 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302022159.QAA13933@wellington.cnchost.com> To: Mark Murray Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 21:06:49 GMT." <200302022106.h12L6naX051530@grimreaper.grondar.org> Date: Sun, 02 Feb 2003 13:59:25 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > another suggestion: why not fold your algorithm change in > > that function? For example, > > > > initstate(seed, "RC4", 3); > > > > changes the algorithm to RC4. Yes, this is a change in the > > interface but one I am sure most people can live with. > > No. Evil interface change. #ifdef hell while programs try to > figure out OS differences. How so? This or a similar change is upward compatible in that the existing behavior is left unchanged and it gives you a way to replace the algorithm. The basic issue is just what is the expected and (implicitly) promised behavior of random(). AFAIK all random(3) implementations in various versions of Unix come from Earl's original 4.2BSD implementation so in my view the _expected_ behavior is to see the _exact_ same sequence starting from a given seed. This function is called "random()" but it is equivalent to a mathematical function which must provide the same sequence for the exact same input. You and a number of other people are saying that the exact sequence is *not* promised so you are free to change the algortithm as long as the statistical distribution is uniform. Earl chose to name his new implementation random() [even though clearly he was replacing rand(3)] probably to not break any existing scripts. In my view any further behavior change should either use a new name or make an upward compatible change. Now the question is whether perl uses system provided random() or rand() or its own since perl is used extensively in ASIC verification. Any way, this is my last email on this subject since neither one of us is convincing the other. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14: 0:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F30037B401; Sun, 2 Feb 2003 14:00:27 -0800 (PST) Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC05D43F9B; Sun, 2 Feb 2003 14:00:26 -0800 (PST) (envelope-from darrylo@soco.agilent.com) Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas1x.cos.agilent.com (Postfix) with ESMTP id BCB1C15A80; Sun, 2 Feb 2003 15:00:25 -0700 (MST) Received: from mina.soco.agilent.com (mina.soco.agilent.com [141.121.54.157]) by relcos1.cos.agilent.com (Postfix) with ESMTP id 570D15AB; Sun, 2 Feb 2003 15:00:24 -0700 (MST) Received: from mina.soco.agilent.com (darrylo@localhost [127.0.0.1]) by mina.soco.agilent.com (8.9.3 (PHNE_25184)/8.9.3 SMKit7.1.1_Agilent) with ESMTP id OAA05982; Sun, 2 Feb 2003 14:00:23 -0800 (PST) Message-Id: <200302022200.OAA05982@mina.soco.agilent.com> To: phk@freebsd.org Cc: freebsd-current@freebsd.org Subject: Re: gbde & vnode md devices? Reply-To: Darryl Okahata In-Reply-To: Your message of "Sun, 02 Feb 2003 22:46:55 +0100." <79170.1044222415@critter.freebsd.dk> Mime-Version: 1.0 (generated by tm-edit 1.7) Content-Type: text/plain; charset=US-ASCII Date: Sun, 02 Feb 2003 14:00:23 -0800 From: Darryl Okahata Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk@freebsd.org wrote: > Say, do you actually have the GEOM_BDE option in your kernel ? Sigh, no. I missed it in gbde(4). You might want to further idiot-proof gbde(8) with code like: err(1, "ioctl(GEOMCONFIGGEOM) (is \"options GEOM_BDE\" in the kernel?)"); Thanks for the help. -- Darryl Okahata darrylo@soco.agilent.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Agilent Technologies, or of the little green men that have been following him all day. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14: 1:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DABCE37B401 for ; Sun, 2 Feb 2003 14:01:34 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB03643F75 for ; Sun, 2 Feb 2003 14:01:33 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12M1Sd6068566; Mon, 3 Feb 2003 01:01:28 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12M1SAd068565; Mon, 3 Feb 2003 01:01:28 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 01:01:28 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: Bakul Shah , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202220128.GC68356@nagual.pp.ru> References: <200302022057.PAA26422@tonnant.cnchost.com> <200302022123.h12LNhaX051805@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022123.h12LNhaX051805@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 21:23:43 +0000, Mark Murray wrote: > > That was random(9). KERNEL random(). KERNEL random() can be easily implemented (better - replaced) with arc4random(), there is no objections. But... 1) Implementing random(3) with RC4 is not needed, its algorithm is already equal or better. 2) Implementing rand(3) with RC4 can be possible only if seed (i.e. state) can be stored in single word (due to rand_r()) restrictions. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14: 6:13 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C31B237B401 for ; Sun, 2 Feb 2003 14:06:11 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDF8443F79 for ; Sun, 2 Feb 2003 14:06:10 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12M684W082677; Sun, 2 Feb 2003 23:06:08 +0100 (CET) (envelope-from phk@freebsd.org) To: Darryl Okahata Cc: freebsd-current@freebsd.org Subject: Re: gbde & vnode md devices? From: phk@freebsd.org In-Reply-To: Your message of "Sun, 02 Feb 2003 14:00:23 PST." <200302022200.OAA05982@mina.soco.agilent.com> Date: Sun, 02 Feb 2003 23:06:08 +0100 Message-ID: <82676.1044223568@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302022200.OAA05982@mina.soco.agilent.com>, Darryl Okahata writes : >phk@freebsd.org wrote: > >> Say, do you actually have the GEOM_BDE option in your kernel ? > > Sigh, no. I missed it in gbde(4). > > You might want to further idiot-proof gbde(8) with code like: > >err(1, "ioctl(GEOMCONFIGGEOM) (is \"options GEOM_BDE\" in the kernel?)"); Yeah, this will happen. GBDE is the first user of what can only be described as a very green config-API for GEOM classes. One idea I have almost convinced myself to implement, despite its unUNIX like nature is to include a char erortext[256] in the request package because the idea that all errors have integer numbers gets old really really fast with the rather complex conditions some of the GEOM modules test for: return (EYOUARESHRINKINGAPARTITIONWHICHISOPEN) I think not :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:13: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 409C837B401 for ; Sun, 2 Feb 2003 14:13:00 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 564E143F43 for ; Sun, 2 Feb 2003 14:12:59 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12MBtLf080732; Sun, 2 Feb 2003 22:11:55 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12MBsgk080731; Sun, 2 Feb 2003 22:11:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12M9caX052345; Mon, 3 Feb 2003 00:09:39 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022209.h12M9caX052345@grimreaper.grondar.org> To: Bakul Shah Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Sun, 02 Feb 2003 13:59:25 PST." <200302022159.QAA13933@wellington.cnchost.com> Date: Sun, 02 Feb 2003 22:09:38 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > > No. Evil interface change. #ifdef hell while programs try to > > figure out OS differences. > > How so? This or a similar change is upward compatible in > that the existing behavior is left unchanged and it gives you > a way to replace the algorithm. It requies that programmers know about evil localisms. It screws over portability of source code. > The basic issue is just what is the expected and (implicitly) > promised behavior of random(). You believe one implied output. Another programmer believes another. Only way out is to make the routine "honest". > AFAIK all random(3) implementations in various versions of > Unix come from Earl's original 4.2BSD implementation so in my > view the _expected_ behavior is to see the _exact_ same > sequence starting from a given seed. This function is called > "random()" but it is equivalent to a mathematical function > which must provide the same sequence for the exact same > input. Maybe that is the greatgrandfather. The grandchildren speak with different accents now. :-) > You and a number of other people are saying that the exact > sequence is *not* promised so you are free to change the > algortithm as long as the statistical distribution is > uniform. Not quite. Close. You compile program on a machine with a constant argument to srand[om](). Run the more than once, and rand[om]() will give you the same sequence. Another OS, another time, another version of libc, the sequence will again be constant, but different from last time. > Earl chose to name his new implementation random() [even > though clearly he was replacing rand(3)] probably to not > break any existing scripts. In my view any further behavior > change should either use a new name or make an upward > compatible change. You have said that before, and I understand your words. I disagree with them. > Now the question is whether perl uses system provided > random() or rand() or its own since perl is used extensively > in ASIC verification. Different question. Ask the perl developers. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:21:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A763B37B408; Sun, 2 Feb 2003 14:21:10 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6438643FA7; Sun, 2 Feb 2003 14:21:09 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id A923867C6F; Sun, 2 Feb 2003 14:21:02 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 38670E41; Sun, 2 Feb 2003 14:21:02 -0800 (PST) Date: Sun, 2 Feb 2003 14:21:02 -0800 From: Kris Kennaway To: "Andrey A. Chernov" Cc: Kris Kennaway , Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030202222101.GA75656@rot13.obsecurity.org> References: <20030202091106.GA72723@rot13.obsecurity.org> <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> <20030202141605.GA64157@nagual.pp.ru> <20030202151049.GA64866@nagual.pp.ru> <20030202210608.GA74910@rot13.obsecurity.org> <20030202215539.GB68356@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <20030202215539.GB68356@nagual.pp.ru> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 03, 2003 at 12:55:40AM +0300, Andrey A. Chernov wrote: > On Sun, Feb 02, 2003 at 13:06:08 -0800, Kris Kennaway wrote: > > On Sun, Feb 02, 2003 at 06:10:49PM +0300, Andrey A. Chernov wrote: > > > So far, this is final variant for 0 problem fixing ready for committi= ng.=20 > > > Any objections? > >=20 > > What tests have you run on this code to ensure it doesn't still have > > strange problems? >=20 > Uhm, I don't understand you well here. Any code can have strange problems, > nobody can be sure. Lets concentrate to this particular problem which I > call 0 problem. 0 seed is illegal by algorithm desing and BSD developers > try to made workaround, but their attempt was unsuccessful with result you > describe. Now successfull attempt comes. It not add any new bugs, because > value 0 simple mapped to another value (which could be any, but I choose > to not touch lower ones), which make generator non-stick at 0 again. If I understand correctly, this still doesn't solve the problem, because any PRNG sequence that hits the "magic" value will still get stuck there forever. Kris --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PZnMWry0BWjoQKURAgHnAKC8WnxkEyKTjYtnoI9jUKfaPru9SgCg9KsY AfgIjxBsFYYuh0S8HvJo5Po= =gwbT -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:21:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 001F437B401 for ; Sun, 2 Feb 2003 14:21:55 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1645B43F93 for ; Sun, 2 Feb 2003 14:21:55 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12MLsLf080807; Sun, 2 Feb 2003 22:21:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12MLs9Y080806; Sun, 2 Feb 2003 22:21:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12MJYaX052408; Mon, 3 Feb 2003 00:19:34 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022219.h12MJYaX052408@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Mon, 03 Feb 2003 01:01:28 +0300." <20030202220128.GC68356@nagual.pp.ru> Date: Sun, 02 Feb 2003 22:19:33 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Sun, Feb 02, 2003 at 21:23:43 +0000, Mark Murray wrote: > > > > That was random(9). KERNEL random(). > > KERNEL random() can be easily implemented (better - replaced) with > arc4random(), there is no objections. But... > > 1) Implementing random(3) with RC4 is not needed, its algorithm is > already equal or better. Rubbish. :-) RC4's internal state is 256 bytes. In theory, its cycle-of-repetition is 2^(8*256) bits. The current library PRNGs are quite a bit less than that. > 2) Implementing rand(3) with RC4 can be possible only if seed (i.e. > state) can be stored in single word (due to rand_r()) restrictions. This is true. Sort of. But in this case, things get less easy. Hmm. I need to look at this some more. Thanks! M M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:26:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 221C637B401; Sun, 2 Feb 2003 14:26:39 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BEF443E4A; Sun, 2 Feb 2003 14:26:37 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12MQad6068877; Mon, 3 Feb 2003 01:26:36 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12MQa5W068876; Mon, 3 Feb 2003 01:26:36 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 01:26:36 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030202222635.GA68806@nagual.pp.ru> References: <20030202102621.GA60900@nagual.pp.ru> <20030202123035.GB62977@nagual.pp.ru> <20030203001735.A30440@dilbert.robbins.dropbear.id.au> <20030202134225.GA63673@nagual.pp.ru> <20030202140223.GA63836@nagual.pp.ru> <20030202141605.GA64157@nagual.pp.ru> <20030202151049.GA64866@nagual.pp.ru> <20030202210608.GA74910@rot13.obsecurity.org> <20030202215539.GB68356@nagual.pp.ru> <20030202222101.GA75656@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <20030202222101.GA75656@rot13.obsecurity.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 14:21:02 -0800, Kris Kennaway wrote: >=20 > If I understand correctly, this still doesn't solve the problem, > because any PRNG sequence that hits the "magic" value will still get > stuck there forever. It was true for the first patch I post which just move problem to another= =20 place (this is commonly spreaded method for this PRNG). It is false for the last patch I post which not stuck with any given seed. --=20 Andrey A. Chernov http://ache.pp.ru/ --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPj2bG+JgpPLZnQjrAQFghwQAp8Wva1vtpzbbXvivfwNNQRuGxyBeZm3/ nW14H1cRyKORKZfE8SWYatA/8goxCpyDiBMUiCdHQasdDwGmAc++wzzlMuaiS0qL 2zCFemlY/okYgeC6SgfzAy+GnfWAeiMbs6vJGBF6mLvhb2rJwfgtzpq883TOIpM3 ZNk44rIlaN8= =VXtG -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:30:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13F3737B401 for ; Sun, 2 Feb 2003 14:30:46 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DE4943F93 for ; Sun, 2 Feb 2003 14:30:44 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12MUhd6068944; Mon, 3 Feb 2003 01:30:43 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12MUhBg068943; Mon, 3 Feb 2003 01:30:43 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 01:30:43 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202223043.GB68806@nagual.pp.ru> References: <20030202220128.GC68356@nagual.pp.ru> <200302022219.h12MJYaX052408@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022219.h12MJYaX052408@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 22:19:33 +0000, Mark Murray wrote: > > 1) Implementing random(3) with RC4 is not needed, its algorithm is > > already equal or better. > > Rubbish. :-) RC4's internal state is 256 bytes. In theory, its > cycle-of-repetition is 2^(8*256) bits. This is comparable with random() TYPE4 which internal state is 252 bytes. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:37:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED2B337B405 for ; Sun, 2 Feb 2003 14:37:28 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B7E443FB1 for ; Sun, 2 Feb 2003 14:37:28 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h12MbQXv073032; Sun, 2 Feb 2003 14:37:26 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h12MbPqC073031; Sun, 2 Feb 2003 14:37:25 -0800 (PST) Date: Sun, 2 Feb 2003 14:37:25 -0800 From: Steve Kargl To: Bakul Shah Cc: Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202223725.GA72744@troutmask.apl.washington.edu> References: <200302022106.h12L6naX051530@grimreaper.grondar.org> <200302022159.QAA13933@wellington.cnchost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022159.QAA13933@wellington.cnchost.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 01:59:25PM -0800, Bakul Shah wrote: > > AFAIK all random(3) implementations in various versions of > Unix come from Earl's original 4.2BSD implementation so in my > view the _expected_ behavior is to see the _exact_ same > sequence starting from a given seed. This function is called > "random()" but it is equivalent to a mathematical function > which must provide the same sequence for the exact same > input. > I was going to stay out of this, but #include #include int main(void) { int i; long x; x = 100L; srandom(x); for (i = 0; i < 1010; i++) { x = random(); printf("%ld\n", x); } return 0; } Last 10 digits. FreeBSD Redhat SunOS 660787754 660787754 645318364 327548691 327548691 1583150371 2009993994 2009993994 715222008 1653966416 1653966416 1349166998 1074113008 1074113008 566227131 2142626740 2142626740 1382825076 1517775852 1517775852 583981903 1453318125 1453318125 1453942393 619607807 619607807 1952958724 199986393 199986393 1599163286 -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:42: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40C3737B405 for ; Sun, 2 Feb 2003 14:41:59 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id F13DE43FA3 for ; Sun, 2 Feb 2003 14:41:57 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12MfuLf081036; Sun, 2 Feb 2003 22:41:57 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12Mfu4F081035; Sun, 2 Feb 2003 22:41:56 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12MZsaX052670; Mon, 3 Feb 2003 00:35:54 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022235.h12MZsaX052670@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Mon, 03 Feb 2003 01:30:43 +0300." <20030202223043.GB68806@nagual.pp.ru> Date: Sun, 02 Feb 2003 22:35:54 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Sun, Feb 02, 2003 at 22:19:33 +0000, Mark Murray wrote: > > > > 1) Implementing random(3) with RC4 is not needed, its algorithm is > > > already equal or better. > > > > Rubbish. :-) RC4's internal state is 256 bytes. In theory, its > > cycle-of-repetition is 2^(8*256) bits. > > This is comparable with random() TYPE4 which internal state is 252 bytes. I stand (somewhat) corrected. The random() code is _nasty_ complexity-wise. Its not obvious how it works. RC4 is 10-20 lines and clean with no magic numbers. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:43:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BE3C37B401 for ; Sun, 2 Feb 2003 14:43:48 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 715FE43F75 for ; Sun, 2 Feb 2003 14:43:47 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h12MhjYu001617 for ; Sun, 2 Feb 2003 23:43:46 +0100 (CET) (envelope-from phk@freebsd.org) To: current@freebsd.org Subject: How to debug double-faults in i386 ? From: Poul-Henning Kamp Date: Sun, 02 Feb 2003 23:43:45 +0100 Message-ID: <1616.1044225825@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm getting double-faults on my laptop, and I have managed to capture them in DDB because I roughly know when to expect them. But It seems that the panic and DDB offers absolutely no helpful information about a double-fault ? How does one debug problems like this ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 14:49: 1 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22B0637B401 for ; Sun, 2 Feb 2003 14:49:00 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1944343F93 for ; Sun, 2 Feb 2003 14:48:59 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h12Mmvd6069133; Mon, 3 Feb 2003 01:48:57 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h12MmvS4069132; Mon, 3 Feb 2003 01:48:57 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 01:48:57 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202224857.GA69078@nagual.pp.ru> References: <20030202223043.GB68806@nagual.pp.ru> <200302022235.h12MZsaX052670@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022235.h12MZsaX052670@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 22:35:54 +0000, Mark Murray wrote: > > I stand (somewhat) corrected. The random() code is _nasty_ complexity-wise. > Its not obvious how it works. > > RC4 is 10-20 lines and clean with no magic numbers. That's why randomness tests + mathematician to interpretate their results are needed to compare what we have now in random(3) with RC4. Easy and understandable code not always mean better results. We can't switch algorithms blindly, i.e. when their comparative quality remains unknown. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15: 0:19 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 501FA37B401; Sun, 2 Feb 2003 15:00:18 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DCDA43F75; Sun, 2 Feb 2003 15:00:17 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h12N0FNt046584; Sun, 2 Feb 2003 15:00:15 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h12N0E1x046583; Sun, 2 Feb 2003 15:00:14 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sun, 2 Feb 2003 15:00:14 -0800 From: David Schultz To: Bakul Shah Cc: phk@FreeBSD.ORG, "Andrey A. Chernov" , Mark Murray , Doug Barton , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202230014.GA44914@HAL9000.homeunix.com> Mail-Followup-To: Bakul Shah , phk@FreeBSD.ORG, "Andrey A. Chernov" , Mark Murray , Doug Barton , Kris Kennaway , current@FreeBSD.ORG References: <31532.1044211424@critter.freebsd.dk> <200302021907.OAA04015@agamemnon.cnchost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302021907.OAA04015@agamemnon.cnchost.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Bakul Shah : > > As I said, I don't know how big a concern this is. But last time > > it was enough of a concern to make us keep rand() as it was. > > [I know you are talking about rand() but Mark Murray's > earlier email about wanting to re-implement random() really > concerned me so I want to make sure my point gets across] > > Not changing random() was of real concern to me when I was > doing chip simulations. ASIC design verification folks won't > be happy if the rug is pulled out from under them. In > general crypto and simulation needs are different and I don't > trust the crypto guys to look out for the simulation guys! > > I don't care any more if rand() is changed but _please_ leave > random() alone! And it would be nice to indicate *why* in > the source code for the next time this discussion comes up. If you need guaranteed reproducible random numbers that won't change from system to system or across libc versions, you need to roll your own PRNG. A simple linear congruential generator such as the original BSD algorithm might look random enough for your purposes. But I must admit that I was surprised when Andrey Chernov pointed out that rand() had been replaced between -CURRENT and -STABLE; I thought it was simply common knowledge that rand() was broken, and nobody was interested in fixing it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15: 6:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5626D37B401 for ; Sun, 2 Feb 2003 15:06:56 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73F7F43F3F for ; Sun, 2 Feb 2003 15:06:55 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h12N6sLf081275; Sun, 2 Feb 2003 23:06:54 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h12N6smm081274; Sun, 2 Feb 2003 23:06:54 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h12N23aX053186; Mon, 3 Feb 2003 01:02:03 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302022302.h12N23aX053186@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: Your message of "Mon, 03 Feb 2003 01:48:57 +0300." <20030202224857.GA69078@nagual.pp.ru> Date: Sun, 02 Feb 2003 23:02:03 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Sun, Feb 02, 2003 at 22:35:54 +0000, Mark Murray wrote: > > > > I stand (somewhat) corrected. The random() code is _nasty_ complexity-wise. > > Its not obvious how it works. > > > > RC4 is 10-20 lines and clean with no magic numbers. > > That's why randomness tests + mathematician to interpretate their results > are needed to compare what we have now in random(3) with RC4. Easy and > understandable code not always mean better results. We can't switch > algorithms blindly, i.e. when their comparative quality remains unknown. Actually, RC4 is well understood (and trusted). LCRNG's are considered less good in comparison with cryptographic techniques. There is too much to go wrong in them (as you have just discovered!) :-) M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15: 9: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B23D37B401 for ; Sun, 2 Feb 2003 15:09:05 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 05E5443F43 for ; Sun, 2 Feb 2003 15:09:04 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from bell.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 2 Feb 2003 23:09:02 +0000 (GMT) Date: Sun, 2 Feb 2003 23:09:00 +0000 From: David Malone To: Steve Kargl Cc: Bakul Shah , Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202230900.GA19025@bell.maths.tcd.ie> References: <200302022106.h12L6naX051530@grimreaper.grondar.org> <200302022159.QAA13933@wellington.cnchost.com> <20030202223725.GA72744@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202223725.GA72744@troutmask.apl.washington.edu> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 02:37:25PM -0800, Steve Kargl wrote: > FreeBSD Redhat SunOS > 660787754 660787754 645318364 FWIW - AIX aggrees with Solaris. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15:15: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8DF537B401 for ; Sun, 2 Feb 2003 15:15:01 -0800 (PST) Received: from illustrious.cnchost.com (illustrious.concentric.net [207.155.252.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9479E43F43 for ; Sun, 2 Feb 2003 15:15:01 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by illustrious.cnchost.com id SAA14785; Sun, 2 Feb 2003 18:14:53 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302022314.SAA14785@illustrious.cnchost.com> To: Steve Kargl Cc: Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 14:37:25 PST." <20030202223725.GA72744@troutmask.apl.washington.edu> Date: Sun, 02 Feb 2003 15:14:53 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Last 10 digits. > > FreeBSD Redhat SunOS > 660787754 660787754 645318364 > 327548691 327548691 1583150371 > 2009993994 2009993994 715222008 > 1653966416 1653966416 1349166998 > 1074113008 1074113008 566227131 > 2142626740 2142626740 1382825076 > 1517775852 1517775852 583981903 > 1453318125 1453318125 1453942393 > 619607807 619607807 1952958724 > 199986393 199986393 1599163286 Interesting.... The SunOS output exactly matches random(3) behavior from 4.3BSD! In fact random() remained the same for 4.3BSD-Reno, -Tahoe, 4.4BSD-Alpha and Net2. 4.2BSD random() behavior is different from all of the above. There was real bug-fix between 4.2BSD and 4.3BSD. I don't know when the FreeBSD/Redhat change was made or if it broke any statistical properties. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15:36:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE0CC37B401 for ; Sun, 2 Feb 2003 15:36:26 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34BE543F43 for ; Sun, 2 Feb 2003 15:36:26 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id h12NaJt1038005; Sun, 2 Feb 2003 15:36:19 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.6/Submit) id h12NZ41j038004; Sun, 2 Feb 2003 15:35:04 -0800 (PST) Date: Sun, 2 Feb 2003 15:35:04 -0800 From: "David O'Brien" To: Mark Murray Cc: Bakul Shah , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202233504.GA33924@dragon.nuxi.com> Reply-To: current@FreeBSD.ORG Mail-Followup-To: David O'Brien , Mark Murray , Bakul Shah , current@FreeBSD.ORG References: <200302022057.PAA26422@tonnant.cnchost.com> <200302022123.h12LNhaX051805@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302022123.h12LNhaX051805@grimreaper.grondar.org> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [From address modified because I don't want every message in this thread to end up in my personal mailbox. I'll read them in the list, thank you very much.] On Sun, Feb 02, 2003 at 09:23:43PM +0000, Mark Murray wrote: > Bakul Shah writes: > > > Since you keep talking about random(), I must conclude you're > > > knee-jerking, since we're not discussing that function. Please stay > > > on-topic :-) > > > > Read through the thread. In particular see Mark's message > > <200302021532.h12FWWaX047973@grimreaper.grondar.org> where he > > says > > > > Good point. We can re-implement random() internally with arc4rand(). > > Quote it in context, please. > > That was random(9). KERNEL random(). > > However, the argument applies equally well to rand(3) and random(3). Please Mark, just leave rand(3) and random(3) alone -- other than to fix the single bug Kris reported at the start of this thread. Long-time Unix users expect them to work as they do now. The manpages state they are not cryptographically random. If someone wants a function of that type we have a good arc4random(3). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15:41:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9206737B401; Sun, 2 Feb 2003 15:41:43 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09CF943E4A; Sun, 2 Feb 2003 15:41:43 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fTju-0005iN-00; Sun, 02 Feb 2003 15:41:31 -0800 Message-ID: <3E3DAC54.13A68DE6@mindspring.com> Date: Sun, 02 Feb 2003 15:40:04 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mark Murray Cc: "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302021532.h12FWWaX047973@grimreaper.grondar.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4169df1a3a57d4cc46ce714fc0ddea954666fa475841a1c7a350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Murray wrote: > "Jeroen C. van Gelderen" writes: > > Wouldn't it be a good idea to change the name at the same time? Or > > should it be retained for compatibility reasons with other BSDs? > > > > Currently the name needlessly exposes implementation detail. Callers > > expect good, cheap, non-blocking randomness but don't give a hoot if > > that is actually provided trough use of RC4 or not. I see no reason why > > the implementation could be changed if the contract is maintained. > > Good point. We can re-implement random() internally with arc4rand(). > > Objections? The same objections I always raise when someone replaces a PRNG that allows repeatable results with old software with a new one, that does not, I guess. BTW: if /dev/random is so damn good, why are you using it as an implementation detail for these functions, instead of adding yet another backward-incompatible algorithm? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15:49:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3D1937B401; Sun, 2 Feb 2003 15:49:56 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4189F43F9B; Sun, 2 Feb 2003 15:49:56 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fTrz-0006ul-00; Sun, 02 Feb 2003 15:49:51 -0800 Message-ID: <3E3DAE4D.3172D998@mindspring.com> Date: Sun, 02 Feb 2003 15:48:29 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mark Murray Cc: "Andrey A. Chernov" , "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302021734.h12HYJaX049011@grimreaper.grondar.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4169df1a3a57d4cc4a15aaf1046c968d5a8438e0f32a48e08350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Murray wrote: > "Andrey A. Chernov" writes: > > > Objections? > > > > We can't, simple because sequence must be repeated for the same seed > > across the calls. > > RC4 is repeatable. I tried that, and it didn't repeat the sequence I got when I previously used "rand()"... 8-) 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15:56:25 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC46C37B401 for ; Sun, 2 Feb 2003 15:56:23 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id A303143F79 for ; Sun, 2 Feb 2003 15:56:23 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h12NuNP5069373 for ; Sun, 2 Feb 2003 15:56:23 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h12NuNsn069370 for current@freebsd.org; Sun, 2 Feb 2003 15:56:23 -0800 (PST) Date: Sun, 2 Feb 2003 15:56:23 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302022356.h12NuNsn069370@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Sun Feb 2 15:12:55 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Sun Feb 2 15:49:13 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Sun Feb 2 15:49:14 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4447: warning: duplicate script for target "geom_bsd.o" ignored cc1: warnings being treated as errors /h/des/src/sys/dev/bktr/bktr_card.c:362: warning: excess elements in array initializer /h/des/src/sys/dev/bktr/bktr_card.c:362: warning: (near initialization for `bt848_card_signature[0].signature') *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 15:59:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67CBF37B401 for ; Sun, 2 Feb 2003 15:59:49 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1FAC43F75 for ; Sun, 2 Feb 2003 15:59:48 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fU1S-0000RS-00; Sun, 02 Feb 2003 15:59:39 -0800 Message-ID: <3E3DB099.65D3FA04@mindspring.com> Date: Sun, 02 Feb 2003 15:58:17 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" Cc: ob@e-Gitt.NET, freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept References: <20030201182012.GC97784@e-Gitt.NET> <20030202.064707.11429179.imp@bsdimp.com> <20030202141924.GA17831@e-Gitt.NET> <20030202.123243.71842594.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a40154b70d2217bbcf14a8dca218044651350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "M. Warner Losh" wrote: > In message: <20030202141924.GA17831@e-Gitt.NET> > Oliver Brandmueller writes: > : fine. Any ideas? > > Thanks for the info! I've sent in a different message that I think > will fix this problem. The problem is that /usr/local isn't mounted > when devd starts, so /usr/local/etc/netconf/bin/netconf won't run, so > we terminate immediately (and maybe this points to a bug in devd not > logging bad things that happen). A KEVENT() for mounts, and a lost of scripts which were not found initially, but which would have been run, had they been found, to hold the events in abeyance until they can be serviced properly, anyone? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16: 0:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A02A637B401 for ; Sun, 2 Feb 2003 16:00:39 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB3C643F93 for ; Sun, 2 Feb 2003 16:00:38 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fU2N-0000ay-00; Sun, 02 Feb 2003 16:00:35 -0800 Message-ID: <3E3DB0D1.2B02CAF5@mindspring.com> Date: Sun, 02 Feb 2003 15:59:13 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Edward Brocklesby Cc: Bakul Shah , current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a40154b70d2217bbcf993612496d3510d2350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Edward Brocklesby wrote: > On Sunday 02 February 2003 6:48 pm, Bakul Shah wrote: > > Guys, please realize that random() is also used in generating > > simulation inputs (or timing or whatever). If you go change > > the underlying algorithm or its parameters one can't generate > > the same sequence from the same seed when repeating a test. > > Maybe I missed something, but why cannot you just rip random() from libc, > rename it to bakul_shah_random() and use that in your testing code? Then you > are safe from any changes to random(), and indeed have a portable RNG if your > host OS changes. Binary packages from third party software vendors. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16: 2:28 2003 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 6E6AE37B401; Sun, 2 Feb 2003 16:02:27 -0800 (PST) Date: Sun, 2 Feb 2003 16:02:27 -0800 From: Juli Mallett To: David Malone Cc: Steve Kargl , Bakul Shah , Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030202160227.B62390@FreeBSD.org> References: <200302022106.h12L6naX051530@grimreaper.grondar.org> <200302022159.QAA13933@wellington.cnchost.com> <20030202223725.GA72744@troutmask.apl.washington.edu> <20030202230900.GA19025@bell.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030202230900.GA19025@bell.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Sun, Feb 02, 2003 at 11:09:00PM +0000 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-LiveJournal: flata, jmallett X-Negacore: Yes Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: David Malone [ Data: 2003-02-02 ] [ Subjecte: Re: rand() is broken ] > On Sun, Feb 02, 2003 at 02:37:25PM -0800, Steve Kargl wrote: > > FreeBSD Redhat SunOS > > 660787754 660787754 645318364 > > FWIW - AIX aggrees with Solaris. Endiannes, or an SVR4 implementation difference? -- Juli Mallett AIM: BSDFlata -- IRC: juli on EFnet OpenDarwin, Mono, FreeBSD Developer ircd-hybrid Developer, EFnet addict FreeBSD on MIPS-Anything on FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16: 3:41 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2F7237B401 for ; Sun, 2 Feb 2003 16:03:40 -0800 (PST) Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [193.201.200.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3C4A43F75 for ; Sun, 2 Feb 2003 16:03:39 -0800 (PST) (envelope-from fanf@chiark.greenend.org.uk) Received: from fanf by chiark.greenend.org.uk with local (Exim 3.12 #1) id 18fU5K-0006VP-00 (Debian); Mon, 03 Feb 2003 00:03:38 +0000 To: mark@grondar.org From: Tony Finch Cc: current@freebsd.org Subject: Re: rand() is broken In-Reply-To: <200302021836.h12Ia2aX049696@grimreaper.grondar.org> References: <20030202182009.GA66318@nagual.pp.ru> Message-Id: Date: Mon, 03 Feb 2003 00:03:38 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Murray wrote: > >3) int random(void) which returns a number statistically > random in all bits. > >We have most of this, and RC4 can deliver. RC4's "licence" is >fine. Call it "ArCFour" and there is no problem. The code is >small, fast and repeatable, and meets conditions 1-4 above. Note that POSIX 2001 states that random() uses a non-linear additive feedback random-number generator, and strongly implies that rand() uses the traditional brain-dead algorithm. Tony. -- f.a.n.finch http://dotat.at/ SOLE LUNDY FASTNET: WEST VEERING NORTHWEST 6 OR 7, OCCASIONALLY GALE 8. RAIN OR SQUALLY SHOWERS. MODERATE OR GOOD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16: 7: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C9D637B401 for ; Sun, 2 Feb 2003 16:07:05 -0800 (PST) Received: from a.smtp.serv.lythe.org.uk (pc4-oxfd1-6-cust225.oxfd.cable.ntl.com [62.254.141.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1737B43F75 for ; Sun, 2 Feb 2003 16:07:04 -0800 (PST) (envelope-from ejb@insolence.lythe.org.uk) Received: from insolence.lythe.org.uk (ejb@localhost [IPv6:::1]) by a.smtp.serv.lythe.org.uk (8.12.6/8.12.6) with ESMTP id h130721a005733; Mon, 3 Feb 2003 00:07:02 GMT (envelope-from ejb@insolence.lythe.org.uk) Received: from localhost (localhost [[UNIX: localhost]]) by insolence.lythe.org.uk (8.12.6/8.12.6/Submit) id h13071W5005732; Mon, 3 Feb 2003 00:07:01 GMT (envelope-from ejb) From: Edward Brocklesby To: Terry Lambert Subject: Re: rand() is broken Date: Mon, 3 Feb 2003 00:07:01 +0000 User-Agent: KMail/1.5 Cc: current@FreeBSD.ORG References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk> <3E3DB0D1.2B02CAF5@mindspring.com> In-Reply-To: <3E3DB0D1.2B02CAF5@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302030007.01718.ejb@lythe.org.uk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 02 February 2003 11:59 pm, Terry Lambert wrote: > Edward Brocklesby wrote: > > Maybe I missed something, but why cannot you just rip random() from libc, > > rename it to bakul_shah_random() and use that in your testing code? Then > > you are safe from any changes to random(), and indeed have a portable RNG > > if your host OS changes. > > Binary packages from third party software vendors. What about them? They either, a) link to a static libc, and use its rand() always; or b) link to a shared libc, and use its rand(), as the binary API hasn't changed; or c) if they really need their own specific RNG, they include it themselves, and don't rely on libc at all. So I fail to see the problem here. Regards, Edward. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:11:33 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92BB637B401; Sun, 2 Feb 2003 16:11:32 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 176AF43F3F; Sun, 2 Feb 2003 16:11:32 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h130BTXv073455; Sun, 2 Feb 2003 16:11:30 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h130BT9g073454; Sun, 2 Feb 2003 16:11:29 -0800 (PST) Date: Sun, 2 Feb 2003 16:11:29 -0800 From: Steve Kargl To: Juli Mallett Cc: David Malone , Bakul Shah , Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030203001129.GA73150@troutmask.apl.washington.edu> References: <200302022106.h12L6naX051530@grimreaper.grondar.org> <200302022159.QAA13933@wellington.cnchost.com> <20030202223725.GA72744@troutmask.apl.washington.edu> <20030202230900.GA19025@bell.maths.tcd.ie> <20030202160227.B62390@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202160227.B62390@FreeBSD.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 04:02:27PM -0800, Juli Mallett wrote: > * De: David Malone [ Data: 2003-02-02 ] > [ Subjecte: Re: rand() is broken ] > > On Sun, Feb 02, 2003 at 02:37:25PM -0800, Steve Kargl wrote: > > > FreeBSD Redhat SunOS > > > 660787754 660787754 645318364 > > > > FWIW - AIX aggrees with Solaris. > > Endiannes, or an SVR4 implementation difference? The FreeBSD and SunOS man pages are very similar. The FreeBSD man page provides much more detail. Endianness may account for the difference. My OSF/1 box burned its keyboard controller up, so I can't check its random(). -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:16:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B457F37B401 for ; Sun, 2 Feb 2003 16:16:30 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B4F143F3F for ; Sun, 2 Feb 2003 16:16:25 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fUHY-0002zA-00; Sun, 02 Feb 2003 16:16:18 -0800 Message-ID: <3E3DB47E.C29F5D67@mindspring.com> Date: Sun, 02 Feb 2003 16:14:54 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mark Murray Cc: Bakul Shah , current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302022106.h12L6naX051530@grimreaper.grondar.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a436a0dc4695246dac92d96d7c5b8d2764a7ce0e8f8d31aa3f350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Murray wrote: > Bakul Shah writes: > > random(3) also provides an initstate() call which presumably > > allows you to change the amount of randomnes. So here is > > another suggestion: why not fold your algorithm change in > > that function? For example, > > > > initstate(seed, "RC4", 3); > > > > changes the algorithm to RC4. Yes, this is a change in the > > interface but one I am sure most people can live with. > > No. Evil interface change. #ifdef hell while programs try to > figure out OS differences. Definitely agree. Interface changes are bad. > If an os provides a function, that function should be as good > as possible while not breaking standards. There are standards, and there are defacto standards. I really like the idea of a crypto_random() (and a crypto_rand()) that the weenies who want something different from the historical BSD implementations can use. > We have lousy functions like gets(3), that we have to keep > because the standards say we do and programmers keep on writing > code that uses them. Complaining about the ability to perform buffer overflows in code that is not SUID/SGID, thereby harming only yourself, is dumb. But... if you are going to keep gets/sprintf/strcpy/etc., just because you think you have to, even though you think they are dumb, then it's probably right to keep historical algorithms intact (technically, buffer overflows in gets() are only possible because the historical algorithm is being kept intact). > rand() and random() have a docimented interface, and empirical > programmer expectations about their outputs simply result in > bad code. Same for use of gets/sprintf/strcpy/etc. for Tuesday's definition of "bad code". I'd argue that providing threads results in bad code, too, but that doesn't mean that they're ging away any time soon. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:17:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E485137B401 for ; Sun, 2 Feb 2003 16:17:41 -0800 (PST) Received: from devonshire.cnchost.com (devonshire.concentric.net [207.155.248.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74E4D43E4A for ; Sun, 2 Feb 2003 16:17:41 -0800 (PST) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (adsl-209-204-185-216.sonic.net [209.204.185.216]) by devonshire.cnchost.com id TAA02092; Sun, 2 Feb 2003 19:17:32 -0500 (EST) [ConcentricHost SMTP Relay 1.15] Message-ID: <200302030017.TAA02092@devonshire.cnchost.com> Cc: Steve Kargl , Mark Murray , current@FreeBSD.ORG, "Andrey A. Chernov" Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 15:14:53 PST." <200302022314.SAA14785@illustrious.cnchost.com> Date: Sun, 02 Feb 2003 16:17:32 -0800 From: Bakul Shah Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Interesting.... The SunOS output exactly matches random(3) > behavior from 4.3BSD! In fact random() remained the same for > 4.3BSD-Reno, -Tahoe, 4.4BSD-Alpha and Net2. > > 4.2BSD random() behavior is different from all of the above. > There was real bug-fix between 4.2BSD and 4.3BSD. > > I don't know when the FreeBSD/Redhat change was made or if it > broke any statistical properties. FYI: The FreeBSD change was made in -r1.4 of random.c by Andrey in Oct 1996. The previous version of random.c behaves exactly the same as the one in 4.3BSD, SunOS and AIX. I am sorry I was too busy with other things then and missed this change. Andrey refers to an OCT 1988 CACM paper by Park & Miller "Random number generators: good ones are hard to find" as a justification for this change. Also FYI: NetBSD random(3) matches the 4.3BSD random(). Haven't checked OpenBSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:18:13 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3ACD237B401 for ; Sun, 2 Feb 2003 16:18:11 -0800 (PST) Received: from calis.blacksun.org (calis.blacksun.org [216.254.108.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F0FE43E4A for ; Sun, 2 Feb 2003 16:18:10 -0800 (PST) (envelope-from don@calis.blacksun.org) Received: by calis.blacksun.org (Postfix, from userid 1001) id 2DCBC17029; Sun, 2 Feb 2003 19:18:44 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by calis.blacksun.org (Postfix) with ESMTP id 2C45E17025 for ; Sun, 2 Feb 2003 19:18:44 -0500 (EST) Date: Sun, 2 Feb 2003 19:18:44 -0500 (EST) From: Don To: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: <200302030007.01718.ejb@lythe.org.uk> Message-ID: <20030202190827.K2458@calis.blacksun.org> References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302021941.h12JfJ1a004169@a.smtp.serv.lythe.org.uk> <3E3DB0D1.2B02CAF5@mindspring.com> <200302030007.01718.ejb@lythe.org.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Binary packages from third party software vendors. > > What about them? They either, > a) link to a static libc, and use its rand() always; or > b) link to a shared libc, and use its rand(), as the binary API hasn't > changed; or It isn't a question of the API. It's a question of expected function output. > c) if they really need their own specific RNG, they include it themselves, and > don't rely on libc at all. > > So I fail to see the problem here. The opinion of a random user: I run FreeBSD and not Linux because of the stability and predictability of the system. Changing a critical function like rand() when we know that there are applications which depend on its output does not seem like a good idea. A seperate function for those who need cryptographic randomness seems like a _much_ better idea. This is my person opinion. I am not a developer so please take my comments as such. -Don To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:21:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5CE037B401 for ; Sun, 2 Feb 2003 16:21:45 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26A5943F75 for ; Sun, 2 Feb 2003 16:21:45 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fUMo-0003jr-00; Sun, 02 Feb 2003 16:21:43 -0800 Message-ID: <3E3DB5C4.56A04F70@mindspring.com> Date: Sun, 02 Feb 2003 16:20:20 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Edward Brocklesby Cc: Bakul Shah , current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302022039.PAA13951@warspite.cnchost.com> <200302022117.49248.ejb@lythe.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a436a0dc4695246dacd2f3d490063da7cc387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Edward Brocklesby wrote: > On Sunday 02 February 2003 8:39 pm, Bakul Shah wrote: > > What I am suggesting is to leave random() as it is and > > guarantee its behavior won't change and add cryto_random() or > > whatever, and indicate it *may* change. > > Where was it indicated that random() wouldn't change? Right there in the boot message, and again when you logged in, where the system indicated to you that it was a BSD system; the same notification that told you the resolved code is present in libc, the shared library implementation doesn't allocate specific chunks of UVM so the libraries can have their symbols resolved to fixed offsets instead of using PIC, that libc contains qsort(), etc.. Technically, it should be telling you that the SA_RESTART flag is present by default on signal handlers, too, so that you can more easily write a user space threads implementation using wrapper functions, and save a masking and unmasking system call for each potentially blocking call, but that's been broken for a long time, now, because of putative POSIX(SVID) compliance. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:23:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 647AE37B401; Sun, 2 Feb 2003 16:23:48 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 086FB43F3F; Sun, 2 Feb 2003 16:23:48 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fUOo-00040z-00; Sun, 02 Feb 2003 16:23:46 -0800 Message-ID: <3E3DB63F.EA64E2D6@mindspring.com> Date: Sun, 02 Feb 2003 16:22:23 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Doug Barton Cc: Bakul Shah , current@FreeBSD.org Subject: Re: rand() is broken References: <200302022006.PAA25355@valiant.cnchost.com> <20030202131437.V79739@12-234-22-23.pyvrag.nggov.pbz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a436a0dc4695246dacda27198d12bbf8b1a7ce0e8f8d31aa3f350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Doug Barton wrote: > I can think of one significant benefit... I had noticed that my perl > script to pick random windowmaker themes (which uses rand()) seemed to be > picking the same themes over and over again. Now I know why. :) I had to > create a "last seen" list to artificially increase the "randomness." Oh > wait, TWO benefits... xscreensaver is having the same problem. Use /dev/random. You have to get some benefit back from it making all your interrupt handlers just that much slower so it could "harvest entropy" ``for'' you... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:25:10 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 790A637B405; Sun, 2 Feb 2003 16:25:09 -0800 (PST) Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [193.201.200.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9055943F75; Sun, 2 Feb 2003 16:25:08 -0800 (PST) (envelope-from fanf@chiark.greenend.org.uk) Received: from fanf by chiark.greenend.org.uk with local (Exim 3.12 #1) id 18fUQ1-0007Bt-00 (Debian); Mon, 03 Feb 2003 00:25:01 +0000 To: DougB@FreeBSD.org From: Tony Finch Cc: current@freebsd.org Subject: Re: rand() is broken In-Reply-To: <20030202131437.V79739@12-234-22-23.pyvrag.nggov.pbz> References: <200302022006.PAA25355@valiant.cnchost.com> <200302022006.PAA25355@valiant.cnchost.com> Message-Id: Date: Mon, 03 Feb 2003 00:25:01 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Doug Barton wrote: > >I can think of one significant benefit... I had noticed that my perl >script to pick random windowmaker themes (which uses rand()) seemed to be >picking the same themes over and over again. That's a bug in perl's compile-time configuration. It can be told to use something better. See PR 25794. Tony. -- f.a.n.finch http://dotat.at/ LANDS END TO ST DAVIDS HEAD INCLUDING THE BRISTOL CHANNEL: WEST 6 TO GALE 8. EASING WEST 5 OR 6 MONDAY MORNING. WEST OR NORTHWEST 6 OR 7 AGAIN LATER. RAIN OR SHOWERS, MAINLY FAIR PERHAPS MORE ISOLATED SHOWERS MONDAY. MAINLY GOOD. ROUGH OR VERY ROUGH. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:26:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD92637B401 for ; Sun, 2 Feb 2003 16:26:41 -0800 (PST) Received: from a.smtp.serv.lythe.org.uk (pc4-oxfd1-6-cust225.oxfd.cable.ntl.com [62.254.141.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4170243F79 for ; Sun, 2 Feb 2003 16:26:40 -0800 (PST) (envelope-from ejb@insolence.lythe.org.uk) Received: from insolence.lythe.org.uk (ejb@localhost [IPv6:::1]) by a.smtp.serv.lythe.org.uk (8.12.6/8.12.6) with ESMTP id h130QX1a005836; Mon, 3 Feb 2003 00:26:33 GMT (envelope-from ejb@insolence.lythe.org.uk) Received: from localhost (localhost [[UNIX: localhost]]) by insolence.lythe.org.uk (8.12.6/8.12.6/Submit) id h130QXcS005835; Mon, 3 Feb 2003 00:26:33 GMT (envelope-from ejb) From: Edward Brocklesby To: Don , current@FreeBSD.ORG Subject: Re: rand() is broken Date: Mon, 3 Feb 2003 00:26:33 +0000 User-Agent: KMail/1.5 References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302030007.01718.ejb@lythe.org.uk> <20030202190827.K2458@calis.blacksun.org> In-Reply-To: <20030202190827.K2458@calis.blacksun.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302030026.33781.ejb@lythe.org.uk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 03 February 2003 12:18 am, Don wrote: > It isn't a question of the API. It's a question of expected function > output. Then it's applicable not only to binary packages as Terry states, but any source that uses rand(). > I run FreeBSD and not Linux because of the stability and predictability of > the system. Changing a critical function like rand() when we know that > there are applications which depend on its output I would say that depending on the internal algorithm used by rand() (or random()) is a bad idea; however, I don't know what the relevant standards say about this, so I won't say any further. (Why is it a bad idea? Because I'm not going to write software which makes this assumption; I'm sure that even if at some point in time all systems use an identical algorithm, at some point my software will have to run on a system which uses something different. So if I really need it, I will take rand() from libc and place it in my own code.) > does not seem like a good idea. > > A seperate function for those who need cryptographic randomness seems like > a _much_ better idea. I'm not sure Yet Another RNG API (of course arc4random() already exists) gains anything unless rand()/random() absolutely cannot be changed; and as I say I'm not convinced this is the case. Doesn't even the 0 / RAND_MAX fix change the algorithm? Software which relies on that behaviour will break .. > This is my person opinion. I am not a developer so please take my comments > as such. Likewise. Regards, Edward. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:26:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BF8137B401 for ; Sun, 2 Feb 2003 16:26:48 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53F9343F85 for ; Sun, 2 Feb 2003 16:26:42 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h130QdNt046834; Sun, 2 Feb 2003 16:26:39 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h130QdH1046833; Sun, 2 Feb 2003 16:26:39 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sun, 2 Feb 2003 16:26:39 -0800 From: David Schultz To: "Andrey A. Chernov" Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030203002639.GB44914@HAL9000.homeunix.com> Mail-Followup-To: "Andrey A. Chernov" , Kris Kennaway , current@FreeBSD.ORG References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202090422.GA59750@nagual.pp.ru> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Andrey A. Chernov : > On Sat, Feb 01, 2003 at 23:06:50 -0800, Kris Kennaway wrote: > > FreeBSD's rand() implementation has been broken for the past 23 > > months, since the following commit: > > > i.e. the first value returned from rand() is correlated with the seed > > given to srand(). This is a big problem unless your seed is randomly > > chosen over its entire integer range. I noticed this because awk > > exhibits the same problem, and the script seeds the generator with a > > PID. The script works fine under 4.x since the rand() implementation > > does not have this "feature". > > Yes, first value correlation is there, but old formulae have even worse > effect "The random sequences do not vary much with the seed", as source > file comments and whole discussion about old RNG bad effects shown. I.e. > for different time+PID sequence, especially increased monotonically, like > in common practice, you'l got the same random sequence with old formulae > (which can't be called "works fine" because this fine work was the main > reason for change). So, returning to old formulae is not an option. > > The real problem is not in formulae, but in srand() funclion. This simple > patch can fix first value correlation, and I plan to commit it, if we all > agree. I not find better value for NSHUFF right now, but think > that something like 10 will be enough to fight corellation completely. > Some generating picture tests needed. The correlation is still present with your patch and NSHUFF set to 10. For instance, try seeding rand() with contiguous monotonically increasing integers, and observe the four lowest-order bits. Just for the heck of it, I ran Marsaglia's tests on the rand() implementation in -CURRENT. The arc4random() implementation passed with flying colors as expected, whereas rand() seems to have some slight defects, particularly in the lowest and highest order bits. When I looked at rand()'s behavior with respect to different seeds, it failed miserably, both with and without your patch. The results are available at http://www.csua.berkeley.edu/~das/marsaglia/ I'm not necessarily advocating changing the algorithm at all, given that it's well known that many rand() implementations are not very random. But I also don't buy the argument that ``rand() should never ever change.'' If someone wants to do the work to improve the algorithm, that's fine with me. David Wagner has collected some links on randomness that might be helpful: http://www.cs.berkeley.edu/~daw/rnd/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:38:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEE3A37B401 for ; Sun, 2 Feb 2003 16:38:37 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FB5843F43 for ; Sun, 2 Feb 2003 16:38:37 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fUd6-0007eb-00; Sun, 02 Feb 2003 16:38:32 -0800 Message-ID: <3E3DB9B3.A233B848@mindspring.com> Date: Sun, 02 Feb 2003 16:37:07 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Steve Kargl Cc: Bakul Shah , Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302022106.h12L6naX051530@grimreaper.grondar.org> <200302022159.QAA13933@wellington.cnchost.com> <20030202223725.GA72744@troutmask.apl.washington.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a474d2a290bd18d30ead75475d716045a2a7ce0e8f8d31aa3f350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Steve Kargl wrote: > I was going to stay out of this, but > > #include > #include > int main(void) { > int i; > long x; > x = 100L; > srandom(x); > for (i = 0; i < 1010; i++) { > x = random(); > printf("%ld\n", x); > } > return 0; > } > > Last 10 digits. > > FreeBSD Redhat SunOS > 660787754 660787754 645318364 > 327548691 327548691 1583150371 > 2009993994 2009993994 715222008 > 1653966416 1653966416 1349166998 > 1074113008 1074113008 566227131 > 2142626740 2142626740 1382825076 > 1517775852 1517775852 583981903 > 1453318125 1453318125 1453942393 > 619607807 619607807 1952958724 > 199986393 199986393 1599163286 386BSD 0.1+ patchkit TRU64 660787754 660787754 327548691 327548691 2009993994 2009993994 1653966416 1653966416 1074113008 1074113008 2142626740 2142626740 1517775852 1517775852 1453318125 1453318125 619607807 619607807 199986393 199986393 I can fire up my HP/UX and SunOS 4.1.3-U1 boxes too, if you need those, but I'm pretty sure the reason you got a different answer for newer Solaris was because it uses the SVR4 code, instead. The *48() functions are also identical (linear congruential); I used to use them for physics simulations. The f2c compiler did not have the functions until I personally added them to the library. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:41:13 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48F8937B401 for ; Sun, 2 Feb 2003 16:41:12 -0800 (PST) Received: from calis.blacksun.org (calis.blacksun.org [216.254.108.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EE2C43F3F for ; Sun, 2 Feb 2003 16:41:11 -0800 (PST) (envelope-from don@calis.blacksun.org) Received: by calis.blacksun.org (Postfix, from userid 1001) id 69B1217025; Sun, 2 Feb 2003 19:41:45 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by calis.blacksun.org (Postfix) with ESMTP id 6660317021 for ; Sun, 2 Feb 2003 19:41:45 -0500 (EST) Date: Sun, 2 Feb 2003 19:41:45 -0500 (EST) From: Don To: current@FreeBSD.ORG Subject: Re: rand() is broken In-Reply-To: <200302030026.33781.ejb@lythe.org.uk> Message-ID: <20030202193215.E2519@calis.blacksun.org> References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302030007.01718.ejb@lythe.org.uk> <20030202190827.K2458@calis.blacksun.org> <200302030026.33781.ejb@lythe.org.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > It isn't a question of the API. It's a question of expected function > > output. > > Then it's applicable not only to binary packages as Terry states, but any > source that uses rand(). I think Terry mentioned binary packages simply because it is harder to fix them than something available as source but I could be mistaken. > I would say that depending on the internal algorithm used by rand() (or > random()) is a bad idea; however, I don't know what the relevant standards > say about this, so I won't say any further. > > (Why is it a bad idea? Because I'm not going to write software which makes > this assumption; I'm sure that even if at some point in time all systems use > an identical algorithm, at some point my software will have to run on a > system which uses something different. So if I really need it, I will take > rand() from libc and place it in my own code.) If only all developers were as good as you we would not have a problem. > > A seperate function for those who need cryptographic randomness seems like > > a _much_ better idea. > > I'm not sure Yet Another RNG API (of course arc4random() already exists) gains > anything unless rand()/random() absolutely cannot be changed; and as I say > I'm not convinced this is the case. I am by no means convinced either. I do, however, think this is something that should not be changed without a lot of consideration and testing. Your point about arc4random() is a good one. Why depend on rand() for cryptographic randomness when we already have arc4random()? > Doesn't even the 0 / RAND_MAX fix change > the algorithm? Software which relies on that behaviour will break .. Any software which always needs to get back maxint when it calls rand() is hopelessly broken :) Besides which, I don't recall advocating that change either. -Don To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:42: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0C0C37B405 for ; Sun, 2 Feb 2003 16:42:08 -0800 (PST) Received: from a.smtp.serv.lythe.org.uk (pc4-oxfd1-6-cust225.oxfd.cable.ntl.com [62.254.141.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id A702E43F43 for ; Sun, 2 Feb 2003 16:42:07 -0800 (PST) (envelope-from ejb@insolence.lythe.org.uk) Received: from insolence.lythe.org.uk (ejb@localhost [IPv6:::1]) by a.smtp.serv.lythe.org.uk (8.12.6/8.12.6) with ESMTP id h130g61a005917; Mon, 3 Feb 2003 00:42:06 GMT (envelope-from ejb@insolence.lythe.org.uk) Received: by insolence.lythe.org.uk (8.12.6/8.12.6/Submit) id h130g63r005916; Mon, 3 Feb 2003 00:42:06 GMT (envelope-from ejb) From: Edward Brocklesby To: Terry Lambert Subject: Re: rand() is broken Date: Mon, 3 Feb 2003 00:42:06 +0000 User-Agent: KMail/1.5 Cc: current@FreeBSD.ORG References: <200302022039.PAA13951@warspite.cnchost.com> <200302022117.49248.ejb@lythe.org.uk> <3E3DB5C4.56A04F70@mindspring.com> In-Reply-To: <3E3DB5C4.56A04F70@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302030042.06444.ejb@lythe.org.uk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 03 February 2003 12:20 am, Terry Lambert wrote: > Edward Brocklesby wrote: > > Where was it indicated that random() wouldn't change? > > Right there in the boot message, and again when you logged in, > where the system indicated to you that it was a BSD system; Sorry, I can't quite work out what you mean by this. Are you saying that it's assumed random()'s API won't changed because it's guaranteed by BSD? Regards, Edward. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:43:12 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AB0E37B401 for ; Sun, 2 Feb 2003 16:43:11 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id B374743F43 for ; Sun, 2 Feb 2003 16:43:10 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fUhW-0000XE-00; Sun, 02 Feb 2003 16:43:06 -0800 Message-ID: <3E3DBAC3.14E4ED81@mindspring.com> Date: Sun, 02 Feb 2003 16:41:39 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mark Murray Cc: "Andrey A. Chernov" , current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302022302.h12N23aX053186@grimreaper.grondar.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a474d2a290bd18d30e306b644a80c5466e350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Murray wrote: > > That's why randomness tests + mathematician to interpretate their results > > are needed to compare what we have now in random(3) with RC4. Easy and > > understandable code not always mean better results. We can't switch > > algorithms blindly, i.e. when their comparative quality remains unknown. > > Actually, RC4 is well understood (and trusted). LCRNG's are considered > less good in comparison with cryptographic techniques. There is too much > to go wrong in them (as you have just discovered!) :-) Donald Knuth seemed to like them well enough to publish the algorithm, as part of his discussion on randomness. He *didn't* publish RC4, in that same discussion. Cryptographic uses are a small percentage of the real-world use for PRNG's. If you are worried about cryptographic strength, then you shouldn't be using a libc function. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:50: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C93D237B401 for ; Sun, 2 Feb 2003 16:49:59 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53C4F43F3F for ; Sun, 2 Feb 2003 16:49:59 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h130nqXv073657; Sun, 2 Feb 2003 16:49:52 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h130np80073656; Sun, 2 Feb 2003 16:49:51 -0800 (PST) Date: Sun, 2 Feb 2003 16:49:51 -0800 From: Steve Kargl To: Terry Lambert Cc: Bakul Shah , Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030203004951.GA73497@troutmask.apl.washington.edu> References: <200302022106.h12L6naX051530@grimreaper.grondar.org> <200302022159.QAA13933@wellington.cnchost.com> <20030202223725.GA72744@troutmask.apl.washington.edu> <3E3DB9B3.A233B848@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E3DB9B3.A233B848@mindspring.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 04:37:07PM -0800, Terry Lambert wrote: > > I can fire up my HP/UX and SunOS 4.1.3-U1 boxes too, if you need > those, but I'm pretty sure the reason you got a different answer > for newer Solaris was because it uses the SVR4 code, instead. > That's the whole point! You should not expect the output from random() for a given seed to produce the same sequence of numbers on different platforms. -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:53:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A71237B401 for ; Sun, 2 Feb 2003 16:53:38 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4C0D43F3F for ; Sun, 2 Feb 2003 16:53:37 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fUrd-0002I1-00; Sun, 02 Feb 2003 16:53:34 -0800 Message-ID: <3E3DBD37.B71068C0@mindspring.com> Date: Sun, 02 Feb 2003 16:52:07 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Steve Kargl , Bakul Shah , Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302022106.h12L6naX051530@grimreaper.grondar.org> <200302022159.QAA13933@wellington.cnchost.com> <20030202223725.GA72744@troutmask.apl.washington.edu> <3E3DB9B3.A233B848@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4c6a8af4082c28be0446ea0eb586bdc58350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > > Last 10 digits. > > > > FreeBSD Redhat SunOS > 386BSD 0.1+ > patchkit TRU64 Crap. Ignore these numbers. I replaced the libc implementation on both these machines, and forgot I had done it. When I put the code back to what it was, they give the Solaris numbers. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 16:56:36 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00C9F37B401 for ; Sun, 2 Feb 2003 16:56:35 -0800 (PST) Received: from a.smtp.serv.lythe.org.uk (pc4-oxfd1-6-cust225.oxfd.cable.ntl.com [62.254.141.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 133F443F3F for ; Sun, 2 Feb 2003 16:56:34 -0800 (PST) (envelope-from ejb@insolence.lythe.org.uk) Received: from insolence.lythe.org.uk (ejb@localhost [IPv6:::1]) by a.smtp.serv.lythe.org.uk (8.12.6/8.12.6) with ESMTP id h130uW1a005973; Mon, 3 Feb 2003 00:56:32 GMT (envelope-from ejb@insolence.lythe.org.uk) Received: from localhost (localhost [[UNIX: localhost]]) by insolence.lythe.org.uk (8.12.6/8.12.6/Submit) id h130uWa9005972; Mon, 3 Feb 2003 00:56:32 GMT (envelope-from ejb) From: Edward Brocklesby To: Don , current@FreeBSD.ORG Subject: Re: rand() is broken Date: Mon, 3 Feb 2003 00:56:32 +0000 User-Agent: KMail/1.5 References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302030026.33781.ejb@lythe.org.uk> <20030202193215.E2519@calis.blacksun.org> In-Reply-To: <20030202193215.E2519@calis.blacksun.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302030056.32009.ejb@lythe.org.uk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 03 February 2003 12:41 am, Don wrote: > I think Terry mentioned binary packages simply because it is harder to fix > them than something available as source but I could be mistaken. Possibly -- if we're looking at this from the point of view of the user of said binary package, rather than the developer (as I'd assumed), then I see what you mean (you can do ld hacks and so on, but ..) > > I'm not sure Yet Another RNG API (of course arc4random() already exists) > > gains anything unless rand()/random() absolutely cannot be changed; and > > as I say I'm not convinced this is the case. > > I am by no means convinced either. I do, however, think this is something > that should not be changed without a lot of consideration and testing. IMHO, it "shouldn't" break things (ie, things shouldn't be relying on it); but, well, I can accept there might be something that does. I do find it hard to believe though; this 'simulation' problem is the first I've heard of it, and it doesn't look like an insurmountable one. > Your point about arc4random() is a good one. Why depend on rand() for > cryptographic randomness when we already have arc4random()? Because arc4random() is not portable. I would rather rely on the OS having a useful rand() RNG rather than #ifdef'ing on this that and the other to choose the correct one. > > Doesn't even the 0 / RAND_MAX fix change > > the algorithm? Software which relies on that behaviour will break .. > > [...] I don't recall advocating that change either. Well, no -- but are you against it? Where is the line drawn? Regards, Edward. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 17: 1: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8236137B405 for ; Sun, 2 Feb 2003 17:00:58 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A5A443F3F for ; Sun, 2 Feb 2003 17:00:57 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fUyk-0003QR-00; Sun, 02 Feb 2003 17:00:55 -0800 Message-ID: <3E3DBEEF.BE487BD6@mindspring.com> Date: Sun, 02 Feb 2003 16:59:27 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Don Cc: current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302021848.NAA19508@agamemnon.cnchost.com> <200302030007.01718.ejb@lythe.org.uk> <20030202190827.K2458@calis.blacksun.org> <200302030026.33781.ejb@lythe.org.uk> <20030202193215.E2519@calis.blacksun.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4144d44f298c0a9fcfc6fdf85ef4fa283a2d4e88014a4647c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Don wrote: > > > It isn't a question of the API. It's a question of expected function > > > output. > > > > Then it's applicable not only to binary packages as Terry states, but any > > source that uses rand(). > > I think Terry mentioned binary packages simply because it is harder to fix > them than something available as source but I could be mistaken. I mentioned them because they are impossible to fix without hacking the system libc.so, whereas with source, you can recompile the code and override the libc version with your own. LD_PRELOAD could be used, if the interface is unchanged, and the saved state area is not managed promiscuously anywhere. The main problem is new code that depends on new behaviour conflicting with old code that depends on old behaviour. A number of the ASIC packages Bakul *may* be using come precompiled from the vendor, without source code (and yes, they have FreeBSD versions available, when you are slinging that kind of money around). > > I would say that depending on the internal algorithm used by rand() (or > > random()) is a bad idea; however, I don't know what the relevant standards > > say about this, so I won't say any further. > > > > (Why is it a bad idea? Because I'm not going to write software which makes > > this assumption; I'm sure that even if at some point in time all systems use > > an identical algorithm, at some point my software will have to run on a > > system which uses something different. So if I really need it, I will take > > rand() from libc and place it in my own code.) > > If only all developers were as good as you we would not have a problem. Heh. If they were, this would not be an issue in the first place, because they would not be using the system random number generators from libc, and so they would see no reason to fix them. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 17:11:22 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCB3B37B401 for ; Sun, 2 Feb 2003 17:11:20 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51C0043F43 for ; Sun, 2 Feb 2003 17:11:20 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fV8l-0005LR-00; Sun, 02 Feb 2003 17:11:16 -0800 Message-ID: <3E3DC159.CC749944@mindspring.com> Date: Sun, 02 Feb 2003 17:09:45 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Edward Brocklesby Cc: current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302022039.PAA13951@warspite.cnchost.com> <200302022117.49248.ejb@lythe.org.uk> <3E3DB5C4.56A04F70@mindspring.com> <200302030042.06444.ejb@lythe.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4144d44f298c0a9fc188a6d6d913271cea8438e0f32a48e08350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Edward Brocklesby wrote: > On Monday 03 February 2003 12:20 am, Terry Lambert wrote: > > Edward Brocklesby wrote: > > > Where was it indicated that random() wouldn't change? > > > > Right there in the boot message, and again when you logged in, > > where the system indicated to you that it was a BSD system; > > Sorry, I can't quite work out what you mean by this. Are you saying that it's > assumed random()'s API won't changed because it's guaranteed by BSD? Some behaviours are assumed to remain constant across BSD systems, which give the system it's "BSD flavor". For me, the random number generators have always been one of these. Personally, I'm concened about being able to repeat physics simulations that use drand48(), the code for the pair production coming from out of Berkeley, as well. So long as the algorithm doesn't change, the results obtained in 1982 are going to be repeatable at any point in the future. This is needed, if you intend to be able to build on published work that used a transformation of the raw numbers out of the simulation, and you need the same raw numbers, in order to do it. The experiment, in other words, needs to be repeatable. Basically, for simulations results like this, where the results are pair productions which are then kept or thrown away, based on whether the particular pair production is "possible", given the theorized physics, changing the random number generator is morally equivalent to changing the data from accelerator experiments, after the fact. Lucent just fired a PhD, very loudly and publically, for that type of number-fudging. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 17:13:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DCE137B401 for ; Sun, 2 Feb 2003 17:13:43 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 979E743F43 for ; Sun, 2 Feb 2003 17:13:42 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0402.cvx21-bradley.dialup.earthlink.net ([209.179.193.147] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fVAm-0005eS-00; Sun, 02 Feb 2003 17:13:21 -0800 Message-ID: <3E3DC1D2.C8EE85BB@mindspring.com> Date: Sun, 02 Feb 2003 17:11:46 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Steve Kargl Cc: Bakul Shah , Mark Murray , current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302022106.h12L6naX051530@grimreaper.grondar.org> <200302022159.QAA13933@wellington.cnchost.com> <20030202223725.GA72744@troutmask.apl.washington.edu> <3E3DB9B3.A233B848@mindspring.com> <20030203004951.GA73497@troutmask.apl.washington.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4144d44f298c0a9fc7162579d1753d88b666fa475841a1c7a350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Steve Kargl wrote: > On Sun, Feb 02, 2003 at 04:37:07PM -0800, Terry Lambert wrote: > > I can fire up my HP/UX and SunOS 4.1.3-U1 boxes too, if you need > > those, but I'm pretty sure the reason you got a different answer > > for newer Solaris was because it uses the SVR4 code, instead. > > That's the whole point! You should not expect the > output from random() for a given seed to produce the > same sequence of numbers on different platforms. No, the point is that *you* think I should not expect it, when historically, whether I *should* or not, I've been able to. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 21:38:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E0BF37B401; Sun, 2 Feb 2003 21:38:36 -0800 (PST) Received: from jlonline.com (pip15.ptt.js.cn [61.155.13.245]) by mx1.FreeBSD.org (Postfix) with SMTP id 3539C43F9B; Sun, 2 Feb 2003 21:38:32 -0800 (PST) (envelope-from xzht@public.xz.js.cn) Received: from wrh([61.177.212.133]) by js.cn(AIMC 2.9.5.2) with SMTP id jmd83e3e28c3; Mon, 03 Feb 2003 13:33:47 +0800 Reply-To: xzht@163.com From: ÄäÃû <> To: ÍøÂçÊÓƵ»áÒé¡¢ÍøÂçÔ¶³Ì½ÌѧºÍ¼à¿Øϵͳ <> Subject: ³¬Ò»Á÷ÍøÂçÊÓƵ»áÒé¡¢Ãâ·Ñµç»°¡¢Ô¶³Ì½Ìѧר¼Ò»áÕïϵͳ Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312_CHARSET" Date: Mon, 3 Feb 2003 13:37:52 +0800 Message-Id: <20030203053832.3539C43F9B@mx1.FreeBSD.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ³¬Ò»Á÷ÍøÂçÊÓƵ»áÒé¡¢Ãâ·Ñµç»°¡¢Ô¶³Ì½Ìѧר¼Ò»áÕïϵͳ ±¾¹«Ë¾×îвúÆ·:ÍøÂçÊÓƵ»áÒéÊÓƵ·şÎñÆ÷---¹ã·ºÓÃÓÚ¸ßÇåÎú¶È¾ÖÓò»ò¹ãÓòÊÓƵ»áÒé¡¢ÍøÂç¼à¿Ø¡¢Ó׶ùÔ°¾´ÀÏÔººÍÒ½Ôº²¡·¿¼ÒÈËÒìµØÔ¶³Ì¼à»¤¡¢×¨¼ÒÔ¶³ÌÒ½ÁÆ»áÕïºÍ½Ìѧ¡¢ÍøÂçÔ¶³Ì½ÌÊÒÒÔ¼°ÎŞ»°·Ñ¿ÉÊÓ»¯¿Í»§·şÎñϵͳ,ÍøÉÏ·ç¾°Çø,¾ÆµêʵʱÊÓƵչʾ¡¢µçÊÓ½ÚÄ¿ÍøÉÏʵʱת²¥¡¢´óĞÍÕ¹»áÏÖ³¡ÍøÂçÖ±²¥µÈ,ÍøÉÏ´«ÊäЧ¹û¾ÓÄ¿Ç°¹úÄÚÍâÁìÏÈˮƽ£¬¼Û¸ñ½öÓнø¿Úͬµµ´Î²úÆ·1/10¡£ »¶Ó­ÍøÉϹۿ´ÑİʾЧ¹û:www.webht.com Ñİʾ»·¾³¼°ÊÔÓ÷½·¨£º ±¾¹«Ë¾ÊÓƵ»áÒé·şÎñÆ÷ÿÌì24СʱÁ¬Ğø¿ª»ú£¬ÈôÓĞĞËȤÇëÔÚ±¾¹«Ë¾ÍøÕ¾ÏÂÔØ×îĞ°æÂÌÉ«¿Í»§¶ËÈí¼ş,Ö±½Óµã»÷Ö´ĞкóÊäÈë·şÎñÆ÷ºÅ3300002£¬Óû§ÃûºÍÃÜÂë¾ùΪ¡°1234¡±£¬°´È·¶¨ºóÉÔµÈƬ¿Ì¼´¿ÉÁ¬Í¨ÊÓƵ»áÒéϵͳ¿´µ½ÑİʾÏÖ³¡Í¼Ïó£¬ÔÚ´Ë´¦ÎÒÃÇ¿ÉÓû°Í²½øĞĞÊÓƵ»áÒéÓïÒô½»Ì¸£¬Ç×ÉíÌåÑé×îĞÂIT³É¹û£¬»¶Ó­ÓëÈκιúÍâ²úÆ·×÷Ò»¸ö±È½Ï£¬Äú»á·¢ÏÖÖйúµÄÔÂÁÁ±ÈÍâ¹úµÄÔÂÁÁ»¹ÒªÔ²¡£ Ó¦ÓÃÖ®Ò» ------ ÍøÂçÊÓƵԶ³Ì½ÌѧºÍר¼ÒÔ¶³Ì»áÕïϵͳ£º ÃûĞ£Ãûʦ½²¿Î¡¢¸ß¼¶½ÌÊÚ½²Ñ§¡¢Ò½Ñ§ÊÖÊõÈ¨ÍşµÄÊÖÊõ¶¼¿ÉʹÓñ¾ÏµÍ³Í¨¹ıÍøÂçÏòÌض¨Óû§¿ª·Å£¬»ñÓĞÃÜÂëµÄ½ÌÊÒ»ò¸öÈ˿ɵǽϵͳ²Î¼Óѧϰ¡£Ò»Ì×·şÎñÆ÷¿É¹©10---100ÒÔÉÏÓû§Í¬Ê±µÇ½£¬Ö»Òª·şÎñÆ÷¶Ë´ø¿í×ã¹»£¨500K X Óû§ÊıÁ¿£©£¬Óû§¶Ë300-500K´ø¿íΪ·ÓÉÑÓ³Ù£¬¿É×öµ½ÊÓÒôƵ»ù±¾Í¬²½£¬Ë«¹¤¶Ô½²¡£ ר¼ÒÔ¶³Ì»áÕ¡ª¡ªÀûÓÃÊÓѶҵÎñʵÏÖÖĞĞÄÒ½ÔºÓë»ù²ãÒ½Ôº¾ÍÒÉÄѲ¡Ö¢½øĞĞ»áÕï¡¢Ö¸µ¼ÖÎÁÆÓ뻤Àí¡¢¶Ô»ù²ãÒ½ÎñÈËÔ±µÄҽѧÅàѵµÈµÈ¡£¸ßÖÊÁ¿µÄÊÓѶҵÎñʹҽÉú¡¢»¤Ê¿ÔÚ²»Í¬µØ·½Í¬Ê±Ğ­Í¬¹¤×÷³ÉΪ¿ÉÄÜ¡£Ô¶³ÌÒ½ÁƶÔÓÚһЩÖĞĞ¡Ò½ÔºÓĞ×ÅÖØÒªµÄÒâÒ壬¿ÉÒԵõ½´óÒ½ÔºµÄҽѧר¼ÒµÄ×ÉѯºÍ»áÕï¡£ Ó¦ÓÃÖ®Ò» ------ ÎŞ»°·Ñ¿ÉÊÓ»¯¿Í»§·şÎñϵͳ£º ×ܹ«Ë¾Ö»Ğ谲װһ̨ÊÓƵ·şÎñÆ÷¡¢¼¸Ö»ÉãÏñ»ú£¬Ô¶³ÌµÄ¸÷µØÁ¬Ëøµê·Ö¹«Ë¾Ö»ĞèʹÓÃÃâ·ÑµÄ¿Í»§¶ËÈí¼şÍ¨¹ıµçÄÔÉÏÍø¾Í¿Éͨ¹ıÍøÂçÓë×ܲ¿¶Ô»°£¬Í¬Ê±¿´µ½×ܲ¿¸ßÇåÎúͼÏ󡣿ÉÓÃÓÚ×ܲ¿¶ÔÏÂÊôµ¥Î»ÕÙ¿ªÊÓƵ»áÒé¡¢ÏÂÊôºô½Ğ×ܲ¿½øĞĞÒµÎñÁªÏµ»ò×ܲ¿Ğ²úÆ·¶Ô¹úÄÚÍâÔ¶¶Ë¿Í»§½øĞĞÑİʾ¡¢ÅàѵºÍµç×Ó°×°åÎÄ×Ö¹µÍ¨£¬ÕâÒ»Ìصã¾ÍʹµÃ±¾ÏµÍ³¿ÉÈ¡´ú´óĞÍÆóÒµ¼¯ÍÅÄ¿Ç°°º¹óµÄ800µç»°¿Í»§·şÎñϵͳ¶øͨ¹ıÁ®¼ÛµÄÍøÂ緽ʽ¿ªÕ¹Óû§·şÎñ,ʹÓû§Ö±½Ó¿´µ½²úƷʵÎï´ïµ½×îºÃµÄĞû´«·şÎñ×÷Ó㬲¢ÇÒË«·½¶¼²»»á²úÉúÈκλ°·Ñ¡£ ÆäËü²úÆ·£º 1¡¢ÊÓƵ˫½ÊÏßÊÕ·¢Æ÷--Á®¼ÛµÄ¸ßĞÔÄÜÔ¶¾àÀë¼à¿Ø´«ÊäÉ豸,¾àÀë¿É´ï1-3ǧÃס£ 2¡¢LEDµç×ÓÏÔʾÆÁ£¬¼à¿Ø±¨¾¯×¨ÓÃÏÔʾÌõÆÁ£»3¡¢È«ÖĞÎľØÕóÍòÄÜÇĞ»»¼à¿Ø±¨¾¯Ö÷»ú 4¡¢ÍøÂçÊÓƵ»áÒéϵͳ 5¡¢ÏúÊÛ±£°²¼à¿Ø¡¢Â¥Óî¶Ô½²É豸£¬³Ğ½Ó±£°²¼à¿ØºÍĞ£Ô°ÍøÂ繤³Ì¡£7¡¢IC¿¨³ö×â³µ¼Æ¼ÛÆ÷ºÍ¹«ÎñÆû³µ¹ÜÀí»ú£»8¡¢²ÊÉ«¡¢ºÚ°×ÉãÏó»ú£¬Ë®ÏÂÉãÏó»ú,ϵÁкìÍâµÆ¡¢Æû³µÒ¹ÊÓÒÇ¡¢ÏµÁĞÎŞÏßÓ°ÒôÊÕ·¢Æ÷¡¢¹â¶Ë»ú¡¢ÊÓƵ¹²À´«ÊäµÈÉ豸. ±¾ÏµÍ³Ìص㣺 ÔÚͬһ¸öÍøÂç´ø¿í»·¾³ÏÂͼÏóºÍÓïÒôÖÊÁ¿¿É³¬¹ıÄ¿Ç°ËùÓеĹúÄÚÍâ²úÆ·£¬±¾ÏµÍ³ÊµÏÖ¸ßËÙ¸ßЧÂʵÄÈí¼şÑ¹Ëõ¼¼Êõ£¬Ê¹ÊµÊ±Ñ¹Ëõ´«ÊäµÄͼÏóΪ756X576ÏóËØ£¬¶ø·ÇÏóËصķŴ󣬹ÊͼÏóÇåÎú¶È¸ß£¬Ê¹ÓÃÊó±êµã»÷»­Ãæ¿É¸´Ô­·Å´óΪÂúÆÁÏÔʾ£¬Ê¹ÓôóÆÁÄ»²Êµç»òͶӰÏÔʾÂúÆÁͼÏó»áÓĞÒâÏë²»µ½µÄ¸ßÇåÎú¶ÈЧ¹û¡£ ×îĞÂÏûÏ¢£º×¨Îª±¾ÏµÍ³ÅäÓõÄMCUÒµÒÑ¿ª·¢ÊÔÑé³É¹¦£¬ÒÑͨ¹ı16¡¢32ºÍ64ºÍ128 Óû§µÄ´óϵͳ²âÊÔ£¬×ª·¢µÄͼÏóÇåÎúÎȶ¨£¬¶ą̀MCU¼¶Á¬ºó¿É¹¹³É¸ü´óϵͳ£¬Ïêϸ×éÍø·½°´Ç뺯µçÁªÏµ¡£ ĞìÖİ»ªÍ³µçÄÔÉ豸ÓĞÏŞ¹«Ë¾ ĞìÖİÊĞÇàÄê·288ºÅËÄÂ¥ TEL£º0516-3738506 2682031 FAX£º0516-3752314 ÁªÏµÈË£ºÍõÈ𺣠ÍøÖ·£ºwww.webht.com ÓÊÏ䣺xzhtgs@163.com »¶Ó­¹âÁÙÍøÉÏÓªÏúÈí¼ş³¬ÊĞ http://www.sesoft.findhere.org ±¾ÓʼşÓ󬼶¹ã¸æÈí¼ş·¢ËÍ http://www.sesoft.findhere.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 21:59: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF39537B401 for ; Sun, 2 Feb 2003 21:59:07 -0800 (PST) Received: from smtp04.iprimus.com.au (smtp04.iprimus.com.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97F4643F43 for ; Sun, 2 Feb 2003 21:59:06 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from smtp02.iprimus.net.au (210.50.76.70) by smtp04.iprimus.com.au (6.7.010) id 3E3608DE00119CAD for freebsd-current@FreeBSD.org; Mon, 3 Feb 2003 16:59:00 +1100 Received: from dilbert.robbins.dropbear.id.au ([210.50.112.47]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Mon, 3 Feb 2003 16:58:58 +1100 Received: from dilbert.robbins.dropbear.id.au (q8sfdw1rkewc3y92@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id h135wtVY058147; Mon, 3 Feb 2003 16:58:56 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id h135wrb2058146; Mon, 3 Feb 2003 16:58:53 +1100 (EST) (envelope-from tim) Date: Mon, 3 Feb 2003 16:58:52 +1100 From: Tim Robbins To: Patrick Stinson Cc: freebsd-current Subject: Re: appending files on smbfs Message-ID: <20030203165852.A58080@dilbert.robbins.dropbear.id.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from ajole-1@gci.net on Thu, Jan 30, 2003 at 07:37:04PM -0000 X-OriginalArrivalTime: 03 Feb 2003 05:58:59.0398 (UTC) FILETIME=[58484E60:01C2CB49] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 30, 2003 at 07:37:04PM -0000, Patrick Stinson wrote: > has anyone every had problems with appending existing files on volumes > mounted by smbfs or shlight? > > $ echo "sdsad" >> hey > $ echo "sdsad" >> hey > cannot create hey: Permission denied Please try this patch and let me know whether it solves the problem. Index: src/sys/fs/smbfs/smbfs_vnops.c =================================================================== RCS file: /x/freebsd/src/sys/fs/smbfs/smbfs_vnops.c,v retrieving revision 1.28 diff -u -r1.28 smbfs_vnops.c --- src/sys/fs/smbfs/smbfs_vnops.c 29 Jan 2003 13:41:52 -0000 1.28 +++ src/sys/fs/smbfs/smbfs_vnops.c 3 Feb 2003 05:51:45 -0000 @@ -139,10 +139,9 @@ } */ *ap; { struct vnode *vp = ap->a_vp; - struct ucred *cred = ap->a_cred; - u_int mode = ap->a_mode; + mode_t mode = ap->a_mode; + mode_t smbmode; struct smbmount *smp = VTOSMBFS(vp); - int error = 0; SMBVDEBUG("\n"); if ((mode & VWRITE) && (vp->v_mount->mnt_flag & MNT_RDONLY)) { @@ -153,15 +152,10 @@ break; } } - if (cred->cr_uid == 0) - return 0; - if (cred->cr_uid != smp->sm_args.uid) { - mode >>= 3; - if (!groupmember(smp->sm_args.gid, cred)) - mode >>= 3; - } - error = (((vp->v_type == VREG) ? smp->sm_args.file_mode : smp->sm_args.dir_mode) & mode) == mode ? 0 : EACCES; - return error; + smbmode = vp->v_type == VREG ? smp->sm_args.file_mode : + smp->sm_args.dir_mode; + return (vaccess(vp->v_type, smbmode, smp->sm_args.uid, + smp->sm_args.gid, ap->a_mode, ap->a_cred, NULL)); } /* ARGSUSED */ Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 23:21:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1163437B401 for ; Sun, 2 Feb 2003 23:21:33 -0800 (PST) Received: from bourbon.accessibility.org (bourbon.accessibility.org [210.226.20.19]) by mx1.FreeBSD.org (Postfix) with SMTP id E2BE343F43 for ; Sun, 2 Feb 2003 23:21:31 -0800 (PST) (envelope-from max@wide.ad.jp) Received: (qmail 11105 invoked from network); 3 Feb 2003 07:21:30 -0000 Received: from ale.imgsrc.co.jp (210.226.20.142) by bourbon.accessibility.org with SMTP; 3 Feb 2003 07:21:30 -0000 Date: Mon, 03 Feb 2003 16:21:30 +0900 Message-ID: <87ptq9vngl.wl@ale.imgsrc.co.jp> From: Masafumi NAKANE To: michaelnottebrock@gmx.net Cc: mb@imp.ch, freebsd-current@freebsd.org Subject: Re: 4.7-amd cannot mount exports from 5.0-RELEASE In-Reply-To: <200301311324.53211.michaelnottebrock@gmx.net> References: <3E36ECC3.5040502@gmx.net> <20030128215214.D10111@levais.imp.ch> <200301311324.53211.michaelnottebrock@gmx.net> User-Agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.4 (Hosorogi) FLIM/1.14.4 (=?ISO-8859-4?Q?Kashiharajing=FE-mae?=) APEL/10.4 Emacs/21.2 (i386--freebsd) MULE/5.0 (SAKAKI) X-PGP-Fingerprint: EB40 BCAB 4CE5 0764 9942 378C 9596 159E CE35 6B59 X-ICQ-UIN: 46494717 MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 31 Jan 2003 13:24:49 +0100, Michael Nottebrock wrote: > I'm sorry to have to bother you further, but this patch does not solve the > problem completely. Amd works partially now, but I still get 'mountd rpc > failed: RPC: Unable to receive' errors when I try to access > /host// (nfsd on hostname exports / > -alldirs,/usr -alldirs,/var -alldirs) and I can only access the / export. > /host//usr or /host//var, where is the > ip-address of the same machine as above, works as expected. I'm experiencing a similar situation. I'm exporting /home and /usr with -alldirs and -maproot=0 on -current box. When I try to amd-mount /home from the -stable box, I can do it without any problem, but as for current:/usr, I need to give the IP address. Now, I could amd-mount (of course via NFS) these filesystems from the -current box, i.e. mounting local partitions via NFS using AMD, without this problem. I also tested if the number of filesystems being exported matters, but it doesn't seem to be. First, I swapped the order of the entries for /home and /usr in /etc/exports, and there was no difference. Then I commented-out /home entry, but after restarting mountd, I still couldn't amd-mount /usr from the -stable box. I'm still trying to figure out what's causing this, but so far, no luck. Cheers, Max To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Feb 2 23:49:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4602737B401 for ; Sun, 2 Feb 2003 23:49:43 -0800 (PST) Received: from backmaster.cdsnet.net (backmaster.cdsnet.net [63.163.68.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 8BB1543F3F for ; Sun, 2 Feb 2003 23:49:42 -0800 (PST) (envelope-from mrcpu@backmaster.cdsnet.net) Received: (qmail 33858 invoked by uid 29999); 3 Feb 2003 07:49:36 -0000 Date: Sun, 2 Feb 2003 23:49:36 -0800 From: Jaye Mathisen To: current@freebsd.org Subject: How to freeze up your FreeBSD 5.0 box. Message-ID: <20030203074936.GA74854@backmaster.cdsnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG THis is repeatable for me at will. 5.0-current, supped as of 2/1. 4 80GIG maxtors on 2 promise IDE ultra 66 cards, exported via NFS. newfs'd an 80G FS on each drive, created one big file filled with zero's from /dev/zero on each drive. (Softupdates/UFS1) login to my other box, which has the 4 drives mounted via NFS (the other box being 4.7-stable as of 1/28/03). options from fstab are bg,intr,rw, don't recall if it was v2 or v3 NFS, although mountd was started with defaults, so I'm assuming v3. do (on the 4.7-stable box): rm /mntpt1/bigfile & rm /mntpt2/bigfile & rm /mntpt3/bigfile & rm /mntpt4/bigfile & And then switch back to the 5.0 current box, only to find out that it will not respond to any network traffic via ssh. Will respond to pings. I can type my login/pw on the console, but hitting return after typing my pw just sits there, until I ran out of VTY's. df on the 4.7 box hangs. AFter about 30 minutes, when the files finally finished being deleted, control of 5.0 box was returned, and everything was back and functioning properly. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 0: 1: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE38337B401 for ; Mon, 3 Feb 2003 00:01:00 -0800 (PST) Received: from ref5.freebsd.org (ref5.freebsd.org [216.136.204.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C67A43F79 for ; Mon, 3 Feb 2003 00:01:00 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from ref5.freebsd.org (localhost [127.0.0.1]) by ref5.freebsd.org (8.12.6/8.12.6) with ESMTP id h13810UZ061478 for ; Mon, 3 Feb 2003 00:01:00 -0800 (PST) (envelope-from des@ref5.freebsd.org) Received: (from des@localhost) by ref5.freebsd.org (8.12.6/8.12.6/Submit) id h13810qQ061476 for current@freebsd.org; Mon, 3 Feb 2003 00:01:00 -0800 (PST) Date: Mon, 3 Feb 2003 00:01:00 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302030801.h13810qQ061476@ref5.freebsd.org> To: current@freebsd.org Subject: i386 tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/i386/obj/local0/scratch/des/src/i386/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Sun Feb 2 22:28:25 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Sun Feb 2 23:41:57 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Sun Feb 2 23:41:58 PST 2003 -------------------------------------------------------------- ===> vesa "Makefile", line 5408: warning: duplicate script for target "geom_bsd.o" ignored "Makefile", line 5411: warning: duplicate script for target "geom_mbr.o" ignored /local0/scratch/des/src/sys/contrib/dev/acpica/dbdisply.c:131: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbexec.c:124: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbhistry.c:124: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbinput.c:125: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbstats.c:125: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbxface.c:127: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/hwgpe.c:122: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/hwregs.c: In function `AcpiGetSleepTypeData': /local0/scratch/des/src/sys/contrib/dev/acpica/hwregs.c:242: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/contrib/dev/acpica/nsxfname.c:125: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/nsxfobj.c:126: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/rsdump.c:124: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/utclib.c:129: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/utdebug.c:122: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c: In function `AcpiUtGetRegionName': /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c:482: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c: In function `AcpiUtGetEventName': /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c:520: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c: In function `AcpiUtGetTypeName': /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c:590: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c:593: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/dev/acpica/acpi_acad.c:50: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/dev/acpica/acpi_cmbat.c:56: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/dev/acpica/acpi_powerres.c:272: warning: `acpi_pwr_deregister_consumer' defined but not used /local0/scratch/des/src/sys/dev/acpica/acpi_powerres.c:210: warning: `acpi_pwr_deregister_resource' defined but not used cc1: warnings being treated as errors /local0/scratch/des/src/sys/dev/bktr/bktr_card.c:362: warning: excess elements in array initializer /local0/scratch/des/src/sys/dev/bktr/bktr_card.c:362: warning: (near initialization for `bt848_card_signature[0].signature') *** Error code 1 Stop in /local0/scratch/des/obj/local0/scratch/des/src/sys/LINT. *** Error code 1 Stop in /local0/scratch/des/src. *** Error code 1 Stop in /local0/scratch/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 0:44:24 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC2BC37B401; Mon, 3 Feb 2003 00:44:23 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 9FC4C43E4A; Mon, 3 Feb 2003 00:44:22 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 3 Feb 2003 08:44:21 +0000 (GMT) To: Juli Mallett Cc: Steve Kargl , Bakul Shah , Mark Murray , current@FreeBSD.org Subject: Re: rand() is broken In-reply-to: Your message of "Sun, 02 Feb 2003 16:02:27 PST." <20030202160227.B62390@FreeBSD.org> X-Request-Do: Date: Mon, 03 Feb 2003 08:44:18 +0000 From: David Malone Message-ID: <200302030844.aa84195@salmon.maths.tcd.ie> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > FWIW - AIX aggrees with Solaris. > Endiannes, or an SVR4 implementation difference? OS X agrees with FreeBSD i386. In fact, FreeBSD sparc64 and FreeBSD alpha are all the same too, so it seems the code isn't too sensitive to byteorder or wordsize. Bakul's comments on who agrees with BSD 4.{2,3,4}-* probably explain the differences. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 0:48:19 2003 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 5796337B401; Mon, 3 Feb 2003 00:48:18 -0800 (PST) Date: Mon, 3 Feb 2003 00:48:18 -0800 From: Juli Mallett To: David Malone Cc: Steve Kargl , Bakul Shah , Mark Murray , current@FreeBSD.org Subject: Re: rand() is broken Message-ID: <20030203004818.A90944@FreeBSD.org> References: <20030202160227.B62390@FreeBSD.org> <200302030844.aa84195@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200302030844.aa84195@salmon.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Mon, Feb 03, 2003 at 08:44:18AM +0000 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-LiveJournal: flata, jmallett X-Negacore: Yes Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: David Malone [ Data: 2003-02-03 ] [ Subjecte: Re: rand() is broken ] > > > FWIW - AIX aggrees with Solaris. > > > Endiannes, or an SVR4 implementation difference? > > OS X agrees with FreeBSD i386. In fact, FreeBSD sparc64 and FreeBSD > alpha are all the same too, so it seems the code isn't too sensitive > to byteorder or wordsize. > > Bakul's comments on who agrees with BSD 4.{2,3,4}-* probably explain > the differences. *Nod* when I saw that message, I got it :) -- Juli Mallett AIM: BSDFlata -- IRC: juli on EFnet OpenDarwin, Mono, FreeBSD Developer ircd-hybrid Developer, EFnet addict FreeBSD on MIPS-Anything on FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 0:54:20 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F76137B401 for ; Mon, 3 Feb 2003 00:54:19 -0800 (PST) Received: from pakastelohi.cypherpunks.to (pakastelohi.cypherpunks.to [213.130.163.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75BAB43F3F for ; Mon, 3 Feb 2003 00:54:18 -0800 (PST) (envelope-from shamrock@cypherpunks.to) Received: from VAIO650 (unknown [208.201.229.160]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pakastelohi.cypherpunks.to (Postfix) with ESMTP id C990736484 for ; Mon, 3 Feb 2003 09:54:10 +0100 (CET) From: "Lucky Green" To: Subject: L440gx+ serial BIOS needs text mode Date: Mon, 3 Feb 2003 00:53:58 -0800 Message-ID: <001301c2cb61$cbd70d90$6601a8c0@VAIO650> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have a dual PIII Intel L440gx+ (VA Linux) server. I am running CURRENT cvsupped a few hours ago. This motherboard provides access to the BIOS via sio1. When booting, the serial BIOS shows everything that's happening until the point of booting the kernel (where it seems to switch video modes to have a bright white character set rather than the dull white/grey characters used initially). 1) Is there a way to prevent the FreeBSD kernel from ever switching into this different video mode, thus allowing me to continue to use the built-in serial terminal? The machine is a headless server, I don't care if video works as long as I can pull out a serial terminal. Furthermore, dmesg shows: -------- sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A -------- While Google shows several other users seeing same output, I have been unable to find a post that clearly explained what the cause of this "not in bitmap" error is. While sio1 is used by the serial BIOS and therefore reasonably could be expected to cause some error, sio0 should work just fine. 2) Even if the above errors are harmless, how do I make them go away? TIA, --Lucky To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 1: 8: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7AC237B401 for ; Mon, 3 Feb 2003 01:08:04 -0800 (PST) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 576E643F79 for ; Mon, 3 Feb 2003 01:08:03 -0800 (PST) (envelope-from bra@fsn.hu) Received: (qmail 20517 invoked by uid 1000); 3 Feb 2003 09:07:55 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 3 Feb 2003 09:07:55 -0000 Date: Mon, 3 Feb 2003 10:07:55 +0100 (CET) From: Attila Nagy To: Lucky Green Cc: freebsd-current@FreeBSD.ORG Subject: Re: L440gx+ serial BIOS needs text mode In-Reply-To: <001301c2cb61$cbd70d90$6601a8c0@VAIO650> Message-ID: References: <001301c2cb61$cbd70d90$6601a8c0@VAIO650> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, > This motherboard provides access to the BIOS via sio1. When booting, the > serial BIOS shows everything that's happening until the point of booting > the kernel (where it seems to switch video modes to have a bright white > character set rather than the dull white/grey characters used > initially). I think you need to read the Serial Console section of the Handbook. You will find it here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html The reason that you lost the serial console after the kernel started is that you BIOS from that point is launched to the nearest galaxy's trashcan via hyperspace, I mean is not functional. You have to set up the serial console. ----------[ Free Software ISOs - http://www.fsn.hu/?f=download ]---------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 1:54:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34C4837B401 for ; Mon, 3 Feb 2003 01:54:50 -0800 (PST) Received: from gold.he.net (gold.he.net [216.218.149.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9830343F79 for ; Mon, 3 Feb 2003 01:54:49 -0800 (PST) (envelope-from daver@gomerbud.com) Received: from tombstone.localnet.gomerbud.com (adsl-64-166-166-224.dsl.snlo01.pacbell.net [64.166.166.224]) by gold.he.net (8.8.6/8.8.2) with ESMTP id BAA14192 for ; Mon, 3 Feb 2003 01:54:47 -0800 Received: by tombstone.localnet.gomerbud.com (Postfix, from userid 1001) id 34F8F22D; Mon, 3 Feb 2003 01:54:45 -0800 (PST) Date: Mon, 3 Feb 2003 01:54:45 -0800 From: "David P. Reese Jr." To: current@freebsd.org Subject: pam is chatty when logging in via ssh Message-ID: <20030203095445.GA93804@tombstone.localnet.gomerbud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On current as of about four hours ago, sshd spits the following to the console after a successful login: Feb 3 01:41:29 metropolis sshd[550]: in _openpam_check_error_code(): pam_sm_setcred(): unexpected return value 24 It seems harmless, but pam doesnt sound happy. I did notice that mergemaster updated /etc/pam/sshd by adding some krb5 lines. -- David P. Reese Jr. daver@gomerbud.com -------------------------------------------------------------------------- C You shoot yourself in the foot. Assembler You try to shoot yourself in the foot, only to discover you must first invent the gun, the bullet, the trigger, and your foot. How to Shoot Yourself in the Foot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 2: 0: 7 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A553737B401 for ; Mon, 3 Feb 2003 02:00:06 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D42EE43E4A for ; Mon, 3 Feb 2003 02:00:04 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h13A03d6073486; Mon, 3 Feb 2003 13:00:03 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h13A025o073485; Mon, 3 Feb 2003 13:00:02 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 13:00:02 +0300 From: "Andrey A. Chernov" To: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030203100002.GA73386@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030203002639.GB44914@HAL9000.homeunix.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 02, 2003 at 16:26:39 -0800, David Schultz wrote: > > The correlation is still present with your patch and NSHUFF set to > 10. For instance, try seeding rand() with contiguous monotonically > increasing integers, and observe the four lowest-order bits. Since you already have running framework for that, could you please test it with NSHUFF picked from 100-2000 range? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 2: 4:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A290C37B405 for ; Mon, 3 Feb 2003 02:04:13 -0800 (PST) Received: from pollux.asml.nl (ns.asml.nl [195.109.200.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id F266443F85 for ; Mon, 3 Feb 2003 02:04:09 -0800 (PST) (envelope-from brad.knowles@skynet.be) Received: from nlvdhv01.asml.nl (nlvdhv01 [195.109.200.68]) by pollux.asml.nl (8.8.8+Sun/8.8.8) with SMTP id LAA09125; Mon, 3 Feb 2003 11:03:59 +0100 (MET) Received: from unknown(146.106.1.223) by nlvdhv01.asml.nl via csmap id 22920; Mon, 03 Feb 2003 11:01:48 +0100 (CET) Received: from titan.asml.nl (titan [146.106.1.9]) by creon.asml.nl (8.11.6+Sun/8.11.6) with ESMTP id h13A3xH02582; Mon, 3 Feb 2003 11:03:59 +0100 (MET) Received: from [10.0.1.2] (frobozz.asml.nl [146.106.12.76]) by titan.asml.nl (8.9.3+Sun/8.9.3) with ESMTP id LAA18205; Mon, 3 Feb 2003 11:03:51 +0100 (MET) Mime-Version: 1.0 X-Sender: bs663385@pop.skynet.be Message-Id: In-Reply-To: <3E3DBAC3.14E4ED81@mindspring.com> References: <200302022302.h12N23aX053186@grimreaper.grondar.org> <3E3DBAC3.14E4ED81@mindspring.com> Date: Mon, 3 Feb 2003 10:57:56 +0100 To: Terry Lambert From: Brad Knowles Subject: Re: rand() is broken Cc: Mark Murray , "Andrey A. Chernov" , current@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 4:41 PM -0800 2003/02/02, Terry Lambert wrote: > Donald Knuth seemed to like them well enough to publish the > algorithm, as part of his discussion on randomness. He *didn't* > publish RC4, in that same discussion. RC stands for Ron's Code. This stuff came after the work that Diffie Hellman did, for which the patent expired a little while ago. Did RC4 even exist at the time that Don published that book? -- Brad Knowles, "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania. GCS/IT d+(-) s:+(++)>: a C++(+++)$ UMBSHI++++$ P+>++ L+ !E-(---) W+++(--) N+ !w--- O- M++ V PS++(+++) PE- Y+(++) PGP>+++ t+(+++) 5++(+++) X++(+++) R+(+++) tv+(+++) b+(++++) DI+(++++) D+(++) G+(++++) e++>++++ h--- r---(+++)* z(+++) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 2:20:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD8DE37B401 for ; Mon, 3 Feb 2003 02:20:44 -0800 (PST) Received: from hermes.if.lt (hermes.if.lt [195.190.141.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6E1843F43 for ; Mon, 3 Feb 2003 02:20:43 -0800 (PST) (envelope-from vaidas.damosevicius@if.lt) Received: from 195.190.141.1 (hermes [195.190.141.1]) by hermes.if.lt (IF DRAUDIMAS mail) with SMTP id 39064197F4F for ; Mon, 3 Feb 2003 12:15:50 +0200 (EET) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Mylex support under 5.0-R Date: Mon, 3 Feb 2003 12:21:05 +0100 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Mylex support under 5.0-R Thread-Index: AcLLdlcnuBBsSVDOTZ6pS8rw7UDynw== From: =?us-ascii?Q?Vaidas_Damosevicius?= To: Message-Id: <20030203101549.5ECD6197E9D@hermes.if.lt> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Hi, >=20 > Is it just me or is the Mylex driver broken under FreeBSD 5.0-Release? > I couldn't dig up anything related in archives. I'm aware of=20 > bootup issues > using Mylex cards, but I already have it installed on IDE and=20 > trying to > work with a drive connected to a mylex controller locks up the system. >=20 Scott Long is working on this problem. > Thank you, > Simon vd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 2:29:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01EC337B401 for ; Mon, 3 Feb 2003 02:29:40 -0800 (PST) Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by mx1.FreeBSD.org (Postfix) with SMTP id 24AD243F9B for ; Mon, 3 Feb 2003 02:29:38 -0800 (PST) (envelope-from alexander.pohoyda@gmx.net) Received: (qmail 12556 invoked by uid 0); 3 Feb 2003 10:29:36 -0000 Date: Mon, 3 Feb 2003 11:29:36 +0100 (MET) From: Alexander Pohoyda To: David Malone Cc: jmallett@FreeBSD.org, sgk@troutmask.apl.washington.edu, bakul@bitblocks.com, mark@grondar.org, current@FreeBSD.org MIME-Version: 1.0 References: <200302030844.aa84195@salmon.maths.tcd.ie> Subject: Re: rand() is broken X-Priority: 3 (Normal) X-Authenticated-Sender: #0014602519@gmx.net X-Authenticated-IP: [194.39.131.39] Message-ID: <29246.1044268176@www47.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > > FWIW - AIX aggrees with Solaris. OSF1 ...... V5.1 732 alpha HP-UX ..... B.11.00 U 9000/800 agree with Solaris -- Alexander Pohoyda To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 2:38:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A79BA37B401; Mon, 3 Feb 2003 02:38:37 -0800 (PST) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7F8B43F9B; Mon, 3 Feb 2003 02:38:34 -0800 (PST) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h13AcXe13080; Mon, 3 Feb 2003 08:38:33 -0200 Message-ID: <3E3E46A8.2060109@tcoip.com.br> Date: Mon, 03 Feb 2003 08:38:32 -0200 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3a) Gecko/20030128 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Doug Barton Cc: Robert Watson , CURRENT Subject: Re: copy extended attributes References: <3E3A5500.60109@tcoip.com.br> <20030131224420.Y52941@12-234-22-23.pyvrag.nggov.pbz> In-Reply-To: <20030131224420.Y52941@12-234-22-23.pyvrag.nggov.pbz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Doug Barton wrote: > Forgive me for being dense, but can you expand on your concerns? My concern is setting various mac labels to various files in /etc, and having these files keep the labels after a mergemaster. > > Doug > > > On Fri, 31 Jan 2003, Daniel C. Sobral wrote: > > >>I'm starting to have a bad feeling about mergemaster and /etc's full of >>acl and mac labels... >> >>Robert Watson wrote: >> >>>I have local patches submitted by Chris Faulhaber to copy ACLs when a file >>>is copied (or moved between file systems) that I've been meaning to finish >>>testing and merge. Likewise, for gzip, bzip, and others when a file is >>>replaced. This wouldn't address the general issue of copying extended >>>attributes, but is a necessary step. Presumably if we did extend cp, et >>>al, to copy EA's, they should explicitly copy only user namespace EAs, not >>>system EAs. There's been some recent e-mail on the Linux side about >>>interfaces to copy ACLs from one file to another, but I haven't had a >>>chance to review those changes as yet to see whether we should pick them >>>up. >> >> > -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca TCO Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net You can't teach people to be lazy -- either they have it, or they don't. -- Dagwood Bumstead To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3: 2: 7 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95C7D37B401; Mon, 3 Feb 2003 03:02:06 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 358FC43FAF; Mon, 3 Feb 2003 03:01:58 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h13B1uLf013270; Mon, 3 Feb 2003 11:01:56 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h13B1uLH013269; Mon, 3 Feb 2003 11:01:56 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h13AtgaX058602; Mon, 3 Feb 2003 12:55:42 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302031055.h13AtgaX058602@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: Kris Kennaway , Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) In-Reply-To: Your message of "Mon, 03 Feb 2003 01:26:36 +0300." <20030202222635.GA68806@nagual.pp.ru> Date: Mon, 03 Feb 2003 10:55:42 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > > If I understand correctly, this still doesn't solve the problem, > > because any PRNG sequence that hits the "magic" value will still get > > stuck there forever. > > It was true for the first patch I post which just move problem to another= > > place (this is commonly spreaded method for this PRNG). > > It is false for the last patch I post which not stuck with any given seed. How do you _know_ that your newly chosen magic number isn't going to cause some kind of recurring (and too-short) sequence of numbers? Will it recur after 5 iterations? 100? 1000? 1000000? M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3: 4:19 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC43137B401 for ; Mon, 3 Feb 2003 03:04:17 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22C9043F79 for ; Mon, 3 Feb 2003 03:04:17 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 67C003ABB3B; Mon, 3 Feb 2003 12:06:28 +0100 (CET) Date: Mon, 3 Feb 2003 12:06:28 +0100 From: Pawel Jakub Dawidek To: freebsd-current@freebsd.org Subject: LOR: if_ether.c -> route.c. Message-ID: <20030203110628.GA9430@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="D4brdooRo2fSXA69" Content-Disposition: inline X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.7-STABLE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --D4brdooRo2fSXA69 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. We got lock order reversal here: 1st 0xc0384800 arp mutex (arp mutex) @ /usr/src/sys/netinet/if_ether.c:151 2nd 0xc1886b7c radix node head (radix node head) @ /usr/src/sys/net/route.= c:549 Simple backtrace: rtreqest1() [route.c] rtreqest() [route.c] arptfree() [if_ether.c] arptimer() [if_ether.c] --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --D4brdooRo2fSXA69 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPj5NND/PhmMH/Mf1AQGTCgP+KYbIfx13gDA9goUiqVTTDK3RuriOmYm7 thu3BjRLF3E0L8gt8zLzrTUnT1C+inV+bGiX0NozjUXHCZf+xrGNhQhA3wH/TRqp HqEQ1LQwahY6sueNcbjhI89N6KvOV8AA8ceTu+lJgzq6XcVgWWAuCxFuz4AOqkZf B3KfuwnY1Sk= =WHSH -----END PGP SIGNATURE----- --D4brdooRo2fSXA69-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3: 8:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E763B37B401; Mon, 3 Feb 2003 03:08:44 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id C557E43F9B; Mon, 3 Feb 2003 03:08:43 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h13B8gd6077210; Mon, 3 Feb 2003 14:08:42 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h13B8fKD077209; Mon, 3 Feb 2003 14:08:41 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 14:08:41 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: Kris Kennaway , Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030203110841.GA77187@nagual.pp.ru> References: <20030202222635.GA68806@nagual.pp.ru> <200302031055.h13AtgaX058602@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302031055.h13AtgaX058602@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 10:55:42 +0000, Mark Murray wrote: > > How do you _know_ that your newly chosen magic number isn't going to cause > some kind of recurring (and too-short) sequence of numbers? I run simple test for it, it is not too short. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3:19: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB0F937B401; Mon, 3 Feb 2003 03:19:02 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA44B43F43; Mon, 3 Feb 2003 03:19:01 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h13BJ0d6077321; Mon, 3 Feb 2003 14:19:00 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h13BJ0lr077320; Mon, 3 Feb 2003 14:19:00 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 14:18:59 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: Kris Kennaway , Tim Robbins , current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030203111858.GA77286@nagual.pp.ru> References: <20030202222635.GA68806@nagual.pp.ru> <200302031055.h13AtgaX058602@grimreaper.grondar.org> <20030203110841.GA77187@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030203110841.GA77187@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 14:08:41 +0300, Andrey A. Chernov wrote: > On Mon, Feb 03, 2003 at 10:55:42 +0000, Mark Murray wrote: > > > > How do you _know_ that your newly chosen magic number isn't going to cause > > some kind of recurring (and too-short) sequence of numbers? > > I run simple test for it, it is not too short. To be more specific - it never returns to 0 from this value at least in 2**31 iterations. You can test it by yourself, the code is obvious: srand(0) ... loop ... if (rand() == 0) print iteration number -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3:22: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B952237B401 for ; Mon, 3 Feb 2003 03:22:01 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0A3243F85 for ; Mon, 3 Feb 2003 03:22:00 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h13BLxLf013497; Mon, 3 Feb 2003 11:22:00 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h13BLx4k013496; Mon, 3 Feb 2003 11:21:59 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h13BJHaX058897; Mon, 3 Feb 2003 13:19:17 +0200 (SAST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200302031119.h13BJHaX058897@grimreaper.grondar.org> To: "Andrey A. Chernov" Cc: current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) In-Reply-To: Your message of "Mon, 03 Feb 2003 14:08:41 +0300." <20030203110841.GA77187@nagual.pp.ru> Date: Mon, 03 Feb 2003 11:19:17 +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Mon, Feb 03, 2003 at 10:55:42 +0000, Mark Murray wrote: > > > > How do you _know_ that your newly chosen magic number isn't going to cause > > some kind of recurring (and too-short) sequence of numbers? > > I run simple test for it, it is not too short. "simple test"? How long did you check for? random() is documented to not repeat before some number of outputs; how do you know that this fix does not significantly shorten that? M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3:26: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3773637B401 for ; Mon, 3 Feb 2003 03:26:04 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id C569743E4A for ; Mon, 3 Feb 2003 03:26:02 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h13BQ1d6077424; Mon, 3 Feb 2003 14:26:01 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h13BQ1va077423; Mon, 3 Feb 2003 14:26:01 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 14:26:00 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030203112559.GA77385@nagual.pp.ru> References: <20030203110841.GA77187@nagual.pp.ru> <200302031119.h13BJHaX058897@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302031119.h13BJHaX058897@grimreaper.grondar.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 11:19:17 +0000, Mark Murray wrote: > > "simple test"? > > How long did you check for? See my another message with details. > random() is documented to not repeat before some number of outputs; > how do you know that this fix does not significantly shorten that? random(3) is not affected to to its hashing nature. We talk about rand(3). -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3:27:26 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4813537B401 for ; Mon, 3 Feb 2003 03:27:25 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D7943F79 for ; Mon, 3 Feb 2003 03:27:24 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h13BRNd6077453; Mon, 3 Feb 2003 14:27:23 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h13BRM90077452; Mon, 3 Feb 2003 14:27:22 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 14:27:21 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: current@FreeBSD.ORG Subject: Re: Final fix for 0 problem (was Re: rand() is broken) Message-ID: <20030203112721.GB77385@nagual.pp.ru> References: <20030203110841.GA77187@nagual.pp.ru> <200302031119.h13BJHaX058897@grimreaper.grondar.org> <20030203112559.GA77385@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030203112559.GA77385@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 14:26:00 +0300, Andrey A. Chernov wrote: > > random(3) is not affected to to its hashing nature. We talk about rand(3). to to = due to -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3:45:26 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54B7A37B401 for ; Mon, 3 Feb 2003 03:45:25 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D15743F75 for ; Mon, 3 Feb 2003 03:45:25 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h13BjOP5048387 for ; Mon, 3 Feb 2003 03:45:24 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h13BjO34048385 for current@freebsd.org; Mon, 3 Feb 2003 03:45:24 -0800 (PST) Date: Mon, 3 Feb 2003 03:45:24 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302031145.h13BjO34048385@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Mon Feb 3 03:08:18 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Mon Feb 3 03:39:10 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Mon Feb 3 03:39:11 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4447: warning: duplicate script for target "geom_bsd.o" ignored cc1: warnings being treated as errors /h/des/src/sys/dev/bktr/bktr_card.c:362: warning: excess elements in array initializer /h/des/src/sys/dev/bktr/bktr_card.c:362: warning: (near initialization for `bt848_card_signature[0].signature') *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 3:46:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FD7C37B401 for ; Mon, 3 Feb 2003 03:46:32 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A95F43F85 for ; Mon, 3 Feb 2003 03:46:31 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h13BkUd6077631; Mon, 3 Feb 2003 14:46:30 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h13BkTAH077630; Mon, 3 Feb 2003 14:46:29 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 14:46:29 +0300 From: "Andrey A. Chernov" To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Final fix for correlation problem (was Re: rand() is broken) Message-ID: <20030203114629.GA77557@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: <20030202090422.GA59750@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This is final fix for 1st value correlation problem. Somebody with=20 math statistic knowledge please run some test to be sure that NSHUFF is=20 good enough for this simple PRNG (i.e. not 100% good, but good for average= =20 quality PRNG we have). My simple test shown that 100 is enough, but I=20 am not PRNG math expert. Maybe increasing NSHUFF up too 2000 required. Similar patch is needed for random(3) TYPE_0 too, I'll produce it when we find good NSHUFF. --- stdlib/rand.c.bak Mon Feb 3 13:22:12 2003 +++ stdlib/rand.c Mon Feb 3 14:03:58 2003 @@ -51,6 +51,8 @@ #include #endif /* TEST */ =20 +#define NSHUFF 100 /* to drop seed -> 1st value correlation */ + static int do_rand(unsigned long *ctx) { @@ -108,7 +110,11 @@ srand(seed) u_int seed; { + int i; + next =3D seed; + for (i =3D 0; i < NSHUFF; i++) + (void)do_rand(&next); } =20 =20 @@ -137,7 +143,7 @@ unsigned long junk; =20 gettimeofday(&tv, NULL); - next =3D (getpid() << 16) ^ tv.tv_sec ^ tv.tv_usec ^ junk; + srand((getpid() << 16) ^ tv.tv_sec ^ tv.tv_usec ^ junk); } } =20 --=20 Andrey A. Chernov http://ache.pp.ru/ --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iQCVAwUBPj5WleJgpPLZnQjrAQHqRgQAiH7mWI2K30s/m9dilOVcj5v62kVcPoW5 rADaGKbs44d3r6XVyFnlB32I4HNq74n8LhGQmxZTe0dHAF4Q4P3n0mLk4GgKyNEq nrAfJ0IE6y7YuEa71uACYq2G0DRPRITve/T80kWsDoTAHFA/Z/LG7OR2Q83UmrXz l6FSYPzmLk8= =juZn -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 4: 4:19 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBA2337B401 for ; Mon, 3 Feb 2003 04:04:17 -0800 (PST) Received: from dignus.com (ip-64-32-254-102.dsl.iad.megapath.net [64.32.254.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id E26C743F93 for ; Mon, 3 Feb 2003 04:04:16 -0800 (PST) (envelope-from rivers@dignus.com) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.11.6/8.11.3) with ESMTP id h13BkqQ26845; Mon, 3 Feb 2003 06:46:52 -0500 (EST) (envelope-from rivers@dignus.com) Received: (from rivers@localhost) by lakes.dignus.com (8.11.6/8.11.3) id h13C1oE03172; Mon, 3 Feb 2003 07:01:50 -0500 (EST) (envelope-from rivers) Date: Mon, 3 Feb 2003 07:01:50 -0500 (EST) From: Thomas David Rivers Message-Id: <200302031201.h13C1oE03172@lakes.dignus.com> To: ache@nagual.pp.ru, kris@obsecurity.org Subject: Re: Final fix for correlation problem (was Re: rand() is broken) Cc: current@FreeBSD.ORG In-Reply-To: <20030203114629.GA77557@nagual.pp.ru> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm afraid I don't understand the fix... and how it seems to affect the historical behaviour of srand()/rand(). How does it address the understanding that if I use srand(28), I will get exactly the same sequence of numbers srand(28) produced yesterday, last week, last year? I have worked with programs that depend on exactly that behavior. That is, given the same input seed - I expect to see the same "random" sequence again. This requirement would seem to indicate that changing srand()/rand() isn't really possible... And, also, I believe, why random() was introduced... Please, oh please, don't change that behavior in srand()/rand(). - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 4: 7:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C60737B401 for ; Mon, 3 Feb 2003 04:07:48 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id F060643F3F for ; Mon, 3 Feb 2003 04:07:46 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h13C7gd6077876; Mon, 3 Feb 2003 15:07:42 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h13C7g6N077875; Mon, 3 Feb 2003 15:07:42 +0300 (MSK) (envelope-from ache) Date: Mon, 3 Feb 2003 15:07:42 +0300 From: "Andrey A. Chernov" To: Thomas David Rivers Cc: kris@obsecurity.org, current@FreeBSD.ORG Subject: Re: Final fix for correlation problem (was Re: rand() is broken) Message-ID: <20030203120742.GA77834@nagual.pp.ru> References: <20030203114629.GA77557@nagual.pp.ru> <200302031201.h13C1oE03172@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302031201.h13C1oE03172@lakes.dignus.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 07:01:50 -0500, Thomas David Rivers wrote: > > Please, oh please, don't change that behavior in > srand()/rand(). This subject is not discussed (again). We already discuss it long time ago and agrees that changes are allowed especially when they fix bugs. Search mailing lists for exact arguments. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 4:16: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C3D937B401 for ; Mon, 3 Feb 2003 04:16:01 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 530CA43F93 for ; Mon, 3 Feb 2003 04:16:00 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 9D0FD8F; Mon, 3 Feb 2003 06:15:54 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id CBC1658A4; Mon, 3 Feb 2003 06:13:03 -0600 (CST) Date: Mon, 3 Feb 2003 06:13:03 -0600 From: "Jacques A. Vidrine" To: "David P. Reese Jr." Cc: current@freebsd.org Subject: Re: pam is chatty when logging in via ssh Message-ID: <20030203121303.GC69322@opus.celabo.org> References: <20030203095445.GA93804@tombstone.localnet.gomerbud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030203095445.GA93804@tombstone.localnet.gomerbud.com> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 01:54:45AM -0800, David P. Reese Jr. wrote: > On current as of about four hours ago, sshd spits the following to the console > after a successful login: > > Feb 3 01:41:29 metropolis sshd[550]: in _openpam_check_error_code(): pam_sm_setcred(): unexpected return value 24 > > It seems harmless, but pam doesnt sound happy. I did notice that mergemaster > updated /etc/pam/sshd by adding some krb5 lines. That's odd. Assuming that pam_krb5 is the module which is returning `24', I fixed that 4 days ago (Wed Jan 29 21:20:38 2003 UTC). Are you certain you have rebuilt pam_krb5? What is the output of `ident /usr/lib/pam_krb5.so' (should show revision 1.13 or later). The `four hours' does indeed correspond to DES's enabling of pam_krb5 by default in etc/pam.d/sshd. Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 4:35:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F142137B401 for ; Mon, 3 Feb 2003 04:35:27 -0800 (PST) Received: from falcon.midgard.homeip.net (h76n3fls20o913.telia.com [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 6A5DE43F75 for ; Mon, 3 Feb 2003 04:35:18 -0800 (PST) (envelope-from ertr1013@student.uu.se) Received: (qmail 42518 invoked by uid 1001); 3 Feb 2003 12:35:17 -0000 Date: Mon, 3 Feb 2003 13:35:16 +0100 From: Erik Trulsson To: Thomas David Rivers Cc: ache@nagual.pp.ru, kris@obsecurity.org, current@FreeBSD.ORG Subject: Re: Final fix for correlation problem (was Re: rand() is broken) Message-ID: <20030203123516.GA42430@falcon.midgard.homeip.net> Mail-Followup-To: Thomas David Rivers , ache@nagual.pp.ru, kris@obsecurity.org, current@FreeBSD.ORG References: <20030203114629.GA77557@nagual.pp.ru> <200302031201.h13C1oE03172@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302031201.h13C1oE03172@lakes.dignus.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 07:01:50AM -0500, Thomas David Rivers wrote: > I'm afraid I don't understand the fix... and how it > seems to affect the historical behaviour of srand()/rand(). > > How does it address the understanding that if I use > srand(28), I will get exactly the same sequence of > numbers srand(28) produced yesterday, last week, > last year? That understanding is mistaken. > > I have worked with programs that depend on exactly > that behavior. Then those programs have a bug. If you need every execution of the program to use the exact same sequence of pseudo-random numbers then the program need to implement its own RNG. > > That is, given the same input seed - I expect > to see the same "random" sequence again. You will - if you generate both sequences during the same program execution. There are no guarantees (and has never been) that srand()/rand() will give the same sequence after an OS update or on a different system or even between two different runs of the same program. > > This requirement would seem to indicate that changing > srand()/rand() isn't really possible... And, also, > I believe, why random() was introduced... a) srand()/rand() does use different algorithms on different systems so depending on some particular algorithm is inherently unportable. b) random() was not introduced because the sequence from rand() couldn't be changed. It was rather because the calling interface for srand()/rand() puts constraints on the implementation that result in rand() by necessity being a rather poor RNG. random() was introduced so one could have a RNG with better statistical properties. c) I believe the algorithm used by rand() *was* changed in -CURRENT about two years ago. (And pretty the same discussion ensued back then.) This change was done because the old algorithm used was particularly poor and it was possible to do better. Now some defect in the new algorithm has apparently been discovered which is why it needs to be modified again. > > Please, oh please, don't change that behavior in > srand()/rand(). > > - Dave Rivers - -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 5:14:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D40F637B401; Mon, 3 Feb 2003 05:14:55 -0800 (PST) Received: from gold.he.net (gold.he.net [216.218.149.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D6143F75; Mon, 3 Feb 2003 05:14:55 -0800 (PST) (envelope-from daver@gomerbud.com) Received: from tombstone.localnet.gomerbud.com (adsl-64-166-166-224.dsl.snlo01.pacbell.net [64.166.166.224]) by gold.he.net (8.8.6/8.8.2) with ESMTP id FAA00929; Mon, 3 Feb 2003 05:14:47 -0800 Received: by tombstone.localnet.gomerbud.com (Postfix, from userid 1001) id F18D122D; Mon, 3 Feb 2003 05:14:46 -0800 (PST) Date: Mon, 3 Feb 2003 05:14:46 -0800 From: "David P. Reese Jr." To: "Jacques A. Vidrine" Cc: current@FreeBSD.org Subject: Re: pam is chatty when logging in via ssh Message-ID: <20030203131446.GA95050@tombstone.localnet.gomerbud.com> References: <20030203095445.GA93804@tombstone.localnet.gomerbud.com> <20030203121303.GC69322@opus.celabo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030203121303.GC69322@opus.celabo.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 06:13:03AM -0600, Jacques A. Vidrine wrote: > On Mon, Feb 03, 2003 at 01:54:45AM -0800, David P. Reese Jr. wrote: > > On current as of about four hours ago, sshd spits the following to the console > > after a successful login: > > > > Feb 3 01:41:29 metropolis sshd[550]: in _openpam_check_error_code(): pam_sm_setcred(): unexpected return value 24 > > > > It seems harmless, but pam doesnt sound happy. I did notice that mergemaster > > updated /etc/pam/sshd by adding some krb5 lines. > > That's odd. Assuming that pam_krb5 is the module which is returning > `24', I fixed that 4 days ago (Wed Jan 29 21:20:38 2003 UTC). Are you > certain you have rebuilt pam_krb5? What is the output of `ident > /usr/lib/pam_krb5.so' (should show revision 1.13 or later). I cvsuped again to get des's recent changes and built world. After a fresh install, when trying to ssh in i get: Feb 3 05:02:36 metropolis sshd[3695]: in openpam_load_module(): no pam_krb5.so found Feb 3 05:02:36 metropolis sshd[3695]: fatal: PAM: initialisation failed It seems that {build,install}world forgot about pam_krb5. [daver@metropolis:~]$ ll /usr/lib/pam_krb5* ls: /usr/lib/pam_krb5*: No such file or directory [daver@metropolis:~]$ cd /usr/src/lib/libpam/modules/pam_krb5/ [daver@metropolis:/usr/src/lib/libpam/modules/pam_krb5]$ sudo make clean obj all install ... [snip] ... [daver@metropolis:/usr/src/lib/libpam/modules/pam_krb5]$ ll /usr/lib/pam_krb5* lrwxr-xr-x 1 root wheel 13 Feb 3 05:05 /usr/lib/pam_krb5.so@ -> pam_krb5.so.2 -r--r--r-- 1 root wheel 19432 Feb 3 05:05 /usr/lib/pam_krb5.so.2 Then we try to ssh into the machine and, Feb 3 05:08:14 metropolis sshd[3750]: in openpam_load_module(): no pam_krb5.so found Feb 3 05:08:14 metropolis sshd[3750]: fatal: PAM: initialisation failed [daver@metropolis:~]$ ident /usr/lib/pam_krb5.so|grep pam_krb5 /usr/lib/pam_krb5.so: $FreeBSD: src/lib/libpam/modules/pam_krb5/pam_krb5.c,v 1.15 2003/02/03 09:45:41 des Exp $ > The `four hours' does indeed correspond to DES's enabling of pam_krb5 > by default in etc/pam.d/sshd. As a workaround, i can disable krb5 by commenting out the two lines in /etc/pam.d/sshd which contain pam_krb5.so. Then ssh works just fine. -- David P. Reese Jr. daver@gomerbud.com -------------------------------------------------------------------------- C You shoot yourself in the foot. Assembler You try to shoot yourself in the foot, only to discover you must first invent the gun, the bullet, the trigger, and your foot. How to Shoot Yourself in the Foot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 5:20:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B07B37B401; Mon, 3 Feb 2003 05:20:48 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1612243F43; Mon, 3 Feb 2003 05:20:47 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id A83B75372; Mon, 3 Feb 2003 14:20:44 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Bakul Shah Cc: Mark Murray , "Jeroen C. van Gelderen" , phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302021848.NAA19508@agamemnon.cnchost.com> From: Dag-Erling Smorgrav Date: Mon, 03 Feb 2003 14:20:44 +0100 In-Reply-To: <200302021848.NAA19508@agamemnon.cnchost.com> (Bakul Shah's message of "Sun, 02 Feb 2003 10:48:00 -0800") Message-ID: Lines: 16 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386--freebsd) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bakul Shah writes: > Guys, please realize that random() is also used in generating > simulation inputs (or timing or whatever). If you go change > the underlying algorithm or its parameters one can't generate > the same sequence from the same seed when repeating a test. > Some chip bug symptoms show up after hours/days of simulation > time and only with specific inputs so repeatablity is a > requirement. Go to for free download of up to 480,000,000 random bits, which ought to be enough for most simulations. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 5:59:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B82937B401 for ; Mon, 3 Feb 2003 05:59:50 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAAE643F9B for ; Mon, 3 Feb 2003 05:59:49 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h13DxkZh001058; Mon, 3 Feb 2003 05:59:46 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h13Dxjdg001057; Mon, 3 Feb 2003 05:59:45 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Mon, 3 Feb 2003 05:59:45 -0800 From: David Schultz To: Thomas David Rivers Cc: ache@nagual.pp.ru, kris@obsecurity.org, current@FreeBSD.ORG Subject: Re: Final fix for correlation problem (was Re: rand() is broken) Message-ID: <20030203135945.GB985@HAL9000.homeunix.com> Mail-Followup-To: Thomas David Rivers , ache@nagual.pp.ru, kris@obsecurity.org, current@FreeBSD.ORG References: <20030203114629.GA77557@nagual.pp.ru> <200302031201.h13C1oE03172@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302031201.h13C1oE03172@lakes.dignus.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Thomas David Rivers : > I'm afraid I don't understand the fix... and how it > seems to affect the historical behaviour of srand()/rand(). > > How does it address the understanding that if I use > srand(28), I will get exactly the same sequence of > numbers srand(28) produced yesterday, last week, > last year? > > I have worked with programs that depend on exactly > that behavior. > > That is, given the same input seed - I expect > to see the same "random" sequence again. > > This requirement would seem to indicate that changing > srand()/rand() isn't really possible... And, also, > I believe, why random() was introduced... > > Please, oh please, don't change that behavior in > srand()/rand(). There are two sides to this argument. One side says that rand() should always produce the same sequence for a given seed no matter what. This argument is bogus, because if you need exact reproducability across all platforms for all time, you should be using your own PRNG. The other side says that rand() should be a reasonably good RNG for most applications. It would be nice if things worked out that way, but there are enough broken rand() implementations out there that most people don't rely upon them. So I'd be inclined to call this argument bogus as well, except that I know someone who has been burned by a bad rand() while trying to test a randomized graph algorithm in C. My final thoughts are that having a better rand() implementation is a Good Thing, but it isn't that big a deal, and it certainly isn't worth all of this bickering. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 6: 1: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEE2A37B401 for ; Mon, 3 Feb 2003 06:01:08 -0800 (PST) Received: from ns2032.ovh.net (ns2032.ovh.net [213.186.35.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B39843F75 for ; Mon, 3 Feb 2003 06:01:07 -0800 (PST) (envelope-from mailing@sexe-top-gratuit.com) Received: (qmail 1656 invoked by uid 503); 3 Feb 2003 21:53:04 -0000 Received: from unknown (HELO webmaster@sexe-top-gratuit.com) (193.253.223.188) by ns2032.ovh.net with SMTP; 3 Feb 2003 21:53:04 -0000 From: "Webmaster" To: current@freebsd.org Subject: Venez vous référencer ! X-Mailer: Microsoft Outlook Express 6.00.2600.0000 Reply-To: mailing@sexe-top-gratuit.com Date: Mon, 3 Feb 2003 15:07:26 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-Id: <20030203140107.8B39843F75@mx1.FreeBSD.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bonjour , Nous vous invitons a venir référencer votre site sur http://www.sexe-top-gratuit.com , notre nouvel annuaire X . Lorsque le nombre d'inscrits sera suffisant , nous envoyerons du trafic en masse grace a nos autres annuaires , sites , et nos nombreux tgp , alors n'hesittez pas , et soyez les premiers a en profitter !!! http://www.sexe-top-gratuit.com Si vous ne souhaiter plus recevoir d'annonces de nos nouveautées , clickez sur ce lien : http://www.sexe-top-gratuit.com/sexe-gratuit/newsletter/webmaster.php3?action=desinscription&code=4871d2afb67a08ca&liste=2 Cordialement, Le webmaster To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 6: 8:52 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0D1137B401 for ; Mon, 3 Feb 2003 06:08:51 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0213C43F43 for ; Mon, 3 Feb 2003 06:08:51 -0800 (PST) (envelope-from ilmar@watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.6/8.12.5) with ESMTP id h13E8gP3080269 for ; Mon, 3 Feb 2003 09:08:42 -0500 (EST) (envelope-from ilmar@watson.org) Received: from localhost (ilmar@localhost) by fledge.watson.org (8.12.6/8.12.6/Submit) with ESMTP id h13E8ffv080266 for ; Mon, 3 Feb 2003 09:08:42 -0500 (EST) X-Authentication-Warning: fledge.watson.org: ilmar owned process doing -bs Date: Mon, 3 Feb 2003 09:08:41 -0500 (EST) From: "Ilmar S. Habibulin" To: freebsd-current@freebsd.org Subject: What is the difference between p_ucred and td_ucred? Message-ID: <20030203090133.R78581-100000@fledge.watson.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Why not to use only credits for proc and make td_ucred macro like td_proc->p_ucred? Or it has some meaning that i do not understand? Thank you for help. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 6:31:12 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E9C437B401 for ; Mon, 3 Feb 2003 06:31:10 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6729A43F43 for ; Mon, 3 Feb 2003 06:31:01 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (root@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with SMTP id h13EUiGB073075 for ; Mon, 3 Feb 2003 16:30:44 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with ESMTP id h13EUZxQ073049 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 3 Feb 2003 16:30:44 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Submit) id h13EUSEp073012; Mon, 3 Feb 2003 16:30:28 +0200 (EET) Date: Mon, 3 Feb 2003 16:30:28 +0200 From: Ruslan Ermilov To: Kevin Day Cc: "Jacques A. Vidrine" , freebsd-current@freebsd.org Subject: Re: Using 4.3-RELEASE's libc on 5.0 causes hard lockups Message-ID: <20030203143028.GF59765@sunbay.com> References: <5.1.1.5.2.20030202114819.044fd230@127.0.0.1> <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> <5.1.1.5.2.20030202112759.0461fcc8@127.0.0.1> <5.1.1.5.2.20030202114819.044fd230@127.0.0.1> <5.1.1.5.2.20030202115928.036a1268@127.0.0.1> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="10jrOL3x2xqLmOsH" Content-Disposition: inline In-Reply-To: <5.1.1.5.2.20030202115928.036a1268@127.0.0.1> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --10jrOL3x2xqLmOsH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 02, 2003 at 12:13:12PM -0600, Kevin Day wrote: > At 11:54 AM 2/2/2003, Jacques A. Vidrine wrote: > >> Ok, I admit, no matter how it happened, an application using the wrong= =20 > >libc > >> is a bad thing. > >> > >> But, how are things supposed to work? > > > >Apps that need the old libc.so.4 will find it in > >/usr/lib/compat/libc.so.4 (or /usr/lib/libc.so.4 if you didn't remove > >it, for that matter). >=20 > Well, things were definitely picking /usr/lib/libc.so.4 over anything in= =20 > compat. Should sysinstall have nuked my /usr/lib/libc if it was putting t= he=20 > correct one in compat? >=20 /usr/src/lib/compat/Makefile.inc takes care of cleaning /usr/lib when it installs stuff into /usr/lib/compat. I don't think that the "binary upgrade" option of sysinstall(8) offers this service. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --10jrOL3x2xqLmOsH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Pn0EUkv4P6juNwoRAs8xAJ9sZ24Vkexs6vCrRV0AxmIXye4VIACfVTrN 6GyAIBTXqezkESsTGtfJC6M= =hgmV -----END PGP SIGNATURE----- --10jrOL3x2xqLmOsH-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 6:35:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C619137B401 for ; Mon, 3 Feb 2003 06:35:44 -0800 (PST) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 098CF43E4A for ; Mon, 3 Feb 2003 06:35:44 -0800 (PST) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost.locore.ca [127.0.0.1]) by k6.locore.ca (8.12.6/8.12.6) with ESMTP id h13EbANk004800; Mon, 3 Feb 2003 09:37:10 -0500 (EST) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.6/8.12.6/Submit) id h13EbAuC004799; Mon, 3 Feb 2003 09:37:10 -0500 (EST) Date: Mon, 3 Feb 2003 09:37:10 -0500 From: Jake Burkholder To: "Ilmar S. Habibulin" Cc: freebsd-current@FreeBSD.ORG Subject: Re: What is the difference between p_ucred and td_ucred? Message-ID: <20030203093710.B2837@locore.ca> References: <20030203090133.R78581-100000@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030203090133.R78581-100000@fledge.watson.org>; from ilmar@watson.org on Mon, Feb 03, 2003 at 09:08:41AM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Apparently, On Mon, Feb 03, 2003 at 09:08:41AM -0500, Ilmar S. Habibulin said words to the effect of; > > Why not to use only credits for proc and make td_ucred macro like > td_proc->p_ucred? Or it has some meaning that i do not understand? td_ucred is a read only reference to p_ucred, so you can access it without needing any locks. Its potentially updated on each kernel entry. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 6:43:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8D0B37B401; Mon, 3 Feb 2003 06:43:34 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 524CD43F93; Mon, 3 Feb 2003 06:43:34 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id A27B6536E; Mon, 3 Feb 2003 15:43:32 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "David P. Reese Jr." Cc: "Jacques A. Vidrine" , current@FreeBSD.org Subject: Re: pam is chatty when logging in via ssh From: Dag-Erling Smorgrav Date: Mon, 03 Feb 2003 15:43:32 +0100 In-Reply-To: <20030203131446.GA95050@tombstone.localnet.gomerbud.com> ("David P. Reese Jr."'s message of "Mon, 3 Feb 2003 05:14:46 -0800") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030203095445.GA93804@tombstone.localnet.gomerbud.com> <20030203121303.GC69322@opus.celabo.org> <20030203131446.GA95050@tombstone.localnet.gomerbud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "David P. Reese Jr." writes: > I cvsuped again to get des's recent changes and built world. After a fresh > install, when trying to ssh in i get: > Feb 3 05:02:36 metropolis sshd[3695]: in openpam_load_module(): no pam_krb5.so found > Feb 3 05:02:36 metropolis sshd[3695]: fatal: PAM: initialisation failed > > It seems that {build,install}world forgot about pam_krb5. Oh drat, I am an idiot. I forgot that pam_krb5 is conditional on MAKE_KERBEROS5. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 7: 0:36 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CA9837B401 for ; Mon, 3 Feb 2003 07:00:34 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C18743F85 for ; Mon, 3 Feb 2003 07:00:32 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h13F0OP4080509; Mon, 3 Feb 2003 10:00:24 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Mon, 3 Feb 2003 10:00:23 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Jaye Mathisen Cc: current@freebsd.org Subject: Re: How to freeze up your FreeBSD 5.0 box. In-Reply-To: <20030203074936.GA74854@backmaster.cdsnet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jaye, Thanks for the report. Haven't seen it here, but I also don't have a configuration that looks like that one. In order to usefully debug this, we'll need some more information -- off the top of my head, it sounds a lot like a file system pseudo-deadlock of some sort. Perhaps a race to the root due to locking during a long operation. If you could compile your kernel with "options DDB", assuming it's not already, and set up a serial console, that would be helpful. When you reproduce the apparent hang, break into ddb on the console, and send the output of the following two commands: show lockedvnods ps You don't strictly have to use a serial console, but it sure is a lot easier to copy/paste the output than to copy by hand. You can find detailed instructions for setting this up in the Handbook and Developer's Handbook. A few things to tickle the thinking process: is the hang immediate, or does it wait until something else lists one of those directories? Does the hang occur if you perform the same behavior locally, or only over NFS? Do the disks churn during the deletion, or does it seem to be a CPU-intensive activity? Suppose you stick all these files a few levels fdown in the directory hierarchy -- does it help? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories On Sun, 2 Feb 2003, Jaye Mathisen wrote: > > > THis is repeatable for me at will. > > 5.0-current, supped as of 2/1. > > 4 80GIG maxtors on 2 promise IDE ultra 66 cards, exported via NFS. > > > newfs'd an 80G FS on each drive, created one big file filled with > zero's from /dev/zero on each drive. (Softupdates/UFS1) > > login to my other box, which has the 4 drives mounted via NFS > (the other box being 4.7-stable as of 1/28/03). options > from fstab are bg,intr,rw, don't recall if it was v2 or v3 NFS, > although mountd was started with defaults, so I'm assuming v3. > > do (on the 4.7-stable box): > > rm /mntpt1/bigfile & > rm /mntpt2/bigfile & > rm /mntpt3/bigfile & > rm /mntpt4/bigfile & > > > And then switch back to the 5.0 current box, only to find out > that it will not respond to any network traffic via ssh. Will > respond to pings. > > I can type my login/pw on the console, but hitting return > after typing my pw just sits there, until I ran out of VTY's. > > df on the 4.7 box hangs. > > AFter about 30 minutes, when the files finally finished being deleted, > control of 5.0 box was returned, and everything was back and functioning > properly. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 7:26:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A2BC37B405 for ; Mon, 3 Feb 2003 07:26:48 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1C1443FC1 for ; Mon, 3 Feb 2003 07:26:47 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Mon, 3 Feb 2003 10:26:46 -0500 Message-ID: From: Don Bowman To: 'Lucky Green' , freebsd-current@FreeBSD.ORG Subject: RE: L440gx+ serial BIOS needs text mode Date: Mon, 3 Feb 2003 10:26:45 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Lucky Green [mailto:shamrock@cypherpunks.to] > > 1) Is there a way to prevent the FreeBSD kernel from ever > switching into > this different video mode, thus allowing me to continue to use the > built-in serial terminal? The machine is a headless server, I > don't care > if video works as long as I can pull out a serial terminal. enable the comconsole option, set the baud rate. As for the colours etc, our machines have BIOS that do that too... I added a: set console=comconsole \ What's all this about then? It resets the console (to fix up the bios \ colour change), and outputs a banner. cr .( ^[c) to the start of /boot/loader.rc which is a vt100 reset code. This isn't a general purpose solution, but works for me. Our BIOS also changes the colour just as it exits, leaving it black on black :) --don To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 7:59: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA57037B401 for ; Mon, 3 Feb 2003 07:59:04 -0800 (PST) Received: from mx20b.rmci.net (mx20b.rmci.net [205.162.184.38]) by mx1.FreeBSD.org (Postfix) with SMTP id 39C6243F3F for ; Mon, 3 Feb 2003 07:59:04 -0800 (PST) (envelope-from massey@rmci.net) Received: (qmail 18031 invoked from network); 3 Feb 2003 15:58:58 -0000 Received: from webmaila.rmci.net (HELO rmci.net) (205.162.184.92) by mx20.rmci.net with SMTP; 3 Feb 2003 15:58:58 -0000 Received: from 216.222.104.2 (proxying for unknown) (SquirrelMail authenticated user massey@rmci.net) by webmail.velocitus.net with HTTP; Mon, 3 Feb 2003 08:58:58 -0700 (MST) Message-ID: <2102.216.222.104.2.1044287938.squirrel@webmail.velocitus.net> Date: Mon, 3 Feb 2003 08:58:58 -0700 (MST) Subject: 5.0 Ports List From: To: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Reply-To: massey@rmci.net X-Mailer: SquirrelMail (version 1.2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG First I love FreeBSD !! It Rocks! Now that I softened you busy people up. Where can I find a list of what ports 5.0 has? I am looking to setup 5.0, currently running 4.7, with Apache PHP MySQL SSH for testing and help in feed back on how it's doing or not doing. I am not a UNIX programer but I can give good descriptions and bug reports on the above programs. Thanks Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 8: 1:58 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 785FC37B401 for ; Mon, 3 Feb 2003 08:01:57 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18E6943F43 for ; Mon, 3 Feb 2003 08:01:56 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id h13G1j6F002424; Mon, 3 Feb 2003 08:01:45 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h13G1jFm002423; Mon, 3 Feb 2003 08:01:45 -0800 Date: Mon, 3 Feb 2003 08:01:45 -0800 From: Brooks Davis To: massey@rmci.net Cc: current@FreeBSD.ORG Subject: Re: 5.0 Ports List Message-ID: <20030203080145.A1822@Odin.AC.HMC.Edu> References: <2102.216.222.104.2.1044287938.squirrel@webmail.velocitus.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <2102.216.222.104.2.1044287938.squirrel@webmail.velocitus.net>; from massey@rmci.net on Mon, Feb 03, 2003 at 08:58:58AM -0700 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 03, 2003 at 08:58:58AM -0700, massey@rmci.net wrote: > First I love FreeBSD !! It Rocks! Now that I softened you busy people up. >=20 > Where can I find a list of what ports 5.0 has? I am looking to setup 5.0, > currently running 4.7, with Apache PHP MySQL SSH for testing and help in > feed back on how it's doing or not doing. I am not a UNIX programer but I > can give good descriptions and bug reports on the above programs. The ports collection isn't branched like the source tree so all the ports are available. Not all of them compile though. You can check ports/INDEX-5 for the list of ports from the release. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+PpJoXY6L6fI4GtQRAvlcAJ9N9K5MBC8+iFysREoSBI0QDUoZXACeIa8I OT0BpXSvBbaqSy/gzAl6LpQ= =98kI -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 9: 9: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3ABE37B401; Mon, 3 Feb 2003 09:09:07 -0800 (PST) Received: from 12-234-22-23.client.attbi.com (12-234-22-23.client.attbi.com [12.234.22.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2308543F85; Mon, 3 Feb 2003 09:09:06 -0800 (PST) (envelope-from DougB@FreeBSD.org) Received: from slave.gorean.org (5i7qxzh0qrpstm9l@slave.gorean.org [10.0.0.1]) by 12-234-22-23.client.attbi.com (8.12.6/8.12.6) with ESMTP id h13H91h9004178; Mon, 3 Feb 2003 09:09:02 -0800 (PST) (envelope-from DougB@FreeBSD.org) Date: Mon, 3 Feb 2003 09:09:01 -0800 (PST) From: Doug Barton To: "Daniel C. Sobral" Cc: Robert Watson , CURRENT Subject: Re: copy extended attributes In-Reply-To: <3E3E46A8.2060109@tcoip.com.br> Message-ID: <20030203090729.V4113@12-234-22-23.pyvrag.nggov.pbz> References: <3E3A5500.60109@tcoip.com.br> <20030131224420.Y52941@12-234-22-23.pyvrag.nggov.pbz> <3E3E46A8.2060109@tcoip.com.br> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Feb 2003, Daniel C. Sobral wrote: > Doug Barton wrote: > > Forgive me for being dense, but can you expand on your concerns? > > My concern is setting various mac labels to various files in /etc, and > having these files keep the labels after a mergemaster. That's reasonable.... mm uses install to do its work, perhaps an option to install to preserve the labels of the existing file when installing a new one over the top? Doug -- If it's moving, encrypt it. If it's not moving, encrypt it till it moves, then encrypt it some more. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 9:11:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2541B37B401; Mon, 3 Feb 2003 09:11:38 -0800 (PST) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A557E43F93; Mon, 3 Feb 2003 09:11:33 -0800 (PST) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h13HBVe23387; Mon, 3 Feb 2003 15:11:31 -0200 Message-ID: <3E3EA2C3.8050509@tcoip.com.br> Date: Mon, 03 Feb 2003 15:11:31 -0200 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3a) Gecko/20030128 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Doug Barton Cc: Robert Watson , CURRENT Subject: Re: copy extended attributes References: <3E3A5500.60109@tcoip.com.br> <20030131224420.Y52941@12-234-22-23.pyvrag.nggov.pbz> <3E3E46A8.2060109@tcoip.com.br> <20030203090729.V4113@12-234-22-23.pyvrag.nggov.pbz> In-Reply-To: <20030203090729.V4113@12-234-22-23.pyvrag.nggov.pbz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Doug Barton wrote: > On Mon, 3 Feb 2003, Daniel C. Sobral wrote: > > >>Doug Barton wrote: >> >>>Forgive me for being dense, but can you expand on your concerns? >> >>My concern is setting various mac labels to various files in /etc, and >>having these files keep the labels after a mergemaster. > > > That's reasonable.... mm uses install to do its work, perhaps an option > to install to preserve the labels of the existing file when installing a > new one over the top? It certainly seems a very reasonable option for install to have. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca TCO Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net UNIX is many things to many people, but it's never been everything to anybody. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 9:15:33 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EE5737B401 for ; Mon, 3 Feb 2003 09:15:32 -0800 (PST) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id B536243E4A for ; Mon, 3 Feb 2003 09:15:24 -0800 (PST) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 3.36 #1) id 18fkBe-000JKm-00 for freebsd-current@FreeBSD.ORG; Mon, 03 Feb 2003 18:15:14 +0100 Date: Mon, 3 Feb 2003 18:15:14 +0100 From: Oliver Brandmueller To: freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept Message-ID: <20030203171514.GD47228@e-Gitt.NET> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <20030201182012.GC97784@e-Gitt.NET> <20030201233621.916935D04@ptavv.es.net> <20030202.123030.27713537.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030202.123030.27713537.imp@bsdimp.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Warner. On Sun, Feb 02, 2003 at 12:30:30PM -0700, M. Warner Losh wrote: > Consider the following patch. Since you have custom configuration, it [changes in devd rc script require / before] That helped perfectly; my system is quite happy with this, even without the sleep patch. Thanx! Great work! - Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 9:39:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EAEA37B401 for ; Mon, 3 Feb 2003 09:39:32 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id B890F43F93 for ; Mon, 3 Feb 2003 09:39:31 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0144.cvx21-bradley.dialup.earthlink.net ([209.179.192.144] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fkYy-0001ez-00; Mon, 03 Feb 2003 09:39:21 -0800 Message-ID: <3E3EA8F3.D0366ED6@mindspring.com> Date: Mon, 03 Feb 2003 09:37:55 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Lucky Green Cc: freebsd-current@FreeBSD.ORG Subject: Re: L440gx+ serial BIOS needs text mode References: <001301c2cb61$cbd70d90$6601a8c0@VAIO650> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4be073efa23871b7935d26202c9c74832350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Lucky Green wrote: > I have a dual PIII Intel L440gx+ (VA Linux) server. I am running CURRENT > cvsupped a few hours ago. > > This motherboard provides access to the BIOS via sio1. When booting, the > serial BIOS shows everything that's happening until the point of booting > the kernel (where it seems to switch video modes to have a bright white > character set rather than the dull white/grey characters used > initially). I've seen this as well, FWIW. A previous employer had the same BIOS, and (mostly) refused to enable it in serial console mode, to "hide" the fact that their product was based on commodity PC hardware (they weren't fooling anyone but themselves). This is actually an escape sequence. I don't know why the BIOS stuffs out this, but the fix is to use Windows Telnet, which emulates a VT102, rather than FreeBSD Telnet in an xterm, which emulates an xterm. 8-(. > 1) Is there a way to prevent the FreeBSD kernel from ever witching into > this different video mode, thus allowing me to continue to use the > built-in serial terminal? The machine is a headless server, I don't care > if video works as long as I can pull out a serial terminal. It's not a FreeBSD thing, it's a BIOS thing. You can hack xterm to ignore "ESC" followed by anything followed by "m" (mode switch), and it will hide the problem. Normally, if there's no video card and no keyboard, FreeBSD will come up on the serial console, if you have set the console bit on the sio flags line in your kernel config. See "LINT" or "NOTES" for details, depending on which version you are using. > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled in the BIOS. > sio0 port 0x3f8-0x3ff irq 4 on acpi0 > sio0: type 16550A > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled in the BIOS. > sio1 port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > -------- > While Google shows several other users seeing same output, I have been > unable to find a post that clearly explained what the cause of this "not > in bitmap" error is. An explicit avoidance of resources which may be shared with MACH32 devices, which erroneosly leave some I/O ports enabled that should only be enabled if the chipset is in a particular mode. The result is that if you probe for a second or third serial port on machines with PALs that emulate the chipset, you get your video stomped. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 9:41: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AC1937B401 for ; Mon, 3 Feb 2003 09:41:05 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0EA543F9B for ; Mon, 3 Feb 2003 09:41:04 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0144.cvx21-bradley.dialup.earthlink.net ([209.179.192.144] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fkaa-00020A-00; Mon, 03 Feb 2003 09:41:01 -0800 Message-ID: <3E3EA95B.4CA321B0@mindspring.com> Date: Mon, 03 Feb 2003 09:39:39 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Attila Nagy Cc: Lucky Green , freebsd-current@FreeBSD.ORG Subject: Re: L440gx+ serial BIOS needs text mode References: <001301c2cb61$cbd70d90$6601a8c0@VAIO650> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4d4941a9956b4951e9403de3df62c0d90350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Attila Nagy wrote: > I think you need to read the Serial Console section of the Handbook. > You will find it here: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html This is actually no longer accurate. PHK changed the defaults, and it no longer does correct autodetection from the boot loader config file. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 9:43:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA00A37B401 for ; Mon, 3 Feb 2003 09:43:38 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 780D243F9B for ; Mon, 3 Feb 2003 09:43:38 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0144.cvx21-bradley.dialup.earthlink.net ([209.179.192.144] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fkd3-0002Rh-00; Mon, 03 Feb 2003 09:43:34 -0800 Message-ID: <3E3EA9F1.D6A84BB1@mindspring.com> Date: Mon, 03 Feb 2003 09:42:09 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Brad Knowles Cc: Mark Murray , "Andrey A. Chernov" , current@FreeBSD.ORG Subject: Re: rand() is broken References: <200302022302.h12N23aX053186@grimreaper.grondar.org> <3E3DBAC3.14E4ED81@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4d4941a9956b4951e0fd3cf6471dada64350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Brad Knowles wrote: > At 4:41 PM -0800 2003/02/02, Terry Lambert wrote: > > Donald Knuth seemed to like them well enough to publish the > > algorithm, as part of his discussion on randomness. He *didn't* > > publish RC4, in that same discussion. > > RC stands for Ron's Code. This stuff came after the work that > Diffie Hellman did, for which the patent expired a little while ago. > Did RC4 even exist at the time that Don published that book? Not the original edition, but yes, for the revised edition, which is only a couple of years old, and, in fact, includes some new algorithms, based on the fact that Fermat's last Theorem has been proved, proving the Taniyama-Shimura Conjecture as a side effect, etc.. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 9:58:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7946337B401 for ; Mon, 3 Feb 2003 09:58:15 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA91F43F75 for ; Mon, 3 Feb 2003 09:58:14 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h13Hw5P4082062; Mon, 3 Feb 2003 12:58:05 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Mon, 3 Feb 2003 12:58:05 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Ilmar S. Habibulin" Cc: freebsd-current@freebsd.org Subject: Re: What is the difference between p_ucred and td_ucred? In-Reply-To: <20030203090133.R78581-100000@fledge.watson.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Feb 2003, Ilmar S. Habibulin wrote: > Why not to use only credits for proc and make td_ucred macro like > td_proc->p_ucred? Or it has some meaning that i do not understand? td_ucred is a cached copy of p_ucred. The cached copy is potentially updated on any entry to the kernel. The reason for doing this is multi-fold: (1) Because of threading, access to p_ucred requires holding the process lock. Because we don't want to hold the process lock for every access control check, using a thread-access only reference avoids the lock. (2) Credential consistency. We perform the update check when we enter the kernel; if the comparison indicates they differ, we grab the process lock and update td_ucred. If they don't differ, we can continue. My understanding is that this is because a pointer comparison to determine if they are identical is permitted without a lock. It might be desirable to reason about the safety of this. This guarantees a single consistent "process credential" for each system call; that way there aren't races between separate access control checks resulting in inconsistent enforcement. So the end semantic is that there is, in effect, a single process credential. However, there may be divergence from that credential when threads are blocked in kernel and another thread changes the process credential, as the threads blocked in kernel won't pick up the new credential until they exit and re-enter the kernel. This approach, as I understand it, is taken by several other MP/threaded UNIXes. The strategy for selecting a credential to check against is generally to use td_ucred, and to hold no locks. You'll see that suser() does this, for example. Under some circumstances: specifically, credential updates, you need to hold the process lock and atomically check the process credential before updating. If the thread doesn't immediately leave the kernel (i.e., more checks might be performed), you'll also need to propagate the cred change to the thread from the process. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 10: 0:23 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C971D37B401 for ; Mon, 3 Feb 2003 10:00:21 -0800 (PST) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2354C43F79 for ; Mon, 3 Feb 2003 10:00:16 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd07.sul.t-online.de by mailout10.sul.t-online.com with smtp id 18fkt9-0005RZ-09; Mon, 03 Feb 2003 19:00:11 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[80.131.126.171]) by fmrl07.sul.t-online.com with esmtp id 18fksm-2ERqgyC; Mon, 3 Feb 2003 18:59:48 +0100 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.12.6/8.12.6) with ESMTP id h13HxlbL083756 for ; Mon, 3 Feb 2003 18:59:47 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.6/8.12.6) with SMTP id h13HxlaG078788 for ; Mon, 3 Feb 2003 18:59:47 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Mon, 3 Feb 2003 18:59:46 +0100 From: Alexander Leidinger To: current@freebsd.org Subject: Missing semicolon in generated insn-recog.c file. Message-Id: <20030203185946.533e3731.Alexander@Leidinger.net> X-Mailer: Sylpheed version 0.8.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I tried a buildworld yesterday and today, and I got: ---snip--- gcc -I/big/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -DHAVE_C ONFIG_H -DTARGET_NAME=\"i386-undermydesk-freebsd\" -DIN_GCC -c insn-recog.c -o insn-recog.o insn-recog.c: In function `split_2': insn-recog.c:52213: syntax error before "x3" insn-recog.c:52209: label `L9903' used but not defined *** Error code 1 Stop in /big/usr/src/gnu/usr.bin/cc/cc_int. *** Error code 1 ---snip--- It complains about compiling /usr/obj/.../gnu/usr.bin/cc/cc_int/insn-recog.c which seems to be generated (it wouldn't life in /usr/obj if it isn't generated, isn't it). There's a missing semicolon after a goto command. I don't use NOCLEAN, so there's something wrong with /usr/src, isn't it? Bye, Alexander. -- 0 and 1. Now what could be so hard about that? http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 10:45:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A80AD37B401 for ; Mon, 3 Feb 2003 10:45:15 -0800 (PST) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 0F25543F75 for ; Mon, 3 Feb 2003 10:45:14 -0800 (PST) (envelope-from bra@fsn.hu) Received: (qmail 26384 invoked by uid 1000); 3 Feb 2003 18:45:11 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 3 Feb 2003 18:45:11 -0000 Date: Mon, 3 Feb 2003 19:45:11 +0100 (CET) From: Attila Nagy To: Terry Lambert Cc: Lucky Green , "" Subject: Re: L440gx+ serial BIOS needs text mode In-Reply-To: <3E3EA95B.4CA321B0@mindspring.com> Message-ID: References: <001301c2cb61$cbd70d90$6601a8c0@VAIO650> <3E3EA95B.4CA321B0@mindspring.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, > This is actually no longer accurate. PHK changed the defaults, and it > no longer does correct autodetection from the boot loader config file. It may be my fault, but I could set up a serial console to a 5.0-RELEASE box using this page. 5.0 uses hints, I think this is the only change, I noted. What do you mean under autodetection? ----------[ Free Software ISOs - http://www.fsn.hu/?f=download ]---------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 10:47:33 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85EEC37B401 for ; Mon, 3 Feb 2003 10:47:32 -0800 (PST) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id B44DE43F93 for ; Mon, 3 Feb 2003 10:47:31 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 22854 invoked from network); 3 Feb 2003 18:47:36 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 3 Feb 2003 18:47:36 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h13IlMUT085709; Mon, 3 Feb 2003 13:47:24 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Mon, 03 Feb 2003 13:47:30 -0500 (EST) From: John Baldwin To: Julian Elischer Subject: RE: split out patch Cc: FreeBSD current users Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 01-Feb-2003 Julian Elischer wrote: > > I'm working on backing out david's patch. > > Part of his megacommit was a patch that should ahve been separatly > handled. > > I have split it out.. > Can people have a look at it and see if it makes sense. > > http://www.freebsd.org/~julian/lock.diff > > basically locks need to be per thread but were per process. > > Can we just use a thread* for this? > I think so but I wonder why it wasn't a proc* before.. I guess it was pids before because pids are easier to correlate with processes in a ps(1) listing. It looks good to me though. The only thing I saw (minor nit) is that the assignment of LK_NOPROC to the lp->lockholder doesn't need a (struct thread *) cast because LK_NOPROC already has the cast in its definition. Other than that it looks ok to me. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 10:47:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5660E37B405 for ; Mon, 3 Feb 2003 10:47:47 -0800 (PST) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 442FA43FA7 for ; Mon, 3 Feb 2003 10:47:46 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 23101 invoked from network); 3 Feb 2003 18:47:51 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 3 Feb 2003 18:47:51 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h13IlcUT085715; Mon, 3 Feb 2003 13:47:39 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200302011102.h11B25xk077482@spider.deepcore.dk> Date: Mon, 03 Feb 2003 13:47:46 -0500 (EST) From: John Baldwin To: Soeren Schmidt Subject: RE: Request for info from SiS chipset owners Cc: hackers@freebsd.org, current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 01-Feb-2003 Soeren Schmidt wrote: > > I'm currently in the midst of an ATA chipset support mega rewrite/update, > and the last item on the list is SiS support. > > That where _you_ come into the picture, I need a pciconf -l from your > SiS based system! > > Just reply to this message with the output from pciconf -l and you > have helped me sort out the myriads of SiS chipsets out there. This is from a -stable system but: chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x06451039 rev=0x01 hdr=0x00 pcib2@pci0:1:0: class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01 isab0@pci0:2:0: class=0x060100 card=0x00000000 chip=0x00081039 rev=0x00 hdr=0x00 ohci0@pci0:2:2: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00 ohci1@pci0:2:3: class=0x0c0310 card=0x70011039 chip=0x70011039 rev=0x07 hdr=0x00 atapci0@pci0:2:5: class=0x010180 card=0x55131039 chip=0x55131039 rev=0xd0 hdr=0x00 rl0@pci0:6:0: class=0x020000 card=0x13011186 chip=0x13001186 rev=0x10 hdr=0x00 none0@pci0:9:0: class=0x040100 card=0x80641102 chip=0x00021102 rev=0x08 hdr=0x00 none1@pci0:9:1: class=0x098000 card=0x00201102 chip=0x70021102 rev=0x08 hdr=0x00 none2@pci1:0:0: class=0x030000 card=0x013a1002 chip=0x514c1002 rev=0x00 hdr=0x00 -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 11:11:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0465037B401 for ; Mon, 3 Feb 2003 11:11:38 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7CB943FB8 for ; Mon, 3 Feb 2003 11:11:33 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0144.cvx21-bradley.dialup.earthlink.net ([209.179.192.144] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fm08-0000b9-00; Mon, 03 Feb 2003 11:11:29 -0800 Message-ID: <3E3EBE8E.136CB7AF@mindspring.com> Date: Mon, 03 Feb 2003 11:10:06 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Attila Nagy Cc: Lucky Green , freebsd-current@FreeBSD.ORG Subject: Re: L440gx+ serial BIOS needs text mode References: <001301c2cb61$cbd70d90$6601a8c0@VAIO650> <3E3EA95B.4CA321B0@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a49785a66686e4ac2f49f2b08b4cd8a25e350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Attila Nagy wrote: > > This is actually no longer accurate. PHK changed the defaults, and it > > no longer does correct autodetection from the boot loader config file. > > It may be my fault, but I could set up a serial console to a 5.0-RELEASE > box using this page. > 5.0 uses hints, I think this is the only change, I noted. > > What do you mean under autodetection? The sense of the -P option was changed, and it makes it so you have to do extra work to get the console driver to do the right thing from inside FreeBSD proper, on a machine that could have its keyboard removed (or not). It's because the -h is implied, and it's a toggle. See also the last two sentences of the documentation for the "-D" option, as well. I guess the intent was to force someone to put in the effort in FreeBSD itself to make the "-D" option work in the kernel, as well as in the boot loader. Anyway, it was a particular problem with the SuperMicro motherboards with the AMI BIOS that's been the subject of the rest of this discussion (i.e. the ones that kick out the escape sequence at the end, for no good reason, except to screw up non-monochrome VTxxx emulators, and make it hard to use a UNIX box as the serial console). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 11:22: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7BA337B401 for ; Mon, 3 Feb 2003 11:22:07 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37E5543FBD for ; Mon, 3 Feb 2003 11:22:07 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Mon, 3 Feb 2003 14:22:00 -0500 Message-ID: From: Don Bowman To: 'Terry Lambert' , Attila Nagy Cc: Lucky Green , freebsd-current@FreeBSD.ORG Subject: RE: L440gx+ serial BIOS needs text mode Date: Mon, 3 Feb 2003 14:21:58 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Terry Lambert [mailto:tlambert2@mindspring.com] ... > > Anyway, it was a particular problem with the SuperMicro motherboards > with the AMI BIOS that's been the subject of the rest of this > discussion (i.e. the ones that kick out the escape sequence at the > end, for no good reason, except to screw up non-monochrome VTxxx > emulators, and make it hard to use a UNIX box as the serial console). FYI, I've found that running under 'screen' fixes the problem with the odd escape sequences. One type of system we have puts out an escape sequence that is escape followed by 12 [. Not sure what that is :) The other works just great, except it switches to black on black just as it switches to the OS :) --don To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 11:47:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F92E37B401 for ; Mon, 3 Feb 2003 11:47:26 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id F02D243F43 for ; Mon, 3 Feb 2003 11:47:25 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0144.cvx21-bradley.dialup.earthlink.net ([209.179.192.144] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fmYk-0002dB-00; Mon, 03 Feb 2003 11:47:15 -0800 Message-ID: <3E3EC6EE.DE9C34F1@mindspring.com> Date: Mon, 03 Feb 2003 11:45:50 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Don Bowman Cc: Attila Nagy , Lucky Green , freebsd-current@FreeBSD.ORG Subject: Re: L440gx+ serial BIOS needs text mode References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4da094c3bcabea50f90c7dfeef4859d88666fa475841a1c7a350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Don Bowman wrote: > > Anyway, it was a particular problem with the SuperMicro motherboards > > with the AMI BIOS that's been the subject of the rest of this > > discussion (i.e. the ones that kick out the escape sequence at the > > end, for no good reason, except to screw up non-monochrome VTxxx > > emulators, and make it hard to use a UNIX box as the serial console). > > FYI, I've found that running under 'screen' fixes the problem > with the odd escape sequences. > One type of system we have puts out an escape sequence that > is escape followed by 12 [. Not sure what that is :) > The other works just great, except it switches to black on > black just as it switches to the OS :) I guess we don't get to escape from the gory details... 8-). The 12 ['s are compressed into a single [, for fully ANSI compliant state machines, because they are in the wrong column of the old DEC-published ASCII chart to terminate an escape sequence, so the real question is "what comes after the last [?". If you are seeing the 12 ['s, then your ANSI 3.64 state machine is not compliant. 8-). Back to the color change... The issue is support for the ISO ESC "[" "3" n "m" and the ISO ESC "[" "4" n "m" set foreground/set background color sequences. Windows Telnet doesn't support these, and neither does the terminal program that comes with Windows by default, but UNIX consoles do, and so does xterm, so running a dumb tty pipe like "tip" or "cu" on one of these passes them through. Running "screen" like you are, the emulation is a dumb VT100, and the escape sequences are interpreted by the "screen" program, instead of by the terminal window in which "screen" is running ("screen" is a terminal emulator that runs in a virtual terminal window, as an implementation detail for it being able to maintain multiple instances of display memory). The xterm didn't use to do this, by default, actually, and if you run your xterm with the "-cm -dc" options, or put: xterm.colorMode=false xterm.dynamicColors=false in your .Xdefaults file. I imagine this change is a result of some idiot wanting "colorls" to work by default, just as the BIOS spitting out the sequence was added at the request of some idiot to give people "one more reason not to use UNIX". 8-). If it really bothers you, you can disassemble, modify, reassemble, and then re-flash your BIOS to get rid of it (it bothered me, but not enough to do that, just enough to make me make an icon that started xterm with the color disabling arguments, which ran telnet to the terminal server connected to the serial consoles in the server room as it's "-e" argument). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 11:48:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 427E937B401; Mon, 3 Feb 2003 11:48:13 -0800 (PST) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 382DB43F75; Mon, 3 Feb 2003 11:48:11 -0800 (PST) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h13Jlre27265; Mon, 3 Feb 2003 17:47:54 -0200 Message-ID: <3E3EC768.7030707@tcoip.com.br> Date: Mon, 03 Feb 2003 17:47:52 -0200 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3a) Gecko/20030128 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: "M. Warner Losh" Cc: rwatson@FreeBSD.ORG, ob@e-Gitt.NET, freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept References: <20030202165352.GA6957@e-Gitt.NET> <20030202.112911.101834304.imp@bsdimp.com> In-Reply-To: <20030202.112911.101834304.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG M. Warner Losh wrote: > In message: > Robert Watson writes: > : I ran into a similar problem, actually -- programs like dhclient rely on > : being able to write to lease and pid files. It's almost as though we'd > : like an additional set of events when the system is "more booted". I.e., > : a devd event for each device when the network is started, etc. > > That might make sense. Part of the problem is that while the system > is booting there is only some vague notion of system state once you > get to init. Part of the problem also is that devices have no > information about what type of device any given device is. There's no > way that one could "hold in abeyance" those devices that are network > devices because we have no clue what a network device is and what > isn't. It gets muddier when devices have multiple uses. Is sio a > network device? If it is used for a ppp link it is, but if it is used > for a serial console it isn't... > > : Actually, I suspect what we want is to have a seperate network event > : management daemon -- arrival of the device is not the same as arrival of > : the interface. dhclient events (and related things) should happen as a > : result of the interface arriving, not the newbus device arrival. I.e., a > : netd that listens to routing socket and kqueue events relating to the > : network stack. > > Trouble is that "network interface arrival" is the same as "device > arrival" The network interface is attached in foo_attach() so that's > not a better time to do things because it is the same time. Since it > happens in foo_attach, it actually happens before the device is > entirely attached to the tree, so you are suggesting doing something > that happens earlier :-). While carrier detect might be slightly > better, it still is insufficient because that usually happens before > init is run too. If it was that easy, I'd do it. > > I'm still trying to find the best place to start devd. Right now it > starts before everything else. Maybe it needs to start just after the > network starts, but that's arbitrary. That would ensure that we have > a writeable /var for dhclient, but might preclude other interesting > uses for devd. One could also make a case for just before network > starts too. Doing it after means that one only has to put the 'don't > configure it again' check into one place rather than two. The one in > the second place has generated some problem reports that I need to > look into. > > Part of the problem too is that we're now doing the configuration of > devices in two places. Network devices are the only ones where we do > interesting things with, but I think that we're seeing growning pains > introducing dynamic things into a formerly static system. It is > little different than when pccard and dynamic device loading was added > to the kernel... I think people are coming at this from the wrong direction. The scripts in /etc/rc.d ought to deal with setting up dhclient and whatever else correctly if the device is present (rc.conf settings not precluding this). I think, rather, that it is devd which should call rc.d to do things at device arrival, _after_ bootstrap has completed. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca TCO Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net The most interesting specimen will not be labeled. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 11:54: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E589E37B401 for ; Mon, 3 Feb 2003 11:53:59 -0800 (PST) Received: from ref5.freebsd.org (ref5.freebsd.org [216.136.204.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 936BD43F79 for ; Mon, 3 Feb 2003 11:53:59 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from ref5.freebsd.org (localhost [127.0.0.1]) by ref5.freebsd.org (8.12.6/8.12.6) with ESMTP id h13JrxUZ092152 for ; Mon, 3 Feb 2003 11:53:59 -0800 (PST) (envelope-from des@ref5.freebsd.org) Received: (from des@localhost) by ref5.freebsd.org (8.12.6/8.12.6/Submit) id h13JrxxT092149 for current@freebsd.org; Mon, 3 Feb 2003 11:53:59 -0800 (PST) Date: Mon, 3 Feb 2003 11:53:59 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302031953.h13JrxxT092149@ref5.freebsd.org> To: current@freebsd.org Subject: i386 tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/i386/obj/local0/scratch/des/src/i386/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Mon Feb 3 10:28:03 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Mon Feb 3 11:37:02 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Mon Feb 3 11:37:02 PST 2003 -------------------------------------------------------------- ===> vesa "Makefile", line 5408: warning: duplicate script for target "geom_bsd.o" ignored "Makefile", line 5411: warning: duplicate script for target "geom_mbr.o" ignored /local0/scratch/des/src/sys/contrib/dev/acpica/dbdisply.c:131: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbexec.c:124: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbhistry.c:124: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbinput.c:125: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbstats.c:125: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/dbxface.c:127: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/hwgpe.c:122: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/hwregs.c: In function `AcpiGetSleepTypeData': /local0/scratch/des/src/sys/contrib/dev/acpica/hwregs.c:242: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/contrib/dev/acpica/nsxfname.c:125: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/nsxfobj.c:126: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/rsdump.c:124: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/utclib.c:129: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/utdebug.c:122: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c: In function `AcpiUtGetRegionName': /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c:482: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c: In function `AcpiUtGetEventName': /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c:520: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c: In function `AcpiUtGetTypeName': /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c:590: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/contrib/dev/acpica/utglobal.c:593: warning: cast discards qualifiers from pointer target type /local0/scratch/des/src/sys/dev/acpica/acpi_acad.c:50: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/dev/acpica/acpi_cmbat.c:56: warning: `_THIS_MODULE' defined but not used /local0/scratch/des/src/sys/dev/acpica/acpi_powerres.c:272: warning: `acpi_pwr_deregister_consumer' defined but not used /local0/scratch/des/src/sys/dev/acpica/acpi_powerres.c:210: warning: `acpi_pwr_deregister_resource' defined but not used cc1: warnings being treated as errors /local0/scratch/des/src/sys/dev/bktr/bktr_card.c:362: warning: excess elements in array initializer /local0/scratch/des/src/sys/dev/bktr/bktr_card.c:362: warning: (near initialization for `bt848_card_signature[0].signature') *** Error code 1 Stop in /local0/scratch/des/obj/local0/scratch/des/src/sys/LINT. *** Error code 1 Stop in /local0/scratch/des/src. *** Error code 1 Stop in /local0/scratch/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 12: 9:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3530837B401; Mon, 3 Feb 2003 12:09:42 -0800 (PST) Received: from pakastelohi.cypherpunks.to (pakastelohi.cypherpunks.to [213.130.163.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78A7243FB9; Mon, 3 Feb 2003 12:09:41 -0800 (PST) (envelope-from shamrock@cypherpunks.to) Received: from VAIO650 (unknown [208.201.229.160]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pakastelohi.cypherpunks.to (Postfix) with ESMTP id A08FA36400; Mon, 3 Feb 2003 21:09:29 +0100 (CET) From: "Lucky Green" To: Cc: Subject: RE: L440gx+ serial BIOS needs text mode Date: Mon, 3 Feb 2003 12:09:13 -0800 Message-ID: <002f01c2cbc0$22a2d010$6601a8c0@VAIO650> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Attila wrote: ------------ The reason that you lost the serial console after the kernel started is that you BIOS from that point is launched to the nearest galaxy's trashcan via hyperspace, I mean is not functional. You have to set up the serial console. ------------ A good answer on your average PC. (And perhaps even for this one :) However, the Intel L440gx+ motherboard I have (it came in a VA Linux rackmount) seems to have a separate CPU performing all kinds of monitoring tasks, watchdog, etc, so I was hoping this separate CPU was actually performing the serial console task. As I read it on page 64 of the manual (download from Intel), the second serial port is actually connected through a multiplexer to the Baseboard Management Controller (Dallas 82CH10) in my configuration. ftp://download.intel.com/support/motherboards/server/l440gx/254151-003.p df On page 36, the EMP 'always active mode' I selected suggests that console redirection remains active, and the OS can not see the port (or by extension take control of it). Which would seem to leaves the graphics mode issue. FreeBSD should be oblivious to the fact that this re-direction is even going on, but the kernel seems to do /something/ that impacts the built-in serial console. I guess the idea is to not have to use the FreeBSD software serial console, but use the hardware serial console out that comes with the motherboard. [FYI, there is a FreeBSD project to access the IMPI functions of these motherboards. , but it seems to address a slightly different question. Thanks in advance, --Lucky Green To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 12:33:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87B3C37B401 for ; Mon, 3 Feb 2003 12:33:33 -0800 (PST) Received: from mx20b.rmci.net (mx20b.rmci.net [205.162.184.38]) by mx1.FreeBSD.org (Postfix) with SMTP id DD24A43F79 for ; Mon, 3 Feb 2003 12:33:32 -0800 (PST) (envelope-from massey@rmci.net) Received: (qmail 17478 invoked from network); 3 Feb 2003 20:33:26 -0000 Received: from webmaila.rmci.net (HELO rmci.net) (205.162.184.92) by mx20.rmci.net with SMTP; 3 Feb 2003 20:33:26 -0000 Received: from 216.222.104.2 (proxying for unknown) (SquirrelMail authenticated user massey@rmci.net) by webmail.velocitus.net with HTTP; Mon, 3 Feb 2003 13:33:26 -0700 (MST) Message-ID: <4329.216.222.104.2.1044304406.squirrel@webmail.velocitus.net> Date: Mon, 3 Feb 2003 13:33:26 -0700 (MST) Subject: Re: 5.0 Ports List From: To: In-Reply-To: <20030203080145.A1822@Odin.AC.HMC.Edu> References: <2102.216.222.104.2.1044287938.squirrel@webmail.velocitus.net> <20030203080145.A1822@Odin.AC.HMC.Edu> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Reply-To: massey@rmci.net X-Mailer: SquirrelMail (version 1.2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thank you for the information. Is there by chance a list of What does work? This is so I can at least move forward and get a backup before I start blowing things up... I love the mad bomber on the muppets M > On Mon, Feb 03, 2003 at 08:58:58AM -0700, massey@rmci.net wrote: >> First I love FreeBSD !! It Rocks! Now that I softened you busy people >> up. >> >> Where can I find a list of what ports 5.0 has? I am looking to setup >> 5.0, currently running 4.7, with Apache PHP MySQL SSH for testing and >> help in feed back on how it's doing or not doing. I am not a UNIX >> programer but I can give good descriptions and bug reports on the >> above programs. > > The ports collection isn't branched like the source tree so all the > ports are available. Not all of them compile though. You can check > ports/INDEX-5 for the list of ports from the release. > > -- Brooks > > -- > Any statement of the form "X is the one, true Y" is FALSE. > PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 12:35:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03B9837B401 for ; Mon, 3 Feb 2003 12:35:13 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAF9C43F79 for ; Mon, 3 Feb 2003 12:35:11 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 4DB8067C87; Mon, 3 Feb 2003 12:35:11 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 32182E47; Mon, 3 Feb 2003 12:35:11 -0800 (PST) Date: Mon, 3 Feb 2003 12:35:11 -0800 From: Kris Kennaway To: massey@rmci.net Cc: current@FreeBSD.ORG Subject: Re: 5.0 Ports List Message-ID: <20030203203511.GA95069@rot13.obsecurity.org> References: <2102.216.222.104.2.1044287938.squirrel@webmail.velocitus.net> <20030203080145.A1822@Odin.AC.HMC.Edu> <4329.216.222.104.2.1044304406.squirrel@webmail.velocitus.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <4329.216.222.104.2.1044304406.squirrel@webmail.velocitus.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 03, 2003 at 01:33:26PM -0700, massey@rmci.net wrote: > Thank you for the information. Is there by chance a list of What does > work? This is so I can at least move forward and get a backup before I > start blowing things up... I love the mad bomber on the muppets http://bento.freeebsd.org This question belonged on ports@ Kris --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+PtJ+Wry0BWjoQKURAiOdAKCE41vNBvIdKTVP8Ys2IBQkRvnoAACgohc+ ChaDdA9VIPZ1mRlW6nPy+Yc= =9WeF -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 12:50:19 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0729137B401; Mon, 3 Feb 2003 12:50:17 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id A30A643E4A; Mon, 3 Feb 2003 12:50:10 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0144.cvx21-bradley.dialup.earthlink.net ([209.179.192.144] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fnXV-0006uw-00; Mon, 03 Feb 2003 12:50:02 -0800 Message-ID: <3E3ED594.EC05289B@mindspring.com> Date: Mon, 03 Feb 2003 12:48:20 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Lucky Green Cc: freebsd-current@FreeBSD.ORG, dwhite@freebsd.org Subject: Re: L440gx+ serial BIOS needs text mode References: <002f01c2cbc0$22a2d010$6601a8c0@VAIO650> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4223004040b78597b2be9f15421e62b6c3ca473d225a0f487350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Lucky Green wrote: > However, the Intel L440gx+ motherboard I have (it came in a VA Linux > rackmount) seems to have a separate CPU performing all kinds of > monitoring tasks, watchdog, etc, so I was hoping this separate CPU was > actually performing the serial console task. According to Doug's Intel page: http://people.freebsd.org/~dwhite/ipmi/setup_intel_scb2.html It's possible that it is, and that what's happening is some probe is writing to the port address on the I/O bus, causing the problem. If this is the case, then the only way to deal with it is to write a real driver for the thing (not the user space driver), and have the kernel claim it early, which would (should) keep other drivers from trying to poke it in the eye to see if their own hardware is there. It may also be that Intel has done the "Metolius" thing that Doug has indicated that they are pushing on his web page. If that's true, then the thing to do is to not load acpi.ko, and see if that fixes it for you. > As I read it on page 64 of > the manual (download from Intel), the second serial port is actually > connected through a multiplexer to the Baseboard Management Controller > (Dallas 82CH10) in my configuration. > ftp://download.intel.com/support/motherboards/server/l440gx/254151-003.p > df That's page 64 in the document, which is page 76 in the PDF reader, not page 64 in the PDF reader, which is the mechanical specification. 8-). > On page 36, the EMP 'always active mode' I selected suggests that > console redirection remains active, and the OS can not see the port (or > by extension take control of it). 5.3.5 #3 "suggests" the same thing, on page 64[76]. I guess the real question is whether or not ``the O/S cannot "see" the port'' is true or not. FreeBSD's serial port probing is, uh, "aggressive". It could have poked it and changed settings (e.g. from 19200, the EMP speed that the document wants to 9600, which FreeBSD wants, etc.). > Which would seem to leaves the graphics mode issue. FreeBSD should be > oblivious to the fact that this re-direction is even going on, but the > kernel seems to do /something/ that impacts the built-in serial console. Does it work in Linux? FreeBSD's console driver does flip the video mode, and that could be an issue, if the hardware operates on the basis of "screen scraping". There are a number of "serial console cards" that work by noticing differences in screen memory contents, and then dumping the necessary escape-sequenced byte-stream out to make a "VT100" screen contain the same contents in the same locations (quoted because console displays in PC's are 25 lines and a real VT100 is only 24 lines). If it's a screen scraper, then you should look at PCVT or some other alternate console driver, or you're not going to get what you want, as the thing loses it's marbles after the first video mode change. Or you could just interfere with the detection code in the current console driver. > I guess the idea is to not have to use the FreeBSD software serial > console, but use the hardware serial console out that comes with the > motherboard. Typical rack-mount use. That's what most of the screen-scraper cards try to do. FreeBSD by default isn't screen-scraper friendly. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 12:57: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58D3637B401 for ; Mon, 3 Feb 2003 12:57:02 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09BBC43F79 for ; Mon, 3 Feb 2003 12:57:01 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 3F3AB3ABB3B; Mon, 3 Feb 2003 21:59:13 +0100 (CET) Date: Mon, 3 Feb 2003 21:59:12 +0100 From: Pawel Jakub Dawidek To: freebsd-current@freebsd.org Subject: Re: LOR: if_ether.c -> route.c. Message-ID: <20030203205912.GB9430@garage.freebsd.pl> References: <20030203110628.GA9430@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="/fkgiuYTZoXudvFa" Content-Disposition: inline In-Reply-To: <20030203110628.GA9430@garage.freebsd.pl> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.7-STABLE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --/fkgiuYTZoXudvFa Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 03, 2003 at 12:06:28PM +0100, Pawel Jakub Dawidek wrote: +> We got lock order reversal here: +>=20 +> 1st 0xc0384800 arp mutex (arp mutex) @ /usr/src/sys/netinet/if_ether.c:= 151 +> 2nd 0xc1886b7c radix node head (radix node head) @ /usr/src/sys/net/rou= te.c:549 +>=20 +> Simple backtrace: +> rtreqest1() [route.c] +> rtreqest() [route.c] +> arptfree() [if_ether.c] +> arptimer() [if_ether.c] I think that MTX_DUPOK is needed here, so: --- radix.h.orig Sun Feb 2 20:07:42 2003 +++ radix.h Mon Feb 3 21:48:30 2003 @@ -159,7 +159,7 @@ =20 =20 #define RADIX_NODE_HEAD_LOCK_INIT(rnh) \ - mtx_init(&(rnh)->rnh_mtx, "radix node head", NULL, MTX_DEF | MTX_RECUR= SE) + mtx_init(&(rnh)->rnh_mtx, "radix node head", NULL, MTX_DEF | MTX_RECUR= SE | MTX_DUPOK) #define RADIX_NODE_HEAD_LOCK(rnh) mtx_lock(&(rnh)->rnh_mtx) #define RADIX_NODE_HEAD_UNLOCK(rnh) mtx_unlock(&(rnh)->rnh_mtx) #define RADIX_NODE_HEAD_DESTROY(rnh) mtx_destroy(&(rnh)->rnh_mtx) Am I right? "radix node head" is locked first time in arptimer() and 2nd in rtrequest1(= ). And (if I understand code well) those locks should be in both functions, because rtrequest1() is not only called through arptimer(), but also through other functions that don't lock it eariler. --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --/fkgiuYTZoXudvFa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPj7YID/PhmMH/Mf1AQE0QQP/b19cs9k+Z0f2XvVXbOhO4AblPcai9qzv qxMQXgT0wVrOUhGIR4a7ZppeOp2YFTqJAp0bkvpR+7NZD/Ldu9FvuDs48AA1uadc JBFRAPgeBuwyXH4kc3u0rHhavzEpGVzDnr8RmaC+EkgtApvy7slDfE23R+ojKUz5 xtKiCnp3pJg= =9gGb -----END PGP SIGNATURE----- --/fkgiuYTZoXudvFa-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 14:19:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E870D37B401 for ; Mon, 3 Feb 2003 14:19:40 -0800 (PST) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4096543F9B for ; Mon, 3 Feb 2003 14:19:40 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP id MUA74016; Mon, 03 Feb 2003 14:19:39 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 265E25D04; Mon, 3 Feb 2003 14:19:39 -0800 (PST) To: "M. Warner Losh" Cc: ob@e-Gitt.NET, freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept In-reply-to: Your message of "Sun, 02 Feb 2003 06:57:32 MST." <20030202.065732.108375307.imp@bsdimp.com> Date: Mon, 03 Feb 2003 14:19:39 -0800 From: "Kevin Oberman" Message-Id: <20030203221939.265E25D04@ptavv.es.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Warner, I hate Mondays, especially when I am the front-line network trouble person (cleverly called Person of the Week or POW). I have not had much time, but I can confirm that pccard_ether is NOT called when the card is already inserted at boot time and IS called when the card is inserted after the system is booted. But this still works! The card configures just fine. ??? I now am loading both if_xe and if_wi in the loader and this seems to have made things generally happy. I hope to try your recommended patch shortly, but the kernel takes quite a while to build on this rather old system with all of the debug stuff enabled. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 > Date: Sun, 02 Feb 2003 06:57:32 -0700 (MST) > From: "M. Warner Losh" > > In message: <20030201233621.916935D04@ptavv.es.net> > "Kevin Oberman" writes: > : > Date: Sat, 1 Feb 2003 19:20:12 +0100 > : > From: Oliver Brandmueller > : > Sender: owner-freebsd-current@FreeBSD.ORG > : > > : > Hi, > : > > : > I'm currently experimenting with 5-CURRENT on my Notebook an have a > : > question regarding the concept of devd. > : > > : > With 4-STABLE I had pccardd running. Whenever a pccard was inserted I > : > had pccardd starting the corresponding scripts. I have configured devd > : > to do so now (especially for my wavelan pccard). So far everything > : > works, except for one case: When the pccard is already inserted during > : > boot, devd does not recognize the card as newly inserted device (of > : > course, it's already there). So I have currently setup a script in > : > /usr/local/etc/rc.d which starts the script corresponding to the wavelan > : > pccard, if interface wi0 is found during boot. I think this cannot be > : > the considered solution for that problem? > : > > : > What am I missing about the concept of devd? > : > : While I think you have the concept down fine, the execution may still > : be a bit fuzzy in places. > : > : If the device is in place when the system boots, devd should not be > : required, as it should be probed in the traditional manner. But this > : does not seem to execute the added things that need to be done to > : bring up a new network interface. After the system is up I need to > : execute /etc/pccard_ether to get the interface on-line. > > Can you put a echo "I'm in pccard_ether" type line in > /etc/pccard_ether and see if that's being run at boot. Like I said in > my last response, I just confirmed that it is running on my machine. > > I've had some problems with CardBus cards on boot not probing, but > that's a different problem that I'm aware of and working on a solution > for and has nothing to do with devd. > > Warner > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 14:31:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F1A937B401 for ; Mon, 3 Feb 2003 14:31:38 -0800 (PST) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECBCE43F3F for ; Mon, 3 Feb 2003 14:31:37 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP id MUA74016; Mon, 03 Feb 2003 14:31:37 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 0825A5D04; Mon, 3 Feb 2003 14:31:37 -0800 (PST) To: "M. Warner Losh" Cc: ob@e-Gitt.NET, freebsd-current@FreeBSD.ORG Subject: Re: Question about devd concept In-reply-to: Your message of "Sun, 02 Feb 2003 06:57:32 MST." <20030202.065732.108375307.imp@bsdimp.com> Date: Mon, 03 Feb 2003 14:31:37 -0800 From: "Kevin Oberman" Message-Id: <20030203223137.0825A5D04@ptavv.es.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Warner, Please ignore my last message about re-building the kernel. I just actually LOOKED at the patch and I have implemented it. (Of course, no kernel rebuild.) I still don't see anything. I am both doing the requested "echo" and writing a log entry. Neither shows up. Since it works, I now wonder if the problem is that the /var file system is not ready at the time. But why don't I see the output of the echo(1) commands? I do see that the device is detected before the config files are loaded or devd is started. After devd starts, I get the message from the entropy harvester and then the message that an attempt was made to load the driver that failed because the driver was already there.. This is followed by an LOR that I had previously reported. Then fsck starts. This is followed by network setup. I'm getting more confused by the minute. (And I have a multicast problem at Los Alamos that will tie me up for a while.) I still hate Mondays! R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 15:43:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1853837B401 for ; Mon, 3 Feb 2003 15:43:34 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id C373843FA3 for ; Mon, 3 Feb 2003 15:43:33 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h13NhXP5079899 for ; Mon, 3 Feb 2003 15:43:33 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h13NhXUq079890 for current@freebsd.org; Mon, 3 Feb 2003 15:43:33 -0800 (PST) Date: Mon, 3 Feb 2003 15:43:33 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302032343.h13NhXUq079890@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Mon Feb 3 15:11:44 PST 2003 -------------------------------------------------------------- ===> osf1 /h/des/src/sys/alpha/osf1/osf1_misc.c: In function `osf1_gettimeofday': /h/des/src/sys/alpha/osf1/osf1_misc.c:1514: `tz' undeclared (first use in this function) /h/des/src/sys/alpha/osf1/osf1_misc.c:1514: (Each undeclared identifier is reported only once /h/des/src/sys/alpha/osf1/osf1_misc.c:1514: for each function it appears in.) *** Error code 1 Stop in /h/des/src/sys/modules/osf1. *** Error code 1 Stop in /h/des/src/sys/modules. *** Error code 1 Stop in /h/des/obj/h/des/src/sys/GENERIC. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 16:21:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7071137B405 for ; Mon, 3 Feb 2003 16:21:38 -0800 (PST) Received: from arg1.demon.co.uk (arg1.demon.co.uk [62.49.12.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE22743F43 for ; Mon, 3 Feb 2003 16:21:37 -0800 (PST) (envelope-from arg-bsd@arg1.demon.co.uk) Received: by arg1.demon.co.uk (Postfix, from userid 1002) id 87DD19B02; Tue, 4 Feb 2003 00:21:36 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by arg1.demon.co.uk (Postfix) with ESMTP id 7DA535D0C; Tue, 4 Feb 2003 00:21:36 +0000 (GMT) Date: Tue, 4 Feb 2003 00:21:36 +0000 (GMT) From: Andrew Gordon X-X-Sender: To: Lucky Green Cc: Subject: RE: L440gx+ serial BIOS needs text mode In-Reply-To: <002f01c2cbc0$22a2d010$6601a8c0@VAIO650> Message-ID: <20030204000002.P42367-100000@server.arg.sj.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Feb 2003, Lucky Green wrote: > > However, the Intel L440gx+ motherboard I have (it came in a VA Linux > rackmount) seems to have a separate CPU performing all kinds of > monitoring tasks, watchdog, etc, so I was hoping this separate CPU was > actually performing the serial console task. As I read it on page 64 of > the manual (download from Intel), the second serial port is actually > connected through a multiplexer to the Baseboard Management Controller > (Dallas 82CH10) in my configuration. > ftp://download.intel.com/support/motherboards/server/l440gx/254151-003.p > df I've used several generations of these intel boards, though not the exact one which you have, most recently the se7500wv2. All of them are more conventional than it might appear: - The 'screen scraper' for serial access to the BIOS works from software on the main (i386) CPU. The earlier machines didn't have on-board video, so mapped in some ordinary RAM to the video area if you ran them without a video card fitted; later machines have video hardware and the console redirection polls this RAM. Either way, it's BIOS software generating ANSI escapes out of the ordinary serial port, and this stops when the OS boots. - The management CPU sits between the external serial port connector and the UART in the main CPU's chipset. Hence the OS running on the main CPU always thinks it's got a standard COM port, it's just a question of whether data sent to/from that port makes it to the external connector or gets subverted by the management CPU. - On the latest machines featuring 'serial over LAN', you can persuade the management CPU to subvert the serial port and pass the data over one of the ethernet ports. This seems to use a proprietary protocol, but if you have one Windows machine somewhere with the Intel management software loaded on it, you can use that to proxy the protocol for any number of managed machines - ie. telnet to port 623 on the Windows machine, then connect back to the target machine and get attached to the serial console (and so get a FreeBSD login, if that's what is running on COM2). - Medium-aged machines seem to have all the hardware to subvert the serial and ethernet ports, but won't do serial redirection apart from controlling the BIOS. Upgrading the BMC software didn't help on the machine I had in this category. Disclaimer: the above is just from playing with the machines and reading the documentaton, so I may be wrong. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 16:55:58 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEE5637B406 for ; Mon, 3 Feb 2003 16:55:57 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 790A5441F1 for ; Mon, 3 Feb 2003 16:50:11 -0800 (PST) (envelope-from mwm-dated-1044751733.f3fba3@mired.org) Received: (qmail 65831 invoked from network); 4 Feb 2003 00:48:53 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 4 Feb 2003 00:48:53 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15935.3572.592446.706044@guru.mired.org> Date: Mon, 3 Feb 2003 18:48:52 -0600 To: current@freebsd.org Subject: extended slices on 5.0-RELEASE? X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.68 (Shut Out) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [I asked this on -questions, and got no response, so...] Is it just me, or has disklabel lost the ability to read/write from extended slices in 5.0-RELEASE? http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 16:56:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58A3037B406 for ; Mon, 3 Feb 2003 16:56:11 -0800 (PST) Received: from noir.propagation.net (noir.propagation.net [63.249.159.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id B276544089 for ; Mon, 3 Feb 2003 16:54:25 -0800 (PST) (envelope-from nickh@supportteam.net) Received: from nh2 (c66.169.110.87.ftwrth.tx.charter.com [66.169.110.87]) by noir.propagation.net (8.8.5/8.8.5) with ESMTP id SAA19995 for ; Mon, 3 Feb 2003 18:49:45 -0600 Message-ID: <000501c2cbe7$a583d700$0402a8c0@nh2> From: "Nick H. -- Technical Support Engineer" To: Subject: make buildkernel failure Date: Mon, 3 Feb 2003 18:52:09 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3663.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3663.0 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've now run into this 2 times this week... doing a make buildkernel with pretty much generic (SMP turned on and IPFILTER enabled with logging and default block): /usr/src/sys/kern/kern_subr.c:557: undefined reference to `sched_prio' kern_switch.o: In function `choosethread': /usr/src/sys/kern/kern_switch.c:126: undefined reference to `sched_choose' kern_switch.o: In function `kse_reassign': /usr/src/sys/kern/kern_switch.c:278: undefined reference to `sched_add' kern_switch.o: In function `adjustrunqueue': /usr/src/sys/kern/kern_switch.c:395: undefined reference to `sched_rem' /usr/src/sys/kern/kern_switch.c:396: undefined reference to `sched_add' /usr/src/sys/kern/kern_switch.c:411: undefined reference to `sched_rem' kern_switch.o: In function `setrunqueue': /usr/src/sys/kern/kern_switch.c:493: undefined reference to `sched_rem' /usr/src/sys/kern/kern_switch.c:556: undefined reference to `sched_add' kern_synch.o: In function `msleep': /usr/src/sys/kern/kern_synch.c:242: undefined reference to `sched_sleep' kern_synch.o: In function `mi_switch': /usr/src/sys/kern/kern_synch.c:503: undefined reference to `sched_switchout' /usr/src/sys/kern/kern_synch.c:509: undefined reference to `sched_switchin' kern_synch.o: In function `setrunnable': /usr/src/sys/kern/kern_synch.c:578: undefined reference to `sched_wakeup' kern_synch.o: In function `yield': /usr/src/sys/kern/kern_synch.c:658: undefined reference to `sched_prio' kern_thread.o: In function `threadinit': /usr/src/sys/kern/kern_thread.c:623: undefined reference to `sched_sizeof_thread' /usr/src/sys/kern/kern_thread.c:639: undefined reference to `sched_sizeof_ksegrp' /usr/src/sys/kern/kern_thread.c:642: undefined reference to `sched_sizeof_kse' subr_trap.o: In function `userret': /usr/src/sys/kern/subr_trap.c:96: undefined reference to `sched_userret' subr_trap.o: In function `ast': /usr/src/sys/kern/subr_trap.c:245: undefined reference to `sched_prio' ksched.o: In function `ksched_attach': /usr/src/sys/posix4/ksched.c:62: undefined reference to `sched_rr_interval' ksched.o: In function `ksched_setscheduler': /usr/src/sys/posix4/ksched.c:192: undefined reference to `sched_prio' /usr/src/sys/posix4/ksched.c:222: undefined reference to `sched_prio' vm_zeroidle.o: In function `vm_pagezero': /usr/src/sys/vm/vm_zeroidle.c:132: undefined reference to `sched_runnable' vm_pageout.o: In function `vm_pageout_scan': /usr/src/sys/vm/vm_pageout.c:1237: undefined reference to `sched_nice' machdep.o: In function `cpu_idle': /usr/src/sys/i386/i386/machdep.c:1028: undefined reference to `sched_runnable' *** Error code 1 Stop in /usr/obj/usr/src/sys/Harms. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. That's pretty much what happens. Any ideas/suggestions on fixing? This kernconf worked fine on the CVS from about 2 weeks ago. Regards, Nick H. Technical Support Engineer nickh@supportteam.net Please rate my performance! http://www.supportteam.net/rate.php3 Please submit all new support requests to http://ticketmonster.hostingsupport.com/ ------------------------------------------- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 17: 2:24 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C08E37B401 for ; Mon, 3 Feb 2003 17:02:23 -0800 (PST) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F7EE43FA7 for ; Mon, 3 Feb 2003 17:02:22 -0800 (PST) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id 6B03110BF97; Tue, 4 Feb 2003 02:02:19 +0100 (CET) Date: Tue, 4 Feb 2003 02:02:19 +0100 From: "Simon L. Nielsen" To: "Nick H. -- Technical Support Engineer" Cc: freebsd-current@FreeBSD.ORG Subject: Re: make buildkernel failure Message-ID: <20030204010218.GA95387@nitro.dk> References: <000501c2cbe7$a583d700$0402a8c0@nh2> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <000501c2cbe7$a583d700$0402a8c0@nh2> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.02.03 18:52:09 -0600, Nick H. -- Technical Support Engineer wrote: > I've now run into this 2 times this week... doing a make buildkernel with > pretty much generic (SMP turned on and IPFILTER enabled with logging and > default block): =46rom UPDATING : 20030125: The scheduler framework has grown a second scheduler and consequent= ly you must specify one and only one scheduler in your kernel config. The in cvs config files have been updated to use the old scheduler which may be selected via 'options SCHED_4BSD'. If you would like to try the new, much more experimental, scheduler please try 'options SCHED_ULE' and contribute to the arch@ discussion. --=20 Simon L. Nielsen --jRHKVT23PllUwdXP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD4DBQE+PxEa8kocFXgPTRwRAgDVAJ48t+kO+S4Z+4A4vO8RbDpGl2z8DACYrGVG n6wzUwx/yKc+d+sfgMIynw== =a0hG -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 17: 5:22 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5068037B401 for ; Mon, 3 Feb 2003 17:05:19 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F5AE43F75 for ; Mon, 3 Feb 2003 17:05:18 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <2003020401051700300jth1qe>; Tue, 4 Feb 2003 01:05:17 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA77435; Mon, 3 Feb 2003 17:05:16 -0800 (PST) Date: Mon, 3 Feb 2003 17:05:15 -0800 (PST) From: Julian Elischer To: "Nick H. -- Technical Support Engineer" Cc: freebsd-current@FreeBSD.ORG Subject: Re: make buildkernel failure In-Reply-To: <000501c2cbe7$a583d700$0402a8c0@nh2> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG read "UPDATING" and look for teh paragraph about the new scheduler options. I disagree strongly with needing an option to keep the current scheduler.. I think no option should give teh default scheduler.. after all, you need one... On Mon, 3 Feb 2003, Nick H. -- Technical Support Engineer wrote: > I've now run into this 2 times this week... doing a make buildkernel with > pretty much generic (SMP turned on and IPFILTER enabled with logging and > default block): > > > > /usr/src/sys/kern/kern_subr.c:557: undefined reference to `sched_prio' > kern_switch.o: In function `choosethread': > /usr/src/sys/kern/kern_switch.c:126: undefined reference to `sched_choose' > kern_switch.o: In function `kse_reassign': > /usr/src/sys/kern/kern_switch.c:278: undefined reference to `sched_add' > kern_switch.o: In function `adjustrunqueue': > /usr/src/sys/kern/kern_switch.c:395: undefined reference to `sched_rem' > /usr/src/sys/kern/kern_switch.c:396: undefined reference to `sched_add' > /usr/src/sys/kern/kern_switch.c:411: undefined reference to `sched_rem' > kern_switch.o: In function `setrunqueue': > /usr/src/sys/kern/kern_switch.c:493: undefined reference to `sched_rem' > /usr/src/sys/kern/kern_switch.c:556: undefined reference to `sched_add' > kern_synch.o: In function `msleep': > /usr/src/sys/kern/kern_synch.c:242: undefined reference to `sched_sleep' > kern_synch.o: In function `mi_switch': > /usr/src/sys/kern/kern_synch.c:503: undefined reference to `sched_switchout' > /usr/src/sys/kern/kern_synch.c:509: undefined reference to `sched_switchin' > kern_synch.o: In function `setrunnable': > /usr/src/sys/kern/kern_synch.c:578: undefined reference to `sched_wakeup' > kern_synch.o: In function `yield': > /usr/src/sys/kern/kern_synch.c:658: undefined reference to `sched_prio' > kern_thread.o: In function `threadinit': > /usr/src/sys/kern/kern_thread.c:623: undefined reference to > `sched_sizeof_thread' > /usr/src/sys/kern/kern_thread.c:639: undefined reference to > `sched_sizeof_ksegrp' > /usr/src/sys/kern/kern_thread.c:642: undefined reference to > `sched_sizeof_kse' > subr_trap.o: In function `userret': > /usr/src/sys/kern/subr_trap.c:96: undefined reference to `sched_userret' > subr_trap.o: In function `ast': > /usr/src/sys/kern/subr_trap.c:245: undefined reference to `sched_prio' > ksched.o: In function `ksched_attach': > /usr/src/sys/posix4/ksched.c:62: undefined reference to `sched_rr_interval' > ksched.o: In function `ksched_setscheduler': > /usr/src/sys/posix4/ksched.c:192: undefined reference to `sched_prio' > /usr/src/sys/posix4/ksched.c:222: undefined reference to `sched_prio' > vm_zeroidle.o: In function `vm_pagezero': > /usr/src/sys/vm/vm_zeroidle.c:132: undefined reference to `sched_runnable' > vm_pageout.o: In function `vm_pageout_scan': > /usr/src/sys/vm/vm_pageout.c:1237: undefined reference to `sched_nice' > machdep.o: In function `cpu_idle': > /usr/src/sys/i386/i386/machdep.c:1028: undefined reference to > `sched_runnable' > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/Harms. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > > That's pretty much what happens. Any ideas/suggestions on fixing? This > kernconf worked fine on the CVS from about 2 weeks ago. > > > > Regards, > Nick H. > Technical Support Engineer > nickh@supportteam.net > > Please rate my performance! http://www.supportteam.net/rate.php3 > Please submit all new support requests to > http://ticketmonster.hostingsupport.com/ > > ------------------------------------------- > Privileged/Confidential Information may be contained in this message. If > you are not the addressee indicated in this message (or responsible for > delivery of the message to such person), you may not copy or deliver this > message to anyone. In such case, you should destroy this message and kindly > notify the sender by reply email. Please advise immediately if you or your > employer do not consent to Internet email for messages of this kind. > Opinions, conclusions and other information in this message that do not > relate to the official business of my firm shall be understood as neither > given nor endorsed by it. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 17: 6: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB24837B401 for ; Mon, 3 Feb 2003 17:05:59 -0800 (PST) Received: from noir.propagation.net (noir.propagation.net [63.249.159.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 415D543FA3 for ; Mon, 3 Feb 2003 17:05:59 -0800 (PST) (envelope-from nickh@supportteam.net) Received: from nh2 (c66.169.110.87.ftwrth.tx.charter.com [66.169.110.87]) by noir.propagation.net (8.8.5/8.8.5) with ESMTP id TAA27709; Mon, 3 Feb 2003 19:05:50 -0600 Message-ID: <001701c2cbe9$e45a3210$0402a8c0@nh2> From: "Nick H. -- Technical Support Engineer" To: "Julian Elischer" Cc: References: Subject: Re: make buildkernel failure Date: Mon, 3 Feb 2003 19:08:13 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3663.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3663.0 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG options SCHED_4BSD #4BSD scheduler It's in there. Regards, Nick H. Technical Support Engineer nickh@supportteam.net Please rate my performance! http://www.supportteam.net/rate.php3 Please submit all new support requests to http://ticketmonster.hostingsupport.com/ ------------------------------------------- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it. ----- Original Message ----- From: "Julian Elischer" To: "Nick H. -- Technical Support Engineer" Cc: Sent: Monday, February 03, 2003 7:05 PM Subject: Re: make buildkernel failure : : read "UPDATING" and look for teh paragraph about the new scheduler : options. : : I disagree strongly with needing an option to keep the current : scheduler.. : I think no option should give teh default scheduler.. after : all, you need one... : : : On Mon, 3 Feb 2003, Nick H. -- Technical Support Engineer wrote: : : > I've now run into this 2 times this week... doing a make buildkernel with : > pretty much generic (SMP turned on and IPFILTER enabled with logging and : > default block): : > : > : > : > /usr/src/sys/kern/kern_subr.c:557: undefined reference to `sched_prio' : > kern_switch.o: In function `choosethread': : > /usr/src/sys/kern/kern_switch.c:126: undefined reference to `sched_choose' : > kern_switch.o: In function `kse_reassign': : > /usr/src/sys/kern/kern_switch.c:278: undefined reference to `sched_add' : > kern_switch.o: In function `adjustrunqueue': : > /usr/src/sys/kern/kern_switch.c:395: undefined reference to `sched_rem' : > /usr/src/sys/kern/kern_switch.c:396: undefined reference to `sched_add' : > /usr/src/sys/kern/kern_switch.c:411: undefined reference to `sched_rem' : > kern_switch.o: In function `setrunqueue': : > /usr/src/sys/kern/kern_switch.c:493: undefined reference to `sched_rem' : > /usr/src/sys/kern/kern_switch.c:556: undefined reference to `sched_add' : > kern_synch.o: In function `msleep': : > /usr/src/sys/kern/kern_synch.c:242: undefined reference to `sched_sleep' : > kern_synch.o: In function `mi_switch': : > /usr/src/sys/kern/kern_synch.c:503: undefined reference to `sched_switchout' : > /usr/src/sys/kern/kern_synch.c:509: undefined reference to `sched_switchin' : > kern_synch.o: In function `setrunnable': : > /usr/src/sys/kern/kern_synch.c:578: undefined reference to `sched_wakeup' : > kern_synch.o: In function `yield': : > /usr/src/sys/kern/kern_synch.c:658: undefined reference to `sched_prio' : > kern_thread.o: In function `threadinit': : > /usr/src/sys/kern/kern_thread.c:623: undefined reference to : > `sched_sizeof_thread' : > /usr/src/sys/kern/kern_thread.c:639: undefined reference to : > `sched_sizeof_ksegrp' : > /usr/src/sys/kern/kern_thread.c:642: undefined reference to : > `sched_sizeof_kse' : > subr_trap.o: In function `userret': : > /usr/src/sys/kern/subr_trap.c:96: undefined reference to `sched_userret' : > subr_trap.o: In function `ast': : > /usr/src/sys/kern/subr_trap.c:245: undefined reference to `sched_prio' : > ksched.o: In function `ksched_attach': : > /usr/src/sys/posix4/ksched.c:62: undefined reference to `sched_rr_interval' : > ksched.o: In function `ksched_setscheduler': : > /usr/src/sys/posix4/ksched.c:192: undefined reference to `sched_prio' : > /usr/src/sys/posix4/ksched.c:222: undefined reference to `sched_prio' : > vm_zeroidle.o: In function `vm_pagezero': : > /usr/src/sys/vm/vm_zeroidle.c:132: undefined reference to `sched_runnable' : > vm_pageout.o: In function `vm_pageout_scan': : > /usr/src/sys/vm/vm_pageout.c:1237: undefined reference to `sched_nice' : > machdep.o: In function `cpu_idle': : > /usr/src/sys/i386/i386/machdep.c:1028: undefined reference to : > `sched_runnable' : > *** Error code 1 : > : > Stop in /usr/obj/usr/src/sys/Harms. : > *** Error code 1 : > : > Stop in /usr/src. : > *** Error code 1 : > : > Stop in /usr/src. : > : > : > That's pretty much what happens. Any ideas/suggestions on fixing? This : > kernconf worked fine on the CVS from about 2 weeks ago. : > : > : > : > Regards, : > Nick H. : > Technical Support Engineer : > nickh@supportteam.net : > : > Please rate my performance! http://www.supportteam.net/rate.php3 : > Please submit all new support requests to : > http://ticketmonster.hostingsupport.com/ : > : > ------------------------------------------- : > Privileged/Confidential Information may be contained in this message. If : > you are not the addressee indicated in this message (or responsible for : > delivery of the message to such person), you may not copy or deliver this : > message to anyone. In such case, you should destroy this message and kindly : > notify the sender by reply email. Please advise immediately if you or your : > employer do not consent to Internet email for messages of this kind. : > Opinions, conclusions and other information in this message that do not : > relate to the official business of my firm shall be understood as neither : > given nor endorsed by it. : > : > : > : > To Unsubscribe: send mail to majordomo@FreeBSD.org : > with "unsubscribe freebsd-current" in the body of the message : > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 17:38:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D071037B401 for ; Mon, 3 Feb 2003 17:38:46 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA1F643F9B for ; Mon, 3 Feb 2003 17:38:45 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 4851C8F for ; Mon, 3 Feb 2003 19:38:45 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id 888685787; Mon, 3 Feb 2003 19:37:06 -0600 (CST) Date: Mon, 3 Feb 2003 19:37:06 -0600 From: "Jacques A. Vidrine" To: freebsd-current@FreeBSD.org Subject: OK, how about now? PFIL_HOOKS Message-ID: <20030204013706.GA28150@opus.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Now that 5.0 has been released, can we please make PFIL_HOOKS the default? -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 17:40:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D34C137B401 for ; Mon, 3 Feb 2003 17:40:10 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57DC643F3F for ; Mon, 3 Feb 2003 17:40:10 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id F29AE4 for ; Mon, 3 Feb 2003 19:40:09 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id 70C215787; Mon, 3 Feb 2003 19:38:31 -0600 (CST) Date: Mon, 3 Feb 2003 19:38:31 -0600 From: "Jacques A. Vidrine" To: freebsd-current@FreeBSD.org Subject: Re: OK, how about now? PFIL_HOOKS Message-ID: <20030204013831.GC28150@opus.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , freebsd-current@FreeBSD.org References: <20030204013706.GA28150@opus.celabo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204013706.GA28150@opus.celabo.org> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 07:37:06PM -0600, Jacques A. Vidrine wrote: > Now that 5.0 has been released, can we please make PFIL_HOOKS the > default? Oh, I should have said that I'm going to make the change in a few days if there are no objections. Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 17:54:27 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D665837B401 for ; Mon, 3 Feb 2003 17:54:26 -0800 (PST) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5072E43F79 for ; Mon, 3 Feb 2003 17:54:26 -0800 (PST) (envelope-from hsu@FreeBSD.org) Received: from FreeBSD.org ([63.193.112.125]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id <0H9R00JXVHAQ2B@mta5.snfc21.pbi.net> for freebsd-current@freebsd.org; Mon, 03 Feb 2003 17:54:26 -0800 (PST) Date: Mon, 03 Feb 2003 17:57:12 -0800 From: Jeffrey Hsu Subject: Re: LOR: if_ether.c -> route.c. To: nick@garage.freebsd.pl Cc: freebsd-current@freebsd.org Message-id: <0H9R00JXWHAQ2B@mta5.snfc21.pbi.net> MIME-version: 1.0 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 1st 0xc0384800 arp mutex (arp mutex) @ /usr/src/sys/netinet/if_ether.c:151 > 2nd 0xc1886b7c radix node head (radix node head) @ > /usr/src/sys/net/route.c:549 A fix was committed on Jan 28, so if you update your source, the problem will go away. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 18:11:23 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D51E37B401 for ; Mon, 3 Feb 2003 18:11:22 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07E3043F75 for ; Mon, 3 Feb 2003 18:11:22 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0354.cvx21-bradley.dialup.earthlink.net ([209.179.193.99] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fsYQ-0002BC-00; Mon, 03 Feb 2003 18:11:18 -0800 Message-ID: <3E3F1F70.2425CA10@mindspring.com> Date: Mon, 03 Feb 2003 18:03:28 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Julian Elischer Cc: "Nick H. -- Technical Support Engineer" , freebsd-current@FreeBSD.ORG Subject: Re: make buildkernel failure References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a458e8ba6eccd286fbaaf1a004c222bdeb350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Julian Elischer wrote: > read "UPDATING" and look for teh paragraph about the new scheduler > options. > > I disagree strongly with needing an option to keep the current > scheduler.. > I think no option should give teh default scheduler.. after > all, you need one... It's trivial to do this, I think. If no one gets around to it, near the end of the week I'll do it. Note that this will add some pointer indirection to the scheduler calls, but it's pretty trivial. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 20:24:23 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D942137B434 for ; Mon, 3 Feb 2003 20:24:18 -0800 (PST) Received: from colnta.issci.ca (mail.acns.ab.ca [142.179.151.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F0BD43F93 for ; Mon, 3 Feb 2003 20:24:17 -0800 (PST) (envelope-from davidc@colnta.issci.ca) Received: from colnta.issci.ca (localhost [127.0.0.1]) by colnta.issci.ca (8.12.6/8.12.6) with ESMTP id h144OBAM032294 for ; Mon, 3 Feb 2003 21:24:11 -0700 (MST) (envelope-from davidc@colnta.issci.ca) Received: (from davidc@localhost) by colnta.issci.ca (8.12.6/8.12.6/Submit) id h144OBM9032293 for current@freebsd.org; Mon, 3 Feb 2003 21:24:11 -0700 (MST) Date: Mon, 3 Feb 2003 21:24:10 -0700 From: Chad David To: current@freebsd.org Subject: minor yacc warnings Message-ID: <20030204042410.GA31903@colnta.acns.ab.ca> Mail-Followup-To: current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline We are having minor problems with a newer gcc generating warnings for yacc due to yyrcsid not being used. Does anyone object to the following patch to skeleton.c or have a better way of handling this? -Dlint causes other problems. Thanks. -- Chad David davidc@issci.ca www.FreeBSD.org davidc@freebsd.org ISSci Inc. Calgary, Alberta Canada --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="skel.diff" Index: skeleton.c =================================================================== RCS file: /mnt1/ncvs/src/usr.bin/yacc/skeleton.c,v retrieving revision 1.34 diff -u -d -r1.34 skeleton.c --- skeleton.c 9 Apr 2002 11:39:05 -0000 1.34 +++ skeleton.c 4 Feb 2003 04:10:14 -0000 @@ -60,8 +60,9 @@ const char *banner[] = { "#ifndef lint", + "#include ", "static char const ", - "yyrcsid[] = \"$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.34 2002/04/09 11:39:05 ru Exp $\";", + "yyrcsid[] __unused = \"$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.34 2002/04/09 11:39:05 ru Exp $\";", "#endif", "#include ", "#define YYBYACC 1", --y0ulUmNC+osPPQO6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 21:32:27 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9D7E37B401 for ; Mon, 3 Feb 2003 21:32:25 -0800 (PST) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0B1E43F43 for ; Mon, 3 Feb 2003 21:32:24 -0800 (PST) (envelope-from mi@corbulon.video-collage.com) Received: from corbulon.video-collage.com (smmsp@localhost.video-collage.com [127.0.0.1]) by corbulon.video-collage.com (8.12.7/8.12.7) with ESMTP id h145WBM7062667 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 4 Feb 2003 00:32:15 -0500 (EST) (envelope-from mi@corbulon.video-collage.com) Received: (from mi@localhost) by corbulon.video-collage.com (8.12.7/8.12.7/Submit) id h143SeuS062349; Mon, 3 Feb 2003 22:28:40 -0500 (EST) (envelope-from mi) From: Mikhail Teterin Message-Id: <200302040328.h143SeuS062349@corbulon.video-collage.com> Subject: comms/birda on -current and PalmPilot sync. To: current@FreeBSD.org, allbery@ece.cmu.edu Date: Mon, 3 Feb 2003 22:28:39 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL100 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Scanned-By: MIMEDefang 2.21 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! Does the combo in subject work for anyone? I have Win98 on this laptop, too, and it can sync. the palm over the IrDA port. However, with FreeBSD-current it does not work. Birda's irs is running as /opt/bin/irs -y /dev/ptypv -c -d /dev/ttyd1 -Y and I point coldsync to the corresponding ttypv: /opt/bin/coldsync -md -t serial -dsync:5 /dev/ttypv Which produces the following output: Summary of sync configuration: Listen: Type: 0 Device: [/dev/palm] Speed: 0 Protocol: 0 Flags: Known PDAs: The queue of conduits: Conduit: flavors: 0x0004 SYNC Creator/Types: [/] (0x00000000/0x00000000) Path: [[generic]] DEFAULT Headers: Preferences: Inside run_mode_Daemon() Port specified on command line: [/dev/ttypv] Listen type: 0 Protocol: 0 Using [/dev/ttypv] as Palm device. [..... waits forever .....] Anyone has a success to share? I tried both birda-1.00 from the ports and the later 1.1 -- without visible differences. Thanks! -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 21:40:24 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D2D837B401 for ; Mon, 3 Feb 2003 21:40:22 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id B291843F43 for ; Mon, 3 Feb 2003 21:40:21 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h145eLZh004930; Mon, 3 Feb 2003 21:40:21 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h145eKSM004929; Mon, 3 Feb 2003 21:40:20 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Mon, 3 Feb 2003 21:40:20 -0800 From: David Schultz To: "Andrey A. Chernov" Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204054020.GA2447@HAL9000.homeunix.com> Mail-Followup-To: "Andrey A. Chernov" , Kris Kennaway , current@FreeBSD.ORG References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030203100002.GA73386@nagual.pp.ru> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Andrey A. Chernov : > On Sun, Feb 02, 2003 at 16:26:39 -0800, David Schultz wrote: > > > > The correlation is still present with your patch and NSHUFF set to > > 10. For instance, try seeding rand() with contiguous monotonically > > increasing integers, and observe the four lowest-order bits. > > Since you already have running framework for that, could you please > test it with NSHUFF picked from 100-2000 range? Rather than me showing you more semi-meaningful numbers from Marsaglia's tests, why don't you look at the following sequence, which I get by taking the lowest four bits of the 201st number in the rand() sequence for seeds of (0, 1, 2, ...). f c 9 6 2 f c 8 5 2 e b 8 4 1 e b 7 4 1 d a 7 3 0 d 9 6 3 f c 9 6 2 f c 8 5 2 e b 8 4 1 e b 7 4 1 d a 7 3 0 d 9 6 3 f c 9 6 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 f c 9 6 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 6 3 0 d 9 6 3 f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 6 3 0 d 9 6 3 f Notice that 'f c 9' repeats in regular intervals and is always followed by a 5 or 6. There is a similar pattern for 'e a 7'. I think this pretty much demonstrates that the algorithm isn't good enough to generate high-quality randomness with respect to different seed values. I'm not suggesting that it absolutely must be replaced, since most rand() implementations aren't very good in the first place, but I'm pointing out that to do a good job of fixing it once and for all is harder than you might think. The program to generate this sequence follows. I ran this on a several-month-old -CURRENT system with the new generator, but without your latest patches. #include #include int main() { int i, j; for (i = 0; ; i++) { srand(i); for (j = 0; j < 200; j++) rand(); printf("%x ", rand() & 0x0f); if (i % 32 == 31) putchar('\n'); } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 21:49:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A518B37B411 for ; Mon, 3 Feb 2003 21:49:06 -0800 (PST) Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4696A43F43 for ; Mon, 3 Feb 2003 21:49:06 -0800 (PST) (envelope-from allbery@ece.cmu.edu) Received: from [10.9.204.1] (allbery@dhcp-7-120.dsl.telerama.com [205.201.7.120]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h145msW23644; Tue, 4 Feb 2003 00:48:54 -0500 (EST) Subject: Re: comms/birda on -current and PalmPilot sync. From: "Brandon S. Allbery " KF8NH To: Mikhail Teterin Cc: current@FreeBSD.org In-Reply-To: <200302040328.h143SeuS062349@corbulon.video-collage.com> References: <200302040328.h143SeuS062349@corbulon.video-collage.com> Content-Type: text/plain Organization: Message-Id: <1044337689.65114.10.camel@rushlight.kf8nh.apk.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 04 Feb 2003 00:48:09 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 2003-02-03 at 22:28, Mikhail Teterin wrote: > Anyone has a success to share? I tried both birda-1.00 from the ports > and the later 1.1 -- without visible differences. Thanks! Guess I should look at upgrading the port.... I don't have a -current system at present, and the test machine I was trying to build the other day (several missing packages with 5.0-RELEASE, sigh) doesn't have IR capability. If you run irs in the foreground (drop -Y, add -v 9) and attempt to hotsync, does irs report discovery of the Pilot? If not then you need to check that you're using the right serial port and that it is configured properly (don't use PnP autoconfiguration, and if possible set it as an SIR port in the BIOS). -- brandon s allbery [openafs/solaris/japh/freebsd] allbery@kf8nh.apk.net system administrator [linux/heimdal/too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university [better check the oblivious first -ke6sls] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 22:30:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF25937B401 for ; Mon, 3 Feb 2003 22:30:50 -0800 (PST) Received: from magnesium.net (toxic.magnesium.net [207.154.84.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 762ED43F93 for ; Mon, 3 Feb 2003 22:30:50 -0800 (PST) (envelope-from drbrain@magnesium.net) Received: (qmail 17115 invoked by uid 1100); 4 Feb 2003 06:30:50 -0000 Date: Mon, 3 Feb 2003 22:30:50 -0800 From: Eric Hodel To: David Schultz Cc: freebsd-current@freebsd.org Subject: Re: rand() is broken Message-ID: <20030204063049.GU46498@segment7.net> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yIMHf/Pa6CzSkARF" Content-Disposition: inline In-Reply-To: <20030204054020.GA2447@HAL9000.homeunix.com> User-Agent: Mutt/1.4i Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --yIMHf/Pa6CzSkARF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable David Schultz (dschultz@uclink.Berkeley.EDU) wrote: > Rather than me showing you more semi-meaningful numbers from > Marsaglia's tests, why don't you look at the following sequence, > which I get by taking the lowest four bits of the 201st number in > the rand() sequence for seeds of (0, 1, 2, ...). >=20 f c 9 6 2 f c 8 5 2 e b 8 4 1 e b 7 4 1 d a 7 3 0 d 9 6 3 f c 9 6 2 f c 8 5 2 e b 8 4 1 e b 7 4 1 d a 7 3 0 d 9 6 3 f c 9 6 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 f c 9 6 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 6 3 0 d 9 6 3 f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 6 3 0 d 9 6 3 f=20 > Notice that 'f c 9' repeats in regular intervals and is always > followed by a 5 or 6. There is a similar pattern for 'e a 7'. I > think this pretty much demonstrates that the algorithm isn't good > enough to generate high-quality randomness with respect to > different seed values. I'm not suggesting that it absolutely must > be replaced, since most rand() implementations aren't very good in > the first place, but I'm pointing out that to do a good job of > fixing it once and for all is harder than you might think. A littele modification shows just how similar these sequences are :) --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --yIMHf/Pa6CzSkARF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+P14ZMypVHHlsnwQRAqMPAKCl+/RGVU9+Yh1hyQ+JrJ0jUfZRkwCg2NtW vYkdEOBzJBd5Uy6TXretqoA= =JtWN -----END PGP SIGNATURE----- --yIMHf/Pa6CzSkARF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 22:44:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49AB137B401 for ; Mon, 3 Feb 2003 22:44:15 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 688A643F9B for ; Mon, 3 Feb 2003 22:44:14 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h146i6Yu017218; Tue, 4 Feb 2003 07:44:11 +0100 (CET) (envelope-from phk@freebsd.org) To: Mike Meyer Cc: current@freebsd.org Subject: Re: extended slices on 5.0-RELEASE? From: phk@freebsd.org In-Reply-To: Your message of "Mon, 03 Feb 2003 18:48:52 CST." <15935.3572.592446.706044@guru.mired.org> Date: Tue, 04 Feb 2003 07:44:06 +0100 Message-ID: <17217.1044341046@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <15935.3572.592446.706044@guru.mired.org>, Mike Meyer writes: >[I asked this on -questions, and got no response, so...] > >Is it just me, or has disklabel lost the ability to read/write from >extended slices in 5.0-RELEASE? I hope not. Please send me the output of sysctl -b kern.geom.confxml in private email. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 22:53:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C28837B401 for ; Mon, 3 Feb 2003 22:53:38 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98AB943F3F for ; Mon, 3 Feb 2003 22:53:37 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h146rXZh005179; Mon, 3 Feb 2003 22:53:33 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h146rXb8005178; Mon, 3 Feb 2003 22:53:33 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Mon, 3 Feb 2003 22:53:33 -0800 From: David Schultz To: Eric Hodel Cc: freebsd-current@freebsd.org Subject: Re: rand() is broken Message-ID: <20030204065332.GB5050@HAL9000.homeunix.com> Mail-Followup-To: Eric Hodel , freebsd-current@freebsd.org References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204063049.GU46498@segment7.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204063049.GU46498@segment7.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Eric Hodel : > David Schultz (dschultz@uclink.Berkeley.EDU) wrote: > > > Rather than me showing you more semi-meaningful numbers from > > Marsaglia's tests, why don't you look at the following sequence, > > which I get by taking the lowest four bits of the 201st number in > > the rand() sequence for seeds of (0, 1, 2, ...). > > > > f c 9 6 2 f c 8 5 2 e b 8 4 1 e b 7 4 1 d a 7 3 0 d 9 6 3 > f c 9 6 2 f c 8 5 2 e b 8 4 1 e b 7 4 1 d a 7 3 0 d 9 6 3 > f c 9 6 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 > f c 9 6 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 > f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 1 d a 7 3 0 d 9 6 3 > f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 > f c 9 5 2 f c 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 > f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 > f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 7 3 0 d 9 6 3 > f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 6 3 0 d 9 6 3 > f c 9 5 2 f b 8 5 2 e b 8 4 1 e a 7 4 0 d a 6 3 0 d 9 6 3 > f > > > Notice that 'f c 9' repeats in regular intervals and is always > > followed by a 5 or 6. There is a similar pattern for 'e a 7'. I > > think this pretty much demonstrates that the algorithm isn't good > > enough to generate high-quality randomness with respect to > > different seed values. I'm not suggesting that it absolutely must > > be replaced, since most rand() implementations aren't very good in > > the first place, but I'm pointing out that to do a good job of > > fixing it once and for all is harder than you might think. > > A littele modification shows just how similar these sequences are :) Yeah, I saw the periodicity when I asked less(1) to select particular subsequences. I guess it's a bit more impressive when you select the right modulus. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 23:16:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CD0137B401 for ; Mon, 3 Feb 2003 23:16:32 -0800 (PST) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A89C43F75 for ; Mon, 3 Feb 2003 23:16:31 -0800 (PST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242]) by franky.speednet.com.au (8.12.6/8.12.6) with ESMTP id h147GO6e035011 for ; Tue, 4 Feb 2003 18:16:24 +1100 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.1]) by hewey.af.speednet.com.au (8.12.6/8.12.6) with ESMTP id h147GMnb051550 for ; Tue, 4 Feb 2003 17:16:23 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Tue, 4 Feb 2003 17:16:22 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: freebsd-current@FreeBSD.ORG Subject: sysinstall->Configure->Fdisk Message-ID: <20030204170512.R31941-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG sysinstall's 'FDISK Partition Editor' won't let me create a second slice. After pressing 'w' it says: "ERROR: Unable to write data to disk ad4!" then "Disk partition write returned an error status!" Freshly cvsup'd a few hours ago. # sysctl -a | grep kern.version kern.version: FreeBSD 5.0-CURRENT #2: Tue Feb 4 11:04:44 EST 2003 # fdisk ad4 ******* Working on device ad4 ******* parameters extracted from in-core disklabel are: cylinders=16708 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=16708 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 8388513 (4095 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Feb 3 23:59:27 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1544937B401 for ; Mon, 3 Feb 2003 23:59:26 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EE1E43F3F for ; Mon, 3 Feb 2003 23:59:25 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id h147xNGB274544 for ; Tue, 4 Feb 2003 02:59:23 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: Date: Tue, 4 Feb 2003 02:59:22 -0500 To: current@FreeBSD.org From: Garance A Drosihn Subject: Minor oddity with sysinstall/disklabel on -current Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG So, I'm trying something on -current. I boot up, log into root. I have two hard disks on the system. All of my mounted partitions are on ad0, except for one partition on ad2. I 'umount' that partition. I run the Disklabel Editor via sysinstall. I delete that partition, and then re-create it as a UFS2 partition. I do the 'w'rite, and everything looks fine. I drop out of sysinstall, do some things with that partition, and then decide to redo the above sequence. Everything has been working fine, but I'm just testing some things and I end up in a position where it's quicker to newfs the partition than it is to 'rm' the files on it. So, I do the same exact sequence (starting with the 'umount' before running sysinstall), and this time when I do the 'w'rite, I am told: ERROR: Unable to write data to disk ad2! If I reboot, then I can repeat the sequence with no problem. At the time I'm trying to do the 'w'rite, the disklabel screen looks like: Disk: ad2 Partition name: ad2s1 Free: 0 blocks (0MB) Disk: ad2 Partition name: ad2s2 Free: 0 blocks (0MB) Disk: ad2 Partition name: ad2s3 Free: 0 blocks (0MB) Part Mount Size Newfs Part Mount Size Newfs ---- ----- ---- ----- ---- ----- ---- ----- ad2s1a 150MB * ad2s2a 160MB * ad2s1b swap 750MB SWAP ad2s2f 125MB * ad2s1e 150MB * ad2s2g 4040MB * ad2s1f 120MB * ad2s2h 1175MB * ad2s1g 4040MB * ad2s3d /usr/cvs/ 3100MB UFS2+S Y ad2s1h 2589MB * ad2s3e 3136MB * It is perhaps significant that the system's /etc/fstab does not include *this* swap partition at bootup, but after doing the above sequence I see: (302) swapctl -l Device: 1024-blocks Used: /dev/ad0s4b 1792000 48 /dev/ad2s1b 768000 0 It is probably true that I should just type in the newfs command I want instead of going thru sysinstall, but I was partially testing to see if there was a bug in the way sysinstall was creating the partition... -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 0: 4:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94C9637B401 for ; Tue, 4 Feb 2003 00:04:28 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E13B43F43 for ; Tue, 4 Feb 2003 00:04:27 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h1484NYu017775; Tue, 4 Feb 2003 09:04:23 +0100 (CET) (envelope-from phk@freebsd.org) To: Garance A Drosihn Cc: current@freebsd.org Subject: Re: Minor oddity with sysinstall/disklabel on -current From: phk@freebsd.org In-Reply-To: Your message of "Tue, 04 Feb 2003 02:59:22 EST." Date: Tue, 04 Feb 2003 09:04:23 +0100 Message-ID: <17774.1044345863@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message , Garance A Drosihn writes: >So, I'm trying something on -current. > >I boot up, log into root. I have two hard disks on the system. All >of my mounted partitions are on ad0, except for one partition on ad2. >I 'umount' that partition. I run the Disklabel Editor via sysinstall. >I delete that partition, and then re-create it as a UFS2 partition. >I do the 'w'rite, and everything looks fine. > >I drop out of sysinstall, do some things with that partition, and >then decide to redo the above sequence. Everything has been working >fine, but I'm just testing some things and I end up in a position >where it's quicker to newfs the partition than it is to 'rm' the >files on it. So, I do the same exact sequence (starting with the >'umount' before running sysinstall), and this time when I do the >'w'rite, I am told: > > ERROR: Unable to write data to disk ad2! My guess is that sysinstall (bogusly) did a swapon for the 'b' parititon on your ad2 disk. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 0: 5:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18DC237B401; Tue, 4 Feb 2003 00:05:13 -0800 (PST) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26E0843F79; Tue, 4 Feb 2003 00:05:12 -0800 (PST) (envelope-from mheffner@vt.edu) Received: from dagger.cc.vt.edu (IDENT:mirapoint@dagger-lb.cc.vt.edu [10.1.1.11]) by lennier.cc.vt.edu (8.11.4/8.11.4) with ESMTP id h14858G368032; Tue, 4 Feb 2003 03:05:08 -0500 (EST) Received: from enterprise.muriel.penguinpowered.com ([199.3.139.172]) by dagger.cc.vt.edu (Mirapoint Messaging Server MOS 3.3.2-CR) with ESMTP id BBW03738 (AUTH mheffner); Tue, 4 Feb 2003 03:05:08 -0500 (EST) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="_=XFMail.1.5.4.FreeBSD:20030204030531:14403=_"; micalg=pgp-md5; protocol="application/pgp-signature" In-Reply-To: Date: Tue, 04 Feb 2003 03:05:31 -0500 (EST) From: Mike Heffner To: David Rhodus Subject: Re: ftpd mkdir problems Cc: freebsd-current@FreeBSD.ORG, Yar Tikhiy Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.5.4.FreeBSD:20030204030531:14403=_ Content-Type: text/plain; charset=us-ascii On 31-Jan-2003 David Rhodus wrote: | Using the default ftpd that comes with FreeBSD, in the mkdir command, | why doesn't it expand '~', the cd and rmdir commands seem to. Passing | over the code it just calls the c function with should expand it. No, the system calls don't expand a tilde. The expansion is done in ftpcmd.y under the 'pathname' directive using glob(3), but glob(3) won't expand the tilde when the directory doesn't exist. Lukemftpd works around this by implementing its own '~' expansion code. Yar has been working on ftpd recently, you might want to ask him if he has any plans to address this. | | | ftp> cd ~will | 250 CWD command successful. | ftp> mkdir ~will/test | 550 ~will/test: No such file or directory. | ftp> mkdir test | 257 "test" directory created. | ftp> rmdir ~will/test | 250 RMD command successful. | ftp> | | | | -- | David Rhodus | | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-current" in the body of the message | | Mike -- Mike Heffner --_=XFMail.1.5.4.FreeBSD:20030204030531:14403=_ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE+P3RKFokZQs3sv5kRAgEzAJ4ovemLKHcbNrtP3U008kdq0vsl7QCfeNZZ gxL++VsIgRzyckHIKIzbXfM= =fQRd -----END PGP SIGNATURE----- --_=XFMail.1.5.4.FreeBSD:20030204030531:14403=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 0:24:31 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF9A337B401; Tue, 4 Feb 2003 00:24:29 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1052243E4A; Tue, 4 Feb 2003 00:24:29 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id h148OIGB224328; Tue, 4 Feb 2003 03:24:18 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: Date: Tue, 4 Feb 2003 03:24:16 -0500 To: current@FreeBSD.ORG From: Garance A Drosihn Subject: Re: Panic#2 copying many files from UFS to UFS2 partition Cc: kirk@mckusick.com, Poul-Henning Kamp Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 7:50 PM -0500 1/29/03, Garance A Drosihn wrote: >At 9:49 PM -0500 1/28/03, Garance A Drosihn wrote: >>Hmm, well, I finally got my first actual system panic which wasn't >>obviously caused by my own screwing around. On the console I have: >> >> free inode /usr/cvs/net/64 had 0 blocks >> panic: Negative bio_offset (-19038208) on bio 0xce51be28 >> cpuid = 0; lapic.id = 01000000 >> Debugger("panic") >> Stopped at Debugger+0x55: xchgl %ebx,in_Debugger.0 > >It looks like the sequence which generated that panic can be >repeated to generate other panics. My sequence was: > > use sysinstall to remove and then recreate the > new UFS2 partition, 3100 meg in size, > mounted on /usr/cvs/net > pushd /usr/cvs/net-old > tar cf - ./ | (popd; cd /usr/cvs/net; tar xpf -) > >and again I got a panic, although not quite the same panic. >It also seemed like it happened much sooner in the process. >So, what should I do at this point to help pin this down? To follow up on this... After cvsup-ing to the 5.0-current from Feb 3rd, I can not reproduce the panic. Apparently the problem was something that was fixed in the past week or so. There is probably no need to look into these two panic reports. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 0:33:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FB3537B401; Tue, 4 Feb 2003 00:33:43 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B49AE43F43; Tue, 4 Feb 2003 00:33:42 -0800 (PST) (envelope-from ilmar@watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.6/8.12.5) with ESMTP id h148XXP3009481; Tue, 4 Feb 2003 03:33:33 -0500 (EST) (envelope-from ilmar@watson.org) Received: from localhost (ilmar@localhost) by fledge.watson.org (8.12.6/8.12.6/Submit) with ESMTP id h148XXKp009478; Tue, 4 Feb 2003 03:33:33 -0500 (EST) X-Authentication-Warning: fledge.watson.org: ilmar owned process doing -bs Date: Tue, 4 Feb 2003 03:33:32 -0500 (EST) From: "Ilmar S. Habibulin" To: Robert Watson Cc: freebsd-current@freebsd.org Subject: Re: What is the difference between p_ucred and td_ucred? In-Reply-To: Message-ID: <20030204032624.U9181-100000@fledge.watson.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Feb 2003, Robert Watson wrote: > The strategy for selecting a credential to check against is generally to > use td_ucred, and to hold no locks. You'll see that suser() does this, > for example. Under some circumstances: specifically, credential updates, > you need to hold the process lock and atomically check the process > credential before updating. If the thread doesn't immediately leave the > kernel (i.e., more checks might be performed), you'll also need to > propagate the cred change to the thread from the process. Ok. Thank you for an expanation, I'll consider that. Now i'm trying to reanimate Thomas Moestls' capability work. Is anybody interested in such integration? I have almost bootable kernel and now will try to understand kernel structures locking and td_ucred/p_ucred interactions, to make nessesary changes. Or SEBSD make capabilities completly unnesessary? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 1:36:38 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC76837B401 for ; Tue, 4 Feb 2003 01:36:36 -0800 (PST) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id A32BE43F3F for ; Tue, 4 Feb 2003 01:36:35 -0800 (PST) (envelope-from bra@fsn.hu) Received: (qmail 2048 invoked by uid 1000); 4 Feb 2003 09:36:34 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 4 Feb 2003 09:36:34 -0000 Date: Tue, 4 Feb 2003 10:36:34 +0100 (CET) From: Attila Nagy To: Terry Lambert Cc: Lucky Green , "" Subject: Re: L440gx+ serial BIOS needs text mode In-Reply-To: <3E3EBE8E.136CB7AF@mindspring.com> Message-ID: References: <001301c2cb61$cbd70d90$6601a8c0@VAIO650> <3E3EA95B.4CA321B0@mindspring.com> <3E3EBE8E.136CB7AF@mindspring.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, > The sense of the -P option was changed, and it makes it so you have to > do extra work to get the console driver to do the right thing from > inside FreeBSD proper, on a machine that could have its keyboard removed > (or not). It's because the -h is implied, and it's a toggle. Oh, I see now. I didn't even noticed that option. > Anyway, it was a particular problem with the SuperMicro motherboards > with the AMI BIOS that's been the subject of the rest of this discussion > (i.e. the ones that kick out the escape sequence at the end, for no good > reason, except to screw up non-monochrome VTxxx emulators, and make it > hard to use a UNIX box as the serial console). If I understood correctly, the original post was indeed a misunderstanding about the console redirection of the BIOS, which is only effective until the kernel boots. From that point one must enable the serial console in kernel and I think this is what was omitted. Don't know. I remember that I had no special problems with my L440GX when last tried this, only the above one (enable serial console, which is trivial). Anyways, thanks for the clarification! ----------[ Free Software ISOs - http://www.fsn.hu/?f=download ]---------- Attila Nagy e-mail: Attila.Nagy@fsn.hu Free Software Network (FSN.HU) phone @work: +361 210 1415 (194) cell.: +3630 306 6758 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 1:47: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4D6937B401 for ; Tue, 4 Feb 2003 01:47:03 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DADE43E4A for ; Tue, 4 Feb 2003 01:47:01 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h149l0d6087546; Tue, 4 Feb 2003 12:47:00 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h149kxNZ087545; Tue, 4 Feb 2003 12:46:59 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 12:46:59 +0300 From: "Andrey A. Chernov" To: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204094659.GA87303@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204054020.GA2447@HAL9000.homeunix.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 03, 2003 at 21:40:20 -0800, David Schultz wrote: > followed by a 5 or 6. There is a similar pattern for 'e a 7'. I > think this pretty much demonstrates that the algorithm isn't good > enough to generate high-quality randomness with respect to > different seed values. I'm not suggesting that it absolutely must > be replaced, since most rand() implementations aren't very good in > the first place, but I'm pointing out that to do a good job of > fixing it once and for all is harder than you might think. I don't try to make rand() good for high-quality pseudo-randomness, because it can be done by price of speed and, more important, big state size. Due to rand_r() restriction state size can be one word only, so we can choose rand() algorithm only from those which pass this restrictions. So, if you define USE_WEAK_SEEDING and re-compile rand.c, you'll get even worse results from your test. It means current variant is better then previous. If you know even better algorithm wich pass restrictions above, just tell and we consider switching to it. Returning to current algorithm, I am interested in good NSHUFF value in the range 100-2000. Do you have any findings there? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 1:58:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4752937B401 for ; Tue, 4 Feb 2003 01:58:44 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECB4D43F3F for ; Tue, 4 Feb 2003 01:58:42 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h149wfd6087668; Tue, 4 Feb 2003 12:58:41 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h149wfs4087667; Tue, 4 Feb 2003 12:58:41 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 12:58:40 +0300 From: "Andrey A. Chernov" To: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204095839.GB87303@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204094659.GA87303@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 12:46:59 +0300, Andrey A. Chernov wrote: > > Returning to current algorithm, I am interested in good NSHUFF value in > the range 100-2000. Do you have any findings there? Apparently 100 is not enough too, I see repeated pattern in your program. I'll try other values... -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 2:20: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B17B837B401 for ; Tue, 4 Feb 2003 02:20:07 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9935C43F75 for ; Tue, 4 Feb 2003 02:20:06 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14AK3d6089660; Tue, 4 Feb 2003 13:20:03 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14AK2Z4089658; Tue, 4 Feb 2003 13:20:02 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 13:20:01 +0300 From: "Andrey A. Chernov" To: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204102001.GA89622@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204094659.GA87303@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 12:46:59 +0300, Andrey A. Chernov wrote: > > So, if you define USE_WEAK_SEEDING and re-compile rand.c, you'll get even > worse results from your test. It means current variant is better then > previous. If you know even better algorithm wich pass restrictions above, > just tell and we consider switching to it. Here is result from your test for USE_WEAK_SEEDING, i.e. for old algorithm. As we can see, it even worse than current one. It means that returning to old algoritm as Kris means (maybe?) is not an option. 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 1 e b 8 5 2 f c 9 6 3 0 d a 7 4 -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 2:52:48 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9965537B405 for ; Tue, 4 Feb 2003 02:52:47 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C8D643F93 for ; Tue, 4 Feb 2003 02:52:46 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14Aqid6090274; Tue, 4 Feb 2003 13:52:45 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14Aqifw090273; Tue, 4 Feb 2003 13:52:44 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 13:52:44 +0300 From: "Andrey A. Chernov" To: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204105244.GA90241@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204095839.GB87303@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204095839.GB87303@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 12:58:40 +0300, Andrey A. Chernov wrote: > On Tue, Feb 04, 2003 at 12:46:59 +0300, Andrey A. Chernov wrote: > > > > Returning to current algorithm, I am interested in good NSHUFF value in > > the range 100-2000. Do you have any findings there? > > Apparently 100 is not enough too, I see repeated pattern in your > program. I'll try other values... Well, I find that bigger values are not better, it means that algorithm limit is reached, so just 100 is good enough... -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 3:52:41 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A99C337B401 for ; Tue, 4 Feb 2003 03:52:39 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2012143F3F for ; Tue, 4 Feb 2003 03:52:39 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h14BqbZh006627; Tue, 4 Feb 2003 03:52:37 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h14BqbRN006626; Tue, 4 Feb 2003 03:52:37 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Tue, 4 Feb 2003 03:52:37 -0800 From: David Schultz To: "Andrey A. Chernov" Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204115237.GA6483@HAL9000.homeunix.com> Mail-Followup-To: "Andrey A. Chernov" , Kris Kennaway , current@FreeBSD.ORG References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204094659.GA87303@nagual.pp.ru> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Andrey A. Chernov : > On Mon, Feb 03, 2003 at 21:40:20 -0800, David Schultz wrote: > I don't try to make rand() good for high-quality pseudo-randomness, > because it can be done by price of speed and, more important, big state > size. Due to rand_r() restriction state size can be one word only, so we > can choose rand() algorithm only from those which pass this > restrictions. You can do better than the present generator with 32 bits of state. See the following page by Neal Wagner (not to be confused with David Wagner): http://www.cs.utsa.edu/~wagner/laws/rng.html The section on LCGs suggests that the multiplier FreeBSD uses (7^5) is not particularly good, and points out some better values suggested by Knuth. I can't find the original discussion in TAOCP vol. 2, but I take N. Wagner's word that the numbers have been blessed by the holy hand of Knuth. I'm sure you can find more information if you search the literature. I apologize, but I don't have time to help you right now, and rand() isn't really a concern to me. > Returning to current algorithm, I am interested in good NSHUFF value in > the range 100-2000. Do you have any findings there? Well, if 0 doesn't work, and 10 doesn't work, and 100 doesn't work, then I'm not too hopeful about 2000. I appeal to Asimov's zero, one, infinity law. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 4: 7:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B660537B401 for ; Tue, 4 Feb 2003 04:07:34 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E14843FA3 for ; Tue, 4 Feb 2003 04:07:33 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14C7Vd6091957; Tue, 4 Feb 2003 15:07:32 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14C7VBm091956; Tue, 4 Feb 2003 15:07:31 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 15:07:30 +0300 From: "Andrey A. Chernov" To: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204120730.GA91888@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204115237.GA6483@HAL9000.homeunix.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 03:52:37 -0800, David Schultz wrote: > > You can do better than the present generator with 32 bits of state. > See the following page by Neal Wagner (not to be confused with David Wagner): > http://www.cs.utsa.edu/~wagner/laws/rng.html > The section on LCGs suggests that the multiplier FreeBSD uses (7^5) > is not particularly good, and points out some better values suggested > by Knuth. I can't find the original discussion in TAOCP vol. 2, but Thank for your pointer, I'll look at later. > Well, if 0 doesn't work, and 10 doesn't work, and 100 doesn't > work, then I'm not too hopeful about 2000. I appeal to Asimov's > zero, one, infinity law. I found that f.e. 50 is worse than 100, but 200 isn't better. 100 is better than 0 because remove monotonically increased sequence. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 4: 9:38 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CD9137B401 for ; Tue, 4 Feb 2003 04:09:36 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE76843F85 for ; Tue, 4 Feb 2003 04:09:35 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h14C9ZP5047706 for ; Tue, 4 Feb 2003 04:09:35 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h14C9ZCT047704 for current@freebsd.org; Tue, 4 Feb 2003 04:09:35 -0800 (PST) Date: Tue, 4 Feb 2003 04:09:35 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302041209.h14C9ZCT047704@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Tue Feb 4 03:08:38 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Tue Feb 4 03:39:40 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Tue Feb 4 03:39:41 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4450: warning: duplicate script for target "geom_bsd.o" ignored /h/des/src/sys/dev/lmc/if_lmc.c:32:2: warning: #warning "The lmc driver is broken and is not compiled with LINT" /h/des/src/sys/dev/pdq/pdq.c: In function `pdq_initialize': /h/des/src/sys/dev/pdq/pdq.c:1606: warning: cast discards qualifiers from pointer target type /h/des/src/sys/pci/meteor.c:149:2: warning: #warning "The meteor driver is broken and is not compiled with LINT" /h/des/src/sys/pci/simos.c:30:2: warning: #warning "The simos driver is broken and is not compiled with LINT" /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_open': /h/des/src/sys/dev/gfb/gfb_pci.c:268: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:268: (Each undeclared identifier is reported only once /h/des/src/sys/dev/gfb/gfb_pci.c:268: for each function it appears in.) cc1: warnings being treated as errors /h/des/src/sys/dev/gfb/gfb_pci.c:275: warning: passing arg 1 of `genfbopen' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_close': /h/des/src/sys/dev/gfb/gfb_pci.c:284: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:285: warning: passing arg 1 of `genfbclose' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_read': /h/des/src/sys/dev/gfb/gfb_pci.c:293: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:294: warning: passing arg 1 of `genfbread' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_write': /h/des/src/sys/dev/gfb/gfb_pci.c:302: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:303: warning: passing arg 1 of `genfbwrite' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_ioctl': /h/des/src/sys/dev/gfb/gfb_pci.c:311: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:312: warning: passing arg 1 of `genfbioctl' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_mmap': /h/des/src/sys/dev/gfb/gfb_pci.c:320: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:321: warning: passing arg 1 of `genfbmmap' from incompatible pointer type *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 4:24:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FD3537B401; Tue, 4 Feb 2003 04:24:43 -0800 (PST) Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6372B43F3F; Tue, 4 Feb 2003 04:24:32 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd08.sul.t-online.de by mailout05.sul.t-online.com with smtp id 18g27r-00044o-08; Tue, 04 Feb 2003 13:24:31 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[217.229.213.149]) by fmrl08.sul.t-online.com with esmtp id 18g27j-0DjLPsC; Tue, 4 Feb 2003 13:24:23 +0100 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.12.6/8.12.6) with ESMTP id h14COLbL087131; Tue, 4 Feb 2003 13:24:21 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.6/8.12.6) with SMTP id h14COL3d009463; Tue, 4 Feb 2003 13:24:21 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Tue, 4 Feb 2003 13:24:21 +0100 From: Alexander Leidinger To: current@freebsd.org, obrien@freebsd.org Subject: Re: Missing semicolon in generated insn-recog.c file. Message-Id: <20030204132421.26622b18.Alexander@Leidinger.net> In-Reply-To: <20030203185946.533e3731.Alexander@Leidinger.net> References: <20030203185946.533e3731.Alexander@Leidinger.net> X-Mailer: Sylpheed version 0.8.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Feb 2003 18:59:46 +0100 Alexander Leidinger wrote: > I tried a buildworld yesterday and today, and I got: > ---snip--- > gcc -I/big/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -DHAVE_C > ONFIG_H -DTARGET_NAME=\"i386-undermydesk-freebsd\" -DIN_GCC -c insn-recog.c -o > insn-recog.o > insn-recog.c: In function `split_2': > insn-recog.c:52213: syntax error before "x3" > insn-recog.c:52209: label `L9903' used but not defined > *** Error code 1 > > Stop in /big/usr/src/gnu/usr.bin/cc/cc_int. > *** Error code 1 > ---snip--- > > It complains about compiling > /usr/obj/.../gnu/usr.bin/cc/cc_int/insn-recog.c which seems to be > generated (it wouldn't life in /usr/obj if it isn't generated, isn't > it). There's a missing semicolon after a goto command. > > I don't use NOCLEAN, so there's something wrong with /usr/src, isn't it? I deleted my /usr/obj by hand and now the buildworld succeeds, so there's a dependency missing somewhere in the gcc bits. Bye, Alexander. -- Where do you think you're going today? http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5: 0:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B80AE37B401 for ; Tue, 4 Feb 2003 05:00:30 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F19043F75 for ; Tue, 4 Feb 2003 05:00:29 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id B0FDA536F; Tue, 4 Feb 2003 14:00:27 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: David Schultz Cc: "Andrey A. Chernov" , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken From: Dag-Erling Smorgrav Date: Tue, 04 Feb 2003 14:00:27 +0100 In-Reply-To: <20030204115237.GA6483@HAL9000.homeunix.com> (David Schultz's message of "Tue, 4 Feb 2003 03:52:37 -0800") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-=-= David Schultz writes: > You can do better than the present generator with 32 bits of state. > See the following page by Neal Wagner (not to be confused with David Wagner): > http://www.cs.utsa.edu/~wagner/laws/rng.html The attached patch, based on one of the m/k pairs suggested on that page, results in the following: des@des ~/src% ./rndtest | head 0 b 5 f 8 5 2 c 8 5 1 8 4 9 7 b d 9 e a d 3 8 8 5 9 2 3 e a c f 7 a d b f 0 1 3 6 7 4 f 0 6 0 1 2 3 1 c b a 6 1 e 0 9 c f 7 c 6 6 1 a a d b 3 e b a a 0 e d a f 8 6 3 f f 9 3 7 6 6 d 7 f 6 8 d b d 6 2 b f 2 2 b 1 7 4 4 3 5 5 2 9 6 4 e 1 9 4 7 b f 6 f 7 8 c 1 5 7 e 3 5 d b 8 c c 4 d 1 3 6 e 0 3 3 3 2 e 5 3 b 5 e 7 b c a 0 a 3 2 d 5 f c 9 f c 3 9 a 1 f 3 f 2 c 5 9 4 6 2 d 2 3 e 2 7 5 a 8 8 1 5 7 0 5 4 e c f 6 3 b 0 8 4 d 2 a 8 0 5 7 b 2 1 4 e e 9 7 1 5 5 6 f f e 6 f a 4 e 5 a f 8 d f 7 b 3 8 d e 3 f 5 4 0 2 e 5 c a f 5 a e 5 0 9 4 6 0 0 9 f d 9 6 4 b f 8 2 3 5 e 4 5 9 9 a d 3 4 5 5 0 f 9 9 1 8 6 7 a 5 0 2 0 5 8 b 6 1 6 7 f a 9 a 6 6 d Note that my patch assumes that RAND_MAX fits in 32 bits, which should be acceptable for FreeBSD since it always uses 32-bit ints (all our 32-bit platforms are ILP32, and I believe all our 64-bit platforms are I32LP64) and RAND_MAX is uniformly defined to 0x7fffffff. DES -- Dag-Erling Smorgrav - des@ofug.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=rand.diff Index: lib/libc/stdlib/rand.c =================================================================== RCS file: /home/ncvs/src/lib/libc/stdlib/rand.c,v retrieving revision 1.11 diff -u -r1.11 rand.c --- lib/libc/stdlib/rand.c 2 Feb 2003 14:27:51 -0000 1.11 +++ lib/libc/stdlib/rand.c 4 Feb 2003 13:37:03 -0000 @@ -52,7 +52,7 @@ #endif /* TEST */ static int -do_rand(unsigned long *ctx) +do_rand(uint32_t *ctx) { #ifdef USE_WEAK_SEEDING /* @@ -63,21 +63,23 @@ return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)RAND_MAX + 1)); #else /* !USE_WEAK_SEEDING */ /* - * Compute x = (7^5 * x) mod (2^31 - 1) - * wihout overflowing 31 bits: - * (2^31 - 1) = 127773 * (7^5) + 2836 - * From "Random number generators: good ones are hard to find", - * Park and Miller, Communications of the ACM, vol. 31, no. 10, - * October 1988, p. 1195. + * New algorithm derived from + * The Laws of Cryptography: Pseudo-random Number Generation + * by Neal R. Wagner + * http://www.cs.utsa.edu/~wagner/laws/rng.html + * which itself is derived from work by Donald E. Knuth. + * + * This is a linear congruence generator using the equation + * + * x(n+1) = (k * x(n) + a) mod m + * + * where m is 2^31 - 1, k is 62089911 and a is 0. */ - long hi, lo, x; + uint64_t tmp; - hi = *ctx / 127773; - lo = *ctx % 127773; - x = 16807 * lo - 2836 * hi; - if (x <= 0) - x += 0x7fffffff; - return ((*ctx = x) % ((u_long)RAND_MAX + 1)); + tmp = *ctx * 62089911; + *ctx = (uint32_t)(tmp % (uint64_t)RAND_MAX); + return (*ctx); #endif /* !USE_WEAK_SEEDING */ } @@ -85,7 +87,7 @@ int rand_r(unsigned int *ctx) { - u_long val = (u_long) *ctx; + uint32_t val = (uint32_t) *ctx; int r = do_rand(&val); *ctx = (unsigned int) val; @@ -93,7 +95,7 @@ } -static u_long next = 1; +static uint32_t next = 1; int rand() --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5: 2:52 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D11B737B401 for ; Tue, 4 Feb 2003 05:02:50 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D57643FB8 for ; Tue, 4 Feb 2003 05:02:40 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14D2cd6092395; Tue, 4 Feb 2003 16:02:38 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14D2cfm092394; Tue, 4 Feb 2003 16:02:38 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 16:02:38 +0300 From: "Andrey A. Chernov" To: Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204130238.GA92301@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204120730.GA91888@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204120730.GA91888@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 15:07:30 +0300, Andrey A. Chernov wrote: > On Tue, Feb 04, 2003 at 03:52:37 -0800, David Schultz wrote: > > > > You can do better than the present generator with 32 bits of state. > > See the following page by Neal Wagner (not to be confused with David Wagner): > > http://www.cs.utsa.edu/~wagner/laws/rng.html > > The section on LCGs suggests that the multiplier FreeBSD uses (7^5) > > is not particularly good, and points out some better values suggested > > by Knuth. I can't find the original discussion in TAOCP vol. 2, but Two variants looks interesting from that paper: m=2^31-1, k=48271 m=2^31-1, k=62089911 Do you know any comparison of them with what we currently have, i.e. m=2^31-1, k=16807 -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5: 8:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0161337B401 for ; Tue, 4 Feb 2003 05:08:16 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6362043F75 for ; Tue, 4 Feb 2003 05:08:15 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h14D83P4018114; Tue, 4 Feb 2003 08:08:03 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Tue, 4 Feb 2003 08:08:02 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Ilmar S. Habibulin" Cc: freebsd-current@freebsd.org Subject: Re: What is the difference between p_ucred and td_ucred? In-Reply-To: <20030204032624.U9181-100000@fledge.watson.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 4 Feb 2003, Ilmar S. Habibulin wrote: > On Mon, 3 Feb 2003, Robert Watson wrote: > > > The strategy for selecting a credential to check against is generally to > > use td_ucred, and to hold no locks. You'll see that suser() does this, > > for example. Under some circumstances: specifically, credential updates, > > you need to hold the process lock and atomically check the process > > credential before updating. If the thread doesn't immediately leave the > > kernel (i.e., more checks might be performed), you'll also need to > > propagate the cred change to the thread from the process. > > Ok. Thank you for an expanation, I'll consider that. Now i'm trying to > reanimate Thomas Moestls' capability work. Is anybody interested in such > integration? I have almost bootable kernel and now will try to > understand kernel structures locking and td_ucred/p_ucred interactions, > to make nessesary changes. > > Or SEBSD make capabilities completly unnesessary? We have tentative plans to support Capabilities-like models via a plug-in module using the MAC Framework sometime over the next few months. Slotting the POSIX.1e capabilities work into that makes a lot of sense. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5:10:12 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70F1037B427 for ; Tue, 4 Feb 2003 05:10:11 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE64143F93 for ; Tue, 4 Feb 2003 05:10:09 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14DA7d6092461; Tue, 4 Feb 2003 16:10:07 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14DA6CA092460; Tue, 4 Feb 2003 16:10:06 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 16:10:06 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204131006.GB92301@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 14:00:27 +0100, Dag-Erling Smorgrav wrote: > David Schultz writes: > > You can do better than the present generator with 32 bits of state. > > See the following page by Neal Wagner (not to be confused with David Wagner): > > http://www.cs.utsa.edu/~wagner/laws/rng.html > > The attached patch, based on one of the m/k pairs suggested on that > page, results in the following: I just think about 62089911 and 48271 too :-) There is one bug in your patch: 0 is still illegal, so my fix required. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5:17:56 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7AA037B401 for ; Tue, 4 Feb 2003 05:17:54 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEE8443F75 for ; Tue, 4 Feb 2003 05:17:52 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14DHnd6092604; Tue, 4 Feb 2003 16:17:49 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14DHnfl092597; Tue, 4 Feb 2003 16:17:49 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 16:17:48 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204131748.GA92510@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204131006.GB92301@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 16:10:06 +0300, Andrey A. Chernov wrote: > On Tue, Feb 04, 2003 at 14:00:27 +0100, Dag-Erling Smorgrav wrote: > > David Schultz writes: > > > You can do better than the present generator with 32 bits of state. > > > See the following page by Neal Wagner (not to be confused with David Wagner): > > > http://www.cs.utsa.edu/~wagner/laws/rng.html > > > > The attached patch, based on one of the m/k pairs suggested on that > > page, results in the following: > > I just think about 62089911 and 48271 too :-) > > There is one bug in your patch: 0 is still illegal, so my fix required. The next bug is that there is % RAND_MAX + 1, not % RAND_MAX. The next is not the bug but portability thing alowing different RAND_MAX: you need to assign *ctx first and return it % RAND_MAX + 1 next, not assign *ctx % RAND_MAX + 1 like you currently does. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5:28:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 436B837B401 for ; Tue, 4 Feb 2003 05:28:48 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B3CF43F75 for ; Tue, 4 Feb 2003 05:28:47 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14DSjd6092696; Tue, 4 Feb 2003 16:28:45 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14DSjDa092695; Tue, 4 Feb 2003 16:28:45 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 16:28:45 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204132845.GA92674@nagual.pp.ru> References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204131748.GA92510@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 16:17:48 +0300, Andrey A. Chernov wrote: > On Tue, Feb 04, 2003 at 16:10:06 +0300, Andrey A. Chernov wrote: > > On Tue, Feb 04, 2003 at 14:00:27 +0100, Dag-Erling Smorgrav wrote: > > > David Schultz writes: > > > > You can do better than the present generator with 32 bits of state. > > > > See the following page by Neal Wagner (not to be confused with David Wagner): > > > > http://www.cs.utsa.edu/~wagner/laws/rng.html > > > > > > The attached patch, based on one of the m/k pairs suggested on that > > > page, results in the following: > > > > I just think about 62089911 and 48271 too :-) > > > > There is one bug in your patch: 0 is still illegal, so my fix required. > > The next bug is that there is % RAND_MAX + 1, not % RAND_MAX. > > The next is not the bug but portability thing alowing different RAND_MAX: > you need to assign *ctx first and return it % RAND_MAX + 1 next, not > assign *ctx % RAND_MAX + 1 like you currently does. And the next bug is 32bit overflow there: tmp = *ctx * 62089911; must be tmp = (uint64_t) *ctx * 62089911; I'll produce working variant based on your patch... -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5:44: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7ABB637B401 for ; Tue, 4 Feb 2003 05:44:02 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0282643F79 for ; Tue, 4 Feb 2003 05:44:01 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id AA9B5536E; Tue, 4 Feb 2003 14:43:58 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Andrey A. Chernov" Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken From: Dag-Erling Smorgrav Date: Tue, 04 Feb 2003 14:43:57 +0100 In-Reply-To: <20030204131748.GA92510@nagual.pp.ru> ("Andrey A. Chernov"'s message of "Tue, 4 Feb 2003 16:17:48 +0300") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-=-= "Andrey A. Chernov" writes: > There is one bug in your patch: 0 is still illegal, so my fix required. I believe that's a feature. All linear congruence generator have a fixed point. 0 is a far better fixed point than any other because it is more "obviously unsuited" (for some values of "obviously") as a seed value. (but see below) > The next bug is that there is % RAND_MAX + 1, not % RAND_MAX. No, using modulo 0x80000000 instead of modulo 0x7fffffff breaks the algorithm. (but see below) > The next is not the bug but portability thing alowing different RAND_MAX: > you need to assign *ctx first and return it % RAND_MAX + 1 next, not > assign *ctx % RAND_MAX + 1 like you currently does. Changing RAND_MAX affects the algorithm in such a way that you should not do so without giving serious thought to revising the algorithm itself. In fact, RAND_MAX should be considered a characteristic of the algorithm rather than a parameter that regulates it. For that reason, and to make the algorithm more transparent to the reader, I've replaced RAND_MAX with 0x7fffffff in the attached patch. All that being said, adding 1 to *ctx before returning it (see patch) adresses both of your objections: a seed of 0 will not cause the LCG to get stuck, and the result of rand() will range between 0 and RAND_MAX inclusive. des@des ~/src% ./rndtest| head 2 0 1 7 1 7 f 2 5 3 f 6 a d 6 a 3 b 5 2 f 8 6 3 d 9 6 1 f 0 2 3 4 4 1 a f 3 b 5 4 2 a 6 f 0 0 6 9 5 1 7 c f 6 9 1 7 7 a 7 8 1 b 0 a c 7 a c 7 3 9 f 4 2 d 3 d 9 d 4 4 a 3 0 c f 7 6 2 5 9 2 3 7 5 b 7 7 f 9 9 b d 1 d c 5 2 b 6 7 c c 5 8 4 3 b 2 1 6 f 6 c 2 2 5 6 5 e a b b 8 e e 4 9 1 9 4 2 3 4 d b 3 5 3 a d 4 3 5 b 7 4 a c 1 2 4 e 5 d 9 0 6 6 8 b 7 f 8 8 2 6 1 c d 1 c f f 0 9 1 3 4 c 5 6 8 b 8 9 a 8 5 d b 8 8 d 7 e 7 0 c 2 c 8 0 6 5 8 f 8 9 6 0 c 9 d 4 7 0 8 5 2 c b 8 e 5 f 5 c d 1 c c b 3 8 8 f f 1 2 a 5 c f 0 5 f 2 4 e 9 0 1 1 9 2 5 f 0 0 2 2 d f b f 7 0 2 a 2 4 7 a 2 f 9 0 f 1 c 8 e 2 f c f 2 8 c d 5 7 0 f 2 b a 2 a 4 d 8 b c 4 0 4 DES -- Dag-Erling Smorgrav - des@ofug.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=rand.diff Index: lib/libc/stdlib/rand.c =================================================================== RCS file: /home/ncvs/src/lib/libc/stdlib/rand.c,v retrieving revision 1.11 diff -u -r1.11 rand.c --- lib/libc/stdlib/rand.c 2 Feb 2003 14:27:51 -0000 1.11 +++ lib/libc/stdlib/rand.c 4 Feb 2003 13:33:30 -0000 @@ -52,7 +52,7 @@ #endif /* TEST */ static int -do_rand(unsigned long *ctx) +do_rand(uint32_t *ctx) { #ifdef USE_WEAK_SEEDING /* @@ -63,21 +63,23 @@ return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)RAND_MAX + 1)); #else /* !USE_WEAK_SEEDING */ /* - * Compute x = (7^5 * x) mod (2^31 - 1) - * wihout overflowing 31 bits: - * (2^31 - 1) = 127773 * (7^5) + 2836 - * From "Random number generators: good ones are hard to find", - * Park and Miller, Communications of the ACM, vol. 31, no. 10, - * October 1988, p. 1195. + * New algorithm derived from + * The Laws of Cryptography: Pseudo-random Number Generation + * by Neal R. Wagner + * http://www.cs.utsa.edu/~wagner/laws/rng.html + * which itself is derived from work by Donald E. Knuth. + * + * This is a linear congruence generator using the equation + * + * x(n+1) = (k * x(n) + a) mod m + * + * where m is 2^31 - 1, k is 62089911 and a is 0. */ - long hi, lo, x; + uint64_t tmp; - hi = *ctx / 127773; - lo = *ctx % 127773; - x = 16807 * lo - 2836 * hi; - if (x <= 0) - x += 0x7fffffff; - return ((*ctx = x) % ((u_long)RAND_MAX + 1)); + tmp = *ctx * 62089911; + *ctx = (uint32_t)(tmp % (uint64_t)0x7fffffff + 1); + return (*ctx); #endif /* !USE_WEAK_SEEDING */ } @@ -85,7 +87,7 @@ int rand_r(unsigned int *ctx) { - u_long val = (u_long) *ctx; + uint32_t val = (uint32_t) *ctx; int r = do_rand(&val); *ctx = (unsigned int) val; @@ -93,7 +95,7 @@ } -static u_long next = 1; +static uint32_t next = 1; int rand() --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5:47:25 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD0F937B405 for ; Tue, 4 Feb 2003 05:47:17 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56C0F43F43 for ; Tue, 4 Feb 2003 05:47:16 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14DlFd6092998; Tue, 4 Feb 2003 16:47:15 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14DlE7n092997; Tue, 4 Feb 2003 16:47:14 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 16:47:14 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204134714.GA92940@nagual.pp.ru> References: <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> <20030204132845.GA92674@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline In-Reply-To: <20030204132845.GA92674@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 04, 2003 at 16:28:45 +0300, Andrey A. Chernov wrote: > > I'll produce working variant based on your patch... > When all done correctly, there is repeated pattern still, so some NSHUFF drop required too: 1 7 e 4 a 0 7 d 3 a 0 6 See attached patch based on -current sources. -- Andrey A. Chernov http://ache.pp.ru/ --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rand1.patch" --- /usr/src/lib/libc/stdlib/rand.c Tue Feb 4 14:24:08 2003 +++ ./rand.c Tue Feb 4 16:40:24 2003 @@ -51,10 +51,8 @@ #include #endif /* TEST */ -#define NSHUFF 100 /* to drop part of seed -> 1st value correlation */ - static int -do_rand(unsigned long *ctx) +do_rand(uint32_t *ctx) { #ifdef USE_WEAK_SEEDING /* @@ -65,24 +63,25 @@ return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)RAND_MAX + 1)); #else /* !USE_WEAK_SEEDING */ /* - * Compute x = (7^5 * x) mod (2^31 - 1) - * wihout overflowing 31 bits: - * (2^31 - 1) = 127773 * (7^5) + 2836 - * From "Random number generators: good ones are hard to find", - * Park and Miller, Communications of the ACM, vol. 31, no. 10, - * October 1988, p. 1195. + * New algorithm derived from + * The Laws of Cryptography: Pseudo-random Number Generation + * by Neal R. Wagner + * http://www.cs.utsa.edu/~wagner/laws/rng.html + * which itself is derived from work by Donald E. Knuth. + * + * This is a linear congruence generator using the equation + * + * x(n+1) = (k * x(n) + a) mod m + * + * where m is 2^31 - 1, k is 62089911 and a is 0. */ - long hi, lo, x; + uint64_t tmp; /* Can't be initialized with 0, so use another value. */ if (*ctx == 0) *ctx = 123459876; - hi = *ctx / 127773; - lo = *ctx % 127773; - x = 16807 * lo - 2836 * hi; - if (x < 0) - x += 0x7fffffff; - return ((*ctx = x) % ((u_long)RAND_MAX + 1)); + tmp = ((uint64_t)*ctx * 62089911) % 2147483647; + return ((*ctx = tmp) % ((uint32_t)RAND_MAX + 1)); #endif /* !USE_WEAK_SEEDING */ } @@ -90,7 +89,7 @@ int rand_r(unsigned int *ctx) { - u_long val = (u_long) *ctx; + uint32_t val = (uint32_t)*ctx; int r = do_rand(&val); *ctx = (unsigned int) val; @@ -98,7 +97,7 @@ } -static u_long next = 1; +static uint32_t next = 1; int rand() @@ -110,11 +109,7 @@ srand(seed) u_int seed; { - int i; - next = seed; - for (i = 0; i < NSHUFF; i++) - (void)do_rand(&next); } --2fHTh5uZTiUOsy+g-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 5:47:31 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2721F37B40E for ; Tue, 4 Feb 2003 05:47:28 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EADE43F43 for ; Tue, 4 Feb 2003 05:47:27 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 424FD536F; Tue, 4 Feb 2003 14:47:25 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Andrey A. Chernov" Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken From: Dag-Erling Smorgrav Date: Tue, 04 Feb 2003 14:47:24 +0100 In-Reply-To: <20030204132845.GA92674@nagual.pp.ru> ("Andrey A. Chernov"'s message of "Tue, 4 Feb 2003 16:28:45 +0300") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030202070644.GA9987@rot13.obsecurity.org> <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> <20030204132845.GA92674@nagual.pp.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-=-= "Andrey A. Chernov" writes: > And the next bug is 32bit overflow there: > > tmp = *ctx * 62089911; Ack, I thought the type promotion was automatic. Updated patch is attached. DES -- Dag-Erling Smorgrav - des@ofug.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=rand.diff Index: lib/libc/stdlib/rand.c =================================================================== RCS file: /home/ncvs/src/lib/libc/stdlib/rand.c,v retrieving revision 1.11 diff -u -r1.11 rand.c --- lib/libc/stdlib/rand.c 2 Feb 2003 14:27:51 -0000 1.11 +++ lib/libc/stdlib/rand.c 4 Feb 2003 13:44:52 -0000 @@ -52,7 +52,7 @@ #endif /* TEST */ static int -do_rand(unsigned long *ctx) +do_rand(uint32_t *ctx) { #ifdef USE_WEAK_SEEDING /* @@ -63,21 +63,23 @@ return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)RAND_MAX + 1)); #else /* !USE_WEAK_SEEDING */ /* - * Compute x = (7^5 * x) mod (2^31 - 1) - * wihout overflowing 31 bits: - * (2^31 - 1) = 127773 * (7^5) + 2836 - * From "Random number generators: good ones are hard to find", - * Park and Miller, Communications of the ACM, vol. 31, no. 10, - * October 1988, p. 1195. + * New algorithm derived from + * The Laws of Cryptography: Pseudo-random Number Generation + * by Neal R. Wagner + * http://www.cs.utsa.edu/~wagner/laws/rng.html + * which itself is derived from work by Donald E. Knuth. + * + * This is a linear congruence generator using the equation + * + * x(n+1) = (k * x(n) + a) mod m + * + * where m is 2^31 - 1, k is 62089911 and a is 0. */ - long hi, lo, x; + uint64_t tmp; - hi = *ctx / 127773; - lo = *ctx % 127773; - x = 16807 * lo - 2836 * hi; - if (x <= 0) - x += 0x7fffffff; - return ((*ctx = x) % ((u_long)RAND_MAX + 1)); + tmp = (uint64_t)*ctx * 62089911; + *ctx = (uint32_t)(tmp % (uint64_t)0x7fffffff + 1); + return (*ctx); #endif /* !USE_WEAK_SEEDING */ } @@ -85,7 +87,7 @@ int rand_r(unsigned int *ctx) { - u_long val = (u_long) *ctx; + uint32_t val = (uint32_t) *ctx; int r = do_rand(&val); *ctx = (unsigned int) val; @@ -93,7 +95,7 @@ } -static u_long next = 1; +static uint32_t next = 1; int rand() --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 6: 0:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AF7E37B405 for ; Tue, 4 Feb 2003 06:00:55 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F0BF43FAF for ; Tue, 4 Feb 2003 06:00:54 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14E0rd6093169; Tue, 4 Feb 2003 17:00:53 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14E0qMc093168; Tue, 4 Feb 2003 17:00:52 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 17:00:52 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204140052.GA93115@nagual.pp.ru> References: <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 14:43:57 +0100, Dag-Erling Smorgrav wrote: > I believe that's a feature. All linear congruence generator have a > fixed point. 0 is a far better fixed point than any other because it > is more "obviously unsuited" (for some values of "obviously") as a > seed value. (but see below) It is implementation details. rand() manpage says nothing about linear congruence generator and not suppose special meaning of 0 which means that application stuck at this point. We should not relay on that. > > The next bug is that there is % RAND_MAX + 1, not % RAND_MAX. > > No, using modulo 0x80000000 instead of modulo 0x7fffffff breaks the > algorithm. (but see below) Yes, but manpage says about range from 0 to RAND_MAX inclusive. It means that RAND_MAX clipping must be not part of algorithm and be applied only at later stage. > Changing RAND_MAX affects the algorithm in such a way that you should > not do so without giving serious thought to revising the algorithm Changing RAND_MAX should NOT affect algorithm at all, because RAND_MAX is not part of it. > All that being said, adding 1 to *ctx before returning it (see patch) > adresses both of your objections: a seed of 0 will not cause the LCG > to get stuck, and the result of rand() will range between 0 and > RAND_MAX inclusive. Adding +1 you break algorithm formulae badly from math point of view, something else then given formulae not allowed here. You can change 'a' parameter to anything you want, but not add something at the end. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 6: 8: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9534037B401 for ; Tue, 4 Feb 2003 06:08:08 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 717DC43F85 for ; Tue, 4 Feb 2003 06:08:07 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14E86d6093265; Tue, 4 Feb 2003 17:08:06 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14E863l093264; Tue, 4 Feb 2003 17:08:06 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 17:08:06 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204140806.GA93236@nagual.pp.ru> References: <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> <20030204132845.GA92674@nagual.pp.ru> <20030204134714.GA92940@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204134714.GA92940@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 16:47:14 +0300, Andrey A. Chernov wrote: > On Tue, Feb 04, 2003 at 16:28:45 +0300, Andrey A. Chernov wrote: > > > > I'll produce working variant based on your patch... > > > > When all done correctly, there is repeated pattern still, so some NSHUFF > drop required too: > 1 7 e 4 a 0 7 d 3 a 0 6 > > See attached patch based on -current sources. > With NSHUFF 100 situation not changed much, so I beleive that stated problem is common for this type PRNGs, so we gains nothing changing formulae to Knuth-recommended values. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 6:22: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C79D137B401 for ; Tue, 4 Feb 2003 06:22:06 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18ADC43F79 for ; Tue, 4 Feb 2003 06:22:06 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 4BFC0536F; Tue, 4 Feb 2003 15:22:04 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Andrey A. Chernov" Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken From: Dag-Erling Smorgrav Date: Tue, 04 Feb 2003 15:22:03 +0100 In-Reply-To: <20030204140806.GA93236@nagual.pp.ru> ("Andrey A. Chernov"'s message of "Tue, 4 Feb 2003 17:08:06 +0300") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> <20030204132845.GA92674@nagual.pp.ru> <20030204134714.GA92940@nagual.pp.ru> <20030204140806.GA93236@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > With NSHUFF 100 situation not changed much, so I beleive that stated > problem is common for this type PRNGs, so we gains nothing changing > formulae to Knuth-recommended values. Yes we do. We get a better sequence for any given seed, i.e. we get less correlation between n and x(n) for any given x(0). I don't think it changes much for long sequences, but we get a better distribution for short sequences (including short subsequences of long sequences). As for patterns in the lower bits, we should try with a != 0 and see how that affects the results. I believe the purpose of a in the LCG algorithm is to scramble the lower bits. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 6:23:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3237E37B401 for ; Tue, 4 Feb 2003 06:23:31 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7D8A43F43 for ; Tue, 4 Feb 2003 06:23:29 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id C7691536E; Tue, 4 Feb 2003 15:23:28 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Andrey A. Chernov" Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken From: Dag-Erling Smorgrav Date: Tue, 04 Feb 2003 15:23:28 +0100 In-Reply-To: <20030204140052.GA93115@nagual.pp.ru> ("Andrey A. Chernov"'s message of "Tue, 4 Feb 2003 17:00:52 +0300") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030202090422.GA59750@nagual.pp.ru> <20030203002639.GB44914@HAL9000.homeunix.com> <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> <20030204140052.GA93115@nagual.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andrey A. Chernov" writes: > On Tue, Feb 04, 2003 at 14:43:57 +0100, Dag-Erling Smorgrav wrote: > > All that being said, adding 1 to *ctx before returning it (see patch) > > adresses both of your objections: a seed of 0 will not cause the LCG > > to get stuck, and the result of rand() will range between 0 and > > RAND_MAX inclusive. > Adding +1 you break algorithm formulae badly from math point of view, > something else then given formulae not allowed here. You can change 'a' > parameter to anything you want, but not add something at the end. Do the math - adding 1 after the modulo operation is equivalent to setting a == k. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 6:28:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 013FE37B405 for ; Tue, 4 Feb 2003 06:28:58 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A30A43E4A for ; Tue, 4 Feb 2003 06:28:56 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14EStd6093461; Tue, 4 Feb 2003 17:28:55 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14ESsvW093460; Tue, 4 Feb 2003 17:28:54 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 17:28:54 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204142854.GA93413@nagual.pp.ru> References: <20030203100002.GA73386@nagual.pp.ru> <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> <20030204140052.GA93115@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 15:23:28 +0100, Dag-Erling Smorgrav wrote: > "Andrey A. Chernov" writes: > > On Tue, Feb 04, 2003 at 14:43:57 +0100, Dag-Erling Smorgrav wrote: > > > All that being said, adding 1 to *ctx before returning it (see patch) > > > adresses both of your objections: a seed of 0 will not cause the LCG > > > to get stuck, and the result of rand() will range between 0 and > > > RAND_MAX inclusive. > > Adding +1 you break algorithm formulae badly from math point of view, > > something else then given formulae not allowed here. You can change 'a' > > parameter to anything you want, but not add something at the end. > > Do the math - adding 1 after the modulo operation is equivalent to > setting a == k. Repeated k may affect distribution. Better variant will be with a != k. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 6:33:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCFA737B401 for ; Tue, 4 Feb 2003 06:33:44 -0800 (PST) Received: from smtpout.mac.com (A17-250-248-89.apple.com [17.250.248.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A2D743F93 for ; Tue, 4 Feb 2003 06:33:44 -0800 (PST) (envelope-from leimy2k@mac.com) Received: from woappsx50.mac.com (woappsx50-en1 [10.13.11.150]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h14EXirJ023260 for ; Tue, 4 Feb 2003 06:33:44 -0800 (PST) Received: from woappsx50 (localhost [127.0.0.1]) by woappsx50.mac.com (8.12.2/8.12.2) with ESMTP id h14EXiGO010902 for ; Tue, 4 Feb 2003 06:33:44 -0800 (PST) Message-ID: <6292471.1044369223935.JavaMail.leimy2k@mac.com> Date: Tue, 04 Feb 2003 08:33:43 -0600 From: David Leimbach To: current@freebsd.org Subject: Interested in helping the C99 integration project Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I am a software developer who has benefitted greatly from using FreeBSD the past few years as well as other software like KDE. I have been doing what I can here and there to make sure big projects like KDE will build and run on FreeBSD as well as other operating systems. I came to the realization that we [FreeBSD users/developers] are missing some thread safe functions like getpwnam_r. I was wondering if I could somehow help ease the burden either by testing or implementing some of these functions. Who do I want to organize with to help with this stuff? Thanks! Dave Leimbach To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 6:36: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE99037B401 for ; Tue, 4 Feb 2003 06:36:06 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB04943FA7 for ; Tue, 4 Feb 2003 06:36:05 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14Ea4d6093555; Tue, 4 Feb 2003 17:36:04 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14Ea4xN093554; Tue, 4 Feb 2003 17:36:04 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 17:36:04 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204143604.GA93522@nagual.pp.ru> References: <20030204054020.GA2447@HAL9000.homeunix.com> <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> <20030204132845.GA92674@nagual.pp.ru> <20030204134714.GA92940@nagual.pp.ru> <20030204140806.GA93236@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 15:22:03 +0100, Dag-Erling Smorgrav wrote: > > Yes we do. We get a better sequence for any given seed, i.e. we get > less correlation between n and x(n) for any given x(0). I don't think > it changes much for long sequences, but we get a better distribution > for short sequences (including short subsequences of long sequences). Maybe, I am not sure here, we need to ask expert. > As for patterns in the lower bits, we should try with a != 0 and see > how that affects the results. I believe the purpose of a in the LCG > algorithm is to scramble the lower bits. a != 0 eliminates 0 stuck problem, no additional visible effects. Even with a != 0 values are monotonically increased, I try with a == 123459876 0: 123459876 1: 185549787 2: 247639698 3: 309729609 4: 371819520 5: 433909431 6: 495999342 7: 558089253 8: 620179164 9: 682269075 -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 7: 0: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D94F837B401 for ; Tue, 4 Feb 2003 07:00:03 -0800 (PST) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5230143F43 for ; Tue, 4 Feb 2003 07:00:03 -0800 (PST) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id A58AD9C4A; Tue, 4 Feb 2003 09:48:02 -0500 (EST) Date: Tue, 4 Feb 2003 09:48:02 -0500 From: Mike Barcroft To: David Leimbach Cc: current@freebsd.org Subject: Re: Interested in helping the C99 integration project Message-ID: <20030204094802.E40910@espresso.q9media.com> References: <6292471.1044369223935.JavaMail.leimy2k@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6292471.1044369223935.JavaMail.leimy2k@mac.com>; from leimy2k@mac.com on Tue, Feb 04, 2003 at 08:33:43AM -0600 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Please wrap lines at 72 characters or less.] David Leimbach writes: > Hi, > > I am a software developer who has benefitted greatly from using FreeBSD the past few years as well as other software like KDE. I have been doing what I can here and there to make sure big projects like KDE will build and run on FreeBSD as well as other operating systems. > > I came to the realization that we [FreeBSD users/developers] are missing some thread safe functions like getpwnam_r. I was wondering if I could somehow help ease the burden either by testing or implementing some of these functions. > > Who do I want to organize with to help with this stuff? See http://www.freebsd.org/projects/c99/ Wes Peters has been assigned this task for a while. Perhaps you could co-ordinate with him. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 7:53:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3139737B401; Tue, 4 Feb 2003 07:53:15 -0800 (PST) Received: from smtpout.mac.com (A17-250-248-97.apple.com [17.250.248.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7FEE43F79; Tue, 4 Feb 2003 07:53:14 -0800 (PST) (envelope-from leimy2k@mac.com) Received: from woappsx47.mac.com (woappsx47-en1 [10.13.11.147]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h14FrEXc020094; Tue, 4 Feb 2003 07:53:14 -0800 (PST) Received: from woappsx47 (localhost [127.0.0.1]) by woappsx47.mac.com (8.12.2/8.12.2) with ESMTP id h14FrEHC009657; Tue, 4 Feb 2003 07:53:14 -0800 (PST) Message-ID: <6508917.1044373994498.JavaMail.leimy2k@mac.com> Date: Tue, 04 Feb 2003 09:53:14 -0600 From: David Leimbach To: Mike Barcroft Subject: Re: Interested in helping the C99 integration project Cc: current@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >See http://www.freebsd.org/projects/c99/ > >Wes Peters has been assigned this task for a while. Perhaps you could >co-ordinate with him. Yes and no offense to him... I am sure he is busy. Its not done yet :) I will contact him and see if I can lend a hand in any way. Thanks for the information! Dave Leimbach > >Best regards, >Mike Barcroft > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 8: 9:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83DA237B401 for ; Tue, 4 Feb 2003 08:09:49 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63B4D43FA3 for ; Tue, 4 Feb 2003 08:09:48 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h14G9kd6094344; Tue, 4 Feb 2003 19:09:46 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h14G9eZL094343; Tue, 4 Feb 2003 19:09:40 +0300 (MSK) (envelope-from ache) Date: Tue, 4 Feb 2003 19:09:40 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: David Schultz , Kris Kennaway , current@FreeBSD.ORG Subject: Re: rand() is broken Message-ID: <20030204160939.GA94299@nagual.pp.ru> References: <20030204094659.GA87303@nagual.pp.ru> <20030204115237.GA6483@HAL9000.homeunix.com> <20030204131006.GB92301@nagual.pp.ru> <20030204131748.GA92510@nagual.pp.ru> <20030204132845.GA92674@nagual.pp.ru> <20030204134714.GA92940@nagual.pp.ru> <20030204140806.GA93236@nagual.pp.ru> <20030204143604.GA93522@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204143604.GA93522@nagual.pp.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 17:36:04 +0300, Andrey A. Chernov wrote: > with a != 0 values are monotonically increased, I try with > a == 123459876 With your a == 62089911 (i.e. +1) the same: 0: 62089911 1: 124179822 2: 186269733 3: 248359644 4: 310449555 5: 372539466 6: 434629377 7: 496719288 8: 558809199 9: 620899110 With a == 0 the same: 0: 0 1: 62089911 2: 124179822 3: 186269733 4: 248359644 5: 310449555 6: 372539466 7: 434629377 8: 496719288 9: 558809199 Where is improvement? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 8:33:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 170DA37B401 for ; Tue, 4 Feb 2003 08:33:56 -0800 (PST) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ABB743FA7 for ; Tue, 4 Feb 2003 08:33:55 -0800 (PST) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) by alpha.siliconlandmark.com (8.12.6/8.12.6) with ESMTP id h14GXmmF034071; Tue, 4 Feb 2003 11:33:49 -0500 (EST) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost) by alpha.siliconlandmark.com (8.12.6/8.12.6/Submit) with ESMTP id h14GXi7A034068; Tue, 4 Feb 2003 11:33:45 -0500 (EST) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Tue, 4 Feb 2003 11:33:44 -0500 (EST) From: Andre Guibert de Bruet To: Pascal Giannakakis Cc: freebsd-current@FreeBSD.ORG Subject: Re: Boot failure with latest -CURRENT In-Reply-To: <3E39D195.2020205@gmx.net> Message-ID: <20030204113233.Y17733@alpha.siliconlandmark.com> References: <3E39D195.2020205@gmx.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 31 Jan 2003, Pascal Giannakakis wrote: > today i updated sources with CVS, compiled world and kernel, then > rebooted. During boot it hangs at the boot message (the place where in > FreeBSD 4.7 a lot of boot info would appear, like ata, cpu, usb0 blah blah). > > - The keyboard num-lock does not react (keeps on) after boot starts. > - There is no HDD activity, thus there is no log from which i could give > you information. > - I have added 'verbose_loading="YES"' to my /boot/loader.conf, > unfortunatly i get this message: "userconfig_script...failed!". When i > removed it again, the message is still there. But the vesa.ko i have > added in it gets loaded. > - Failure to boot appears with kernel GENERIC or usermodified. > - I can boot with a backed up kernel from October or December, not sure > from when exactly. > - Hardware is: http://www.capm.de/freebsd-dmesg.txt > > How to proceed and find out what is wrong? What CVS tag did you use when you checked out the new sources? Regards, > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 8:36:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3956337B401 for ; Tue, 4 Feb 2003 08:36:09 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5B6743FB9 for ; Tue, 4 Feb 2003 08:35:59 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (root@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with SMTP id h14GZfgZ036713 for ; Tue, 4 Feb 2003 18:35:41 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with ESMTP id h14GZexQ036700 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 4 Feb 2003 18:35:41 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Submit) id h14GZe3A036695; Tue, 4 Feb 2003 18:35:40 +0200 (EET) Date: Tue, 4 Feb 2003 18:35:40 +0200 From: Ruslan Ermilov To: current@freebsd.org Cc: Wilko Bulte , Poul-Henning Kamp , Alexander Kabaev Subject: Status of cross-releases Message-ID: <20030204163540.GA33350@sunbay.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The first (confirmed to work) cross-release! Finally, I've been able to build an i386 snapshot on Alpha, and make sure it works! This is the "uname -a" output from the Alpha box which was used to build the snapshot, root access kindly provided by Wilko Bulte: : FreeBSD ds10.wbnet 5.0-CURRENT FreeBSD 5.0-CURRENT #8: Tue Jan 28 07:58:2= 2 CET 2003 root@ds10.wbnet:/usr/obj/usr/src/sys/GENERIC alpha This is the "uname -v" output from the machine which runs this snapshot, my i386 development box: : FreeBSD 5.0-20030203-SNAP #0: Mon Feb 3 17:22:03 GMT 2003 root@ds10.= wbnet:/usr/obj/i386/usr/src/sys/GENERIC=20 I've alreadu committed a few changes that were necessary to make this happen. Some are still uncommitted like the patch for gas(1) by Alexander Kabaev, and fixes to make disklabel(8) work for a different architecture (working with Poul-Henning on this one). There's still one issue to be resolved for "i386 on alpha" cross-releases: btxld(8) produces a binary image different from when it's run natively; I will look into this ASAP. (I had to take the produced by the Alpha box loader.bin from ${.OBJDIR} and pass it to btxld(8) on an i386 box, and then back to Alpha, to produce a working loader(8) (for kern.flp and "base" distribution). Alexander, please commit your patch for gas(1). It works! It was very kind of you to develop it, and it was done incredibly fast. Thanks a lot! Wilko, I still need an access to your ds10 Alpha for a few more days. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+P+vcUkv4P6juNwoRAgj8AJ0aaqPen8Ho+s4qwH8osGl8d6eS2wCfWMN0 OOx5Ci+c2Mf9T+NqzgIUbas= =WDKs -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 8:39:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCC5537B401 for ; Tue, 4 Feb 2003 08:39:33 -0800 (PST) Received: from wrzx35.rz.uni-wuerzburg.de (wrzx35.rz.uni-wuerzburg.de [132.187.3.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A2BD43F75 for ; Tue, 4 Feb 2003 08:39:26 -0800 (PST) (envelope-from q@uni.de) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx35.rz.uni-wuerzburg.de (8.8.8/8.8.8/uniwue-MM-1.05) with ESMTP id RAA455069 for ; Tue, 4 Feb 2003 17:39:25 +0100 (CET) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id A192F66A5C for ; Tue, 4 Feb 2003 17:39:24 +0100 (CET) Received: from wrzx07.rz.uni-wuerzburg.de ([132.187.1.7]) by virusscan (wrzx34 [132.187.3.34:25]) (amavisd-new) with ESMTP id 18769-06 for ; Tue, 4 Feb 2003 17:39:24 +0100 (CET) Received: from spamchecker (localhost [127.0.0.1]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with ESMTP id C93B2466A for ; Tue, 4 Feb 2003 17:39:23 +0100 (CET) Received: from coyote.dnsalias.net (gb-007.galgenberg.net [132.187.222.7]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with ESMTP id 945D14666 for ; Tue, 4 Feb 2003 17:39:23 +0100 (CET) Received: from roadrunner.local (roadrunner [192.168.0.147]) by coyote.dnsalias.net (8.12.6/8.12.6) with ESMTP id h14GdKsg038743 for ; Tue, 4 Feb 2003 17:39:21 +0100 (CET) (envelope-from q@uni.de) Received: from roadrunner.local (localhost [127.0.0.1]) by roadrunner.local (8.12.6/8.12.6) with ESMTP id h14GdJPt011962 for ; Tue, 4 Feb 2003 17:39:19 +0100 (CET) (envelope-from q@uni.de) Received: (from q@localhost) by roadrunner.local (8.12.6/8.12.6/Submit) id h14GdIDm011961 for current@freebsd.org; Tue, 4 Feb 2003 17:39:18 +0100 (CET) (envelope-from q@uni.de) X-Authentication-Warning: roadrunner.local: q set sender to q@uni.de using -f Date: Tue, 4 Feb 2003 17:39:18 +0100 From: Ulrich Spoerlein To: current@freebsd.org Subject: Re: rand() is broken Message-ID: <20030204163918.GB11543@galgenberg.net> References: <200302022006.PAA25355@valiant.cnchost.com> <20030202131437.V79739@12-234-22-23.pyvrag.nggov.pbz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <20030202131437.V79739@12-234-22-23.pyvrag.nggov.pbz> User-Agent: Mutt/1.4i X-No-Archive: yes X-Spam-Status: No, hits=-13.8 required=8.0 tests=IN_REP_TO,LOCAL_CLIENT,NICE_HELO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT, USER_AGENT_MUTT,WEIRD_SUBJ_LETTER,X_AUTH_WARNING version=2.43-string_20021002 X-Spam-Level: X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, 02.02.2003 at 13:23:38 -0800, Doug Barton wrote: > I can think of one significant benefit... I had noticed that my perl > script to pick random windowmaker themes (which uses rand()) seemed to be > picking the same themes over and over again. Now I know why. :) I had to > create a "last seen" list to artificially increase the "randomness." Oh > wait, TWO benefits... xscreensaver is having the same problem. Well, I don't know for sure if XMMS uses rand/random, but I can tell you for sure that it's randomness _sucks_. It keeps playing the same songs from a Playlist again and again and again. Not very useful... --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+P+y2mArGtfDbn0QRAg3AAJ9GKhIh66OGgIHtOH3fjJaTaeQsZgCg5bLk cQgmk1AfQ5/lt0tUCVDfDqM= =V1VV -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 8:46:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A69BE37B401; Tue, 4 Feb 2003 08:46:13 -0800 (PST) Received: from h132-197-179-27.gte.com (h132-197-179-27.gte.com [132.197.179.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA66043E4A; Tue, 4 Feb 2003 08:46:12 -0800 (PST) (envelope-from ak03@gte.com) Received: from kanpc.gte.com (localhost [IPv6:::1]) by h132-197-179-27.gte.com (8.12.6/8.12.6) with ESMTP id h14Gk6n2044321; Tue, 4 Feb 2003 11:46:06 -0500 (EST) (envelope-from ak03@kanpc.gte.com) Received: (from ak03@localhost) by kanpc.gte.com (8.12.6/8.12.6/Submit) id h14Gk6ue044320; Tue, 4 Feb 2003 11:46:06 -0500 (EST) Date: Tue, 4 Feb 2003 11:46:06 -0500 From: Alexander Kabaev To: Ruslan Ermilov Cc: current@freebsd.org, wilko@freebsd.org, phk@freebsd.org, kan@freebsd.org Subject: Re: Status of cross-releases Message-Id: <20030204114606.3eee676c.ak03@gte.com> In-Reply-To: <20030204163540.GA33350@sunbay.com> References: <20030204163540.GA33350@sunbay.com> Organization: Verizon Data Services X-Mailer: Sylpheed version 0.8.8claws94 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > There's still one issue to be resolved for "i386 on alpha" > cross-releases: btxld(8) produces a binary image different > from when it's run natively This might be related to the failure I've seen trying to cross-compile i386 world on sparc64. btxldr dies with 'short read' error there. > Alexander, please commit your patch for gas(1). It works! > It was very kind of you to develop it, and it was done > incredibly fast. Thanks a lot! Not going to happen until binutils people approve it. I am not sure if the behavior I fixed was not designed to be that way. -- Alexander Kabaev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 9: 5:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D57137B401 for ; Tue, 4 Feb 2003 09:05:35 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id B92BC43F75 for ; Tue, 4 Feb 2003 09:05:31 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (root@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with SMTP id h14H5R8H040521 for ; Tue, 4 Feb 2003 19:05:27 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with ESMTP id h14H5ExQ040491 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 4 Feb 2003 19:05:27 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Submit) id h14H5D13040486; Tue, 4 Feb 2003 19:05:13 +0200 (EET) Date: Tue, 4 Feb 2003 19:05:13 +0200 From: Ruslan Ermilov To: Alexander Kabaev Cc: current@freebsd.org Subject: Re: Status of cross-releases Message-ID: <20030204170513.GC33350@sunbay.com> References: <20030204163540.GA33350@sunbay.com> <20030204114606.3eee676c.ak03@gte.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0vzXIDBeUiKkjNJl" Content-Disposition: inline In-Reply-To: <20030204114606.3eee676c.ak03@gte.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --0vzXIDBeUiKkjNJl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 04, 2003 at 11:46:06AM -0500, Alexander Kabaev wrote: > > There's still one issue to be resolved for "i386 on alpha" > > cross-releases: btxld(8) produces a binary image different > > from when it's run natively >=20 > This might be related to the failure I've seen trying to cross-compile > i386 world on sparc64. btxldr dies with 'short read' error there. >=20 btxldr and btxld are different beasties, the latter is the linker. > > Alexander, please commit your patch for gas(1). It works! > > It was very kind of you to develop it, and it was done > > incredibly fast. Thanks a lot! >=20 > Not going to happen until binutils people approve it. I am not sure > if the behavior I fixed was not designed to be that way. >=20 Can you please start working with David on this one? Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --0vzXIDBeUiKkjNJl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+P/LJUkv4P6juNwoRApQzAJ4qfxNlTMaStzMN/zqjhzeGeT3o7gCfX0Ey 5dAmiYGR03/4b35J9L7Etww= =3R2Q -----END PGP SIGNATURE----- --0vzXIDBeUiKkjNJl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 9:52:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CDB737B401 for ; Tue, 4 Feb 2003 09:52:31 -0800 (PST) Received: from comp.chem.msu.su (comp-ext.chem.msu.su [158.250.32.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82EBE43F43 for ; Tue, 4 Feb 2003 09:52:29 -0800 (PST) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.3/8.12.3) with ESMTP id h14HqQsA037436; Tue, 4 Feb 2003 20:52:27 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.3/8.12.3/Submit) id h14HqPTf037435; Tue, 4 Feb 2003 20:52:25 +0300 (MSK) (envelope-from yar) Date: Tue, 4 Feb 2003 20:52:25 +0300 From: Yar Tikhiy To: Mike Heffner Cc: David Rhodus , freebsd-current@FreeBSD.ORG Subject: Re: ftpd mkdir problems Message-ID: <20030204175224.GB34907@comp.chem.msu.su> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 03:05:31AM -0500, Mike Heffner wrote: > > On 31-Jan-2003 David Rhodus wrote: > | Using the default ftpd that comes with FreeBSD, in the mkdir command, > | why doesn't it expand '~', the cd and rmdir commands seem to. Passing > | over the code it just calls the c function with should expand it. > > No, the system calls don't expand a tilde. The expansion is done in > ftpcmd.y under the 'pathname' directive using glob(3), but glob(3) won't > expand the tilde when the directory doesn't exist. Lukemftpd works around > this by implementing its own '~' expansion code. Yar has been working on > ftpd recently, you might want to ask him if he has any plans to address > this. I've got inspiration to fix this bug in CURRENT today :-) Would everyone concerned mind testing my change to ftpd(8) and giving me your feedback? Thanks. > | ftp> cd ~will > | 250 CWD command successful. > | ftp> mkdir ~will/test > | 550 ~will/test: No such file or directory. > | ftp> mkdir test > | 257 "test" directory created. > | ftp> rmdir ~will/test > | 250 RMD command successful. > | ftp> -- Yar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 10:39:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 807C537B401; Tue, 4 Feb 2003 10:39:45 -0800 (PST) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C37643F79; Tue, 4 Feb 2003 10:39:44 -0800 (PST) (envelope-from mheffner@vt.edu) Received: from steiner.cc.vt.edu (IDENT:mirapoint@steiner-lb.cc.vt.edu [10.1.1.14]) by lennier.cc.vt.edu (8.11.4/8.11.4) with ESMTP id h14IdfG488576; Tue, 4 Feb 2003 13:39:41 -0500 (EST) Received: from enterprise.muriel.penguinpowered.com ([199.3.139.172]) by steiner.cc.vt.edu (Mirapoint Messaging Server MOS 3.3.2-CR) with ESMTP id AZE06136 (AUTH mheffner); Tue, 4 Feb 2003 13:39:38 -0500 (EST) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="_=XFMail.1.5.4.FreeBSD:20030204134006:14403=_"; micalg=pgp-md5; protocol="application/pgp-signature" In-Reply-To: <20030204175224.GB34907@comp.chem.msu.su> Date: Tue, 04 Feb 2003 13:40:06 -0500 (EST) From: Mike Heffner To: Yar Tikhiy Subject: Re: ftpd mkdir problems Cc: freebsd-current@FreeBSD.ORG, David Rhodus Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.5.4.FreeBSD:20030204134006:14403=_ Content-Type: text/plain; charset=us-ascii On 04-Feb-2003 Yar Tikhiy wrote: | On Tue, Feb 04, 2003 at 03:05:31AM -0500, Mike Heffner wrote: |> |> On 31-Jan-2003 David Rhodus wrote: |> | Using the default ftpd that comes with FreeBSD, in the mkdir command, |> | why doesn't it expand '~', the cd and rmdir commands seem to. Passing |> | over the code it just calls the c function with should expand it. |> |> No, the system calls don't expand a tilde. The expansion is done in |> ftpcmd.y under the 'pathname' directive using glob(3), but glob(3) |> won't |> expand the tilde when the directory doesn't exist. Lukemftpd works |> around |> this by implementing its own '~' expansion code. Yar has been working |> on |> ftpd recently, you might want to ask him if he has any plans to address |> this. | | I've got inspiration to fix this bug in CURRENT today :-) | Would everyone concerned mind testing my change to ftpd(8) and | giving me your feedback? | Thanks. | Appears to work on my end. ;-) Mike -- Mike Heffner --_=XFMail.1.5.4.FreeBSD:20030204134006:14403=_ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE+QAkFFokZQs3sv5kRAiX/AKCL785xA85m8659xXqVEz7qc90PAwCdFQzr CFRZCN736PjZrExRKT/JN1c= =74Kj -----END PGP SIGNATURE----- --_=XFMail.1.5.4.FreeBSD:20030204134006:14403=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 11: 1:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7440537B401; Tue, 4 Feb 2003 11:01:21 -0800 (PST) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id B178244238; Tue, 4 Feb 2003 10:58:28 -0800 (PST) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (localhost.he.iki.fi [127.0.0.1]) by silver.he.iki.fi (8.12.6/8.11.4) with ESMTP id h14IwPF8085778; Tue, 4 Feb 2003 20:58:25 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <3E400D50.8010401@he.iki.fi> Date: Tue, 04 Feb 2003 20:58:24 +0200 From: Petri Helenius User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021117 X-Accept-Language: English [en],Finnish [fi] MIME-Version: 1.0 To: current@freebsd.org, scottl@freebsd.org Subject: raidframe issues Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm trying to create a raid set but after hitting the end of initializing a raid5 stripe the following is displayed on the console: raid0: node (Rod) returned fail, rolling backward raid0: IO Error. Marking /dev/da2s1e as failed. raid0: node (Rod) returned fail, rolling backward raid0: IO Error. Marking /dev/da1s1e as failed. raid0: node (Rod) returned fail, rolling backward Unable to verify parity: can't read the stripe Could not verify parity raid0: Error re-writing parity! Multiple disks failed in a single group! Aborting I/O operation. Multiple disks failed in a single group! Aborting I/O operation. Multiple disks failed in a single group! Aborting I/O operation. [Failed to create a DAG] panic: raidframe error at line 459 file /usr/src/sys/dev/raidframe/rf_states.c cpuid = 0; lapic.id = 00000000 boot() called on cpu#0 syncing disks, buffers remaining... panic: bdwrite: buffer is not busy cpuid = 0; lapic.id = 00000000 boot() called on cpu#0 Uptime: 38m47s Shutting down raid0 Terminate ACPI Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... cpu_reset called on cpu#0 cpu_reset: Stopping other CPUs dmesg gives the following as disks: da0 at ahd0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-3 device da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled da0: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C) da1 at ahd0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled da1: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C) da2 at ahd0 bus 0 target 2 lun 0 da2: Fixed Direct Access SCSI-3 device da2: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled da2: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C) da3 at ahd0 bus 0 target 3 lun 0 da3: Fixed Direct Access SCSI-3 device da3: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled da3: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C) > cat /etc/raid0.conf START array 1 3 0 START disks /dev/da1s1e /dev/da2s1e /dev/da3s1e START layout 16 1 1 5 START queue fifo 100 Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Feb 4 11: 2:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E2AF37B4C6 for ; Tue, 4 Feb 2003 11:01:28 -0800 (PST) Received: from castle.org (castle.org [63.231.56.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CB2D444C1 for ; Tue, 4 Feb 2003 10:58:16 -0800 (PST) (envelope-from nomad@castle.org) Received: from castle.org (localhost.castle.org [127.0.0.1]) by castle.org (8.12.6/8.12.6) with ESMTP id h14Iw4hK006869 for ; Tue, 4 Feb 2003 10:58:04 -0800 (PST) (envelope-from nomad@castle.org) Message-Id: <200302041858.h14Iw4hK006869@castle.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-current@FreeBSD.ORG Subject: 5.0 on IBM T30: X11 failure X-uri: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Feb 2003 10:58:04 -0800 From: Lee Damon Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have just scratch installed 5.0 from CD. (By scratch install I mean I told it to delete and recreate all partitions except /users, so none of my old OS configurations should have been preseved.) When I installed 5.0 X11 worked. After turning off ACPI the built-in trackpoint mouse started working. I installed the XFConfig86 that was running on the portable from 4.7 and it came up without much trouble. However, after doing a cvsup, make buildkernel, make buildworld, mergemaster -v, installkernel and installworld, X no longer works. It seems to get a SIGABRT (signal 6) before it even paints the screen. Booting from kernel.generic (a complete copy of the initial kernel directory) and kernel.old does not fix it. Someone reported problems earlier and the suggested fix was to portupgrade -f wrapper. I tried this, but it did not help. I removed and reinstalled X from /stand/sysinstall (using FTP, not CD. Hmm.. maybe I should try pulling it from CD again?) and still have the same exit. I am attaching the output of dmesg, the XFree86 session log, my kernel configuration and the cvsupfile that I used. A couple things I have noticed that might or might not have bearing: dmesg shows realmem at 255MB when the box has over 700MB (top shows all of the memory, though) In dmesg, right after vga0 there are several unknown: lines The lock order reversal that is so popular in this list is showing up here. (It also shows up on the desktop system I'm using, but that box isn't running X.) apmd still isn't running (it stars then exits quietly) /dev/apm isn't being created (I'm sure this isn't relevant, but thought I'd mention it) probe complains about cardbus. I recall email about this topic earlier and expect it is irrelevant to the current problem. Any hints, tips, or pointers at documentation I've missed would be greatly appreciated. thanks, nomad ---------- dmesg Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #2: Tue Feb 4 09:17:29 PST 2003 root@tylendel.castle.org:/users/FreeBSD-5.0/obj/users/FreeBSD-5.0/src/sys/T YLENDEL Preloaded elf kernel "/boot/kernel/kernel" at 0xc067c000. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1798479664 Hz CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz (1798.48-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 Features=0x3febf9ff real memory = 267780096 (255 MB) avail memory = 253177856 (241 MB) Initializing GEOMetry subsystem Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface Using $PIR table, 14 entries at 0xc00fdeb0 pcib0: at pcibus 0 on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) uhci0: port 0x1800-0x181f irq 11 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1820-0x183f irq 11 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f irq 11 at device 29.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pcib2: at device 30.0 on pci0 pci2: on pcib2 cbb0: mem 0x50000000-0x50000fff irq 11 at device 0.0 on pci2 cbb0: Could not map register memory device_probe_and_attach: cbb0 attach returned 12 cbb0: mem 0x51000000-0x51000fff irq 11 at device 0.1 on pci2 cbb0: Could not map register memory device_probe_and_attach: cbb0 attach returned 12 wi0: mem 0xf8000000-0xf8000fff irq 11 at device 2.0 on pci2 wi0: 802.11 address: 00:05:3c:03:84:79 wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI) wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.6) wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps fxp0: port 0x8000-0x803f mem 0xd0200000-0xd0200fff irq 11 at device 8.0 on pci2 fxp0: Ethernet address 00:09:6b:50:2c:01 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1860-0x186f,0x374-0x377,0x170-0x 177,0x3f4-0x3f7,0x1f0-0x1f7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at device 31.3 (no driver attached) pci0: at device 31.5 (no driver attached) pci0: at device 31.6 (no driver attached) eisa0: on motherboard eisa0: unknown card @@@0000 (0x00000000) at slot 1 orm0: ¦L¶r¾÷

·s¦~§ª«°e±z¤@¥x¦L¶r¾÷ ...

To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 12:59: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EE3437B416 for ; Wed, 5 Feb 2003 12:59:05 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65E0143E4A for ; Wed, 5 Feb 2003 12:59:04 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc02.attbi.com (sccrmhc02) with ESMTP id <2003020520590300200i501pe>; Wed, 5 Feb 2003 20:59:03 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA98524 for ; Wed, 5 Feb 2003 12:59:02 -0800 (PST) Date: Wed, 5 Feb 2003 12:59:01 -0800 (PST) From: Julian Elischer To: FreeBSD current users Subject: vnode locking question. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Is there ever a case when a vnode is locked for longer than the duration of the syscall that locked it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13: 3:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F20D637B401; Wed, 5 Feb 2003 13:03:10 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 555A043F3F; Wed, 5 Feb 2003 13:03:09 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h15L37GQ001347; Thu, 6 Feb 2003 00:03:07 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h15L37dA001346; Thu, 6 Feb 2003 00:03:07 +0300 (MSK) (envelope-from ache) Date: Thu, 6 Feb 2003 00:03:07 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030205210307.GA1222@nagual.pp.ru> References: <20030205194509.GA661@nagual.pp.ru> <44033.1044474774@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44033.1044474774@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 20:52:54 +0100, phk@freebsd.org wrote: > > My guess: Your RTC has the wrong time and ntpdate or similar stepped > your clock to be correct. It is each boot repeated effect, not one time. I run local clock in BIOS and use adjkerntz(8) to correct kernel time to GMT, via standard /etc/wall_cmos_clock knob. It there any chance that DEVFS comes up in the middle? If yes, is there any ideas for workaround? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:10:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32E8737B401 for ; Wed, 5 Feb 2003 13:10:44 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F4E043F93 for ; Wed, 5 Feb 2003 13:10:43 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h15LAfYu045097; Wed, 5 Feb 2003 22:10:41 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@freebsd.org In-Reply-To: Your message of "Thu, 06 Feb 2003 00:03:07 +0300." <20030205210307.GA1222@nagual.pp.ru> Date: Wed, 05 Feb 2003 22:10:41 +0100 Message-ID: <45096.1044479441@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030205210307.GA1222@nagual.pp.ru>, "Andrey A. Chernov" writes: >On Wed, Feb 05, 2003 at 20:52:54 +0100, phk@freebsd.org wrote: >> >> My guess: Your RTC has the wrong time and ntpdate or similar stepped >> your clock to be correct. > >It is each boot repeated effect, not one time. >I run local clock in BIOS and use adjkerntz(8) to correct kernel time to >GMT, via standard /etc/wall_cmos_clock knob. It there any chance that >DEVFS comes up in the middle? If yes, is there any ideas for workaround? You can try this patch instead. It has a different side effect: if you reset your clock the (untouched) timestamps will change. Index: devfs_vnops.c =================================================================== RCS file: /home/ncvs/src/sys/fs/devfs/devfs_vnops.c,v retrieving revision 1.60 diff -u -r1.60 devfs_vnops.c --- devfs_vnops.c 29 Jan 2003 22:36:45 -0000 1.60 +++ devfs_vnops.c 5 Feb 2003 19:58:52 -0000 @@ -243,22 +243,19 @@ } while (0) if (vp->v_type != VCHR) { - fix(de->de_atime); vap->va_atime = de->de_atime; - fix(de->de_mtime); vap->va_mtime = de->de_mtime; - fix(de->de_ctime); vap->va_ctime = de->de_ctime; } else { dev = vp->v_rdev; - fix(dev->si_atime); vap->va_atime = dev->si_atime; - fix(dev->si_mtime); vap->va_mtime = dev->si_mtime; - fix(dev->si_ctime); vap->va_ctime = dev->si_ctime; vap->va_rdev = dev->si_udev; } + fix(vap->va_atime); + fix(vap->va_mtime); + fix(vap->va_ctime); vap->va_gen = 0; vap->va_flags = 0; vap->va_nlink = de->de_links; -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:11:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C374B37B401 for ; Wed, 5 Feb 2003 13:11:27 -0800 (PST) Received: from mother.thoughtworks.com (mother.thoughtworks.com [204.178.39.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22D0643F79 for ; Wed, 5 Feb 2003 13:11:27 -0800 (PST) (envelope-from anoop@ranganath.com) Received: from ranganath ([10.4.2.12]) by mother.thoughtworks.com (Lotus Domino Release 5.0.11) with SMTP id 2003020515345261:8473 ; Wed, 5 Feb 2003 15:34:52 -0600 Message-ID: <00e201c2cd5b$14f31c30$0c02040a@ranganath> From: "Anoop Ranganath" To: Subject: tmpfile breakage on setuid executables Date: Wed, 5 Feb 2003 15:10:54 -0600 MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-MIMETrack: Itemize by SMTP Server on Mother/ThoughtWorks.COM/US(Release 5.0.11 |July 24, 2002) at 02/05/2003 03:34:52 PM, Serialize by Router on Mother/ThoughtWorks.COM/US(Release 5.0.11 |July 24, 2002) at 02/05/2003 03:34:54 PM, Serialize complete at 02/05/2003 03:34:54 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The problem reared it's ugly head when maildrop started mishandling mesasges. Here is what I've tracked it down to: I've used the code at the bottom of this message to isolate this bug. The summary is that when I compile the code as root, and then make it setuid (chmod u+s a.out) and then try to run it as a user, the tmpfile() fails. If I run it as root, it works fine. Conversely, I can give user ownership of the executable, and then run it as user, and it works great, but if fails for root. Again this is only with the setuid bit set. My system is FreeBSD 5.0-RELEASE (GENERIC) #0: Thu Jan 16 22:16:53 GMT 2003 Thanks, Anoop #include #include int main( void ) { FILE *stream; stream = tmpfile(); if( stream != NULL ) { printf( "File number is %d.\n", fileno( stream ) ); fclose( stream ); return EXIT_SUCCESS; } return EXIT_FAILURE; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:12:48 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC55937B401; Wed, 5 Feb 2003 13:12:46 -0800 (PST) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E9ED43F79; Wed, 5 Feb 2003 13:12:45 -0800 (PST) (envelope-from muhannad07@cogeco.ca) Received: from [192.168.1.100] (d57-117-31.home.cgocable.net [24.57.117.31]) by fep1.cogeco.net (Postfix) with ESMTP id 339F9A47A; Wed, 5 Feb 2003 16:12:39 -0500 (EST) Subject: RE: Server locking hard -- A LOT!!! From: Muhannad Asfour To: "Forrest W. Christian" Cc: FreeBSD-questions@FreeBSD.org, FreeBSD-current@FreeBSD.org In-Reply-To: <20030205062148.P65486-100000@workhorse.imach.com> References: <20030205062148.P65486-100000@workhorse.imach.com> Content-Type: text/plain Organization: Message-Id: <1044479556.20535.0.camel@bsdbox.qubix.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 05 Feb 2003 16:12:37 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2003-02-05 at 08:23, Forrest W. Christian wrote: > On Wed, 5 Feb 2003, Robert Covell wrote: > > > > haven't come up with anything as I stated earlier. I'm not overclocking > > > or anything if that's what you're wondering. If anyone could assist me > > > in any way shape or form to get this working, I would appreciate it very > > > very much. Also, if you e-mail back, I'm not subscribed to the lists, > > > so could you please CC it to me. In the past 4 hours, it has locked > > > hard about 3 times because of a 28-34 connection load. > > Cooling problems also match this symptom set. (CPU sleeps less when > loaded) Do you have adequate cooling in this box? > > - Forrest W. Christian (forrestc@imach.com) AC7DE > ---------------------------------------------------------------------- > The Innovation Machine Ltd. P.O. Box 5749 > http://www.imach.com/ Helena, MT 59604 > Home of PacketFlux Technologies and BackupDNS.com (406)-442-6648 > ---------------------------------------------------------------------- > Protect your personal freedoms - visit http://www.lp.org/ Yes, cooling is not an issue, because I check the system temperatures regulary, and they never really go above 40 C. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:13:41 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF1D837B482 for ; Wed, 5 Feb 2003 13:13:38 -0800 (PST) Received: from yahoo.com.tw (135.0.30.61.isp.tfn.net.tw [61.30.0.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EB0E43F79 for ; Wed, 5 Feb 2003 13:13:36 -0800 (PST) (envelope-from conychangkimo@yahoo.com.tw) From: jerry@FreeBSD.ORG To: µ¹»{¯u¥´«÷ªºªB¤Í@FreeBSD.ORG Subject: ¸gÀ礧¯«ªº¯µ±K Reply-To: conychangkimo@yahoo.com.tw Date: 06 Feb 2003 05:33:34 +0800 Organization: Foobar Inc. X-Mailer: Gammadyne Mailer x-delete-me: 1 (this tells Gammadyne's server to delete the message) MIME-Version: 1.0 Content-Type: text/html Content-Transfer-Encoding: 8bit Message-Id: <20030205211336.0EB0E43F79@mx1.FreeBSD.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ¦L¶r¾÷

·s¦~§ª«°e±z¤@¥x¦L¶r¾÷ ...

To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:14: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CE5537B413; Wed, 5 Feb 2003 13:13:41 -0800 (PST) Received: from yahoo.com (168-226-64-5.speedy.com.ar [168.226.64.5]) by mx1.FreeBSD.org (Postfix) with SMTP id D0EEE43F85; Wed, 5 Feb 2003 13:12:53 -0800 (PST) (envelope-from lijxsk@yahoo.com) From: a-group Subject: âÉÒÖÅ×ÁÑ ÔÏÒÇÏ×ÌÑ. ğÒÁ×ÉÌÁ É ĞÒÁËÔÉËÁ. Reply-To: lijxsk@yahoo.com X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Organization: a-group Mime-Version: 1.0 Content-Type: text/html; charset="koi8-r" Date: Wed, 5 Feb 2003 23:13:43 +0200 Message-Id: <20030205211253.D0EEE43F85@mx1.FreeBSD.org> To: undisclosed-recipients: ; Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG

õ×ÁÖÁÅÍÙÅ çÏÓĞÏÄÁ !

ğÒÅÄÓÔÁ×ÉÔÅÌØÓÔ×Ï "Capital Standard Corporation"
ÓÏ×ÍÅÓÔÎÏ Ó ËÏÍĞÁÎÉÅÊ "A-Group" ĞÒÉÇÌÁÛÁÅÔ ÷ÁÓ ĞÒÉÎÑÔØ ÕŞÁÓÔÉÅ × ÓÅÍÉÎÁÒÅ ÎÁ ÔÅÍÕ:
 

 
ğÒÁËÔÉŞÅÓËÉÅ ÁÓĞÅËÔÙ ÂÉÒÖÅ×ÏÊ ÔÏÒÇÏ×ÌÉ ÎÁ ÍÅÖÄÕÎÁÒÏÄÎÙÈ ÆÉÎÁÎÓÏ×ÙÈ ÒÙÎËÁÈ.

 

 

óÅÍÉÎÁÒ ÓÏÓÔÏÉÔÓÑ: 14 ÆÅ×ÒÁÌÑ 2003Ç

ğÏ ÁÄÒÅÓÕ:
Ç. ëÉÅ×, ÇÏÓÔÉÎÉÃÁ "óÁÎËÔ-ğÅÒÅÒÂÕÒÇ" (ÂÕÌØ×ÁÒ ô.ûÅתÅÎËÏ, 4)
 

 ãÅÌØ ÓÅÍÉÎÁÒÁ:

ğÏÌÕŞÉÔØ ÎÁÇÌÑÄÎÕÀ ÉÎÆÏÒÍÁÃÉÀ Ï ÍÅÖÄÕÎÁÒÏÄÎÙÈ ÆÉÎÁÎÓÏ×ÙÈ, ÔÏ×ÁÒÎÙÈ É ÆÏÎÄÏ×ÙÈ  ÒÙÎËÁÈ, Ï ÍÅÈÁÎÉÚÍÁÈ ÒÁÂÏÔÙ ÎÁ ĞÒÉÍÅÒÅ şÉËÁÇÓËÏÊ ÂÉÒÖÉ, Õ×ÉÄÅÔØ × ÒÅÁÌØÎÏÍ ×ÒÅÍÅÎÉ Ä×ÉÖÅÎÉÅ ×ÁÌÀÔ É ÕÚÎÁÔØ ËÁË ÍÏÖÎÏ ĞÒÁ×ÉÌØÎÏ ÉÎ×ÅÓÔÉÒÏ×ÁÔØ É × ÄÁÌØÎÅÊÛÅÍ ĞÒÉÕÍÎÏÖÁÔØ Ó×ÏÊ ËÁĞÉÔÁÌ. ğÒÏÇÒÁÍÍÁ ÓÅÍÉÎÁÒÁ ĞÒÅÄÕÓÍÁÔÒÉ×ÁÅÔ ĞÏÌÕŞÅÎÉÅ ÏÔ×ÅÔÏ× ÎÁ ÉÎÔÅÒÅÓÕÀİÉÅ ×ÏĞÒÏÓÙ, ËÏÎÓÕÌØÔÁÃÉÉ É ÄÏËÌÁÄÙ ÓĞÅÃÉÁÌÉÓÔÏ×-ĞÒÁËÔÉËÏ×.


ìÅËÔÏÒÙ É ×ÅÄÕİÉÅ ÓÅÍÉÎÁÒÁ: ĞÒÅÄÓÔÁ×ÌÑÀİÉÊ ÂÒÏËÅÒ CSCorp., ÓĞÅÃÉÁÌÉÓÔ ĞÏ ÂÉÒÖÅ×ÙÍ ÏĞÅÒÁÃÉÑÍ (Chicago Mercantile   Exchange, Chicago Board of Trade).


÷ ĞÒÏÇÒÁÍÍÅ:

  • óĞÅËÕÌÑÃÉÉ – ËÁË ÓĞÏÓÏÂ ĞÒÉÕÍÎÏÖÅÎÉÑ ËÁĞÉÔÁÌÁ:
    şÁÓÔÎÙÅ ÉÎ×ÅÓÔÏÒÙ;
    ëÏÒĞÏÒÁÔÉ×ÎÙÅ É ÄÒÕÇÉÅ ÕŞÁÓÔÎÉËÉ ÒÙÎËÁ;
    ëÁËÏÊ ÓÕÍÍÙ ÄÏÓÔÁÔÏŞÎÏ ÄÌÑ ÒÁÂÏÔÙ;
    şÅÍ, ÇÄÅ É ËÁË ÔÏÒÇÏ×ÁÔØ.
  • éÎÓÔÒÕÍÅÎÔÙ ÍÉÒÏ×ÙÈ ÔÏ×ÁÒÎÙÈ É ÆÉÎÁÎÓÏ×ÙÈ ÒÙÎËÏ×:
    ãÅÎÎÙÅ ÂÕÍÁÇÉ;
    íÅÖÄÕÎÁÒÏÄÎÙÊ ÒÙÎÏË ÏÂÍÅÎÁ ×ÁÌÀÔ;
    æØÀŞÅÒÓÎÙÅ É ÏĞÃÉÏÎÎÙÅ ËÏÎÔÒÁËÔÙ.
  • ôÅÈÎÏÌÏÇÉÑ É ÍÅÈÁÎÉÚÍ ÂÉÒÖÅ×ÙÈ ×ÎÅÂÉÒÖÅ×ÙÈ ÏĞÅÒÁÃÉÊ:
    úÁËÏÎÏÄÁÔÅÌØÎÁÑ ÂÁÚÁ, ĞÒÁ×ÉÌÁ É ĞÒÁËÔÉËÁ ÁÍÅÒÉËÁÎÓËÏÊ ÍÏÄÅÌÉ ÔÏÒÇÏ×ÌÉ;
    ÷ÁÌÀÔÎÙÊ ÒÙÎÏË “spot”;
    âÉÒÖÅ×ÙÅ ÔÏÒÇÏ×ÙÅ ÓÉÓÔÅÍÙ
    ;
    ëÏÍĞØÔÅÎÙÅ ÔÏÒÇÏ×ÙÅ ÓÉÓÔÅÍÙ;
    ëÌÉÒÉÎÇÏ×ÙÅ (ÒÁÓŞÅÔÎÙÅ) ÓÉÓÔÅÍÙ ĞÏ ÏÂÓÌÕÖÉ×ÁÎÉÀ ÏĞÅÒÁÃÉÊ;
    éÎÆÏÒÍÁÃÉÏÎÎÙÅ ÓÉÓÔÅÍÙ É ËÏÍĞØÀÔÅÒÎÙÅ ÔÅÈÎÏÌÏÇÉÉ ĞÏ ÏÂÅÓĞÅŞÅÎÉÀ ÄÉÌÉÎÇÏ×ÙÈ ÏĞÅÒÁÃÉÊ.
  • «äÏÔÉÖÅÎÉÅ» ÒÙÎËÁ:
    âÒÏËÅÒÓËÁÑ ËÏÍĞÁÎÉÑ;
    ğÒÉÎÃÉĞÁÌ (ÍÁÒËÅÔ-ÍÅÊËÅÒ);
    ôÏÒÇÏ×ÙÊ ÓŞÅÔ;
    íÁÒÖÁ;
    ëÒÅÄÉÔÎÏÅ ĞÌÅŞÏ;
    óÏ×ÅÒÛÅÎÉÅ ÓÄÅÌËÉ;
    ğÌÀÓÙ É ÍÉÎÕÓÙ ”ÉÎÔÅÒÎÅÔ-ÔÏÒÇÏ×ÌÉ”;
    ğÒÉÂÙÌØÎÏÓÔØ ÏĞÅÒÁÃÉÊ.
  • ğÒÏÇÎÏÚÉÒÏ×ÁÎÉÅ ÒÙÎÏŞÎÙÈ ÔÅÎÄÅÎÃÉÊ:
    ôÅÈÎÉŞÅÓËÉÊ ÁÎÁÌÉÚ;
    æÕÎÄÁÍÅÎÔÁÌØÎÙÊ ÁÎÁÌÉÚ;
    ğÒÏÆÅÓÓÉÏÎÁÌØÎÙÅ ËÏÍĞØÀÔÅÒÎÙÅ ÓÉÓÔÅÍÙ É ĞÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓĞÅŞÅÎÉÅ, ÉÓĞÏÌØÚÕÅÍÏÅ × ÒÁÂÏÔÅ ÄÉÌÅÒÏ×.
  • ôÏÒÇÏ×ÙÅ ÓÔÒÁÔÅÇÉÉ É ÔÁËÔÉËÉ:
    óĞÅËÕÌÑÔÉ×ÎÙÅ ÏĞÅÒÁÃÉÉ;
    õĞÒÁ×ÌÅÎÉÅ ĞÏÒÔÆÅÌÅÍ;
    èÅÄÖÉÒÏ×ÁÎÉÅ ÜËÓĞÏÒÔÎÏ-ÉÍĞÏÒÔÎÙÈ ÏĞÅÒÁÃÉÊ
    .
  • òÅÖÉÍ ĞÒÏ×ÅÄÅÎÉÑ ÓÅÍÉÎÁÒÁ :

    09:30 - 19:00 - ×ÒÅÍÑ ĞÒÏ×ÅÄÅÎÉÑ ÓÅÍÉÎÁÒÁ, Ó ĞÅÒÅÒÙ×ÁÍÉ ÎÁ ËÏÆÅ É ÏÂÅÄ

    óÔÏÉÍÏÓÔØ ÕŞÁÓÔÉÑ × ÓÅÍÉÎÁÒÅ: 450 ÇÒÎ. ÚÁ ÏÄÎÏÇÏ ÕŞÁÓÔÎÉËÁ.

    äÌÑ ÕŞÁÓÔÉÑ ÎÅÏÂÈÏÄÉÍÏ:

  • ğÏÌÕŞÉÔØ ÓŞÅÔ ÄÌÑ ÏĞÌÁÔÙ ĞÏ ÆÁËÓÕ ;
  • ïĞÌÁÔÉÔØ ÓŞÅÔ ;
  • éÍÅÔØ ĞÒÉ ÓÅÂÅ ĞÁÓĞÏÒÔ É ËÏĞÉÀ ĞÌÁÔÅÖÎÏÇÏ ÄÏËÕÍÅÎÔÁ.
  • òÅÇÉÓÔÒÁÃÉÑ ĞÒÏ×ÏÄÉÔØÓÑ ÄÏ 12 ÆÅ×ÒÑÌÑ (×ËÌÀŞÉÔÅÌØÎÏ)

    óËÉÄËÉ:

  • ğÒÉ ÏĞÌÁÔÅ ÄÏ 10 ÆÅ×ÒÁÌÑ - ÓËÉÄËÁ 10 %;
  • ğÒÉ ÒÅÇÉÓÔÒÁÃÉÉ 2-È É ÂÏÌÅÅ ĞÒÅÄÓÔÁ×ÉÔÅÌÅÊ Ó ÏÄÎÏÇÏ ĞÒÅÄĞÒÉÑÔÉÑ - ÓËÉÄËÁ 10%;
  • òÅÇÉÏÎÁÌØÎÙÍ ËÏÍĞÁÎÉÑÍ - ÓËÉÄËÁ 10 %.
  • ëÏÎÔÁËÔÎÁÑ ÉÎÆÏÒÍÁÃÉÑ É ÒÅÇÉÓÔÒÁÃÉÑ: (044) 269-82-31;269-97-54.

    òÁÓÓÙÌËÁ ÏÒÇÁÎÉÚÏ×ÁÎÁ õËÒÁÉÎÓËÉÍ ãÅÎÔÒÏÍ äÉÒÅËÔ íÜÊÌ. éÚ×ÉÎÉÔÅ ÅÓÌÉ ÉÎÆÏÒÍÁÃÉÑ ÎÅ ÚÁÉÎÔÅÒÅÓÏ×ÁÌÁ ×ÁÓ. ğÏ ×ÏĞÒÏÓÁÍ ÏÒÇÁÎÉÚÁÃÉÉ ÒÁÓÓÙÌÏË, ÏÂÒÁİÁÊÔÅÓØ ĞÏ ÔÅÌ. (044) 237 29 18. ó Õ×ÁÖÅÎÉÅÍ, ëÁÒÏÌÉÎÁ íÅÎÄÅÌØ.

    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:23: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DC6537B405; Wed, 5 Feb 2003 13:23:03 -0800 (PST) Received: from fep3.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4246F43FB9; Wed, 5 Feb 2003 13:23:01 -0800 (PST) (envelope-from muhannad07@cogeco.ca) Received: from [192.168.1.100] (d57-117-31.home.cgocable.net [24.57.117.31]) by fep3.cogeco.net (Postfix) with ESMTP id 46BF22D98; Wed, 5 Feb 2003 16:22:55 -0500 (EST) Subject: RE: Server locking hard -- A LOT!!! From: Muhannad Asfour To: rcovell@rolet.com Cc: FreeBSD-current@FreeBSD.ORG, FreeBSD-questions@FreeBSD.ORG In-Reply-To: References: Content-Type: text/plain Organization: Message-Id: <1044480172.20623.1.camel@bsdbox.qubix.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 05 Feb 2003 16:22:53 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2003-02-05 at 08:20, Robert Covell wrote: > > -----Original Message----- > > From: owner-freebsd-questions@FreeBSD.ORG > > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Muhannad Asfour > > Sent: Tuesday, February 04, 2003 9:25 PM > > To: freebsd-questions@FreeBSD.ORG > > Cc: freebsd-current@FreeBSD.ORG > > Subject: Server locking hard -- A LOT!!! > > > > > > Hello. I've recently faced a rather odd issue that I've never seen > > before. I bought a new server (specs below), and I loaded it up with > > FreeBSD 5.0-RELEASE (I know, I know, not for a production environment, > > but this is a personal server). Now, whenever I get about 30 > > simultaneous connections, the box just locks hard. I tested all the > > hardware components (CPU, Memory, HD, NIC, etc.) and even bought new > > ones just to make sure and all end up with the same result. I can never > > keep a decent uptime (never went past 2 days so far). As soon as I get > > a mediocre http load (30 simul. connections), the box just locks hard. > > I built a debug kernel, I tried everything imaginable, and I have not > > found a solution whatsoever. Everyone seems to be stumped by this. I > > tried FreeBSD 4.7-RELEASE, 4.7-STABLE, 5.0-RELEASE and 5.0-CURRENT on > > this box. All give me the same result. I checked everywhere for > > relevant logs to explain what is occuring, but had no such luck. This > > is truly the million dollar question for me right now, because I have no > > idea why it would lock under such a petty load. I'm not sure what to do > > to fix this issue, I've tried many different areas for support and > > haven't come up with anything as I stated earlier. I'm not overclocking > > or anything if that's what you're wondering. If anyone could assist me > > in any way shape or form to get this working, I would appreciate it very > > very much. Also, if you e-mail back, I'm not subscribed to the lists, > > so could you please CC it to me. In the past 4 hours, it has locked > > hard about 3 times because of a 28-34 connection load. > > > > Machine Specs: > > Single Pentium IV 2.4 GHz processor > > ASUS P4S533 motherboard > > 512MB DDR333 RAM (will be 1GB next week) > > 120GB Maxtor 7200rpm (ATA133) HDD > > 40GB Maxtor 7200 rpm (ATA66) HDD > > Floppy Disk Drive > > ATI Rage 128 (32 meg) AGP 4x graphics adapter > > 52x LG CD-ROM drive > > 3Com 3C905C-TX NIC > > Currently running FreeBSD 5.0-CURRENT as of Sunday Feb. 2, 13:02:05 EST > > 2003. > > > > Thank you very much > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > I have seen things like this that are not software related at all but due to > a faulty power supply. Did you replace that when you went out and bought > new hardware? You might want to try and take off your CD-ROM and or the > secondary HD. This will cut back on your power usage and might be a good > test. If it still does it, get a new power supply that has enough juice. > > Sincerely, > > Robert T. Covell > President / Owner > Rolet Internet Services, LLC > Web: www.rolet.com > Email: rcovell@rolet.com > Phone: 816.471.1095 > Fax: 816.471.3447 > 24x7: 816.210.7145 > > Well, I took off the CD-ROM drive, so now it's just the two HDs and a floppy drive. We'll see if it was a power supply issue after all. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:40:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A600537B405 for ; Wed, 5 Feb 2003 13:40:51 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3347B43F75 for ; Wed, 5 Feb 2003 13:40:51 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0205.cvx21-bradley.dialup.earthlink.net ([209.179.192.205] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18gXHk-0007Ld-00; Wed, 05 Feb 2003 13:40:49 -0800 Message-ID: <3E41846A.39AAE406@mindspring.com> Date: Wed, 05 Feb 2003 13:38:50 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Anoop Ranganath Cc: freebsd-current@freebsd.org Subject: Re: tmpfile breakage on setuid executables References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4090534ee10a6c2583511a66d06119421a2d4e88014a4647c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Anoop Ranganath wrote: > The problem reared it's ugly head when maildrop started mishandling > mesasges. Here is what I've tracked it down to: > > I've used the code at the bottom of this message to isolate this > bug. The summary is that when I compile the code as root, and then > make it setuid (chmod u+s a.out) and then try to run it as a user, the > tmpfile() fails. If I run it as root, it works fine. Conversely, I > can give user ownership of the executable, and then run it as user, and > it works great, but if fails for root. Again this is only with the > setuid bit set. Probably your real and effective UID's aren't the same. Does your SUID root program set the real UID from the effective UID? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:50:10 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6999E37B401 for ; Wed, 5 Feb 2003 13:50:09 -0800 (PST) Received: from mother.thoughtworks.com (mother.thoughtworks.com [204.178.39.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECD6243F9B for ; Wed, 5 Feb 2003 13:50:07 -0800 (PST) (envelope-from anoop@ranganath.com) Received: from ranganath ([10.4.2.12]) by mother.thoughtworks.com (Lotus Domino Release 5.0.11) with SMTP id 2003020516133218:8729 ; Wed, 5 Feb 2003 16:13:32 -0600 Message-ID: <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> From: "Anoop Ranganath" To: "Terry Lambert" Cc: References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> Subject: Re: tmpfile breakage on setuid executables Date: Wed, 5 Feb 2003 15:49:34 -0600 MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-MIMETrack: Itemize by SMTP Server on Mother/ThoughtWorks.COM/US(Release 5.0.11 |July 24, 2002) at 02/05/2003 04:13:32 PM, Serialize by Router on Mother/ThoughtWorks.COM/US(Release 5.0.11 |July 24, 2002) at 02/05/2003 04:13:36 PM, Serialize complete at 02/05/2003 04:13:36 PM Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I've used the code at the bottom of this message to isolate this > > bug. The summary is that when I compile the code as root, and then > > make it setuid (chmod u+s a.out) and then try to run it as a user, the > > tmpfile() fails. If I run it as root, it works fine. Conversely, I > > can give user ownership of the executable, and then run it as user, and > > it works great, but if fails for root. Again this is only with the > > setuid bit set. > > Probably your real and effective UID's aren't the same. Does your > SUID root program set the real UID from the effective UID? Well, the code sample I submitted in my original email doesn't set any UID. It just creates a tmpfile() and then verifies that it succeeded. This is definitely a regression from 4.7 though. Running the same code on 4.7 succeeds, as it does on several other unix boxes. Anoop To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 13:56:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E38BB37B405; Wed, 5 Feb 2003 13:56:11 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8964C43FAF; Wed, 5 Feb 2003 13:56:06 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h15Lu5GQ002352; Thu, 6 Feb 2003 00:56:05 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h15Lu5SA002351; Thu, 6 Feb 2003 00:56:05 +0300 (MSK) (envelope-from ache) Date: Thu, 6 Feb 2003 00:56:05 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030205215605.GA2284@nagual.pp.ru> References: <20030205210307.GA1222@nagual.pp.ru> <45096.1044479441@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45096.1044479441@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 22:10:41 +0100, phk@freebsd.org wrote: > > You can try this patch instead. It has a different side effect: > if you reset your clock the (untouched) timestamps will change. It not helps, see 00:48 -> 03:48 future jump for some entries (00:48 is boot time): total 1 crw-r--r-- 1 root operator 117, 0 Feb 6 00:48 acd0 crw-r--r-- 1 root operator 117, 1 Feb 6 00:48 acd1 crw------- 1 root wheel 152, 0 Feb 6 00:48 acpi crw-r----- 1 root operator 4, 1 Feb 6 00:48 ad0 crw-r----- 1 root operator 4, 2 Feb 6 00:48 ad0s1 crw-r----- 1 root operator 4, 4 Feb 6 00:48 ad0s1a crw-r----- 1 root operator 4, 5 Feb 6 00:48 ad0s1b crw-r----- 1 root operator 4, 6 Feb 6 00:48 ad0s1c crw-r----- 1 root operator 4, 3 Feb 6 00:48 ad0s2 crw------- 1 root wheel 148, 0 Feb 6 00:48 agpgart crw-rw-r-- 1 root operator 39, 0 Feb 6 00:48 apm crw------- 1 root operator 159, 0 Feb 6 00:48 ata crw-rw-rw- 1 root wheel 21, 0 Feb 6 00:48 bpsm0 crw------- 1 root wheel 0, 0 Feb 6 00:48 console crw------- 1 root wheel 12, 255 Feb 6 00:48 consolectl crw-rw-rw- 1 root wheel 1, 0 Feb 6 00:48 ctty crw-rw---- 1 uucp dialer 28, 128 Feb 6 00:48 cuaa0 crw-rw---- 1 uucp dialer 28, 129 Feb 6 00:48 cuaa1 crw-rw---- 1 uucp dialer 28, 160 Feb 6 00:48 cuaia0 crw-rw---- 1 uucp dialer 28, 161 Feb 6 00:48 cuaia1 crw-rw---- 1 uucp dialer 28, 192 Feb 6 00:48 cuala0 crw-rw---- 1 uucp dialer 28, 193 Feb 6 00:48 cuala1 crw------- 1 root wheel 173, 0 Feb 6 00:48 devctl dr-xr-xr-x 2 root wheel 512 Feb 6 03:48 fd crw-r----- 1 root operator 9, 0 Feb 6 00:48 fd0 crw-r----- 1 root operator 4, 0 Feb 6 00:48 geom.ctl crw------- 1 root wheel 2, 14 Feb 6 00:48 io crw------- 1 root wheel 7, 0 Feb 6 00:48 klog crw-r----- 1 root kmem 2, 1 Feb 6 00:48 kmem lrwxr-xr-x 1 root wheel 3 Feb 6 00:48 log -> /var/run/log crw------- 1 root wheel 16, 0 Feb 6 00:48 lpt0 crw------- 1 root wheel 16, 128 Feb 6 00:48 lpt0.ctl crw-r----- 1 root kmem 2, 0 Feb 6 00:48 mem dr-xr-xr-x 2 root wheel 512 Feb 6 03:48 net lrwxr-xr-x 1 root wheel 4 Feb 6 03:48 net1 -> net/lo0 crw------- 1 root wheel 165, 0 Feb 6 00:48 network crw-rw-rw- 1 root wheel 2, 2 Feb 6 00:48 null crw-r--r-- 1 root wheel 78, 0 Feb 6 00:48 pci crw-rw-rw- 1 root wheel 21, 1 Feb 6 00:48 psm0 crw-rw-rw- 1 root wheel 2, 3 Feb 6 03:48 random crw------- 1 root wheel 26, 0 Feb 6 00:48 speaker lrwxr-xr-x 1 root wheel 6 Feb 6 03:48 stderr -> fd/2 lrwxr-xr-x 1 root wheel 5 Feb 6 03:48 stdin -> fd/0 lrwxr-xr-x 1 root wheel 6 Feb 6 03:48 stdout -> fd/1 crw------- 1 root wheel 12, 128 Feb 6 00:48 sysmouse crw------- 1 root wheel 28, 0 Feb 6 00:48 ttyd0 crw------- 1 root wheel 28, 1 Feb 6 00:48 ttyd1 crw------- 1 root wheel 28, 32 Feb 6 00:48 ttyid0 crw------- 1 root wheel 28, 33 Feb 6 00:48 ttyid1 crw------- 1 root wheel 28, 64 Feb 6 00:48 ttyld0 crw------- 1 root wheel 28, 65 Feb 6 00:48 ttyld1 crw--w---- 1 ache tty 12, 0 Feb 6 00:49 ttyv0 crw------- 1 root wheel 12, 1 Feb 6 00:48 ttyv1 crw------- 1 root wheel 12, 2 Feb 6 00:48 ttyv2 crw------- 1 root wheel 12, 3 Feb 6 00:48 ttyv3 crw------- 1 root wheel 12, 4 Feb 6 00:48 ttyv4 crw------- 1 root wheel 12, 5 Feb 6 00:48 ttyv5 crw------- 1 root wheel 12, 6 Feb 6 00:48 ttyv6 crw------- 1 root wheel 12, 7 Feb 6 00:48 ttyv7 crw------- 1 root wheel 12, 8 Feb 6 00:48 ttyv8 crw------- 1 root wheel 12, 9 Feb 6 00:48 ttyv9 crw------- 1 root wheel 12, 10 Feb 6 00:48 ttyva crw------- 1 root wheel 12, 11 Feb 6 00:48 ttyvb crw------- 1 root wheel 12, 12 Feb 6 00:48 ttyvc crw------- 1 root wheel 12, 13 Feb 6 00:48 ttyvd crw------- 1 root wheel 12, 14 Feb 6 00:48 ttyve crw------- 1 root wheel 12, 15 Feb 6 00:48 ttyvf lrwxr-xr-x 1 root wheel 7 Feb 6 03:48 urandom -> random crw-rw---- 1 root operator 108, 255 Feb 6 00:48 usb crw-rw---- 1 root operator 108, 0 Feb 6 00:48 usb0 crw-rw---- 1 root operator 108, 1 Feb 6 00:48 usb1 crw-rw---- 1 root operator 108, 2 Feb 6 00:48 usb2 lrwxr-xr-x 1 root wheel 3 Feb 6 00:48 vga -> ttyv0 crw-rw-rw- 1 root wheel 2, 12 Feb 6 00:48 zero -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 14:14:48 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2238737B401 for ; Wed, 5 Feb 2003 14:14:47 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9993E43FCB for ; Wed, 5 Feb 2003 14:14:46 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0205.cvx21-bradley.dialup.earthlink.net ([209.179.192.205] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18gXoY-00046l-00; Wed, 05 Feb 2003 14:14:44 -0800 Message-ID: <3E418C3C.F4B99C78@mindspring.com> Date: Wed, 05 Feb 2003 14:12:12 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Anoop Ranganath Cc: freebsd-current@freebsd.org Subject: Re: tmpfile breakage on setuid executables References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a45d18633c96ec37ac0c1e403c9f772dc393caf27dac41a8fd350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Anoop Ranganath wrote: > > > I've used the code at the bottom of this message to isolate this > > > bug. The summary is that when I compile the code as root, and then > > > make it setuid (chmod u+s a.out) and then try to run it as a user, the > > > tmpfile() fails. If I run it as root, it works fine. Conversely, I > > > can give user ownership of the executable, and then run it as user, and > > > it works great, but if fails for root. Again this is only with the > > > setuid bit set. > > > > Probably your real and effective UID's aren't the same. Does your > > SUID root program set the real UID from the effective UID? > > Well, the code sample I submitted in my original email doesn't set any UID. > It just creates a tmpfile() and then verifies that it succeeded. This is > definitely a regression from 4.7 though. Running the same code on 4.7 > succeeds, as it does on several other unix boxes. We need to know how we think it's supposed to work, not how you think it's supposed to work to determine if the error is in the code OR in the fact some old bug was fixed going from 4.7->5.0, and the fix is biting you, OR it's a real bug. So if you don't want to answer the question about whether or not the UID root program sets the real UID from the effective UID, then you need to answer a different one: Are you saying that the code you posted, without calling the "setuid(geteuid());" worked on 4.7 and not on 5.0, when you "chown root, chmod 4755" it? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 14:23:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B4C537B401 for ; Wed, 5 Feb 2003 14:23:31 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5487B43FC1 for ; Wed, 5 Feb 2003 14:23:27 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h15MNQYu046273; Wed, 5 Feb 2003 23:23:26 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@freebsd.org In-Reply-To: Your message of "Thu, 06 Feb 2003 00:56:05 +0300." <20030205215605.GA2284@nagual.pp.ru> Date: Wed, 05 Feb 2003 23:23:26 +0100 Message-ID: <46272.1044483806@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030205215605.GA2284@nagual.pp.ru>, "Andrey A. Chernov" writes: >On Wed, Feb 05, 2003 at 22:10:41 +0100, phk@freebsd.org wrote: >> >> You can try this patch instead. It has a different side effect: >> if you reset your clock the (untouched) timestamps will change. > >It not helps, see 00:48 -> 03:48 future jump for some entries (00:48 is >boot time): Try to remove the three "fix" lines, and see what you get then. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 14:42: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F41237B401; Wed, 5 Feb 2003 14:42:01 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2286A43FBF; Wed, 5 Feb 2003 14:42:00 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h15MfwGQ002725; Thu, 6 Feb 2003 01:41:59 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h15MfwFu002724; Thu, 6 Feb 2003 01:41:58 +0300 (MSK) (envelope-from ache) Date: Thu, 6 Feb 2003 01:41:58 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030205224158.GA2694@nagual.pp.ru> References: <20030205215605.GA2284@nagual.pp.ru> <46272.1044483806@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46272.1044483806@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 23:23:26 +0100, phk@freebsd.org wrote: > > Try to remove the three "fix" lines, and see what you get then. > Very strange effect: 3 kinds of entries appearse: 1) Jan 1 1970 2) Feb 6 01:36 (boot time) 3) Feb 6 04:36 (+3 TZ future jump) total 1 crw-r--r-- 1 root operator 117, 0 Jan 1 1970 acd0 crw-r--r-- 1 root operator 117, 1 Jan 1 1970 acd1 crw------- 1 root wheel 152, 0 Jan 1 1970 acpi crw-r----- 1 root operator 4, 1 Jan 1 1970 ad0 crw-r----- 1 root operator 4, 2 Jan 1 1970 ad0s1 crw-r----- 1 root operator 4, 4 Jan 1 1970 ad0s1a crw-r----- 1 root operator 4, 5 Jan 1 1970 ad0s1b crw-r----- 1 root operator 4, 6 Jan 1 1970 ad0s1c crw-r----- 1 root operator 4, 3 Jan 1 1970 ad0s2 crw------- 1 root wheel 148, 0 Jan 1 1970 agpgart crw-rw-r-- 1 root operator 39, 0 Jan 1 1970 apm crw------- 1 root operator 159, 0 Jan 1 1970 ata crw-rw-rw- 1 root wheel 21, 0 Jan 1 1970 bpsm0 crw------- 1 root wheel 0, 0 Feb 6 01:36 console crw------- 1 root wheel 12, 255 Jan 1 1970 consolectl crw-rw-rw- 1 root wheel 1, 0 Jan 1 1970 ctty crw-rw---- 1 uucp dialer 28, 128 Jan 1 1970 cuaa0 crw-rw---- 1 uucp dialer 28, 129 Jan 1 1970 cuaa1 crw-rw---- 1 uucp dialer 28, 160 Jan 1 1970 cuaia0 crw-rw---- 1 uucp dialer 28, 161 Jan 1 1970 cuaia1 crw-rw---- 1 uucp dialer 28, 192 Jan 1 1970 cuala0 crw-rw---- 1 uucp dialer 28, 193 Jan 1 1970 cuala1 crw------- 1 root wheel 173, 0 Jan 1 1970 devctl dr-xr-xr-x 2 root wheel 512 Feb 6 04:36 fd crw-r----- 1 root operator 9, 0 Jan 1 1970 fd0 crw-r----- 1 root operator 4, 0 Jan 1 1970 geom.ctl crw------- 1 root wheel 2, 14 Jan 1 1970 io crw------- 1 root wheel 7, 0 Jan 1 1970 klog crw-r----- 1 root kmem 2, 1 Jan 1 1970 kmem lrwxr-xr-x 1 root wheel 3 Feb 6 01:36 log -> /var/run/log crw------- 1 root wheel 16, 0 Jan 1 1970 lpt0 crw------- 1 root wheel 16, 128 Jan 1 1970 lpt0.ctl crw-r----- 1 root kmem 2, 0 Jan 1 1970 mem dr-xr-xr-x 2 root wheel 512 Feb 6 04:36 net lrwxr-xr-x 1 root wheel 4 Feb 6 04:36 net1 -> net/lo0 crw------- 1 root wheel 165, 0 Jan 1 1970 network crw-rw-rw- 1 root wheel 2, 2 Feb 6 01:36 null crw-r--r-- 1 root wheel 78, 0 Jan 1 1970 pci crw-rw-rw- 1 root wheel 21, 1 Jan 1 1970 psm0 crw-rw-rw- 1 root wheel 2, 3 Feb 6 04:36 random crw------- 1 root wheel 26, 0 Jan 1 1970 speaker lrwxr-xr-x 1 root wheel 6 Feb 6 04:36 stderr -> fd/2 lrwxr-xr-x 1 root wheel 5 Feb 6 04:36 stdin -> fd/0 lrwxr-xr-x 1 root wheel 6 Feb 6 04:36 stdout -> fd/1 crw------- 1 root wheel 12, 128 Jan 1 1970 sysmouse crw------- 1 root wheel 28, 0 Jan 1 1970 ttyd0 crw------- 1 root wheel 28, 1 Jan 1 1970 ttyd1 crw------- 1 root wheel 28, 32 Jan 1 1970 ttyid0 crw------- 1 root wheel 28, 33 Jan 1 1970 ttyid1 crw------- 1 root wheel 28, 64 Jan 1 1970 ttyld0 crw------- 1 root wheel 28, 65 Jan 1 1970 ttyld1 crw--w---- 1 ache tty 12, 0 Feb 6 01:36 ttyv0 crw--w---- 1 ache tty 12, 1 Feb 6 01:37 ttyv1 crw------- 1 root wheel 12, 2 Feb 6 01:36 ttyv2 crw------- 1 root wheel 12, 3 Feb 6 01:36 ttyv3 crw------- 1 root wheel 12, 4 Feb 6 01:36 ttyv4 crw------- 1 root wheel 12, 5 Feb 6 01:36 ttyv5 crw------- 1 root wheel 12, 6 Feb 6 01:36 ttyv6 crw------- 1 root wheel 12, 7 Feb 6 01:36 ttyv7 crw------- 1 root wheel 12, 8 Jan 1 1970 ttyv8 crw------- 1 root wheel 12, 9 Jan 1 1970 ttyv9 crw------- 1 root wheel 12, 10 Jan 1 1970 ttyva crw------- 1 root wheel 12, 11 Jan 1 1970 ttyvb crw------- 1 root wheel 12, 12 Jan 1 1970 ttyvc crw------- 1 root wheel 12, 13 Jan 1 1970 ttyvd crw------- 1 root wheel 12, 14 Jan 1 1970 ttyve crw------- 1 root wheel 12, 15 Jan 1 1970 ttyvf lrwxr-xr-x 1 root wheel 7 Feb 6 04:36 urandom -> random crw-rw---- 1 root operator 108, 255 Jan 1 1970 usb crw-rw---- 1 root operator 108, 0 Jan 1 1970 usb0 crw-rw---- 1 root operator 108, 1 Jan 1 1970 usb1 crw-rw---- 1 root operator 108, 2 Jan 1 1970 usb2 lrwxr-xr-x 1 root wheel 3 Feb 6 01:36 vga -> ttyv0 crw-rw-rw- 1 root wheel 2, 12 Jan 1 1970 zero -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 14:44:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A790337B401 for ; Wed, 5 Feb 2003 14:44:10 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C31DE43F75 for ; Wed, 5 Feb 2003 14:44:09 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h15Mi8Yu046676; Wed, 5 Feb 2003 23:44:08 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@freebsd.org In-Reply-To: Your message of "Thu, 06 Feb 2003 01:41:58 +0300." <20030205224158.GA2694@nagual.pp.ru> Date: Wed, 05 Feb 2003 23:44:08 +0100 Message-ID: <46675.1044485048@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030205224158.GA2694@nagual.pp.ru>, "Andrey A. Chernov" writes: >On Wed, Feb 05, 2003 at 23:23:26 +0100, phk@freebsd.org wrote: >> >> Try to remove the three "fix" lines, and see what you get then. >> > >Very strange effect: 3 kinds of entries appearse: >1) Jan 1 1970 These are the intact untouched timestamps. >2) Feb 6 01:36 (boot time) >3) Feb 6 04:36 (+3 TZ future jump) These timestamps have been touched, and the clock has made a 3 hour jump either forward or backward at some point. The problem is the clock jump, not DEVFS. Poul-Henning To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 15: 2: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C92A637B401 for ; Wed, 5 Feb 2003 15:02:07 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5019243FDF for ; Wed, 5 Feb 2003 15:02:07 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0205.cvx21-bradley.dialup.earthlink.net ([209.179.192.205] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18gYYO-0007Y3-00; Wed, 05 Feb 2003 15:02:04 -0800 Message-ID: <3E419743.6144BE0B@mindspring.com> Date: Wed, 05 Feb 2003 14:59:15 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Anoop Ranganath , freebsd-current@freebsd.org Subject: Re: tmpfile breakage on setuid executables References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41934379de7efe2c0a2744251bd53d2ae387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > We need to know how we think it's supposed to work, not how you > think it's supposed to work to determine if the error is in the > code OR in the fact some old bug was fixed going from 4.7->5.0, > and the fix is biting you, OR it's a real bug. For anyone who cares: Additional information was provided off-list. The problem was indeed that "setuid(geteuid());" was missing from the program. Apparently, there was a bug fixed in 4.7 -> 5.0, where the effective UID was being tested instead of the real UID. This is probably something that someone should MFC. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 15:11:10 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9C7937B401; Wed, 5 Feb 2003 15:11:08 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 822CD43F3F; Wed, 5 Feb 2003 15:11:07 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h15NB6GQ003028; Thu, 6 Feb 2003 02:11:06 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h15NB6ab003027; Thu, 6 Feb 2003 02:11:06 +0300 (MSK) (envelope-from ache) Date: Thu, 6 Feb 2003 02:11:06 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030205231106.GA2968@nagual.pp.ru> References: <20030205224158.GA2694@nagual.pp.ru> <46675.1044485048@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46675.1044485048@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 23:44:08 +0100, phk@freebsd.org wrote: > > >2) Feb 6 01:36 (boot time) > >3) Feb 6 04:36 (+3 TZ future jump) > > These timestamps have been touched, and the clock has made a 3 hour > jump either forward or backward at some point. > > > The problem is the clock jump, not DEVFS. Clock jump happens as it supposed when adjkerntz(8) corrects machine clock back to GMT via various CPU_* sysctl's. Could touched DEVFS stamps be fixed back to something useful in the same sysctl code too? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 15:31: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32A3537B401 for ; Wed, 5 Feb 2003 15:31:02 -0800 (PST) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DD2943F85 for ; Wed, 5 Feb 2003 15:31:01 -0800 (PST) (envelope-from nectar@celabo.org) Received: from opus.celabo.org (opus.celabo.org [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 20EBB51; Wed, 5 Feb 2003 17:31:01 -0600 (CST) Received: by opus.celabo.org (Postfix, from userid 1001) id 9B63A58D6; Wed, 5 Feb 2003 17:28:54 -0600 (CST) Date: Wed, 5 Feb 2003 17:28:54 -0600 From: "Jacques A. Vidrine" To: Terry Lambert Cc: Anoop Ranganath , freebsd-current@freebsd.org Subject: Re: tmpfile breakage on setuid executables Message-ID: <20030205232854.GC86606@opus.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , Terry Lambert , Anoop Ranganath , freebsd-current@freebsd.org References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> <3E419743.6144BE0B@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E419743.6144BE0B@mindspring.com> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 02:59:15PM -0800, Terry Lambert wrote: > Terry Lambert wrote: > > We need to know how we think it's supposed to work, not how you > > think it's supposed to work to determine if the error is in the > > code OR in the fact some old bug was fixed going from 4.7->5.0, > > and the fix is biting you, OR it's a real bug. > > For anyone who cares: > > Additional information was provided off-list. The problem was > indeed that "setuid(geteuid());" was missing from the program. > > Apparently, there was a bug fixed in 4.7 -> 5.0, where the > effective UID was being tested instead of the real UID. > > This is probably something that someone should MFC. Really? I just took a quick look at this, but I have to shove off for now. In initial tests, I get the different results depending on whether I'm using static or dynamic linking. But maybe it's me, I'll look more carefully later. How about pointing out the bug you found? Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 15:51:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF47337B401; Wed, 5 Feb 2003 15:51:51 -0800 (PST) Received: from pop017.verizon.net (pop017pub.verizon.net [206.46.170.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1945143F3F; Wed, 5 Feb 2003 15:51:47 -0800 (PST) (envelope-from mtm@identd.net) Received: from kokeb.ambesa.net ([138.88.50.112]) by pop017.verizon.net (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with ESMTP id <20030205235146.ELJQ10203.pop017.verizon.net@kokeb.ambesa.net>; Wed, 5 Feb 2003 17:51:46 -0600 Date: Wed, 5 Feb 2003 18:51:40 -0500 From: Mike Makonnen To: "Jacques A. Vidrine" Cc: tlambert2@mindspring.com, anoop@ranganath.com, freebsd-current@FreeBSD.org Subject: Re: tmpfile breakage on setuid executables In-Reply-To: <20030205232854.GC86606@opus.celabo.org> References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> <3E419743.6144BE0B@mindspring.com> <20030205232854.GC86606@opus.celabo.org> X-Mailer: Sylpheed version 0.8.6 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.T+CaIkPSS+j)EG" X-Authentication-Info: Submitted using SMTP AUTH at pop017.verizon.net from [138.88.50.112] at Wed, 5 Feb 2003 17:51:41 -0600 Message-Id: <20030205235146.ELJQ10203.pop017.verizon.net@kokeb.ambesa.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.T+CaIkPSS+j)EG Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit The original poster was right. The following patch should fix it. I'll check it in as soon as my test cycle is over. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 Index: lib/libc/stdio/tmpfile.c =================================================================== RCS file: /home/ncvs/src/lib/libc/stdio/tmpfile.c,v retrieving revision 1.8 diff -u -r1.8 tmpfile.c --- lib/libc/stdio/tmpfile.c 13 Oct 2002 11:22:16 -0000 1.8 +++ lib/libc/stdio/tmpfile.c 5 Feb 2003 23:37:28 -0000 @@ -61,6 +61,7 @@ char *buf; const char *tmpdir; + tmpdir = NULL; if (issetugid() == 0) tmpdir = getenv("TMPDIR"); if (tmpdir == NULL) --=.T+CaIkPSS+j)EG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+QaON2uHir9vMaLkRAnrfAKCJ/CtHbzHsgIFVM0FndgSAYmt/2wCfc0zf BjuJWYQSLkQeeVdM4XThQ2c= =ot8c -----END PGP SIGNATURE----- --=.T+CaIkPSS+j)EG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 16:21:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9478B37B4A9 for ; Wed, 5 Feb 2003 16:21:00 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 416A943F75 for ; Wed, 5 Feb 2003 16:21:00 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h160L0P5080984 for ; Wed, 5 Feb 2003 16:21:00 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h160L07U080977 for current@freebsd.org; Wed, 5 Feb 2003 16:21:00 -0800 (PST) Date: Wed, 5 Feb 2003 16:21:00 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302060021.h160L07U080977@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Wed Feb 5 15:11:38 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Wed Feb 5 15:45:57 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Wed Feb 5 15:45:57 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4450: warning: duplicate script for target "geom_bsd.o" ignored /h/des/src/sys/dev/lmc/if_lmc.c:32:2: warning: #warning "The lmc driver is broken and is not compiled with LINT" /h/des/src/sys/dev/pdq/pdq.c: In function `pdq_initialize': /h/des/src/sys/dev/pdq/pdq.c:1606: warning: cast discards qualifiers from pointer target type /h/des/src/sys/pci/meteor.c:149:2: warning: #warning "The meteor driver is broken and is not compiled with LINT" /h/des/src/sys/pci/simos.c:30:2: warning: #warning "The simos driver is broken and is not compiled with LINT" /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_open': /h/des/src/sys/dev/gfb/gfb_pci.c:268: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:268: (Each undeclared identifier is reported only once /h/des/src/sys/dev/gfb/gfb_pci.c:268: for each function it appears in.) cc1: warnings being treated as errors /h/des/src/sys/dev/gfb/gfb_pci.c:275: warning: passing arg 1 of `genfbopen' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_close': /h/des/src/sys/dev/gfb/gfb_pci.c:284: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:285: warning: passing arg 1 of `genfbclose' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_read': /h/des/src/sys/dev/gfb/gfb_pci.c:293: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:294: warning: passing arg 1 of `genfbread' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_write': /h/des/src/sys/dev/gfb/gfb_pci.c:302: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:303: warning: passing arg 1 of `genfbwrite' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_ioctl': /h/des/src/sys/dev/gfb/gfb_pci.c:311: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:312: warning: passing arg 1 of `genfbioctl' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_mmap': /h/des/src/sys/dev/gfb/gfb_pci.c:320: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:321: warning: passing arg 1 of `genfbmmap' from incompatible pointer type *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 16:27:23 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8030137B401; Wed, 5 Feb 2003 16:27:22 -0800 (PST) Received: from fep4.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBF4843FB1; Wed, 5 Feb 2003 16:27:21 -0800 (PST) (envelope-from muhannad07@cogeco.ca) Received: from [192.168.1.100] (d57-117-31.home.cgocable.net [24.57.117.31]) by fep4.cogeco.net (Postfix) with ESMTP id 82C654864; Wed, 5 Feb 2003 19:27:09 -0500 (EST) Subject: Re: Server locking hard -- A LOT!!! From: Muhannad Asfour To: Peter Kostouros Cc: FreeBSD-questions@FreeBSD.org, FreeBSD-current@FreeBSD.org In-Reply-To: <13103B46A474B64E97C5A932AFF1E99B01B742@ho.awtaltd.local> References: <13103B46A474B64E97C5A932AFF1E99B01B742@ho.awtaltd.local> Content-Type: text/plain Organization: Message-Id: <1044491226.56349.0.camel@bsdbox.qubix.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 05 Feb 2003 19:27:07 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2003-02-05 at 19:23, Peter Kostouros wrote: > Hi Muhannad > > Your dmesg output had the following: > lock order reversal 1st 0xc2b5d230 process lock (process lock) @ > ../../../kern/kern_descrip.c:2104 > 2nd 0xc2b5bd34 filedesc structure (filedesc structure) @ > ../../../kern/kern_descrip.c:2111 > > These are indicative of the lock order reversals appearing recently. Do you > always get these? > > Regards > > Peter > > This e-mail and any attachment(s) is intended for the party to which it is > addressed and may contain confidential information or be subject to > professional privilege. Its transmission in not intended to place the > contents into the public domain. If you have received this e-mail in error, > please notify us immediately and delete the email and all copies. > AWTA Ltd does not warrant that this e-mail is virus or error free. By > opening this e-mail and any attachment the user assumes all responsibility > for any loss or damage resulting from such action, whether or not caused by > the negligence of AWTA Ltd. > The contents of this e-mail and any attachments are subject to copyright and > may not be reproduced, adapted or transmitted without the prior written > permission of the copyright owner. Yes, I always get these. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 16:27:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46A1B37B401; Wed, 5 Feb 2003 16:27:58 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CDC943F75; Wed, 5 Feb 2003 16:27:57 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0205.cvx21-bradley.dialup.earthlink.net ([209.179.192.205] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18gZtU-0007RP-00; Wed, 05 Feb 2003 16:27:57 -0800 Message-ID: <3E41AB1A.691993E8@mindspring.com> Date: Wed, 05 Feb 2003 16:23:54 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Makonnen Cc: "Jacques A. Vidrine" , anoop@ranganath.com, freebsd-current@FreeBSD.org Subject: Re: tmpfile breakage on setuid executables References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> <3E419743.6144BE0B@mindspring.com> <20030205232854.GC86606@opus.celabo.org> <20030205235146.ELJQ10203.pop017.verizon.net@kokeb.ambesa.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4f2cfbe19181eaa80a3732a4ca25bead72601a10902912494350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Makonnen wrote: > The original poster was right. > The following patch should fix it. I'll check it in as soon as my test cycle is > over. Holy heck. Good freaking catch! I would never have thought of looking for zebras, since it worked on my 5.0 system, with all my test programs. I thought of all *sorts* of crap, but not zebras: o Wrong permissions on /tmp o Wrong permissions on /tmp's mount point o TMPDIR being set to some place strange, like an SMBFS mount o "nosuid" on the mount of the FS where he was running the program in question o Someone "making /tmp more secure" by removing group permissions, and the user in question being in the (now) exclusion group o Etc.. -- Terry "killed by a zebra while wearing a pointy hat" Lambert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 16:36:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 020AD37B401; Wed, 5 Feb 2003 16:36:29 -0800 (PST) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29B7D43FBF; Wed, 5 Feb 2003 16:36:28 -0800 (PST) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id A92F29C46; Wed, 5 Feb 2003 19:24:24 -0500 (EST) Date: Wed, 5 Feb 2003 19:24:24 -0500 From: Mike Barcroft To: Mike Makonnen Cc: Kris Kennaway , "Jacques A. Vidrine" , tlambert2@mindspring.com, anoop@ranganath.com, freebsd-current@FreeBSD.org Subject: Re: tmpfile breakage on setuid executables Message-ID: <20030205192424.D63992@espresso.q9media.com> References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> <3E419743.6144BE0B@mindspring.com> <20030205232854.GC86606@opus.celabo.org> <20030205235146.ELJQ10203.pop017.verizon.net@kokeb.ambesa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030205235146.ELJQ10203.pop017.verizon.net@kokeb.ambesa.net>; from mtm@identd.net on Wed, Feb 05, 2003 at 06:51:40PM -0500 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Makonnen writes: > The original poster was right. > The following patch should fix it. I'll check it in as soon as my test cycle is > over. > > Cheers. > -- > Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc > mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 > > Index: lib/libc/stdio/tmpfile.c > =================================================================== > RCS file: /home/ncvs/src/lib/libc/stdio/tmpfile.c,v > retrieving revision 1.8 > diff -u -r1.8 tmpfile.c > --- lib/libc/stdio/tmpfile.c 13 Oct 2002 11:22:16 -0000 1.8 > +++ lib/libc/stdio/tmpfile.c 5 Feb 2003 23:37:28 -0000 > @@ -61,6 +61,7 @@ > char *buf; > const char *tmpdir; > > + tmpdir = NULL; > if (issetugid() == 0) > tmpdir = getenv("TMPDIR"); > if (tmpdir == NULL) Looks like kris broke it. Shame on us for not having a WARNS level on libc big enough to catch simple regressions like this. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 16:45:31 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCA6C37B401; Wed, 5 Feb 2003 16:45:30 -0800 (PST) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21AA343F93; Wed, 5 Feb 2003 16:45:30 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0205.cvx21-bradley.dialup.earthlink.net ([209.179.192.205] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18gaAS-0002YA-00; Wed, 05 Feb 2003 16:45:29 -0800 Message-ID: <3E41AF21.F55C313F@mindspring.com> Date: Wed, 05 Feb 2003 16:41:05 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "Jacques A. Vidrine" Cc: Anoop Ranganath , freebsd-current@freebsd.org Subject: Re: tmpfile breakage on setuid executables References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> <3E419743.6144BE0B@mindspring.com> <20030205232854.GC86606@opus.celabo.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41f3edfda2c3a401ba76b41bfae4d1a5393caf27dac41a8fd350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Jacques A. Vidrine" wrote: > > Apparently, there was a bug fixed in 4.7 -> 5.0, where the > > effective UID was being tested instead of the real UID. > > > > This is probably something that someone should MFC. > > Really? I just took a quick look at this, but I have to shove off > for now. In initial tests, I get the different results depending on > whether I'm using static or dynamic linking. But maybe it's me, I'll > look more carefully later. > > How about pointing out the bug you found? Hand me the pointy hat. The "bug" was that my test program seperated the operation into a function so I could try different crap, and adding the setuid(geteuid()) put a zero on the stack in the stack position Mike discovered was being used uninitialized. Really bizarre. Shouldn't compiling that stdio code have cause a warning?!? Is optimization disabled for the stdio code?!? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 16:49: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CC6D37B401; Wed, 5 Feb 2003 16:48:59 -0800 (PST) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2714F43F93; Wed, 5 Feb 2003 16:48:59 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0205.cvx21-bradley.dialup.earthlink.net ([209.179.192.205] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18gaDq-00031L-00; Wed, 05 Feb 2003 16:48:58 -0800 Message-ID: <3E41AFF0.8A7A68F6@mindspring.com> Date: Wed, 05 Feb 2003 16:44:32 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Barcroft Cc: Mike Makonnen , Kris Kennaway , "Jacques A. Vidrine" , anoop@ranganath.com, freebsd-current@FreeBSD.org Subject: Re: tmpfile breakage on setuid executables References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> <3E419743.6144BE0B@mindspring.com> <20030205232854.GC86606@opus.celabo.org> <20030205235146.ELJQ10203.pop017.verizon.net@kokeb.ambesa.net> <20030205192424.D63992@espresso.q9media.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41f3edfda2c3a401b7e1a1fd6331ac032387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Barcroft wrote: > Looks like kris broke it. Shame on us for not having a WARNS level on > libc big enough to catch simple regressions like this. FWIW, the warning doesn't show up unless the optimizer is on, even with "-Wall". So it's probable that the optimizer is not on by default, so no reason to beat up Kris. I have to worry, though, about where else this might be happening, now. 8-(. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 17:40:36 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D56E437B401; Wed, 5 Feb 2003 17:40:33 -0800 (PST) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2FF343FB1; Wed, 5 Feb 2003 17:40:32 -0800 (PST) (envelope-from muhannad07@cogeco.ca) Received: from [192.168.1.100] (d57-117-31.home.cgocable.net [24.57.117.31]) by fep1.cogeco.net (Postfix) with ESMTP id 61932A6CA; Wed, 5 Feb 2003 20:40:31 -0500 (EST) Subject: RE: Server locking hard -- A LOT!!! From: Muhannad Asfour To: Peter Kostouros Cc: FreeBSD-current@FreeBSD.org, FreeBSD-questions@FreeBSD.org In-Reply-To: <13103B46A474B64E97C5A932AFF1E99B01B743@ho.awtaltd.local> References: <13103B46A474B64E97C5A932AFF1E99B01B743@ho.awtaltd.local> Content-Type: text/plain Organization: Message-Id: <1044495628.97106.0.camel@bsdbox.qubix.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 05 Feb 2003 20:40:28 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2003-02-05 at 20:03, Peter Kostouros wrote: > Not sure this is much help, but I have been getting many hard locks too, > from about a kernel I built around the 27th January. My symptoms are that > under a relatively heavy CPU load, upon invoking or terminating an > application, the machine occasionally terminates (abruptly). I do not even > get core dumps. > > -----Original Message----- > From: Muhannad Asfour [mailto:muhannad07@cogeco.ca] > Sent: Thursday, 6 February 2003 11:27 AM > To: Peter Kostouros > Cc: FreeBSD-questions@FreeBSD.org; FreeBSD-current@FreeBSD.org > Subject: Re: Server locking hard -- A LOT!!! > > > On Wed, 2003-02-05 at 19:23, Peter Kostouros wrote: > > Hi Muhannad > > > > Your dmesg output had the following: > > lock order reversal 1st 0xc2b5d230 process lock (process lock) @ > > ../../../kern/kern_descrip.c:2104 > > 2nd 0xc2b5bd34 filedesc structure (filedesc structure) @ > > ../../../kern/kern_descrip.c:2111 > > > > These are indicative of the lock order reversals appearing recently. Do > you > > always get these? > > > > Regards > > > > Peter > > > > This e-mail and any attachment(s) is intended for the party to which it is > > addressed and may contain confidential information or be subject to > > professional privilege. Its transmission in not intended to place the > > contents into the public domain. If you have received this e-mail in > error, > > please notify us immediately and delete the email and all copies. > > AWTA Ltd does not warrant that this e-mail is virus or error free. By > > opening this e-mail and any attachment the user assumes all responsibility > > for any loss or damage resulting from such action, whether or not caused > by > > the negligence of AWTA Ltd. > > The contents of this e-mail and any attachments are subject to copyright > and > > may not be reproduced, adapted or transmitted without the prior written > > permission of the copyright owner. > > Yes, I always get these. I am experiencing the same exact thing. Odd. Any idea if it still occurs with a more recently built kernel? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 18: 7:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 195C337B401; Wed, 5 Feb 2003 18:07:38 -0800 (PST) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 854D743FAF; Wed, 5 Feb 2003 18:07:37 -0800 (PST) (envelope-from muhannad07@cogeco.ca) Received: from [192.168.1.100] (d57-117-31.home.cgocable.net [24.57.117.31]) by fep1.cogeco.net (Postfix) with ESMTP id 8E3EFA671; Wed, 5 Feb 2003 21:07:36 -0500 (EST) Subject: RE: Server locking hard -- A LOT!!! From: Muhannad Asfour To: Peter Kostouros Cc: FreeBSD-current@FreeBSD.org, FreeBSD-questions@FreeBSD.org In-Reply-To: <13103B46A474B64E97C5A932AFF1E99B01B744@ho.awtaltd.local> References: <13103B46A474B64E97C5A932AFF1E99B01B744@ho.awtaltd.local> Content-Type: text/plain Organization: Message-Id: <1044497253.27774.0.camel@bsdbox.qubix.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 05 Feb 2003 21:07:34 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2003-02-05 at 21:03, Peter Kostouros wrote: > Hi > > I experienced the problem with kernels from last weekend. I rebuilt > yesterday, but have not undergone high loads since. I will do thorough tests > over the weekend. > > Keep in mind there have been some complaints recently, and there is new > scheduler code just implemented, so I guess at that at the moment CURRENT is > a place for the brave, well, braver than most. > > -----Original Message----- > From: Muhannad Asfour [mailto:muhannad07@cogeco.ca] > Sent: Thursday, 6 February 2003 12:40 PM > To: Peter Kostouros > Cc: FreeBSD-current@FreeBSD.org; FreeBSD-questions@FreeBSD.org > Subject: RE: Server locking hard -- A LOT!!! > > > On Wed, 2003-02-05 at 20:03, Peter Kostouros wrote: > > Not sure this is much help, but I have been getting many hard locks too, > > from about a kernel I built around the 27th January. My symptoms are that > > under a relatively heavy CPU load, upon invoking or terminating an > > application, the machine occasionally terminates (abruptly). I do not even > > get core dumps. > > > > -----Original Message----- > > From: Muhannad Asfour [mailto:muhannad07@cogeco.ca] > > Sent: Thursday, 6 February 2003 11:27 AM > > To: Peter Kostouros > > Cc: FreeBSD-questions@FreeBSD.org; FreeBSD-current@FreeBSD.org > > Subject: Re: Server locking hard -- A LOT!!! > > > > > > On Wed, 2003-02-05 at 19:23, Peter Kostouros wrote: > > > Hi Muhannad > > > > > > Your dmesg output had the following: > > > lock order reversal 1st 0xc2b5d230 process lock (process lock) @ > > > ../../../kern/kern_descrip.c:2104 > > > 2nd 0xc2b5bd34 filedesc structure (filedesc structure) @ > > > ../../../kern/kern_descrip.c:2111 > > > > > > These are indicative of the lock order reversals appearing recently. Do > > you > > > always get these? > > > > > > Regards > > > > > > Peter > > > > > > This e-mail and any attachment(s) is intended for the party to which it > is > > > addressed and may contain confidential information or be subject to > > > professional privilege. Its transmission in not intended to place the > > > contents into the public domain. If you have received this e-mail in > > error, > > > please notify us immediately and delete the email and all copies. > > > AWTA Ltd does not warrant that this e-mail is virus or error free. By > > > opening this e-mail and any attachment the user assumes all > responsibility > > > for any loss or damage resulting from such action, whether or not caused > > by > > > the negligence of AWTA Ltd. > > > The contents of this e-mail and any attachments are subject to copyright > > and > > > may not be reproduced, adapted or transmitted without the prior written > > > permission of the copyright owner. > > > > Yes, I always get these. > I am experiencing the same exact thing. Odd. Any idea if it still > occurs with a more recently built kernel? Ahh, OK. I will keep this in mind. But any other suggestions are welcome. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 19: 7:26 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F23A937B401; Wed, 5 Feb 2003 19:07:23 -0800 (PST) Received: from outel.org (outel.org [168.150.177.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B9F543F93; Wed, 5 Feb 2003 19:07:23 -0800 (PST) (envelope-from qumqats@outel.org) Received: from localhost (winxp [192.168.1.20]) by outel.org (8.12.6/8.12.6) with ESMTP id h1636J94037761; Wed, 5 Feb 2003 19:07:00 -0800 (PST) (envelope-from qumqats@outel.org) Date: Wed, 05 Feb 2003 19:04:49 -0800 From: "Joel M. Baldwin" To: Muhannad Asfour , freebsd-questions@FreeBSD.ORG Cc: freebsd-current@FreeBSD.ORG Subject: Re: Server locking hard -- A LOT!!! Message-ID: <293424432.1044471889@[192.168.1.20]> In-Reply-To: <1044415491.17761.9.camel@bsdbox.qubix.ca> References: <1044415491.17761.9.camel@bsdbox.qubix.ca> X-Mailer: Mulberry/3.0.0 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Check your RAM. Check your BIOS settings. Try running the system with the failsafe settings if your BIOS has that. If all else fails put the debug options into the kernel, add a serial console, and see if you can break into ddb. --On Tuesday, February 04, 2003 10:24 PM -0500 Muhannad Asfour wrote: > Hello. I've recently faced a rather odd issue that I've never seen > before. I bought a new server (specs below), and I loaded it up with > FreeBSD 5.0-RELEASE (I know, I know, not for a production environment, > but this is a personal server). Now, whenever I get about 30 > simultaneous connections, the box just locks hard. I tested all the > hardware components (CPU, Memory, HD, NIC, etc.) and even bought new > ones just to make sure and all end up with the same result. I can > never keep a decent uptime (never went past 2 days so far). As soon > as I get a mediocre http load (30 simul. connections), the box just > locks hard. I built a debug kernel, I tried everything imaginable, > and I have not found a solution whatsoever. Everyone seems to be > stumped by this. I tried FreeBSD 4.7-RELEASE, 4.7-STABLE, > 5.0-RELEASE and 5.0-CURRENT on this box. All give me the same > result. I checked everywhere for relevant logs to explain what is > occuring, but had no such luck. This is truly the million dollar > question for me right now, because I have no idea why it would lock > under such a petty load. I'm not sure what to do to fix this issue, > I've tried many different areas for support and haven't come up with > anything as I stated earlier. I'm not overclocking or anything if > that's what you're wondering. If anyone could assist me in any way > shape or form to get this working, I would appreciate it very very > much. Also, if you e-mail back, I'm not subscribed to the lists, so > could you please CC it to me. In the past 4 hours, it has locked > hard about 3 times because of a 28-34 connection load. > > Machine Specs: > Single Pentium IV 2.4 GHz processor > ASUS P4S533 motherboard > 512MB DDR333 RAM (will be 1GB next week) > 120GB Maxtor 7200rpm (ATA133) HDD > 40GB Maxtor 7200 rpm (ATA66) HDD > Floppy Disk Drive > ATI Rage 128 (32 meg) AGP 4x graphics adapter > 52x LG CD-ROM drive > 3Com 3C905C-TX NIC > Currently running FreeBSD 5.0-CURRENT as of Sunday Feb. 2, 13:02:05 > EST 2003. > > Thank you very much > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 22:17:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D73BB37B401 for ; Wed, 5 Feb 2003 22:17:28 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF78B43F3F for ; Wed, 5 Feb 2003 22:17:27 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h166HQYu050035; Thu, 6 Feb 2003 07:17:26 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@freebsd.org In-Reply-To: Your message of "Thu, 06 Feb 2003 02:11:06 +0300." <20030205231106.GA2968@nagual.pp.ru> Date: Thu, 06 Feb 2003 07:17:26 +0100 Message-ID: <50034.1044512246@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030205231106.GA2968@nagual.pp.ru>, "Andrey A. Chernov" writes: >On Wed, Feb 05, 2003 at 23:44:08 +0100, phk@freebsd.org wrote: >> >> >2) Feb 6 01:36 (boot time) >> >3) Feb 6 04:36 (+3 TZ future jump) >> >> These timestamps have been touched, and the clock has made a 3 hour >> jump either forward or backward at some point. >> >> >> The problem is the clock jump, not DEVFS. > >Clock jump happens as it supposed when adjkerntz(8) corrects machine clock >back to GMT via various CPU_* sysctl's. Could touched DEVFS stamps be >fixed back to something useful in the same sysctl code too? No. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed Feb 5 23:51:56 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D96D837B401; Wed, 5 Feb 2003 23:51:54 -0800 (PST) Received: from riker.skynet.be (riker.skynet.be [195.238.3.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C77843F75; Wed, 5 Feb 2003 23:51:53 -0800 (PST) (envelope-from brad.knowles@skynet.be) Received: from [146.106.12.76] (ip-26.shub-internet.org [194.78.144.26] (may be forged)) by riker.skynet.be (8.12.7/8.12.7/Skynet-OUT-2.21) with ESMTP id h167pi2o000542; Thu, 6 Feb 2003 08:51:44 +0100 (MET) (envelope-from ) Mime-Version: 1.0 X-Sender: bs663385@pop.skynet.be Message-Id: In-Reply-To: <3E41AB1A.691993E8@mindspring.com> References: <00e201c2cd5b$14f31c30$0c02040a@ranganath> <3E41846A.39AAE406@mindspring.com> <015c01c2cd60$7b6dc0a0$0c02040a@ranganath> <3E418C3C.F4B99C78@mindspring.com> <3E419743.6144BE0B@mindspring.com> <20030205232854.GC86606@opus.celabo.org> <20030205235146.ELJQ10203.pop017.verizon.net@kokeb.ambesa.net> <3E41AB1A.691993E8@mindspring.com> Date: Thu, 6 Feb 2003 08:27:54 +0100 To: Terry Lambert From: Brad Knowles Subject: Re: tmpfile breakage on setuid executables Cc: Mike Makonnen , "Jacques A. Vidrine" , anoop@ranganath.com, freebsd-current@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 4:23 PM -0800 2003/02/05, Terry Lambert wrote: > I would never have thought of looking for zebras, since it worked on > my 5.0 system, with all my test programs. This has been a very interesting conversation to watch. Can I assume that there will be some more regression tests set up that will test compiling all code with full warnings and the optimizer? Also, can someone explain to me what the heck a "zebra" is, in this context? -- Brad Knowles, "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania. GCS/IT d+(-) s:+(++)>: a C++(+++)$ UMBSHI++++$ P+>++ L+ !E-(---) W+++(--) N+ !w--- O- M++ V PS++(+++) PE- Y+(++) PGP>+++ t+(+++) 5++(+++) X++(+++) R+(+++) tv+(+++) b+(++++) DI+(++++) D+(++) G+(++++) e++>++++ h--- r---(+++)* z(+++) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 0:49:20 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B43E37B401; Thu, 6 Feb 2003 00:49:19 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC20243F85; Thu, 6 Feb 2003 00:49:17 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id TAA14639; Thu, 6 Feb 2003 19:49:02 +1100 Date: Thu, 6 Feb 2003 19:51:48 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Andrey A. Chernov" Cc: phk@FreeBSD.ORG, Subject: Re: Wrong date for DEVFS entries In-Reply-To: <20030205231106.GA2968@nagual.pp.ru> Message-ID: <20030206193118.T72545-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 6 Feb 2003, Andrey A. Chernov wrote: > On Wed, Feb 05, 2003 at 23:44:08 +0100, phk@freebsd.org wrote: > > > > >2) Feb 6 01:36 (boot time) > > >3) Feb 6 04:36 (+3 TZ future jump) > > > > These timestamps have been touched, and the clock has made a 3 hour > > jump either forward or backward at some point. > > > > The problem is the clock jump, not DEVFS. > > Clock jump happens as it supposed when adjkerntz(8) corrects machine clock > back to GMT via various CPU_* sysctl's. Could touched DEVFS stamps be > fixed back to something useful in the same sysctl code too? This should be well known to devfs users. devfs sets at least some of the times before adjkerntz can run, and nothing fixes them, so these times are wrong by the timezone difference. The problem is more obvious East of Europe since the timezone difference is positive and large. The bug has less noticable effects West of Greenwich since the difference is negative so the wrong timestamps are in the past. For me the difference is +10 or +11 hours so there is a 10 or 11 hour window after booting in which `ls -l /dev' and some periodic scripts report strangeness. There are related problems for boottime. These are hacked around in tc_setclock() by adjusting boottime when the time is changed. This works right when the time is changed soon after booting by adjkerntz or ntpdate but wrong after that. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 2:27:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67DA137B401 for ; Thu, 6 Feb 2003 02:27:46 -0800 (PST) Received: from critter.freebsd.dk (esplanaden.cybercity.dk [212.242.40.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F9AD43FAF for ; Thu, 6 Feb 2003 02:27:45 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h16ARaaW001092; Thu, 6 Feb 2003 11:27:42 +0100 (CET) (envelope-from phk@freebsd.org) To: Bruce Evans Cc: "Andrey A. Chernov" , current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@freebsd.org In-Reply-To: Your message of "Thu, 06 Feb 2003 19:51:48 +1100." <20030206193118.T72545-100000@gamplex.bde.org> Date: Thu, 06 Feb 2003 11:27:36 +0100 Message-ID: <1091.1044527256@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030206193118.T72545-100000@gamplex.bde.org>, Bruce Evans writes: >On Thu, 6 Feb 2003, Andrey A. Chernov wrote: > >> On Wed, Feb 05, 2003 at 23:44:08 +0100, phk@freebsd.org wrote: >> > >> > >2) Feb 6 01:36 (boot time) >> > >3) Feb 6 04:36 (+3 TZ future jump) >> > >> > These timestamps have been touched, and the clock has made a 3 hour >> > jump either forward or backward at some point. >> > >> > The problem is the clock jump, not DEVFS. >> >> Clock jump happens as it supposed when adjkerntz(8) corrects machine clock >> back to GMT via various CPU_* sysctl's. Could touched DEVFS stamps be >> fixed back to something useful in the same sysctl code too? > >This should be well known to devfs users. > >devfs sets at least some of the times before adjkerntz can run, and nothing >fixes them, so these times are wrong by the timezone difference. This is not any different from any other filesystem. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 2:31:52 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1BAC37B401; Thu, 6 Feb 2003 02:31:50 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83DBF43F85; Thu, 6 Feb 2003 02:31:49 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h16AVkGQ012843; Thu, 6 Feb 2003 13:31:46 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h16AVktv012842; Thu, 6 Feb 2003 13:31:46 +0300 (MSK) (envelope-from ache) Date: Thu, 6 Feb 2003 13:31:45 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: Bruce Evans , current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030206103144.GB12538@nagual.pp.ru> References: <20030206193118.T72545-100000@gamplex.bde.org> <1091.1044527256@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1091.1044527256@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 06, 2003 at 11:27:36 +0100, phk@freebsd.org wrote: > In message <20030206193118.T72545-100000@gamplex.bde.org>, Bruce Evans writes: > >On Thu, 6 Feb 2003, Andrey A. Chernov wrote: > > > >> On Wed, Feb 05, 2003 at 23:44:08 +0100, phk@freebsd.org wrote: > >> > > >> > >2) Feb 6 01:36 (boot time) > >> > >3) Feb 6 04:36 (+3 TZ future jump) > >> > > >> > These timestamps have been touched, and the clock has made a 3 hour > >> > jump either forward or backward at some point. > >> > > >> > The problem is the clock jump, not DEVFS. > >> > >> Clock jump happens as it supposed when adjkerntz(8) corrects machine clock > >> back to GMT via various CPU_* sysctl's. Could touched DEVFS stamps be > >> fixed back to something useful in the same sysctl code too? > > > >This should be well known to devfs users. > > > >devfs sets at least some of the times before adjkerntz can run, and nothing > >fixes them, so these times are wrong by the timezone difference. > > This is not any different from any other filesystem. No, it IS different - no real filesystems mounted at this point yet, so no real timestamps damaged. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 2:44:33 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ED9037B401 for ; Thu, 6 Feb 2003 02:44:32 -0800 (PST) Received: from critter.freebsd.dk (esplanaden.cybercity.dk [212.242.40.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78A2C43FE3 for ; Thu, 6 Feb 2003 02:44:30 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h16AiTaW001270; Thu, 6 Feb 2003 11:44:29 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: Bruce Evans , current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@freebsd.org In-Reply-To: Your message of "Thu, 06 Feb 2003 13:31:45 +0300." <20030206103144.GB12538@nagual.pp.ru> Date: Thu, 06 Feb 2003 11:44:29 +0100 Message-ID: <1269.1044528269@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030206103144.GB12538@nagual.pp.ru>, "Andrey A. Chernov" writes: >> This is not any different from any other filesystem. > >No, it IS different - no real filesystems mounted at this point yet, so no >real timestamps damaged. Think diskless NFS, think MD(4) based root, think... The only problem is that we set the kernel time wrong from the RTC. We should stop doing that, rather than invent bandaids and hacks to restore the damage it does. I avoid it entirely by using UTC time in my RTC, but this is not an option for machines which have to boot broken-as-designed OSs. The most practical way to do it right would be to have adjkerntz update a file under /boot/ ("/boot/timezone.hint") which the loader reads in and passes to the kernel, so that the kernel can set the time right from the RTC based on that. This doesn't work well for machines which are turned off for long periods of time unless the file contains predicted DST transitions for the next year or so. The most correct solution would be for the loader (preferably) or the kernel to know about timezones, including DST, so that it would also work correct for a machine which has been powered off for half a year. (I'd prefer the loader because we don't need this code once userland can take over.) I don't know if modern bios's know about timezones and DST, I've seen some that has setup functions for it, but I don't know if there is any way to find the information they store and I don't think such features are widespread. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 2:53:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2573037B405 for ; Thu, 6 Feb 2003 02:53:51 -0800 (PST) Received: from storming.org (MG034063.user.veloxzone.com.br [200.165.34.63]) by mx1.FreeBSD.org (Postfix) with SMTP id 81B8C43FDD for ; Thu, 6 Feb 2003 02:53:49 -0800 (PST) (envelope-from cseg@storming.org) Received: (qmail 40685 invoked by uid 1000); 6 Feb 2003 08:53:36 -0200 Date: Thu, 6 Feb 2003 08:53:36 -0200 From: Fred Souza To: current@freebsd.org Subject: X compilation problems Message-ID: <20030206105336.GA35493@torment.storming.org> Reply-To: cseg@storming.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline X-Sender: fred@storming.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I trully suspect that for some reason this is specific to my box, but I'm not quite sure if it is nor why it is. I hope this is the appropriated place to ask, and if I'm mistaken, please correct me. Since the last port update for XFree86-libraries, I've been unable to get that port (x11/XFree86-4-libraries) compiled. I insistently get this error: cc -c -ansi -pedantic -Dasm=3D__asm -Wall -Wpointer-arith -I../include -I/= usr/ports/x11/XFree86-4-libraries/work/xc/include -I/usr/ports/x11/XFree86-= 4-libraries/work/xc/include/GL -I/usr/ports/x11/XFree86-4-libraries/work/x= c -I/usr/ports/x11/XFree86-4-libraries/work/xc/exports/include -DCSRG_BAS= ED -DFUNCPROTO=3D15 -DNARROWPROTO -DNDEBUG -O2 -pipe -march=3Dk6-2 mi= pmap.c -o unshared/mipmap.o {standard input}: Assembler messages: {standard input}:7683: Error: value of -129 too large for field of 1 bytes = at 20035 *** Error code 1 I'm running 5.0-CURRENT built yesterday (02/06), but I have seen this happening since the update from revision 5 to 6 of the port (I'm not sure about the exact date, but I think it happened about a week or so ago.) Has anyone seen this? How do I fix it? Thanks, Fred --=20 "A truly wise woman never plays leapfrog with a unicorn." --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Qj6wKbRS1GgW4fYRAoCsAJsFJDK9Ovy0Kn3/0xEe0xGiRB98yACfRzo4 EHTHIkSeSnoSph5edjw8gSc= =0un1 -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 3: 0:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D6A237B401; Thu, 6 Feb 2003 03:00:15 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BDA743FA3; Thu, 6 Feb 2003 03:00:14 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h16B0DGQ013122; Thu, 6 Feb 2003 14:00:13 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h16B0CMb013121; Thu, 6 Feb 2003 14:00:12 +0300 (MSK) (envelope-from ache) Date: Thu, 6 Feb 2003 14:00:12 +0300 From: "Andrey A. Chernov" To: phk@freebsd.org Cc: Bruce Evans , current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030206110012.GA12952@nagual.pp.ru> References: <20030206103144.GB12538@nagual.pp.ru> <1269.1044528269@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1269.1044528269@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 06, 2003 at 11:44:29 +0100, phk@freebsd.org wrote: > > Think diskless NFS, think MD(4) based root, think... They are read-only at this rc stage, so something could be damaged are access times only. > I avoid it entirely by using UTC time in my RTC, but this is not an > option for machines which have to boot broken-as-designed OSs. Yes, the main reason not running BIOS clock at UTC is other OSes like M$ ones installed in the same machine. > I don't know if modern bios's know about timezones and DST, I've > seen some that has setup functions for it, but I don't know > if there is any way to find the information they store and I don't > think such features are widespread. I saw this too, but it is totally useless, even M$ can't handle such BIOSes. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 3:10:55 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67E0D37B401; Thu, 6 Feb 2003 03:10:53 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA53243F3F; Thu, 6 Feb 2003 03:10:51 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id WAA29753; Thu, 6 Feb 2003 22:10:44 +1100 Date: Thu, 6 Feb 2003 22:10:43 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Andrey A. Chernov" Cc: phk@freebsd.org, Subject: Re: Wrong date for DEVFS entries In-Reply-To: <20030206103144.GB12538@nagual.pp.ru> Message-ID: <20030206215533.T511-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 6 Feb 2003, Andrey A. Chernov wrote: > On Thu, Feb 06, 2003 at 11:27:36 +0100, phk@freebsd.org wrote: > > In message <20030206193118.T72545-100000@gamplex.bde.org>, Bruce Evans writes: > > >On Thu, 6 Feb 2003, Andrey A. Chernov wrote: > > > > > >> On Wed, Feb 05, 2003 at 23:44:08 +0100, phk@freebsd.org wrote: > > >> > > > >> > >2) Feb 6 01:36 (boot time) > > >> > >3) Feb 6 04:36 (+3 TZ future jump) > > >> > > > >> > These timestamps have been touched, and the clock has made a 3 hour > > >> > jump either forward or backward at some point. > > >> > > > >> > The problem is the clock jump, not DEVFS. > > >> > > >> Clock jump happens as it supposed when adjkerntz(8) corrects machine clock > > >> back to GMT via various CPU_* sysctl's. Could touched DEVFS stamps be > > >> fixed back to something useful in the same sysctl code too? > > > > > >This should be well known to devfs users. > > > > > >devfs sets at least some of the times before adjkerntz can run, and nothing > > >fixes them, so these times are wrong by the timezone difference. > > > > This is not any different from any other filesystem. > > No, it IS different - no real filesystems mounted at this point yet, so no > real timestamps damaged. More precisely: some are mounted, but they are mounted read-only (modulo the bug that adjkerntz is run a little after mounting filesystems read-write). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 3:16: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6931837B401; Thu, 6 Feb 2003 03:16:03 -0800 (PST) Received: from mike.reifenberger.com (pD9E5061D.dip.t-dialin.net [217.229.6.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38F3043F3F; Thu, 6 Feb 2003 03:16:01 -0800 (PST) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (nihil [10.0.0.2]) by mike.reifenberger.com (8.12.6/8.12.6) with ESMTP id h16BFs9O058853; Thu, 6 Feb 2003 12:15:55 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (localhost.reifenberger.com [127.0.0.1]) by nihil.reifenberger.com (8.12.6/8.12.6) with ESMTP id h16BFjoj000716; Thu, 6 Feb 2003 12:15:45 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from localhost (root@localhost) by nihil.reifenberger.com (8.12.6/8.12.6/Submit) with ESMTP id h16BFcXv000713; Thu, 6 Feb 2003 12:15:44 +0100 (CET) Date: Thu, 6 Feb 2003 12:15:38 +0100 (CET) From: Michael Reifenberger To: Hidetoshi Shimokawa Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & 2 external FW-disks In-Reply-To: <20030205110746.T2445@nihil.reifenberger.com> Message-ID: <20030206120437.W683@nihil.reifenberger.com> References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> <20030202112833.M8458@Reifenberger.com> <20030205110746.T2445@nihil.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-1.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 5 Feb 2003, Michael Reifenberger wrote: ... > > I have improved recovery code after timeout in -current. > > Could you try that? > > Is scheduled for this evening. > Thanks so far! > ... > > > > - fwcontorl -g 20 > > > > - sysctl hw.firewire.sbp.max_speed=0 > > > > - change SBP_QUEUE_LEN in sbp.c to 1 and rebuld module. > > > > - sysctl machdep.cpu_idle_hlt=0 > > > > - sysctl debug.sbp_debug=1 and send me a dmesg. Ok, I did some extensive tests overnight. Essentially I still had `fwcontorl -g 20` and SBP_QUEUE_LEN=1 and maxopenings=1 and `debug.sbp_debug=1`. hw.firewire.sbp.max_speed started at 0 and got 2 at the end. After treating two `iozone -s 51200m -r1024k` on the platters overnight without problems I started with a plain sbp.c and no `fwcontorl -g 20`. I get constant rates of 13MB/s on each disk. No problems so far. Seems you got it. Thanks! BTW: switching on debug.firewire_debug gives zillions of 'kick'... Is this just a notification about the code-path? Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 4:18: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8311637B401 for ; Thu, 6 Feb 2003 04:18:07 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 345FB43FA3 for ; Thu, 6 Feb 2003 04:18:07 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h16CI6P5096182 for ; Thu, 6 Feb 2003 04:18:06 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h16CI6Dj096180 for current@freebsd.org; Thu, 6 Feb 2003 04:18:06 -0800 (PST) Date: Thu, 6 Feb 2003 04:18:06 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302061218.h16CI6Dj096180@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Thu Feb 6 03:17:47 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Thu Feb 6 03:48:32 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Thu Feb 6 03:48:33 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4450: warning: duplicate script for target "geom_bsd.o" ignored /h/des/src/sys/dev/lmc/if_lmc.c:32:2: warning: #warning "The lmc driver is broken and is not compiled with LINT" /h/des/src/sys/dev/pdq/pdq.c: In function `pdq_initialize': /h/des/src/sys/dev/pdq/pdq.c:1606: warning: cast discards qualifiers from pointer target type /h/des/src/sys/pci/meteor.c:149:2: warning: #warning "The meteor driver is broken and is not compiled with LINT" /h/des/src/sys/pci/simos.c:30:2: warning: #warning "The simos driver is broken and is not compiled with LINT" /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_open': /h/des/src/sys/dev/gfb/gfb_pci.c:268: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:268: (Each undeclared identifier is reported only once /h/des/src/sys/dev/gfb/gfb_pci.c:268: for each function it appears in.) cc1: warnings being treated as errors /h/des/src/sys/dev/gfb/gfb_pci.c:275: warning: passing arg 1 of `genfbopen' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_close': /h/des/src/sys/dev/gfb/gfb_pci.c:284: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:285: warning: passing arg 1 of `genfbclose' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_read': /h/des/src/sys/dev/gfb/gfb_pci.c:293: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:294: warning: passing arg 1 of `genfbread' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_write': /h/des/src/sys/dev/gfb/gfb_pci.c:302: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:303: warning: passing arg 1 of `genfbwrite' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_ioctl': /h/des/src/sys/dev/gfb/gfb_pci.c:311: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:312: warning: passing arg 1 of `genfbioctl' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_mmap': /h/des/src/sys/dev/gfb/gfb_pci.c:320: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:321: warning: passing arg 1 of `genfbmmap' from incompatible pointer type *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 4:34:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF08C37B40A for ; Thu, 6 Feb 2003 04:34:49 -0800 (PST) Received: from hknetmail.com (nweb.hknetmail.com [202.67.240.32]) by mx1.FreeBSD.org (Postfix) with SMTP id 5539243FD7 for ; Thu, 6 Feb 2003 04:34:46 -0800 (PST) (envelope-from dudleyrogers@hknetmail.com) Received: (qmail 26847 invoked by uid 8888); 6 Feb 2003 10:25:58 -0000 Received: from 216.139.176.157 ( [216.139.176.157]) as user dudleyrogers@nweb.hknet.com by www.hknetmail.com with HTTP; Thu, 6 Feb 2003 18:25:56 +0800 Message-ID: <1044527156.3e42383439ba8@www.hknetmail.com> Date: Thu, 6 Feb 2003 18:25:56 +0800 From: dudleyrogers@hknetmail.com To: dudleyrogers@hknetmail.com Subject: urgently needed MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 216.139.176.157 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear Friend, I am Mr dudley rogers, the secretary of Commercial Farmers union branch in the region of matabeleland,Zimbabwe. After the last general elections in my country where the incumbent president MR. Robert Mugabe won the presidential election, the government has adopted a very aggressive land reforms programme. This programme is solely aimed at taking the land owned by white African farmers for redistribution to black Africans. This programme has attracted worldwide condemnation from world leaders including British prime minister,MR Tony Blair and also forced several white farmers to flee the country for fear of victimization and physical abuse. Few months ago, our headquartes in Harare was attacked and looted by black protesters and in the process burnt down the whole building. Fortunately,they did not get access to the documents of our union funds which belong to the co- operation. This cash is kept in UBS PRIVATE BANK IN SWITZERLAND.We are worried that the money is no longer safe because our president ,ROBERT MUGABE might freeze the account if he gets to know about it. Now I have the funds deposit documents in my hands Once I can get your commitment and sincerity of investing this funds on our behalf then I would proceed to get the funds transfered into your nominated bank account anywhere in the world.You do not have anything to worry about as I would undertake all charges i have already perfected all avenues to get the money into your account. i have the mandate from Mr Max Crawford,the president of the union to get the funds out as fast as possible.You would be compensated for all your effort once we have gotten the funds to your account. Please get back to me if you can be of assistance and I would want our correspondence to be via email as most phone lines of white farmers are bugged by the government. I expect your confidentiality and your promptresponse to this mail so as to proceed. dudley rogers ------------------------------------------------- HKNETMAIL.COM Free WEB MAIL Service by HKNET To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 5:11:52 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E3B537B401 for ; Thu, 6 Feb 2003 05:11:51 -0800 (PST) Received: from MX1.estpak.ee (ld1.estpak.ee [194.126.101.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 297DC43F93 for ; Thu, 6 Feb 2003 05:11:50 -0800 (PST) (envelope-from kalts@estpak.ee) Received: from kevad.internal (80-235-38-93-dsl.mus.estpak.ee [80.235.38.93]) by MX1.estpak.ee (Postfix) with ESMTP id C3BBE8880E; Thu, 6 Feb 2003 15:10:28 +0200 (EET) Received: from kevad.internal (localhost [127.0.0.1]) by kevad.internal (8.12.6/8.12.6) with ESMTP id h16DBeQO003126; Thu, 6 Feb 2003 15:11:40 +0200 (EET) (envelope-from vallo@kevad.internal) Received: (from vallo@localhost) by kevad.internal (8.12.6/8.12.6/Submit) id h16DBdJV003125; Thu, 6 Feb 2003 15:11:39 +0200 (EET) (envelope-from vallo) Date: Thu, 6 Feb 2003 15:11:39 +0200 From: Vallo Kallaste To: Kris Kennaway Cc: freebsd-current@freebsd.org Subject: Re: tired of crashes Message-ID: <20030206131139.GA3063@kevad.internal> Reply-To: kalts@estpak.ee References: <20030205094744.GA949@myhakas.internal> <20030205184009.GD11124@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030205184009.GD11124@rot13.obsecurity.org> User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 10:40:09AM -0800, Kris Kennaway wrote: > > --- > > panic: ufs_dirbad: bad dir > > cpuid = 1; lapic.id = 01000000 > > boot() called on cpu#1 > > I get those on the bento cluster when the disk is starting to fail. > dd'ing /dev/zero over it usually gives it some more life by forcing it > to remap bad blocks as it goes. The disk has been in use for ~1 year and both primary and grown defect lists are the same as in the beginning. So far haven't observed any signs of dying disk. Also no other disk activity has been problematic, I have several times copied over the disk contents (~5GB) to other disk to re-newfs the filesystem. -- Vallo Kallaste kalts@estpak.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 5:17:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2603237B406; Thu, 6 Feb 2003 05:17:29 -0800 (PST) Received: from yoda.warpnet.ro (yoda.warpnet.ro [217.156.25.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36E7A43FAF; Thu, 6 Feb 2003 05:17:26 -0800 (PST) (envelope-from ady@freebsd.ady.ro) Received: from yoda.warpnet.ro (localhost [127.0.0.1]) by yoda.warpnet.ro (8.12.6/8.12.6) with ESMTP id h16DHGXT068792; Thu, 6 Feb 2003 15:17:16 +0200 (EET) (envelope-from ady@freebsd.ady.ro) Received: from localhost (ady@localhost) by yoda.warpnet.ro (8.12.6/8.12.6/Submit) with ESMTP id h16DHFGI068789; Thu, 6 Feb 2003 15:17:16 +0200 (EET) (envelope-from ady@freebsd.ady.ro) X-Authentication-Warning: yoda.warpnet.ro: ady owned process doing -bs Date: Thu, 6 Feb 2003 15:17:15 +0200 (EET) From: Adrian Penisoara X-X-Sender: ady@yoda.warpnet.ro To: freebsd-current@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: New technologies in FreeBSD 5.x vs. 4.x Message-ID: <20030206151052.U68316@yoda.warpnet.ro> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-RAVMilter-Version: 8.4.2(snapshot 20021212) (yoda.warpnet.ro) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I'm about to write an article on FreeBSD for PC Magazine Romania and I would like to concentrate on the new technologies introduced in FreeBSD 5.x. Where can I find a (preferrably detailed) list of the new technologies introduced with FreeBSD 5.x ? I would also like, if possible, to get in touch with a few of the main developers that took charge of coding them. Thank you very much, Adrian Penisoara Ady (@freebsd.ady.ro, @rofug.ro) ROFUG founder To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 6: 1:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3514037B401; Thu, 6 Feb 2003 06:01:28 -0800 (PST) Received: from geekpunk.net (adsl-154-184-139.bna.bellsouth.net [68.154.184.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7C5443FBD; Thu, 6 Feb 2003 06:01:18 -0800 (PST) (envelope-from bandix@geekpunk.net) Received: from localhost.my.domain (taran [127.0.0.1]) by geekpunk.net (8.12.6/8.12.6) with ESMTP id h16E1KJB024115; Thu, 6 Feb 2003 08:01:20 -0600 (CST) (envelope-from bandix@geekpunk.net) Received: (from bandix@localhost) by localhost.my.domain (8.12.6/8.12.6/Submit) id h16E1J0f024114; Thu, 6 Feb 2003 08:01:19 -0600 (CST) (envelope-from bandix) Date: Thu, 6 Feb 2003 08:01:18 -0600 From: "Brandon D. Valentine" To: Adrian Penisoara Cc: FreeBSD-Hackers Subject: Re: New technologies in FreeBSD 5.x vs. 4.x Message-ID: <20030206140118.GH22375@geekpunk.net> References: <20030206151052.U68316@yoda.warpnet.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030206151052.U68316@yoda.warpnet.ro> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [ Bcc'd to -current following initial crosspost. Followups to -hackers or directly to Mr. Penisoara. ] On Thu, Feb 06, 2003 at 03:17:15PM +0200, Adrian Penisoara wrote: > > Where can I find a (preferrably detailed) list of the new technologies > introduced with FreeBSD 5.x ? Greetings Adrian, The most significant new features are listed in the Release Announcement[0]. There is greater detail available in the Release Notes under "What's New"[1]. > I would also like, if possible, to get in touch with a few of the main > developers that took charge of coding them. You can contact the person listed as MAINTAINER in the Makefile for the part of the source tree you are concerned with. If there is no MAINTAINER listed, a quick trip through CVSWeb[2] will reveal who has been the most active committer to that section of the tree. I would, of course, recommend courtesy and patience when approaching FreeBSD develoeprs for an interview. Most of them are quite busy. [0] - http://www.freebsd.org/releases/5.0R/announce.html [1] - http://www.freebsd.org/releases/5.0R/relnotes-i386.html [2] - http://www.freebsd.org/cgi/cvsweb.cgi/ Good luck, Brandon D. Valentine -- brandon@dvalentine.com http://www.geekpunk.net "We've been raised on replicas of fake and winding roads, and day after day up on this beautiful stage we've been playing tambourine for minimum wage, but we are real; I know we are real." -- David Berman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 6:15:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ECCC37B401; Thu, 6 Feb 2003 06:15:49 -0800 (PST) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D8A43FBD; Thu, 6 Feb 2003 06:15:48 -0800 (PST) (envelope-from mb@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.12.6/8.12.3) with ESMTP id h16EFfS8058203; Thu, 6 Feb 2003 15:15:41 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Thu, 6 Feb 2003 15:17:57 +0100 (CET) From: Martin Blapp To: Michael Nottebrock Cc: Masafumi NAKANE , "" Subject: Re: 4.7-amd cannot mount exports from 5.0-RELEASE In-Reply-To: <200302031519.08450.michaelnottebrock@gmx.net> Message-ID: <20030206151302.E684@levais.imp.ch> References: <3E36ECC3.5040502@gmx.net> <200301311403.01408.michaelnottebrock@gmx.net> <20030131141333.C22233@levais.imp.ch> <200302031519.08450.michaelnottebrock@gmx.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, It works here for both cases. I've done intensive testing, and I just cannot reproduce this bug. The list here just looks normal as it should be: localhost:/ on /a/localhost (nfs, nodev, nosuid) 127.0.0.1:/ on /a/127.0.0.1 (nfs, nodev, nosuid) levais:/ on /a/levais (nfs, nodev, nosuid) levais:/usr on /a/levais/usr (nfs, nodev, nosuid) 192.168.0.66:/ on /a/192.168.0.66 (nfs, nodev, nosuid) 192.168.0.66:/usr on /a/192.168.0.66/usr (nfs, nodev, nosuid) Can you send me both - tcpdump / ethereal dump of the failing request - amd, mountd configs (amd.*, /etc/exports) - a description of the mounted filesystems - how it fails ? what is the error message ? - run mountd in debug mode and keep the output ? Thank you very much Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 7:19:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F28137B401 for ; Thu, 6 Feb 2003 07:19:22 -0800 (PST) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12DFE43FBD for ; Thu, 6 Feb 2003 07:19:21 -0800 (PST) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (goldjy3ptoruuood@dsl-135-123.aei.ca [66.36.135.123]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id h16FJDS01392 for ; Thu, 6 Feb 2003 10:19:13 -0500 (EST) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 853F0E4 for ; Thu, 6 Feb 2003 10:19:12 -0500 (EST) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Thu, 6 Feb 2003 10:19:12 -0500 Date: Thu, 6 Feb 2003 10:19:12 -0500 From: The Anarcat To: freebsd-current@freebsd.org Subject: xmms looping forever Message-ID: <20030206151912.GA809@lenny.anarcat.ath.cx> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I recently upgraded my machine from 4.7-stable to 5.0-release. The upgrade went almost smoothly. I say almost because so many things changed between 4.x and -current that I missed a few. :) But overall, I'm quite happy with the results. I had problems with almost all my apps, at first. Third part applications that weren't recompiled during the buildworld (ports) had linking problems. Take wget, for example: anarcat@lenny[~]% wget /usr/libexec/ld-elf.so.1: /usr/local/lib/libintl.so.4: Undefined symbol "st= pcpy" anarcat@lenny[~]%=20 Recopmiling wget solves the problem. Some folks pointed out to me this might be due to the fact I forgot to include COMPAT4X=3Dyes in my make.conf. At first I had considered upgrading from -release to -current (because I'm a careless freak), so I already had my /usr/src cvsup'd to yesterday's current. So I builded world over that and installed it. Of course, that didn't solve the linking problem. But it made another problem appear. My dear user-friendly xmms now fails to start. This machine is used by the whole family here and I got really embarrassed over this. :) xmms seemed to pop an empty window, and sucked all the CPU time available on my AMD Druon 1GHz: CPU states: 14.4% user, 0.0% nice, 84.4% system, 1.2% interrupt, 0.0% id= le Mem: 116M Active, 56M Inact, 92M Wired, 600K Cache, 92M Buf, 862M Free Swap: 498M Total, 1452K Used, 496M Free =2E.. 891 anarcat 115 0 15820K 7060K RUN 0:05 82.69% 18.31% xmms =2E.. So I told my self, "eh, that's -current for you!" ;) And I thought that -release wasn't so bad after all and that the upgrade didn't give me anything good anyways. So I downgraded to -release. Without success. xmms hangs as before. But it used to work on -release!!! How is that possible? Using SIGINFO, I've witnessed the following: load: 1.12 cmd: xmms 9744 [*Giant] 0.33u 0.85s 1% 7144k load: 1.19 cmd: xmms 9744 [*Giant] 0.41u 1.06s 1% 7144k load: 1.19 cmd: xmms 9744 [running] 0.41u 1.09s 1% 7144k load: 1.19 cmd: xmms 9744 [*Giant] 0.41u 1.12s 1% 7144k load: 1.19 cmd: xmms 9744 [running] 0.41u 1.14s 1% 7144k But I'm able to see this only when it system is loaded (with the compilation of a port, for example). So I suspect xmms is somehow looping over the giant lock, for some reason. truss gives me the following: sigprocmask(0x3,0x28144710,0x0) =3D 0 (0x0) SIGNAL 27 SIGNAL 27 gettimeofday(0x281678b8,0x0) =3D 0 (0x0) sigprocmask(0x3,0x28167924,0x0) =3D 0 (0x0) sigreturn(0xbfbff4a0) =3D 0 (0x0) sigreturn(0xbfbff330) =3D 135891072 (0x8198880) sigreturn(0xbfbff330) =3D 135891072 (0x8198880) sigreturn(0xbfbff330) =3D 135891072 (0x8198880) And ktrace: 26035 xmms CALL mmap(0,0x4788,0x3,0x1000,0xffffffff,0,0,0) 26035 xmms RET mmap 686489600/0x28eb0000 26035 xmms CALL munmap(0x28eb0000,0x4788) 26035 xmms RET munmap 0 26035 xmms CALL mprotect(0x28e3c000,0x62000,0x5) 26035 xmms RET mprotect 0 26035 xmms CALL sigprocmask(0x3,0x28144710,0) 26035 xmms RET sigprocmask 0 26035 xmms PSIG SIGPROF caught handler=3D0x28159510 mask=3D0x0 code= =3D0x0 26035 xmms CALL gettimeofday(0x281678b8,0) 26035 xmms RET gettimeofday 0 26035 xmms CALL sigprocmask(0x3,0x28167924,0) 26035 xmms RET sigprocmask 0 26035 xmms CALL sigreturn(0xbfbff4a0) 26035 xmms RET sigreturn JUSTRETURN 26035 xmms PSIG SIGSEGV caught handler=3D0x28159510 mask=3D0x0 code= =3D0xc 26035 xmms CALL sigreturn(0xbfbff330) 26035 xmms RET sigreturn JUSTRETURN 26035 xmms PSIG SIGSEGV caught handler=3D0x28159510 mask=3D0x0 code= =3D0xc I include my dmesg at the end of this mail, in the meantime, here are the pcm sysctls that might be relevant: root@lenny[/usr/home/anarcat]# sysctl hw.snd = =20 hw.snd.targetirqrate: 32 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.unit: 0 hw.snd.maxautovchans: 2 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 1 I also tried: root@lenny[/usr/home/anarcat]# sysctl hw.snd =20 hw.snd.targetirqrate: 32 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.unit: 0 hw.snd.maxautovchans: 0 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 0 I had odd crashes with xmms before, but *crashes*, no hangs. :) I am available for testing and debugging, and I am eager to solve this problem, since xmms is a must here, right now. I'd be forced to downgrade to 4.7-stable (!) but I feel I'll have the same results. :) A. Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-RELEASE #2: Wed Feb 5 22:17:29 EST 2003 anarcat@lenny.anarcat.ath.cx:/usr/obj/usr/src/sys/LENNY Preloaded elf kernel "/boot/kernel/kernel" at 0xc05e9000. Preloaded elf module "/boot/kernel/linux.ko" at 0xc05e90a8. Preloaded elf module "/boot/kernel/snd_emu10k1.ko" at 0xc05e9154. Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc05e9204. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc05e92b0. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1008993741 Hz CPU: AMD Duron(tm) Processor (1008.99-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x670 Stepping =3D 0 Features=3D0x383f9ff AMD Features=3D0xffffffffc0440000 real memory =3D 1207877632 (1151 MB) avail memory =3D 1167839232 (1113 MB) Initializing GEOMetry subsystem netsmb_dev: loaded Pentium Pro MTRR support enabled VESA: v2.0, 32768k memory, flags:0x1, mode table:0xc04c3e82 (1000022) VESA: ATI RADEON III npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15 Using $PIR table, 9 entries at 0xc00f1750 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe6000000-0xe7f= fffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 drm0: port 0xd800-0xd8ff mem 0xd7000000-0xd700ffff= ,0xd8000000-0xdfffffff irq 11 at device 0.0 on pci1 info: [drm] AGP at 0xe6000000 32MB info: [drm] Initialized radeon 1.1.1 20010405 on minor 0 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xb800-0xb80f at device 4.1 on= pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xb400-0xb41f irq 9 at device 4.2 o= n pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xb000-0xb01f irq 9 at device 4.3 o= n pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered viapropm0: SMBus I/O base at 0xe800 viapropm0: port 0xe800-0xe80f at devi= ce 4.4 on pci0 viapropm0: SMBus revision code 0x40 smb0: on smbus0 vr0: port 0x9400-0x94ff mem 0xd6800000-0= xd68000ff irq 9 at device 9.0 on pci0 vr0: Ethernet address: 00:50:ba:64:e3:6a miibus0: on vr0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcm0: port 0x9000-0x901f irq 5 at device 10.0 on pci0 atapci1: port 0x7000-0x703f,0x7400-0x7403,0x780= 0-0x7807,0x8000-0x8003,0x8400-0x8407 mem 0xd6000000-0xd601ffff irq 10 at de= vice 17.0 on pci0 ata2: at 0x8400 on atapci1 ata3: at 0x7800 on atapci1 speaker0 port 0x61 on acpi0 fdc0: port 0x3f7,0x= 3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0 orm0: ¯¬±z¦Ï¦~

    ¯¬±z¦Ï¦~


                        ¤@¦|­·¶¶¡B¤GÀsÄË­¸¡B¤T¦Ï¶}®õ¡B
                        ¥|©u¥­¦w¡B¤­ºÖÁ{ªù¡B¤»¤»¤j¶¶¡B
                        ¤C¬P°ª·Ó¡B¤K¤è¨Ó°]¡B¤E¤E¦P¤ß¡B
                        ¤Q¥ş¤Q¬ü¡A¬v¬v±o·N¹L¦n¦~


                              ****³Ì¦³¬¡¤Oªº------
    -¤pºµºµ

    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 12:49:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D06137B401 for ; Thu, 6 Feb 2003 12:49:27 -0800 (PST) Received: from www.fastmail.fm (www.fastmail.fm [66.111.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B230543F3F for ; Thu, 6 Feb 2003 12:49:26 -0800 (PST) (envelope-from murat@bicer.org) Received: from www.fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 77507239EE; Thu, 6 Feb 2003 15:49:23 -0500 (EST) Received: from 127.0.0.1 ([127.0.0.1] helo=www.fastmail.fm) by fastmail.fm with SMTP; Thu, 06 Feb 2003 15:49:23 -0500 Received: by www.fastmail.fm (Postfix, from userid 99) id 715A1189F3; Thu, 6 Feb 2003 15:49:23 -0500 (EST) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.2 (F2.71; T1.001; A1.51; B2.12; Q2.03) From: "Murat Bicer" To: "Andy Farkas" , freebsd-current@FreeBSD.ORG Date: Thu, 06 Feb 2003 15:49:23 -0500 X-Epoch: 1044564563 X-Sasl-enc: meSaGyCoEW9zyP9IMnHHig Subject: Re: sysinstall->Configure->Fdisk References: <20030204170512.R31941-100000@hewey.af.speednet.com.au> In-Reply-To: <20030204170512.R31941-100000@hewey.af.speednet.com.au> Message-Id: <20030206204923.715A1189F3@www.fastmail.fm> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 4 Feb 2003 17:16:22 +1000 (EST), "Andy Farkas" said: > > sysinstall's 'FDISK Partition Editor' won't let me create a second slice. > > After pressing 'w' it says: "ERROR: Unable to write data to disk ad4!" > then check your securelevel man securelevel 2 Highly secure mode - same as secure mode, plus disks may not be opened for writing (except by mount(2)) whether mounted or not. This level precludes tampering with filesystems by unmounting them, but also inhibits running newfs(8) while the system is multi-user. Murat Bicer murat@bicer.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 12:49:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E914537B401 for ; Thu, 6 Feb 2003 12:49:32 -0800 (PST) Received: from www.fastmail.fm (www.fastmail.fm [66.111.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CF3743F85 for ; Thu, 6 Feb 2003 12:49:32 -0800 (PST) (envelope-from murat+freebsd@bicer.org) Received: from www.fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id C51B31B50F; Thu, 6 Feb 2003 15:49:29 -0500 (EST) Received: from 127.0.0.1 ([127.0.0.1] helo=www.fastmail.fm) by fastmail.fm with SMTP; Thu, 06 Feb 2003 15:49:29 -0500 Received: by www.fastmail.fm (Postfix, from userid 99) id BE1AF21E81; Thu, 6 Feb 2003 15:49:29 -0500 (EST) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.2 (F2.71; T1.001; A1.51; B2.12; Q2.03) From: "Murat Bicer" To: "Andy Farkas" , freebsd-current@FreeBSD.ORG Date: Thu, 06 Feb 2003 15:49:29 -0500 X-Epoch: 1044564569 X-Sasl-enc: SBb75NBwi0cbN9llhpdQSg Subject: Re: sysinstall->Configure->Fdisk Message-Id: <20030206204929.BE1AF21E81@www.fastmail.fm> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 4 Feb 2003 17:16:22 +1000 (EST), "Andy Farkas" said: > > sysinstall's 'FDISK Partition Editor' won't let me create a second slice. > > After pressing 'w' it says: "ERROR: Unable to write data to disk ad4!" > then check your securelevel man securelevel 2 Highly secure mode - same as secure mode, plus disks may not be opened for writing (except by mount(2)) whether mounted or not. This level precludes tampering with filesystems by unmounting them, but also inhibits running newfs(8) while the system is multi-user. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 13: 1:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 898F737B40B; Thu, 6 Feb 2003 13:01:38 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F7343F3F; Thu, 6 Feb 2003 13:01:38 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id E474B72E7A; Thu, 6 Feb 2003 13:01:37 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id E325E72E74; Thu, 6 Feb 2003 13:01:37 -0800 (PST) Date: Thu, 6 Feb 2003 13:01:37 -0800 (PST) From: Doug White To: Terry Lambert Cc: Lucky Green , , Subject: Re: L440gx+ serial BIOS needs text mode In-Reply-To: <3E3ED594.EC05289B@mindspring.com> Message-ID: <20030206125158.D60537-100000@carver.gumbysoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Feb 2003, Terry Lambert wrote: > Lucky Green wrote: > > However, the Intel L440gx+ motherboard I have (it came in a VA Linux > > rackmount) seems to have a separate CPU performing all kinds of > > monitoring tasks, watchdog, etc, so I was hoping this separate CPU was > > actually performing the serial console task. > > According to Doug's Intel page: > > http://people.freebsd.org/~dwhite/ipmi/setup_intel_scb2.html > > It's possible that it is, and that what's happening is some probe > is writing to the port address on the I/O bus, causing the problem. > If this is the case, then the only way to deal with it is to write > a real driver for the thing (not the user space driver), and have > the kernel claim it early, which would (should) keep other drivers > from trying to poke it in the eye to see if their own hardware is > there. That'd be nice if the L440GX+ was IPMI compliant. It isn't. :-) You're better off trying to use the intpm driver to talk to the old-style monitoring chips. Several IPMI features came from features implemented on the BMC on the L440GX, but it still uses the proprietary smbus interface. I never fiddled with the BMC features of the L440GX board. Linux's monitoring driver does talk to it though, you might be able to port it over. On the current generation Intel boards, serial redirection is handled by the BIOS. Once the kernel starts and the kernel takes over output, that redirection ceases to function. By that point, though, you have the usual FreeBSD serial console facilities and thus have a smooth transition. I suspect the same applies for any other Intel motherboard that supports serial redirection. You can confirm support for serial redirection by downloading the Technical Product Specifications for the Intel board you're interested in through support.intel.com. We have Tyan boards at my current employer with serial redirection and they work the same way. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 13: 3:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E19737B401 for ; Thu, 6 Feb 2003 13:03:39 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABA5F43F3F for ; Thu, 6 Feb 2003 13:03:38 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 98F7E72E7B; Thu, 6 Feb 2003 13:03:38 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 97C0972E7A; Thu, 6 Feb 2003 13:03:38 -0800 (PST) Date: Thu, 6 Feb 2003 13:03:38 -0800 (PST) From: Doug White To: Andrew Gordon Cc: Lucky Green , Subject: RE: L440gx+ serial BIOS needs text mode In-Reply-To: <20030204000002.P42367-100000@server.arg.sj.co.uk> Message-ID: <20030206130208.A60537-100000@carver.gumbysoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 4 Feb 2003, Andrew Gordon wrote: > - On the latest machines featuring 'serial over LAN', you can > persuade the management CPU to subvert the serial port and > pass the data over one of the ethernet ports. This seems to use > a proprietary protocol, but if you have one Windows machine > somewhere with the Intel management software loaded on it, you > can use that to proxy the protocol for any number of managed > machines - ie. telnet to port 623 on the Windows machine, then > connect back to the target machine and get attached to the > serial console (and so get a FreeBSD login, if that's what is > running on COM2). I'd love to get the spec on this -- its a proprietary Intel feature and they won't cough up the spec unless you're a high volume integrator or have money and NDAs. > - Medium-aged machines seem to have all the hardware to subvert the > serial and ethernet ports, but won't do serial redirection apart > from controlling the BIOS. Upgrading the BMC software didn't > help on the machine I had in this category. No big loss for FreeBSD of course :) -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 13:50:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62CAA37B401 for ; Thu, 6 Feb 2003 13:50:17 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD96343F93 for ; Thu, 6 Feb 2003 13:50:16 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id h16LoqhE087136; Thu, 6 Feb 2003 16:50:52 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id h16LopuR087135; Thu, 6 Feb 2003 16:50:51 -0500 (EST) Date: Thu, 6 Feb 2003 16:50:51 -0500 From: Craig Rodrigues To: Andy Farkas Cc: freebsd-current@FreeBSD.ORG, Murat Bicer Subject: Re: sysinstall->Configure->Fdisk Message-ID: <20030206215051.GA87086@attbi.com> References: <20030204170512.R31941-100000@hewey.af.speednet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204170512.R31941-100000@hewey.af.speednet.com.au> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 04, 2003 at 05:16:22PM +1000, Andy Farkas wrote: > > sysinstall's 'FDISK Partition Editor' won't let me create a second slice. > > After pressing 'w' it says: "ERROR: Unable to write data to disk ad4!" then > "Disk partition write returned an error status!" > > Freshly cvsup'd a few hours ago. > > # sysctl -a | grep kern.version > kern.version: FreeBSD 5.0-CURRENT #2: Tue Feb 4 11:04:44 EST 2003 This is a known problem due to GEOM. It doesn't matter if you are root, or if your securelevel is set properly. It just won't work. See the thread: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=295042+0+archive/2002/freebsd-current/20021229.freebsd-current Try to boot from another disk or a floppy, then you will be able to create a new partition with sysinstall. -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 14: 5: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC58737B477 for ; Thu, 6 Feb 2003 14:04:58 -0800 (PST) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A1FF43F85 for ; Thu, 6 Feb 2003 14:04:58 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP id MUA74016; Thu, 06 Feb 2003 14:04:57 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 211455D06; Thu, 6 Feb 2003 14:04:57 -0800 (PST) To: Craig Rodrigues Cc: Andy Farkas , freebsd-current@FreeBSD.ORG, Murat Bicer Subject: Re: sysinstall->Configure->Fdisk In-reply-to: Your message of "Thu, 06 Feb 2003 16:50:51 EST." <20030206215051.GA87086@attbi.com> Date: Thu, 06 Feb 2003 14:04:57 -0800 From: "Kevin Oberman" Message-Id: <20030206220457.211455D06@ptavv.es.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Thu, 6 Feb 2003 16:50:51 -0500 > From: Craig Rodrigues > Sender: owner-freebsd-current@FreeBSD.ORG > > On Tue, Feb 04, 2003 at 05:16:22PM +1000, Andy Farkas wrote: > > > > sysinstall's 'FDISK Partition Editor' won't let me create a second slice. > > > > After pressing 'w' it says: "ERROR: Unable to write data to disk ad4!" then > > "Disk partition write returned an error status!" > > > > Freshly cvsup'd a few hours ago. > > > > # sysctl -a | grep kern.version > > kern.version: FreeBSD 5.0-CURRENT #2: Tue Feb 4 11:04:44 EST 2003 > > > This is a known problem due to GEOM. It doesn't matter if you are root, > or if your securelevel is set properly. It just won't work. > > See the thread: > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=295042+0+archive/2002/freebsd-current/20021229.freebsd-current > > Try to boot from another disk or a floppy, then you will be able to > create a new partition with sysinstall. This is what the second ISO image is for. It contains the holographic shell and is sometimes called the "fixit" disk. Boot it select Fixit. Then follow the instructions. Or, if you just want to partition, use the "Configure" option and select Fdisk. (For this, you don't even need the Fixit disk. The main OS disk can do this.) R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 14:13:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 435EB37B401; Thu, 6 Feb 2003 14:13:41 -0800 (PST) Received: from fep2.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7372743F93; Thu, 6 Feb 2003 14:13:40 -0800 (PST) (envelope-from muhannad07@cogeco.ca) Received: from [192.168.1.100] (d57-117-31.home.cgocable.net [24.57.117.31]) by fep2.cogeco.net (Postfix) with ESMTP id EA75F7226; Thu, 6 Feb 2003 17:15:28 -0500 (EST) Subject: RE: Server locking hard -- A LOT!!! From: Muhannad Asfour To: Peter Kostouros Cc: freebsd-questions@freebsd.org, freebsd-current@freebsd.org In-Reply-To: <13103B46A474B64E97C5A932AFF1E99B01B744@ho.awtaltd.local> References: <13103B46A474B64E97C5A932AFF1E99B01B744@ho.awtaltd.local> Content-Type: text/plain Organization: Message-Id: <1044569611.39439.2.camel@bsdbox.qubix.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 06 Feb 2003 17:13:32 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2003-02-05 at 21:03, Peter Kostouros wrote: > Hi > > I experienced the problem with kernels from last weekend. I rebuilt > yesterday, but have not undergone high loads since. I will do thorough tests > over the weekend. > > Keep in mind there have been some complaints recently, and there is new > scheduler code just implemented, so I guess at that at the moment CURRENT is > a place for the brave, well, braver than most. > > -----Original Message----- > From: Muhannad Asfour [mailto:muhannad07@cogeco.ca] > Sent: Thursday, 6 February 2003 12:40 PM > To: Peter Kostouros > Cc: FreeBSD-current@FreeBSD.org; FreeBSD-questions@FreeBSD.org > Subject: RE: Server locking hard -- A LOT!!! > > > On Wed, 2003-02-05 at 20:03, Peter Kostouros wrote: > > Not sure this is much help, but I have been getting many hard locks too, > > from about a kernel I built around the 27th January. My symptoms are that > > under a relatively heavy CPU load, upon invoking or terminating an > > application, the machine occasionally terminates (abruptly). I do not even > > get core dumps. > > > > -----Original Message----- > > From: Muhannad Asfour [mailto:muhannad07@cogeco.ca] > > Sent: Thursday, 6 February 2003 11:27 AM > > To: Peter Kostouros > > Cc: FreeBSD-questions@FreeBSD.org; FreeBSD-current@FreeBSD.org > > Subject: Re: Server locking hard -- A LOT!!! > > > > > > On Wed, 2003-02-05 at 19:23, Peter Kostouros wrote: > > > Hi Muhannad > > > > > > Your dmesg output had the following: > > > lock order reversal 1st 0xc2b5d230 process lock (process lock) @ > > > ../../../kern/kern_descrip.c:2104 > > > 2nd 0xc2b5bd34 filedesc structure (filedesc structure) @ > > > ../../../kern/kern_descrip.c:2111 > > > > > > These are indicative of the lock order reversals appearing recently. Do > > you > > > always get these? > > > > > > Regards > > > > > > Peter > > > > > > This e-mail and any attachment(s) is intended for the party to which it > is > > > addressed and may contain confidential information or be subject to > > > professional privilege. Its transmission in not intended to place the > > > contents into the public domain. If you have received this e-mail in > > error, > > > please notify us immediately and delete the email and all copies. > > > AWTA Ltd does not warrant that this e-mail is virus or error free. By > > > opening this e-mail and any attachment the user assumes all > responsibility > > > for any loss or damage resulting from such action, whether or not caused > > by > > > the negligence of AWTA Ltd. > > > The contents of this e-mail and any attachments are subject to copyright > > and > > > may not be reproduced, adapted or transmitted without the prior written > > > permission of the copyright owner. > > > > Yes, I always get these. > I am experiencing the same exact thing. Odd. Any idea if it still > occurs with a more recently built kernel? I've felt like I tried everything so far, and I cannot figure out what the problem is, I've done numerous hardware tests, and every single one was passed with flying colours. I have narrowed it down to apache locking the box though. So I'm not sure what I can do to fix this, because it is very tedious to have to keep manually rebooting the box everytime it locks (sometimes 3 times a day!) Can anyone please suggest something to fix this issue? If any of the developers read this, I can give you ssh to the box if required so you can see what's happening. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 14:28:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57E8D37B401; Thu, 6 Feb 2003 14:28:31 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id E8ECF43FA3; Thu, 6 Feb 2003 14:28:29 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 6 Feb 2003 22:28:28 +0000 (GMT) Date: Thu, 6 Feb 2003 22:28:26 +0000 From: David Malone To: Kris Kennaway Cc: Fred Souza , current@freebsd.org, ume@freebsd.org, clive@tongi.org Subject: Re: Linux networking emulation broken? Message-ID: <20030206222826.GA15446@walton.maths.tcd.ie> References: <20030206162353.GA935@torment.storming.org> <20030206190021.GB17316@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030206190021.GB17316@rot13.obsecurity.org> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 06, 2003 at 11:00:21AM -0800, Kris Kennaway wrote: > I'm also seeing this with Linux Phoenix, though I haven't tcpdumped > the output. I'm guessing the short patch at: http://www.maths.tcd.ie/~dwmalone/linux_sendmsg.patch should help. Can you try it and let me know? David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 15:18:20 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA5A537B401 for ; Thu, 6 Feb 2003 15:18:16 -0800 (PST) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E6EE43F85 for ; Thu, 6 Feb 2003 15:18:16 -0800 (PST) (envelope-from larse@ISI.EDU) Received: from isi.edu (nik.isi.edu [128.9.168.58]) by boreas.isi.edu (8.11.6/8.11.2) with ESMTP id h16NIFH02230 for ; Thu, 6 Feb 2003 15:18:15 -0800 (PST) Message-ID: <3E42ED37.60406@isi.edu> Date: Thu, 06 Feb 2003 15:18:15 -0800 From: Lars Eggert User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3a) Gecko/20030131 X-Accept-Language: en-us, de-de MIME-Version: 1.0 To: current Subject: read/write errors with USB CF reader Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms000306030807010700070705" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a cryptographically signed message in MIME format. --------------ms000306030807010700070705 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, (this is unrelated to my earlier post about the kernel panic.) when doing I/O to an IBM microdrive mounted via an USB CF reader, I get read/write errors about once an hour or so. Here's an example: dd if=/dev/zero of=/dev/da1 bs=512 count=32 dd: /dev/da1: Input/output error 1+0 records in 0+0 records out 0 bytes transferred in 0.905537 secs (0 bytes/sec) *** Error code 1 Relevant syslog excerpt: umass0: SanDisk Corporation ImageMate CompactFlash USB, rev 1.10/0.09, addr 2 umass0: Get Max Lun not supported (STALLED) da1 at umass-sim0 bus 0 target 0 lun 0 da1: Removable Direct Access SCSI-2 device da1: 1.000MB/s transfers da1: 1027MB (2104705 512 byte sectors: 255H 63S/T 131C) umass0: BBB reset failed, STALLED (da1:umass-sim0:0:0:0): AutoSense Failed umass0: BBB reset failed, STALLED (da1:umass-sim0:0:0:0): AutoSense Failed umass0: BBB reset failed, STALLED (da1:umass-sim0:0:0:0): AutoSense Failed Retrying the failed command usually works (and the dd above was just an example, I've seen it happen with dump/restore, tar, or make.) Also, this may not be specific to -current, I think I saw it on -STABLE as well a while ago. The microdrive itself is fine, I also mount it with a CF PC-card adaptor, and have never seen an error then. Any clues? Thanks, Lars -- Lars Eggert USC Information Sciences Institute --------------ms000306030807010700070705 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJtjCC AzgwggKhoAMCAQICEGZFcrfMdPXPY3ZFhNAukQEwDQYJKoZIhvcNAQEEBQAwgdExCzAJBgNV BAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEaMBgG A1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2Vydmlj ZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBDQTErMCkG CSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0wMDA4MzAwMDAw MDBaFw0wNDA4MjcyMzU5NTlaMIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBD YXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2Vy dGlmaWNhdGUgU2VydmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAw LjguMzAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAN4zMqZjxwklRT7SbngnZ4HF2ogZ gpcO40QpimM1Km1wPPrcrvfudG8wvDOQf/k0caCjbZjxw0+iZdsN+kvx1t1hpfmFzVWaNRqd knWoJ67Ycvm6AvbXsJHeHOmr4BgDqHxDQlBRh4M88Dm0m1SKE4f/s5udSWYALQmJ7JRr6aFp AgMBAAGjTjBMMCkGA1UdEQQiMCCkHjAcMRowGAYDVQQDExFQcml2YXRlTGFiZWwxLTI5NzAS BgNVHRMBAf8ECDAGAQH/AgEAMAsGA1UdDwQEAwIBBjANBgkqhkiG9w0BAQQFAAOBgQAxsUtH XfkBceX1U2xdedY9mMAmE2KBIqcS+CKV6BtJtyd7BDm6/ObyJOuR+r3sDSo491BVqGz3Da1M G7wD9LXrokefbKIMWI0xQgkRbLAaadErErJAXWr5edDqLiXdiuT82w0fnQLzWtvKPPZE6iZp h39Ins6ln+eE2MliYq0FxjCCAzkwggKioAMCAQICAwglQTANBgkqhkiG9w0BAQQFADCBkjEL MAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3du MQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYD VQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44LjMwMB4XDTAyMDgyNDE4NTMzOVoX DTAzMDgyNDE4NTMzOVowVDEPMA0GA1UEBBMGRWdnZXJ0MQ0wCwYDVQQqEwRMYXJzMRQwEgYD VQQDEwtMYXJzIEVnZ2VydDEcMBoGCSqGSIb3DQEJARYNbGFyc2VAaXNpLmVkdTCCASIwDQYJ KoZIhvcNAQEBBQADggEPADCCAQoCggEBANI2Rrt4ggaQ/IrOsDeOm2H4/R5FRIL6JjDY3StE aogp1r23WKniQ1Vj98Nu5WxlaZ3Iam3Jen5T66H8u7rtMNpK4qAeAGoBsVeyVr1+CTFeuv+m xCh7BvBJwhLdm0zDaoDT05YKYZaqtsT+F286FWJQg31Xtf+vTKLVVrHcsafnteyal2NEt7Ac yZZfjsVLwxp2Lq3cwYfRQRoo7/yCVzS7HsgM6jmbO4taEMo4yC2rpnUbWEUCDTaCYgpAXzAl oiNk7GDh0wz2s5ZSnHRvNSBMAjCmpNtSYHfXFI1ANwrrrHIJ7Ei83+XN32PWY4OPzO3iown9 VR+vM+8lNx9OX28CAwEAAaNWMFQwKgYFK2UBBAEEITAfAgEAMBowGAIBBAQTTDJ1TXlmZkJO VWJOSkpjZFoyczAYBgNVHREEETAPgQ1sYXJzZUBpc2kuZWR1MAwGA1UdEwEB/wQCMAAwDQYJ KoZIhvcNAQEEBQADgYEAXcrIlKmPLM/r8r3oz2ZLPLaT1AyMjYTZY2qq/R7SUtFa9BNlTIFh DG78QKfJ9lo2LMzTPQqMZgNLmj95GbNPI8P8OIq2K6MeCZWz08ROackqTFP6xWbIFIfXcBVR 1dZnDDyDKBBh05KkvyTPawSQyOBUeNBfQUyO4TE+3o58U8UwggM5MIICoqADAgECAgMIJUEw DQYJKoZIhvcNAQEEBQAwgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUx EjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZp Y2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4z MDAeFw0wMjA4MjQxODUzMzlaFw0wMzA4MjQxODUzMzlaMFQxDzANBgNVBAQTBkVnZ2VydDEN MAsGA1UEKhMETGFyczEUMBIGA1UEAxMLTGFycyBFZ2dlcnQxHDAaBgkqhkiG9w0BCQEWDWxh cnNlQGlzaS5lZHUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDSNka7eIIGkPyK zrA3jpth+P0eRUSC+iYw2N0rRGqIKda9t1ip4kNVY/fDbuVsZWmdyGptyXp+U+uh/Lu67TDa SuKgHgBqAbFXsla9fgkxXrr/psQoewbwScIS3ZtMw2qA09OWCmGWqrbE/hdvOhViUIN9V7X/ r0yi1Vax3LGn57XsmpdjRLewHMmWX47FS8Madi6t3MGH0UEaKO/8glc0ux7IDOo5mzuLWhDK OMgtq6Z1G1hFAg02gmIKQF8wJaIjZOxg4dMM9rOWUpx0bzUgTAIwpqTbUmB31xSNQDcK66xy CexIvN/lzd9j1mODj8zt4qMJ/VUfrzPvJTcfTl9vAgMBAAGjVjBUMCoGBStlAQQBBCEwHwIB ADAaMBgCAQQEE0wydU15ZmZCTlViTkpKY2RaMnMwGAYDVR0RBBEwD4ENbGFyc2VAaXNpLmVk dTAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBBAUAA4GBAF3KyJSpjyzP6/K96M9mSzy2k9QM jI2E2WNqqv0e0lLRWvQTZUyBYQxu/ECnyfZaNizM0z0KjGYDS5o/eRmzTyPD/DiKtiujHgmV s9PETmnJKkxT+sVmyBSH13AVUdXWZww8gygQYdOSpL8kz2sEkMjgVHjQX0FMjuExPt6OfFPF MYID1TCCA9ECAQEwgZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUx EjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZp Y2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4z MAIDCCVBMAkGBSsOAwIaBQCgggIPMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZI hvcNAQkFMQ8XDTAzMDIwNjIzMTgxNVowIwYJKoZIhvcNAQkEMRYEFEAdHwJhk1jnvmtu3R9Y UncKQ6cpMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0G CCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMIGrBgkrBgEEAYI3EAQxgZ0w gZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNh cGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNl czEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMAIDCCVBMIGtBgsq hkiG9w0BCRACCzGBnaCBmjCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2Fw ZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsTFENlcnRp ZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44 LjMwAgMIJUEwDQYJKoZIhvcNAQEBBQAEggEA0acu73aYxBEE5sB4J1kt1uOkW9F48LJTM0dZ kdJdlLIfmzk4JAYIpCQIz3UjnPpFDtWBFwjK1z6tSVBF6x1QC6kTFsKrKc+IHRfC+0qmqE7+ JkoyqLu/KwVvGpeA4HOwKnpykx+vYZVVjJGV5oUnTUJ58kd6CqZ+MWx2CtKQAL7aM731a+5T zQY0yNOVcfJfuG3oVydPXK8cJX3zjEd2sNrd0zFDq2eO5l9HulTtyiYLqLXC/mVNBGyFsqpy TORiKjS7rAGy1wNCH58vz7crF4Uc92tD94QSChN0+S8K+msyQQZa52mb+tBxufoRNDL/4iEO QmMTSSnsSjV65WYJkgAAAAAAAA== --------------ms000306030807010700070705-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 16: 7:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38F5437B401 for ; Thu, 6 Feb 2003 16:07:37 -0800 (PST) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id C756F43FBF for ; Thu, 6 Feb 2003 16:07:36 -0800 (PST) (envelope-from larse@ISI.EDU) Received: from isi.edu (nik.isi.edu [128.9.168.58]) by boreas.isi.edu (8.11.6/8.11.2) with ESMTP id h1707aH05449 for ; Thu, 6 Feb 2003 16:07:36 -0800 (PST) Message-ID: <3E42F8BE.1060706@isi.edu> Date: Thu, 06 Feb 2003 16:07:26 -0800 From: Lars Eggert User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3a) Gecko/20030131 X-Accept-Language: en-us, de-de MIME-Version: 1.0 To: current@freebsd.org Subject: pcm channel duplicate lock Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms090501080305010101060706" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a cryptographically signed message in MIME format. --------------ms090501080305010101060706 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Got thsi when opening gnomemeeting2 while having xmms playing: acquiring duplicate lock of same type: "pcm channel" 1st pcm0:record:0 @ /usr/src/sys/dev/sound/pcm/sound.c:191 2nd pcm0:play:0 @ /usr/src/sys/dev/sound/pcm/sound.c:191 Debugger("witness_lock") Stopped at Debugger+0x5a: xchgl %ebx,in_Debugger.0 db> trace Debugger(c0328da1,c6283a54,c0532609,bf,eb3828ac) at Debugger+0x5a witness_lock(c635ce40,8,c0532609,bf,eb3828d4) at witness_lock+0x142 _mtx_lock_flags(c635ce40,0,c0532609,bf,c5e5) at _mtx_lock_flags+0x63 pcm_chnalloc(c21a9e00,1,c5e5,ffffffff,8) at pcm_chnalloc+0x66 dsp_open(c03a6a50,7,2000,c6612780,c0534380) at dsp_open+0x12f spec_open(eb3829c8,eb382ae4,c0217796,eb3829c8,c03b3ae0) at spec_open+0x37d spec_vnoperate(eb3829c8,c03b3ae0,0,180,c6612780) at spec_vnoperate+0x18 vn_open_cred(eb382bd4,eb382cd4,0,c7575600,eb382cc0) at vn_open_cred+0x306 vn_open(eb382bd4,eb382cd4,0,295,eb382b20) at vn_open+0x29 kern_open(c6612780,888ceb0,0,7,0) at kern_open+0x197 open(c6612780,eb382d10,c0363f83,407,c6610c50) at open+0x30 syscall(875002f,2f,bfbf002f,6,0) at syscall+0x3d6 Xint0x80_syscall() at Xint0x80_syscall+0x1d --- syscall (5, FreeBSD ELF32, open), eip = 0x2932e273, esp = 0xbfa65abc, ebp = 0xbfa65ad8 --- Lars -- Lars Eggert USC Information Sciences Institute --------------ms090501080305010101060706 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJtjCC AzgwggKhoAMCAQICEGZFcrfMdPXPY3ZFhNAukQEwDQYJKoZIhvcNAQEEBQAwgdExCzAJBgNV BAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEaMBgG A1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2Vydmlj ZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBDQTErMCkG CSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0wMDA4MzAwMDAw MDBaFw0wNDA4MjcyMzU5NTlaMIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMMV2VzdGVybiBD YXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUQ2Vy dGlmaWNhdGUgU2VydmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWlsIFJTQSAyMDAw LjguMzAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAN4zMqZjxwklRT7SbngnZ4HF2ogZ gpcO40QpimM1Km1wPPrcrvfudG8wvDOQf/k0caCjbZjxw0+iZdsN+kvx1t1hpfmFzVWaNRqd knWoJ67Ycvm6AvbXsJHeHOmr4BgDqHxDQlBRh4M88Dm0m1SKE4f/s5udSWYALQmJ7JRr6aFp AgMBAAGjTjBMMCkGA1UdEQQiMCCkHjAcMRowGAYDVQQDExFQcml2YXRlTGFiZWwxLTI5NzAS BgNVHRMBAf8ECDAGAQH/AgEAMAsGA1UdDwQEAwIBBjANBgkqhkiG9w0BAQQFAAOBgQAxsUtH XfkBceX1U2xdedY9mMAmE2KBIqcS+CKV6BtJtyd7BDm6/ObyJOuR+r3sDSo491BVqGz3Da1M G7wD9LXrokefbKIMWI0xQgkRbLAaadErErJAXWr5edDqLiXdiuT82w0fnQLzWtvKPPZE6iZp h39Ins6ln+eE2MliYq0FxjCCAzkwggKioAMCAQICAwglQTANBgkqhkiG9w0BAQQFADCBkjEL MAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3du MQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYD VQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44LjMwMB4XDTAyMDgyNDE4NTMzOVoX DTAzMDgyNDE4NTMzOVowVDEPMA0GA1UEBBMGRWdnZXJ0MQ0wCwYDVQQqEwRMYXJzMRQwEgYD VQQDEwtMYXJzIEVnZ2VydDEcMBoGCSqGSIb3DQEJARYNbGFyc2VAaXNpLmVkdTCCASIwDQYJ KoZIhvcNAQEBBQADggEPADCCAQoCggEBANI2Rrt4ggaQ/IrOsDeOm2H4/R5FRIL6JjDY3StE aogp1r23WKniQ1Vj98Nu5WxlaZ3Iam3Jen5T66H8u7rtMNpK4qAeAGoBsVeyVr1+CTFeuv+m xCh7BvBJwhLdm0zDaoDT05YKYZaqtsT+F286FWJQg31Xtf+vTKLVVrHcsafnteyal2NEt7Ac yZZfjsVLwxp2Lq3cwYfRQRoo7/yCVzS7HsgM6jmbO4taEMo4yC2rpnUbWEUCDTaCYgpAXzAl oiNk7GDh0wz2s5ZSnHRvNSBMAjCmpNtSYHfXFI1ANwrrrHIJ7Ei83+XN32PWY4OPzO3iown9 VR+vM+8lNx9OX28CAwEAAaNWMFQwKgYFK2UBBAEEITAfAgEAMBowGAIBBAQTTDJ1TXlmZkJO VWJOSkpjZFoyczAYBgNVHREEETAPgQ1sYXJzZUBpc2kuZWR1MAwGA1UdEwEB/wQCMAAwDQYJ KoZIhvcNAQEEBQADgYEAXcrIlKmPLM/r8r3oz2ZLPLaT1AyMjYTZY2qq/R7SUtFa9BNlTIFh DG78QKfJ9lo2LMzTPQqMZgNLmj95GbNPI8P8OIq2K6MeCZWz08ROackqTFP6xWbIFIfXcBVR 1dZnDDyDKBBh05KkvyTPawSQyOBUeNBfQUyO4TE+3o58U8UwggM5MIICoqADAgECAgMIJUEw DQYJKoZIhvcNAQEEBQAwgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUx EjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZp Y2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4z MDAeFw0wMjA4MjQxODUzMzlaFw0wMzA4MjQxODUzMzlaMFQxDzANBgNVBAQTBkVnZ2VydDEN MAsGA1UEKhMETGFyczEUMBIGA1UEAxMLTGFycyBFZ2dlcnQxHDAaBgkqhkiG9w0BCQEWDWxh cnNlQGlzaS5lZHUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDSNka7eIIGkPyK zrA3jpth+P0eRUSC+iYw2N0rRGqIKda9t1ip4kNVY/fDbuVsZWmdyGptyXp+U+uh/Lu67TDa SuKgHgBqAbFXsla9fgkxXrr/psQoewbwScIS3ZtMw2qA09OWCmGWqrbE/hdvOhViUIN9V7X/ r0yi1Vax3LGn57XsmpdjRLewHMmWX47FS8Madi6t3MGH0UEaKO/8glc0ux7IDOo5mzuLWhDK OMgtq6Z1G1hFAg02gmIKQF8wJaIjZOxg4dMM9rOWUpx0bzUgTAIwpqTbUmB31xSNQDcK66xy CexIvN/lzd9j1mODj8zt4qMJ/VUfrzPvJTcfTl9vAgMBAAGjVjBUMCoGBStlAQQBBCEwHwIB ADAaMBgCAQQEE0wydU15ZmZCTlViTkpKY2RaMnMwGAYDVR0RBBEwD4ENbGFyc2VAaXNpLmVk dTAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBBAUAA4GBAF3KyJSpjyzP6/K96M9mSzy2k9QM jI2E2WNqqv0e0lLRWvQTZUyBYQxu/ECnyfZaNizM0z0KjGYDS5o/eRmzTyPD/DiKtiujHgmV s9PETmnJKkxT+sVmyBSH13AVUdXWZww8gygQYdOSpL8kz2sEkMjgVHjQX0FMjuExPt6OfFPF MYID1TCCA9ECAQEwgZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUx EjAQBgNVBAcTCUNhcGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZp Y2F0ZSBTZXJ2aWNlczEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4z MAIDCCVBMAkGBSsOAwIaBQCgggIPMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZI hvcNAQkFMQ8XDTAzMDIwNzAwMDcyNlowIwYJKoZIhvcNAQkEMRYEFF+mcOgCA+tJVTeg/ATQ 7bubVb5AMFIGCSqGSIb3DQEJDzFFMEMwCgYIKoZIhvcNAwcwDgYIKoZIhvcNAwICAgCAMA0G CCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMCAgEoMIGrBgkrBgEEAYI3EAQxgZ0w gZowgZIxCzAJBgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNh cGUgVG93bjEPMA0GA1UEChMGVGhhd3RlMR0wGwYDVQQLExRDZXJ0aWZpY2F0ZSBTZXJ2aWNl czEoMCYGA1UEAxMfUGVyc29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMAIDCCVBMIGtBgsq hkiG9w0BCRACCzGBnaCBmjCBkjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2Fw ZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQKEwZUaGF3dGUxHTAbBgNVBAsTFENlcnRp ZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJzb25hbCBGcmVlbWFpbCBSU0EgMjAwMC44 LjMwAgMIJUEwDQYJKoZIhvcNAQEBBQAEggEAu6gNPy3JAL68qoUh4jDpKjsE3geFdagsceRO FapntVPWGd9to7JtCSyO1FAXL4/SU76k9fycSKzvYH99N58mnMzzi0CW+q6zNsYYRmVG5QiT x4EUWcQyLBAk0jvTb07a8GKDvVOwfNueYO4rJ0J4fWBhw9hHURRHysq1sLyU4tak6wISMvNo chNdUu0jpD92NwLVvRxRt4ZDn2PiL6pX0i9EKoxbkPP3w+dyJdh/EY+oVWwdpRGs/8ChNaX/ nmNr7W+qp19ACIw+TjWXNS7uPioFtLlmZDInpbWgkaZFHUAa0ayk0CivUufEP0EjXCUnkdur irMaWB8s1iWkOoGOhQAAAAAAAA== --------------ms090501080305010101060706-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 16:28: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2B7937B401 for ; Thu, 6 Feb 2003 16:28:06 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F44643FBD for ; Thu, 6 Feb 2003 16:28:06 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h170S5P5056322 for ; Thu, 6 Feb 2003 16:28:05 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h170S5g9056320 for current@freebsd.org; Thu, 6 Feb 2003 16:28:05 -0800 (PST) Date: Thu, 6 Feb 2003 16:28:05 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302070028.h170S5g9056320@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Thu Feb 6 15:18:24 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Thu Feb 6 15:53:57 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Thu Feb 6 15:53:57 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4450: warning: duplicate script for target "geom_bsd.o" ignored /h/des/src/sys/dev/lmc/if_lmc.c:32:2: warning: #warning "The lmc driver is broken and is not compiled with LINT" /h/des/src/sys/dev/pdq/pdq.c: In function `pdq_initialize': /h/des/src/sys/dev/pdq/pdq.c:1606: warning: cast discards qualifiers from pointer target type /h/des/src/sys/pci/meteor.c:149:2: warning: #warning "The meteor driver is broken and is not compiled with LINT" /h/des/src/sys/pci/simos.c:30:2: warning: #warning "The simos driver is broken and is not compiled with LINT" /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_open': /h/des/src/sys/dev/gfb/gfb_pci.c:268: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:268: (Each undeclared identifier is reported only once /h/des/src/sys/dev/gfb/gfb_pci.c:268: for each function it appears in.) cc1: warnings being treated as errors /h/des/src/sys/dev/gfb/gfb_pci.c:275: warning: passing arg 1 of `genfbopen' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_close': /h/des/src/sys/dev/gfb/gfb_pci.c:284: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:285: warning: passing arg 1 of `genfbclose' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_read': /h/des/src/sys/dev/gfb/gfb_pci.c:293: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:294: warning: passing arg 1 of `genfbread' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_write': /h/des/src/sys/dev/gfb/gfb_pci.c:302: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:303: warning: passing arg 1 of `genfbwrite' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_ioctl': /h/des/src/sys/dev/gfb/gfb_pci.c:311: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:312: warning: passing arg 1 of `genfbioctl' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_mmap': /h/des/src/sys/dev/gfb/gfb_pci.c:320: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:321: warning: passing arg 1 of `genfbmmap' from incompatible pointer type *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 16:30: 2 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2AD637B401 for ; Thu, 6 Feb 2003 16:30:00 -0800 (PST) Received: from 3jane.math.ualberta.ca (3jane.math.ualberta.ca [129.128.206.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15B7043F93 for ; Thu, 6 Feb 2003 16:30:00 -0800 (PST) (envelope-from bvowk@math.ualberta.ca) Received: from 3jane.math.ualberta.ca (localhost.math.ualberta.ca [127.0.0.1]) by 3jane.math.ualberta.ca (8.12.6/8.12.6) with ESMTP id h170Sv8c067162 for ; Thu, 6 Feb 2003 17:28:57 -0700 (MST) (envelope-from bvowk@math.ualberta.ca) Received: from localhost (bvowk@localhost) by 3jane.math.ualberta.ca (8.12.6/8.12.6/Submit) with ESMTP id h170SvUV067159 for ; Thu, 6 Feb 2003 17:28:57 -0700 (MST) X-Authentication-Warning: 3jane.math.ualberta.ca: bvowk owned process doing -bs Date: Thu, 6 Feb 2003 17:28:57 -0700 (MST) From: Barkley Vowk To: freebsd-current@freebsd.org Subject: sshd + NIS = bad mojo? Message-ID: <20030206171429.G48482-100000@3jane.math.ualberta.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm upgrading my cluster to 5.0-R (fresh from CD), and everything works swimmingly except logging in as user on the YPmap. [3jane:~$] ssh ypuser@mcp Password: Connection to mcp.evil.mil closed by remote host. Connection to mcp.evil.mil closed. [3jane:~$] ssh user@mcp Password: However, I can su, finger and all files list the correct ownership on the system, leading me to believe that yp is actually working. When I check the logs, I see this message: Feb 6 17:09:32 MCP sshd[562]: fatal: login_get_lastlog: Cannot find account for uid 1002 Which I tracked to loginrec.c line 296: pw = getpwuid(uid); if (pw == NULL) fatal("login_get_lastlog: Cannot find account for uid %i", uid) And that looks idential to the working code on 4.6.2... So perhaps I've missed some configuration somewhere or there is something wrong with the library. Am I missing something? (I don't think so, the configuration is identical to the working 4.6.2 setup I was running until this afternoon) or is this a bug? ----------------------------------------------------------- Barkley C. Vowk -- Systems Analyst -- University of Alberta Math Sciences Department - Barkley.Vowk@math.ualberta.ca Office: CAB642A, 780-492-4064 Opinions expressed are the responsibility of the author and may not reflect the opinions of others or reality. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 16:33:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5537037B401 for ; Thu, 6 Feb 2003 16:33:38 -0800 (PST) Received: from sweb.uky.edu (sweb.uky.edu [128.163.2.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id E571843F75 for ; Thu, 6 Feb 2003 16:33:35 -0800 (PST) (envelope-from david@uky.edu) Received: from uky.edu (198-93-125-97.extended.qx.net [198.93.125.97]) (authenticated bits=0) by sweb.uky.edu (8.12.3/8.12.3) with ESMTP id h170WtEC020023 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NOT); Thu, 6 Feb 2003 19:32:58 -0500 (EST) (envelope-from david@uky.edu) Date: Thu, 6 Feb 2003 19:33:10 -0500 Subject: Re: rsync --daemon problems Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: FreeBSD users To: "Sean Winn" From: David Rhodus In-Reply-To: <007e01c2ce2f$8c403c80$f400a8c0@private.gothic.net.au> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday, February 6, 2003, at 05:31 PM, Sean Winn wrote: > What does netstat -na | grep 873 show? > On one machine that rsync start's on, I get this from netstat. tcp6 0 0 *.873 *.* LISTEN On another machine that it just dies and never seems to startup, I'm seeing this in ktrace. 839 rsync RET __getcwd 0 839 rsync CALL getsockopt(0,0xffff,0x1008,0xbfbffba0,0xbfbffba4) 839 rsync RET getsockopt -1 errno 38 Socket operation on non-socket 839 rsync CALL fork 839 rsync RET fork 840/0x348 839 rsync CALL exit(0) > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 16:50:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A82937B401 for ; Thu, 6 Feb 2003 16:50:17 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EF4543F3F for ; Thu, 6 Feb 2003 16:50:16 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h170o7P4061745; Thu, 6 Feb 2003 19:50:07 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Thu, 6 Feb 2003 19:50:06 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Barkley Vowk Cc: freebsd-current@freebsd.org Subject: Re: sshd + NIS = bad mojo? In-Reply-To: <20030206171429.G48482-100000@3jane.math.ualberta.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 6 Feb 2003, Barkley Vowk wrote: > I'm upgrading my cluster to 5.0-R (fresh from CD), and everything works > swimmingly except logging in as user on the YPmap. I have about six boxes at work using 5.0-CURRENT and 5.0-RELEASE with NIS accounts without any apparent problems. I did shoot my toes several times during the upgrade process, though. I think I ended up manually forcing rpcbind to be on as well as nisclient. If finger and so on are working, I'm not sure why you'd see this failure, though. Does "id username" return the correct grouplist? Does this machine have multiple network interfaces, or just one? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 17: 0:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCAC237B405 for ; Thu, 6 Feb 2003 17:00:48 -0800 (PST) Received: from goliath.uhlsystem.com.tw (goliath.uhlsystem.com.tw [211.22.128.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA35543FA3 for ; Thu, 6 Feb 2003 17:00:47 -0800 (PST) (envelope-from zzrocola1@hanmail.net) Received: from smtp0251.mail.yahoo.com (www.makasete-zakka.net [202.210.180.100]) by goliath.uhlsystem.com.tw with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id DYA6ZCQB; Fri, 7 Feb 2003 08:58:56 +0800 Date: Fri, 7 Feb 2003 00:59:50 GMT From: "Madaline" X-Priority: 3 To: freebsd-current@freebsd.org Subject: ¹®ÀÇ µå¸³´Ï´Ù. Mime-Version: 1.0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030207010047.AA35543FA3@mx1.FreeBSD.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG

    º¸ÁöÅÚ´åÄÄ

    BoziTel.com

    ¼ºÇö¾Æ ´©µå
    2ź !

    À¯¹Î Æ÷¸£³ë
    ¹«·á°ø°³


    ¼ö½Å°ÅºÎ¸¦ ¿øÇÏ½Ã¸é ¹æ¹®ÇϽþî ÃʱâÈ­¸é

    ÇÏ´Ü¿¡¼­ ¼ö½Å°ÅºÎ¸¦ ó¸®ÇØ ÁÖ¼¼¿ä!


    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 17: 9: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C04B437B401; Thu, 6 Feb 2003 17:08:58 -0800 (PST) Received: from fatpipi.cirx.org (fatpipi.cirx.org [211.23.144.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80D4D43F93; Thu, 6 Feb 2003 17:08:57 -0800 (PST) (envelope-from clive@tongi.org) Received: from fatpipi.cirx.org.rose (nullmail@localhost.cirx.org [127.0.0.1]) by fatpipi.cirx.org (8.12.6/8.12.6) with SMTP id h1718nLx049016; Fri, 7 Feb 2003 09:08:49 +0800 (CST) (envelope-from clive@tongi.org) Received: (nullmailer pid 49014 invoked by uid 1000); Fri, 07 Feb 2003 01:08:49 -0000 Date: Fri, 7 Feb 2003 09:08:48 +0800 From: Clive Lin To: David Malone Cc: Kris Kennaway , Fred Souza , current@freebsd.org, ume@freebsd.org Subject: Re: Linux networking emulation broken? Message-ID: <20030207010848.GA48438@fatpipi.cirx.org> References: <20030206162353.GA935@torment.storming.org> <20030206190021.GB17316@rot13.obsecurity.org> <20030206222826.GA15446@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030206222826.GA15446@walton.maths.tcd.ie> X-Operating-System: FreeBSD i386 X-PGP-key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA008C03E User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 06, 2003 at 10:28:26PM +0000, David Malone wrote: > On Thu, Feb 06, 2003 at 11:00:21AM -0800, Kris Kennaway wrote: > > I'm also seeing this with Linux Phoenix, though I haven't tcpdumped > > the output. > > I'm guessing the short patch at: > > http://www.maths.tcd.ie/~dwmalone/linux_sendmsg.patch > > should help. Can you try it and let me know? > > David. Hi, After playing around yp and the patch, I got a simple result: the application runs happily without yp configured, no matter the patch applied or not. I disable yp by simply hitting "domainname ''", and re-enable it by hitting "domainname mynisdomainname". The application mentioned above is winconnect (http://www.thinsoftinc.com/products_winconnect_info.html), a RDP 5.1 capable client for Linux. I think the yp ability inside linux emulator is somewhat broken. Some other interesting output: As normal user: > id clive uid=1000(clive) gid=1000(clive) groups=1000(clive), 0(wheel), 989(samba) > /compat/linux/bin/sh do_ypcall: clnt_call: RPC: Timed out [hangs for a moment here] sh-2.04$ whoami do_ypcall: clnt_call: RPC: Timed out [hangs for a moment here] whoami: cannot find username for UID 1000 As root: > sudo su - # id clive uid=1000(clive) gid=1000(clive) groups=1000(clive), 0(wheel), 989(samba) # /compat/linux/bin/sh sh-2.04# id uid=0(root) gid=0(wheel) groups=0(wheel),5(operator) sh-2.04# id clive do_ypcall: clnt_call: RPC: Timed out [hangs for a moment here] id: clive: No such user sh-2.04# To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 18: 8:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7309837B401; Thu, 6 Feb 2003 18:08:09 -0800 (PST) Received: from cheer.mahoroba.org (flets20-242.kamome.or.jp [218.45.20.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id A13D443FB1; Thu, 6 Feb 2003 18:08:02 -0800 (PST) (envelope-from ume@mahoroba.org) Received: from lyrics.mahoroba.org (IDENT:Pv3vTwgPDmNa+Kk/plCGdA8ZvcK5Q48K@L025161.ppp.dion.ne.jp [211.126.25.161]) (user=ume mech=CRAM-MD5 bits=0) by cheer.mahoroba.org (8.12.7/8.12.7) with ESMTP/inet id h1727kCQ063215 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 7 Feb 2003 11:07:51 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Fri, 07 Feb 2003 11:04:15 +0900 Message-ID: From: Hajimu UMEMOTO To: David Malone Cc: Kris Kennaway , Fred Souza , current@freebsd.org, ume@freebsd.org, clive@tongi.org Subject: Re: Linux networking emulation broken? In-Reply-To: <20030206222826.GA15446@walton.maths.tcd.ie> References: <20030206162353.GA935@torment.storming.org> <20030206190021.GB17316@rot13.obsecurity.org> <20030206222826.GA15446@walton.maths.tcd.ie> User-Agent: xcite1.38> Wanderlust/2.11.0 (Wonderwall) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.4 Emacs/21.2 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 5.0-CURRENT MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-1.8 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT version=2.44 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, >>>>> On Thu, 6 Feb 2003 22:28:26 +0000 >>>>> David Malone said: dwmalone> On Thu, Feb 06, 2003 at 11:00:21AM -0800, Kris Kennaway wrote: > I'm also seeing this with Linux Phoenix, though I haven't tcpdumped > the output. dwmalone> I'm guessing the short patch at: dwmalone> http://www.maths.tcd.ie/~dwmalone/linux_sendmsg.patch dwmalone> should help. Can you try it and let me know? Oops, thanks! Though I cannot test it for now, it seems correct to me. However, I think that where bsd_args.msg = (caddr_t)((nmsg == NULL) ? linux_args.msg : nmsg); it is sufficient to just substitute nmsg for bsd_args.msg: bsd_args.msg = (caddr_t) nmsg; Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 19:14:26 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AD1337B401 for ; Thu, 6 Feb 2003 19:14:25 -0800 (PST) Received: from nycsmtp2out.rdc-nyc.rr.com (nycsmtp2out.rdc-nyc.rr.com [24.29.99.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7772C43F75 for ; Thu, 6 Feb 2003 19:14:24 -0800 (PST) (envelope-from dong@plan9.bell-labs.com) Received: from plan9.bell-labs.com (24-90-169-7.nj.rr.com [24.90.169.7]) by nycsmtp2out.rdc-nyc.rr.com (8.12.1/Road Runner SMTP Server 1.0) with ESMTP id h1738xUK007056 for ; Thu, 6 Feb 2003 22:08:59 -0500 (EST) Message-ID: <3E43248F.2030303@plan9.bell-labs.com> Date: Thu, 06 Feb 2003 22:14:23 -0500 From: Dong Lin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20030104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@FreeBSD.ORG Subject: ATA code is buggy and slower Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG My 5.0R kernel complains about "READ timeout" and "resetting" when I try to dd the disk. But everything *works* if I boot the same equipment with 4.5R and 4.7R. It seems that the error can occur on any sector I pick as long as I keep reading it inside a loop, a sign of timing problems. The 5.0 ATA code is so different that I am not sure where to start. If someone can show me a way to run the 4.7 ATA code under 5.0, I am willing to debug it. My equipment: Promise ATA66 controller(0x4d38105a r01), WDC WD400BB ATA/100, ATA66 cable. Also, my simple dd measurements show that performance is going down: dd if=/dev/ad4 of=/dev/null bs=8m 4.5R: 49 MB/s 4.7R: 39 MB/s 5.0R: does not finish To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 19:23:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D6E037B401 for ; Thu, 6 Feb 2003 19:23:13 -0800 (PST) Received: from storming.org (MG034063.user.veloxzone.com.br [200.165.34.63]) by mx1.FreeBSD.org (Postfix) with SMTP id 90AFA43F85 for ; Thu, 6 Feb 2003 19:23:01 -0800 (PST) (envelope-from fred@storming.org) Received: (qmail 58576 invoked by uid 1000); 7 Feb 2003 01:22:53 -0200 Date: Fri, 7 Feb 2003 01:22:53 -0200 From: Fred Souza To: Eric Anholt Cc: current@FreeBSD.ORG Subject: Re: X compilation problems Message-ID: <20030207032253.GA58203@torment.storming.org> Reply-To: fred@storming.org References: <20030206105336.GA35493@torment.storming.org> <1044560635.685.1.camel@leguin> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <1044560635.685.1.camel@leguin> X-Sender: fred@storming.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > ago.) Has anyone seen this? How do I fix it? >=20 > Please remove your nonstandard CFLAGS and try again. Yes, that was the problem. Thank you :-) Fred --=20 "The first marriage is the triumph of imagination over intelligence, and the second the triumph of hope over experience." --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+QyaNKbRS1GgW4fYRAhApAJ4okRVaY9pEv2otqOmPdxZJBcRdXwCfTSUf 0I/Nqxn7A0i+76+MyvwD+q4= =FmcG -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 20:29:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCBE737B401 for ; Thu, 6 Feb 2003 20:29:26 -0800 (PST) Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7138D43FA3 for ; Thu, 6 Feb 2003 20:29:18 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from [127.0.0.1] (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.4/8.12.6) with ESMTP id h173jhJF058961; Fri, 7 Feb 2003 14:15:44 +1030 (CST) (envelope-from doconnor@gsoft.com.au) X-Authentication-Warning: cain.gsoft.com.au: Host localhost [127.0.0.1] claimed to be [127.0.0.1] Subject: Re: ATA code is buggy and slower From: "Daniel O'Connor" To: Dong Lin Cc: current@FreeBSD.ORG In-Reply-To: <3E43248F.2030303@plan9.bell-labs.com> References: <3E43248F.2030303@plan9.bell-labs.com> Content-Type: text/plain Organization: Message-Id: <1044589542.7212.5.camel@chowder.gsoft.com.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 07 Feb 2003 14:15:43 +1030 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.3 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02 X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 2003-02-07 at 13:44, Dong Lin wrote: > My 5.0R kernel complains about "READ timeout" and "resetting" when I try > to dd the disk. But everything *works* if I boot the same equipment with > 4.5R and 4.7R. It seems that the error can occur on any sector I pick as > long as I keep reading it inside a loop, a sign of timing problems. > > The 5.0 ATA code is so different that I am not sure where to start. If > someone can show me a way to run the 4.7 ATA code under 5.0, I am > willing to debug it. > > My equipment: Promise ATA66 controller(0x4d38105a r01), WDC WD400BB > ATA/100, ATA66 cable. > > Also, my simple dd measurements show that performance is going down: > > dd if=/dev/ad4 of=/dev/null bs=8m > 4.5R: 49 MB/s > 4.7R: 39 MB/s > 5.0R: does not finish You might get more help if you sent a more complete problem description.. eg dmesg output for a start. I'm pretty sure the 5.x code is almost identical to the 4.x stuff bar extra locking calls. My Quantum fireball drive gets 35Mb/sec under both 4.5 and 4.7.. I have a WD800BB on a 4.7 box and it does 48.7 Mb/sec. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 20:53:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D49C537B401; Thu, 6 Feb 2003 20:53:17 -0800 (PST) Received: from hub.org (hub.org [64.49.215.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CD5F43F85; Thu, 6 Feb 2003 20:53:17 -0800 (PST) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [64.49.215.141]) by hub.org (Postfix) with ESMTP id 14BB18A2347; Fri, 7 Feb 2003 00:53:09 -0400 (AST) Date: Fri, 7 Feb 2003 00:53:08 -0400 (AST) From: "Marc G. Fournier" To: John Baldwin Cc: James Schmidt , "" , "" , Victor Ponomarev Subject: Re: se7500+dual xeon? In-Reply-To: Message-ID: <20030207004431.P63349@hub.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 6 Feb 2003, John Baldwin wrote: > His board is a WV2, not a CW2. The WV2's should work fine though they > might need a BIOS update. I can verify the WV2's ... just built a server with one of these .. can't verify the BIOS issue, as it was upgraded before I got the machine, but have been most impressd with both the server and the chassis ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 21: 4:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD5BE37B401 for ; Thu, 6 Feb 2003 21:04:48 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ACBC43F3F for ; Thu, 6 Feb 2003 21:04:48 -0800 (PST) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 65AC9AE27F; Thu, 6 Feb 2003 21:04:48 -0800 (PST) Date: Thu, 6 Feb 2003 21:04:48 -0800 From: Paul Saab To: current@freebsd.org Subject: users of the ida driver Message-ID: <20030207050448.GA47440@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Can someone please test for me if the following patch gets crashdumps working on the ida driver under -current? http://people.freebsd.org/~ps/ida.diff recompile and all that jazz break into DDB and type 'call doadump' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 22:43:24 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8139337B401 for ; Thu, 6 Feb 2003 22:43:23 -0800 (PST) Received: from nebula.wanadoo.fr (ca-sqy-2-230.abo.wanadoo.fr [80.8.55.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFFD543FD7 for ; Thu, 6 Feb 2003 22:43:21 -0800 (PST) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost.wanadoo.fr [127.0.0.1]) by nebula.wanadoo.fr (8.12.6/8.12.6) with ESMTP id h176gdlj000712 for ; Fri, 7 Feb 2003 07:42:41 +0100 (CET) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.6/8.12.6/Submit) id h176gcWa000711 for current@freebsd.org; Fri, 7 Feb 2003 07:42:38 +0100 (CET) Date: Fri, 7 Feb 2003 07:42:36 +0100 From: Aurelien Nephtali To: current@freebsd.org Subject: Disk problems (buffers unsynced) Message-ID: <20030207064236.GA545@nebula.wanadoo.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, For about two weeks now, each time I halt my computer, all the buffers are not synced (sometimes they are 1, 2 or 5). Moreover, when I compile my custom kernel, at the linking stage ("linking kernel.debug") I got ENOMEM at 0xadress(ad0s1g) (ad0s1g is my /usr slice) ( a time I even got a panic with XXX: free mem at bad place or something like that) Any ideas ? --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Q1VcDNsbHbt8ok8RAuLJAKCgZc3gW5dBdnejqsh1FceCs0xyEwCdFRMe GJU49Lwm1LLFaeaRHzSjodU= =k0VM -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 23:20:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6288A37B405 for ; Thu, 6 Feb 2003 23:20:13 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id F382D43FAF for ; Thu, 6 Feb 2003 23:20:11 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id h177K9dG030735; Fri, 7 Feb 2003 08:20:09 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200302070720.h177K9dG030735@spider.deepcore.dk> Subject: Re: ATA code is buggy and slower In-Reply-To: <3E43248F.2030303@plan9.bell-labs.com> To: Dong Lin Date: Fri, 7 Feb 2003 08:20:09 +0100 (CET) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems Dong Lin wrote: > > My 5.0R kernel complains about "READ timeout" and "resetting" when I try > to dd the disk. But everything *works* if I boot the same equipment with > 4.5R and 4.7R. It seems that the error can occur on any sector I pick as > long as I keep reading it inside a loop, a sign of timing problems. > > The 5.0 ATA code is so different that I am not sure where to start. If > someone can show me a way to run the 4.7 ATA code under 5.0, I am > willing to debug it. > > My equipment: Promise ATA66 controller(0x4d38105a r01), WDC WD400BB > ATA/100, ATA66 cable. > > Also, my simple dd measurements show that performance is going down: > > dd if=/dev/ad4 of=/dev/null bs=8m > 4.5R: 49 MB/s > 4.7R: 39 MB/s > 5.0R: does not finish Grap the ATA driver (sys/dev/ata) from -currrent, there is a bug in the 48bit support code for old promises thats not fixed in 5.0. -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu Feb 6 23:48:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B3A937B401 for ; Thu, 6 Feb 2003 23:48:39 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id EC4A043FF2 for ; Thu, 6 Feb 2003 23:48:37 -0800 (PST) (envelope-from freecynik@gmx.net) Received: (qmail 14530 invoked by uid 0); 7 Feb 2003 07:48:34 -0000 Received: from YahooBB218123096097.bbtec.net (HELO princess.wokonet.jp) (218.123.96.97) by mail.gmx.net (mp014-rz3) with SMTP; 7 Feb 2003 07:48:34 -0000 Date: Fri, 7 Feb 2003 16:48:27 +0900 From: Cyril Niklaus To: freebsd-current@FreeBSD.ORG Subject: xunpcb size mismatch Message-Id: <20030207164827.5c8ae4d0.freecynik@gmx.net> In-Reply-To: <20030203223137.0825A5D04@ptavv.es.net> References: <20030202.065732.108375307.imp@bsdimp.com> <20030203223137.0825A5D04@ptavv.es.net> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I've just cvsup'd and when booting I have this warning that I do not understand uname -a FreeBSD princess.wokonet.jp 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Fri Feb 7 14:40:51 JST 2003 cyril@princess.wokonet.jp:/usr/obj/usr/src/sys/KERNEL2 i386 and the message is : sockstat: struct xunpcb size mismatch. What causes this? Google comes with nothing really. Thanks Cyril To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 0:30:12 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 617E137B401 for ; Fri, 7 Feb 2003 00:30:09 -0800 (PST) Received: from skywalker.creative.net.au (skywalker.creative.net.au [203.56.168.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 3D02F43FBD for ; Fri, 7 Feb 2003 00:30:08 -0800 (PST) (envelope-from freebsd@skywalker.creative.net.au) Received: (qmail 86702 invoked by uid 1008); 7 Feb 2003 08:30:07 -0000 Date: Fri, 7 Feb 2003 16:30:07 +0800 From: Adrian Chadd To: freebsd-current@freebsd.org Subject: [adrian@freebsd.org: adduser change: telling you when a group isn't there] Message-ID: <20030207083007.GD84685@skywalker.creative.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Oops. I should have sent this to -current :-P adrian ----- Forwarded message from Adrian Chadd ----- Date: Fri, 7 Feb 2003 16:10:56 +0800 From: Adrian Chadd To: freebsd-hackers@freebsd.org Subject: adduser change: telling you when a group isn't there User-Agent: Mutt/1.4i Hi, The adduser in -current doesn't check if a specified group exists until the call to pw right at the end. eep. My sh foo isn't terribly great, but this did it for me. Comments/rewrites are welcome. I'll commit the group consensus. Adrian diff: --- /usr/src/usr.sbin/adduser/adduser.sh Fri Jan 24 02:05:51 2003 +++ adduser.sh Fri Feb 7 08:04:15 2003 @@ -47,6 +47,16 @@ fi } +# Check whether the given group exists +check_group() { + ${PWCMD} show group $1 1> /dev/null 2> /dev/null + if [ "$?" = "0" ]; then + echo "1" + return + fi + echo "0" +} + # get_nextuid # Output the value of $_uid if it is available for use. If it # is not, output the value of the next higher uid that is available. @@ -570,8 +580,31 @@ get_user get_gecos get_uid - get_logingroup - get_groups + ok="NO" + + # The code creates a group = $user if one doesn't exist. + # We are just going to capture other non-existant groups! + while [ "$ok" = "NO" ] ; do + ok="YES" + get_logingroup + if [ "$ulogingroup" != "" -a "$username" != "$ulogingroup" -a "`check_group $ulogingroup`" = "0" ]; then + echo "Group $ulogingroup does not exist!" + ok="NO" + fi + done + + ok="NO" + while [ "$ok" = "NO" ] ; do + ok="YES" + get_groups + for i in $ugroups; do + if [ "$username" != "$i" -a "`check_group $i`" = "0" ]; then + echo "Group $i does not exist!" + ok="NO" + fi + done + done + get_class get_shell get_homedir ----- End forwarded message ----- -- Adrian Chadd learning is bad it just makes the people around you dumber (angryskul == alfred@irc) :( To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 1: 2:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AABC037B401 for ; Fri, 7 Feb 2003 01:02:27 -0800 (PST) Received: from smtp.estcard.ee (smtp.estcard.ee [194.204.11.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF93943FD7 for ; Fri, 7 Feb 2003 01:02:25 -0800 (PST) (envelope-from vallo@estcard.ee) Received: from myhakas.internal (myhakas.internal [192.168.10.128]) by smtp.estcard.ee (8.9.3/8.9.3) with ESMTP id LAA48926 for ; Fri, 7 Feb 2003 11:02:22 +0200 (EET) (envelope-from vallo@estcard.ee) Received: from myhakas.internal (localhost [127.0.0.1]) by myhakas.internal (8.12.6/8.12.6) with ESMTP id h1792MUx004823 for ; Fri, 7 Feb 2003 11:02:22 +0200 (EET) (envelope-from vallo@myhakas.internal) Received: (from vallo@localhost) by myhakas.internal (8.12.6/8.12.6/Submit) id h1792LIB004822 for freebsd-current@freebsd.org; Fri, 7 Feb 2003 11:02:21 +0200 (EET) (envelope-from vallo) Date: Fri, 7 Feb 2003 11:02:21 +0200 From: Vallo Kallaste To: freebsd-current@freebsd.org Subject: Re: tired of crashes Message-ID: <20030207090221.GA4691@myhakas.internal> Reply-To: kalts@estpak.ee References: <20030205094744.GA949@myhakas.internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030205094744.GA949@myhakas.internal> User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 11:47:44AM +0200, Vallo Kallaste wrote: > accumulated filesystem corruption. This is on UFS2 filesystem, > haven't tried UFS1 yet. World and kernel are from January 21, PIII > SMP system. I'll provide any info one needs to track the cause, > needless to say I'm _really_ tired of it. So far I've been unable to reproduce it after update to Feb 5 world and kernel. I'll try to beat it for some more days before considering it gone. -- Vallo Kallaste kalts@estpak.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 1:51:12 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50C4737B401; Fri, 7 Feb 2003 01:51:10 -0800 (PST) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [133.11.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 060F143FBF; Fri, 7 Feb 2003 01:51:04 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is2.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id CF12E3780E9; Fri, 7 Feb 2003 18:50:57 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is2.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h179ovR17054; Fri, 7 Feb 2003 18:50:57 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHU90016; Fri, 7 Feb 2003 18:50:56 +0900 (JST) Date: Fri, 07 Feb 2003 18:50:56 +0900 Message-ID: From: Hidetoshi Shimokawa To: Michael Reifenberger Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & 2 external FW-disks In-Reply-To: <20030206120437.W683@nihil.reifenberger.com> References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> <20030202112833.M8458@Reifenberger.com> <20030205110746.T2445@nihil.reifenberger.com> <20030206120437.W683@nihil.reifenberger.com> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Thu, 6 Feb 2003 12:15:38 +0100 (CET), Michael Reifenberger wrote: > > On Wed, 5 Feb 2003, Michael Reifenberger wrote: > ... > > > I have improved recovery code after timeout in -current. > > > Could you try that? > > > > Is scheduled for this evening. > > Thanks so far! > > > ... > > > > > - fwcontorl -g 20 > > > > > - sysctl hw.firewire.sbp.max_speed=0 > > > > > - change SBP_QUEUE_LEN in sbp.c to 1 and rebuld module. > > > > > - sysctl machdep.cpu_idle_hlt=0 > > > > > - sysctl debug.sbp_debug=1 and send me a dmesg. > > Ok, I did some extensive tests overnight. > Essentially I still had `fwcontorl -g 20` and > SBP_QUEUE_LEN=1 and maxopenings=1 and `debug.sbp_debug=1`. > hw.firewire.sbp.max_speed started at 0 and got 2 at the end. > After treating two `iozone -s 51200m -r1024k` on the platters > overnight without problems I started with a plain sbp.c and > no `fwcontorl -g 20`. I get constant rates of 13MB/s on each disk. > No problems so far. > Seems you got it. Thanks! Do you have any timeout while the test? I think SBP_QUEUE_LEN or maxopenings is the important parameter. Can you try to change thoes values? > BTW: switching on debug.firewire_debug gives zillions of 'kick'... > Is this just a notification about the code-path? Yes, but it doesn't seem necessary anymore, removed. Thanks, /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 1:56:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2E6C37B401; Fri, 7 Feb 2003 01:56:58 -0800 (PST) Received: from mike.reifenberger.com (pD9E50AE8.dip.t-dialin.net [217.229.10.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53CCF43FCB; Fri, 7 Feb 2003 01:56:56 -0800 (PST) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (nihil [10.0.0.2]) by mike.reifenberger.com (8.12.6/8.12.6) with ESMTP id h179uh9O061980; Fri, 7 Feb 2003 10:56:45 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (localhost.reifenberger.com [127.0.0.1]) by nihil.reifenberger.com (8.12.6/8.12.6) with ESMTP id h179uYrJ002930; Fri, 7 Feb 2003 10:56:34 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from localhost (root@localhost) by nihil.reifenberger.com (8.12.6/8.12.6/Submit) with ESMTP id h179uXnh002927; Fri, 7 Feb 2003 10:56:33 +0100 (CET) Date: Fri, 7 Feb 2003 10:56:33 +0100 (CET) From: Michael Reifenberger To: Hidetoshi Shimokawa Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & 2 external FW-disks In-Reply-To: Message-ID: <20030207105338.O2514@nihil.reifenberger.com> References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> <20030202112833.M8458@Reifenberger.com> <20030205110746.T2445@nihil.reifenberger.com> <20030206120437.W683@nihil.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-1.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 7 Feb 2003, Hidetoshi Shimokawa wrote: ... > Do you have any timeout while the test? No. Not any longer. > I think SBP_QUEUE_LEN or maxopenings is the important parameter. > Can you try to change thoes values? > The are at their defaults at the moment. Do you want me to increase them? Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 2:10:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D72737B401 for ; Fri, 7 Feb 2003 02:10:47 -0800 (PST) Received: from mike.reifenberger.com (pD9E50AE8.dip.t-dialin.net [217.229.10.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A09143FAF for ; Fri, 7 Feb 2003 02:10:44 -0800 (PST) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (nihil [10.0.0.2]) by mike.reifenberger.com (8.12.6/8.12.6) with ESMTP id h17AAU9O062033 for ; Fri, 7 Feb 2003 11:10:30 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (localhost.reifenberger.com [127.0.0.1]) by nihil.reifenberger.com (8.12.6/8.12.6) with ESMTP id h17AALrJ003001 for ; Fri, 7 Feb 2003 11:10:21 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from localhost (root@localhost) by nihil.reifenberger.com (8.12.6/8.12.6/Submit) with ESMTP id h17AALKR002998 for ; Fri, 7 Feb 2003 11:10:21 +0100 (CET) Date: Fri, 7 Feb 2003 11:10:21 +0100 (CET) From: Michael Reifenberger To: FreeBSD-Current Subject: vinum start & -current doesn't work as expected Message-ID: <20030207105857.T2514@nihil.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=0.8 required=5.0 tests=SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, me using -current as of today. I have two firewire disks as: ... da0 at sbp0 bus 0 target 0 lun 0 da0: Fixed Simplified Direct Access SCSI-4 device da0: 50.000MB/s transfers da0: 194481MB (398297088 512 byte sectors: 255H 63S/T 24792C) da1 at sbp0 bus 0 target 1 lun 0 da1: Fixed Simplified Direct Access SCSI-4 device da1: 50.000MB/s transfers da1: 194481MB (398297088 512 byte sectors: 255H 63S/T 24792C) ... They are partitioned as follows: # /dev/da0s1c: type: unknown disk: amnesiac label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 24792 sectors/unit: 398297025 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 398296962 63 vinum # (Cyl. 0*- 24792*) c: 398297025 0 unused 0 0 # (Cyl. 0 - 24792*) I used the following config-file for `vinum create`: drive d0 device /dev/da0s1a drive d1 device /dev/da1s1a volume ablage setupstate plex name ablage.p0 org concat sd name ablage.p0.s0 drive d0 size 0b plex name ablage.p1 org concat sd name ablage.p1.s0 drive d1 size 0b After reboot, a `vinum start` gives me: ** no drives found: No such file or directory A `vinum read /dev/da0s1 /dev/da1s1` does work. Any problems known that da0 and da1 are not seen during `vinum start`? Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 2:13:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7FD337B401; Fri, 7 Feb 2003 02:13:42 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1F2D43FB1; Fri, 7 Feb 2003 02:13:41 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 5C8F3218104; Fri, 7 Feb 2003 19:13:40 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h17ADec08410; Fri, 7 Feb 2003 19:13:40 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHU90354; Fri, 7 Feb 2003 19:13:39 +0900 (JST) Date: Fri, 07 Feb 2003 19:13:39 +0900 Message-ID: From: Hidetoshi Shimokawa To: Michael Reifenberger Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & 2 external FW-disks In-Reply-To: <20030207105338.O2514@nihil.reifenberger.com> References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> <20030202112833.M8458@Reifenberger.com> <20030205110746.T2445@nihil.reifenberger.com> <20030206120437.W683@nihil.reifenberger.com> <20030207105338.O2514@nihil.reifenberger.com> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Fri, 7 Feb 2003 10:56:33 +0100 (CET), Michael Reifenberger wrote: > > On Fri, 7 Feb 2003, Hidetoshi Shimokawa wrote: > > ... > > Do you have any timeout while the test? > No. Not any longer. > > I think SBP_QUEUE_LEN or maxopenings is the important parameter. > > Can you try to change thoes values? > > > The are at their defaults at the moment. > Do you want me to increase them? hmm, I had changed the process AFTER timeout and I suppose I don't change the behavior BEFORE timeout... Anyway it works :-) If you have any problem later, please let me know. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 2:37:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3183737B401; Fri, 7 Feb 2003 02:37:45 -0800 (PST) Received: from melusine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [62.212.105.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4720C43FDD; Fri, 7 Feb 2003 02:37:44 -0800 (PST) (envelope-from thomas@FreeBSD.ORG) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id A2B552C3D2; Fri, 7 Feb 2003 11:37:42 +0100 (CET) Date: Fri, 7 Feb 2003 11:37:42 +0100 From: Thomas Quinot To: Tim Robbins Cc: CHOI Junho , current@FreeBSD.ORG, roberto@freebsd.org Subject: Re: 5.0 cron problem Message-ID: <20030207103742.GA61102@melusine.cuivre.fr.eu.org> Reply-To: Thomas Quinot References: <20030205.175730.55903839.cjh@kr.FreeBSD.org> <20030205204250.A12276@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030205204250.A12276@dilbert.robbins.dropbear.id.au> User-Agent: Mutt/1.4i X-message-flag: WARNING! Using Outlook can damage your computer. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Le 2003-02-05, Tim Robbins écrivait : > Since revision 1.11 of src/usr.sbin/cron/lib/env.c, you need to put the > value of the environment variable inside quotes if it contains any spaces. > I suspect that this change of behaviour was unintentional given that the > implementation differs from the manual page. I'll investigate and fix > it if it's a bug. In the mean time, use something like this instead: > CVSUP="/usr/local/bin/cvsup -g -L2 -h localhost" Right, the according to the man page inner whitespace in the unquoted right-hand part of an environment variable assignment should be preserved. Please try the following patch: Index: lib/env.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/cron/lib/env.c,v retrieving revision 1.11 diff -u -r1.11 env.c --- lib/env.c 23 May 2002 13:16:30 -0000 1.11 +++ lib/env.c 7 Feb 2003 10:34:48 -0000 @@ -193,14 +193,16 @@ break; } } else { - if (isspace (*c)) { - state++; - c++; - break; - } - if (state == NAME && *c == '=') { - state++; - break; + if (state == NAME) { + if (isspace (*c)) { + c++; + state++; + break; + } + if (*c == '=') { + state++; + break; + } } } *str++ = *c++; @@ -232,9 +234,14 @@ Set_LineNum(fileline); return (FALSE); } + if (state == VALUE) { + /* End of unquoted value: trim trailing whitespace */ + c = val + strlen (val); + while (c > val && isspace (*(c - 1))) + *(--c) = '\0'; + } - /* 2 fields from parser; looks like an env setting - */ + /* 2 fields from parser; looks like an env setting */ if (strlen(name) + 1 + strlen(val) >= MAX_ENVSTR-1) return (FALSE); -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 2:43:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0724037B401; Fri, 7 Feb 2003 02:43:15 -0800 (PST) Received: from daemon.kr.FreeBSD.org (daemon.kr.freebsd.org [211.176.62.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14D2243F3F; Fri, 7 Feb 2003 02:43:14 -0800 (PST) (envelope-from cjh@kr.FreeBSD.org) Received: from gradius.wdb.co.kr (daemon [211.176.62.31]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id B58C88F646; Fri, 7 Feb 2003 19:43:08 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by gradius.wdb.co.kr (8.12.6/8.12.6) with ESMTP id h17Ah5ua004037; Fri, 7 Feb 2003 19:43:05 +0900 (KST) (envelope-from cjh@kr.FreeBSD.org) Date: Fri, 07 Feb 2003 19:43:04 +0900 (KST) Message-Id: <20030207.194304.39156547.cjh@kr.FreeBSD.org> To: thomas@FreeBSD.ORG Cc: tjr@FreeBSD.ORG, current@FreeBSD.ORG, roberto@FreeBSD.ORG Subject: Re: 5.0 cron problem From: CHOI Junho In-Reply-To: <20030207103742.GA61102@melusine.cuivre.fr.eu.org> References: <20030205.175730.55903839.cjh@kr.FreeBSD.org> <20030205204250.A12276@dilbert.robbins.dropbear.id.au> <20030207103742.GA61102@melusine.cuivre.fr.eu.org> Organization: Korea FreeBSD Users Group X-URL: http://www.kr.FreeBSD.org/~cjh X-Mailer: Mew version 3.1.51 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I tried it to 5.0-RELEASE. It works with my previous crontab file. From: Thomas Quinot Subject: Re: 5.0 cron problem Date: Fri, 7 Feb 2003 11:37:42 +0100 > Right, the according to the man page inner whitespace in the unquoted > right-hand part of an environment variable assignment should be preserved. > Please try the following patch: > > Index: lib/env.c > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/cron/lib/env.c,v > retrieving revision 1.11 > diff -u -r1.11 env.c > --- lib/env.c 23 May 2002 13:16:30 -0000 1.11 > +++ lib/env.c 7 Feb 2003 10:34:48 -0000 > @@ -193,14 +193,16 @@ > break; > } > } else { > - if (isspace (*c)) { > - state++; > - c++; > - break; > - } > - if (state == NAME && *c == '=') { > - state++; > - break; > + if (state == NAME) { > + if (isspace (*c)) { > + c++; > + state++; > + break; > + } > + if (*c == '=') { > + state++; > + break; > + } > } > } > *str++ = *c++; > @@ -232,9 +234,14 @@ > Set_LineNum(fileline); > return (FALSE); > } > + if (state == VALUE) { > + /* End of unquoted value: trim trailing whitespace */ > + c = val + strlen (val); > + while (c > val && isspace (*(c - 1))) > + *(--c) = '\0'; > + } > > - /* 2 fields from parser; looks like an env setting > - */ > + /* 2 fields from parser; looks like an env setting */ > > if (strlen(name) + 1 + strlen(val) >= MAX_ENVSTR-1) > return (FALSE); > > -- > Thomas.Quinot@Cuivre.FR.EU.ORG -- CHOI Junho KFUG FreeBSD Project Web Data Bank Key fingerprint = 1369 7374 A45F F41A F3C0 07E3 4A01 C020 E602 60F5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 3:13:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3873837B401; Fri, 7 Feb 2003 03:13:49 -0800 (PST) Received: from mike.reifenberger.com (pD9E50AE8.dip.t-dialin.net [217.229.10.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24F5143FA3; Fri, 7 Feb 2003 03:13:47 -0800 (PST) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (nihil [10.0.0.2]) by mike.reifenberger.com (8.12.6/8.12.6) with ESMTP id h17BDe9O062178; Fri, 7 Feb 2003 12:13:42 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (localhost.reifenberger.com [127.0.0.1]) by nihil.reifenberger.com (8.12.6/8.12.6) with ESMTP id h17BDVnR000706; Fri, 7 Feb 2003 12:13:31 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from localhost (root@localhost) by nihil.reifenberger.com (8.12.6/8.12.6/Submit) with ESMTP id h17BDP9c000703; Fri, 7 Feb 2003 12:13:27 +0100 (CET) Date: Fri, 7 Feb 2003 12:13:25 +0100 (CET) From: Michael Reifenberger To: Hidetoshi Shimokawa Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & EPSON scanner In-Reply-To: <20030207105338.O2514@nihil.reifenberger.com> Message-ID: <20030207120752.Q685@nihil.reifenberger.com> References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> <20030202112833.M8458@Reifenberger.com> <20030205110746.T2445@nihil.reifenberger.com> <20030206120437.W683@nihil.reifenberger.com> <20030207105338.O2514@nihil.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-0.5 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, next phenomen :-) I have an 'Epson perfection 2450 Photo' scanner which gets found using firewire as: pass0 at sbp0 bus 0 target 0 lun 0 pass0: Fixed Processor SCSI-4 device pass0: 50.000MB/s transfers and xsane gives during startup: ... [epson] Requesting extended status [epson] No error [epson] Checking for ADF: (00) [epson] Checking for TPU: (80) [epson] Device name = GT-9700 ... epson:/dev/pass0 unfortunetely no scan does work. Somthing like ...illegal argument... But no sbp debug messages. xsane and the scanned does work fine however when using USB. Do you have a clue what could get wrong? Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 3:26:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0601737B401 for ; Fri, 7 Feb 2003 03:26:09 -0800 (PST) Received: from soul-patrol.com (ool-182edf5c.dyn.optonline.net [24.46.223.92]) by mx1.FreeBSD.org (Postfix) with SMTP id BACB143F75 for ; Fri, 7 Feb 2003 03:25:51 -0800 (PST) (envelope-from newsletter@soul-patrol.com) From: "Soul-Patrol Newsletter" To: Subject: Your Free Soul-Patrol Newsletter Mime-Version: 1.0 Content-Type: text/html; charset="ISO-8859-1" Date: Fri, 7 Feb 2003 06:27:25 -0500 Reply-To: "Soul-Patrol Newsletter" X-Priority: 1 (Highest) Content-Transfer-Encoding: 8bit Message-Id: <20030207112551.BACB143F75@mx1.FreeBSD.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Soul-Patrol Newsletter # 4: Black History Month, Soul, Jazz, Slow Jams, Black Rock, Funk, Doo Wop, Neo Soul, Tom Joyner, Jazzhole, Victor Wooten, Harptones, Michael B Sutton, Soul-Patrol Newsletter


    Issue #4 Click Here to Subscribe/Unsubscribe For Your Free Bi-Monthly Issue!
      Soul-Patrol.Com || Soul-Patrol.Net Radio || Monthly Soul-Patrol Digest Magazine || About Soul-Patrol

    Black History Month

    Table of Contents

    1. CD Review - Jazzhole: 'Circle Of the Sun' 
    2. CD Review: Floetry's Floetic

    3. Commentary - I have a few issues with Tom Joyner (part 1)
    4. Concert Review - Victor Wooten at the Knitting Factory 1/21/2003
    5. Competition in Radio and Concert Industries Act: Good News For Artists and Consumers (Bad News For Clear Channel, Joyner, Hughes and other KNEE-GRO Radio Station Operators)

    6. Soul-Patrol.Net Radio - January Top 20  Programs 
    7. Soul-Patrollers In The News 
    8. Febuary Online Chat Sessions (Ray, Goodman & Brown, Harptones, Black Ivory, Mtume)
    9. Soul-Patrol Black History Month Offline Events (DC, Tampa, Pittsburgh, Philly, LA &NYC) 



    A brief introduction to those of you who might be new to Soul-Patrol.com. The award winning Soul-Patrol.com website has been one of the leading voices on the internet in the arena of featuring the best on the net in Soul, Jazz, Slow Jams, Black Rock, Funk, Doo Wop, Neo Soul and about the culture since 1996.

    We call the concept...
    'GREAT BLACK MUSIC FROM THE ANCIENT TO THE FUTURE'

    The publication you are reading now is called The Soul-Patrol Newsletter and it is designed to keep you abreast of news and views regarding this music/culture on a bi-monthly basis. Our objective is to provide you with information (CD Reviews, Concert Reviews, Commentary, Online Events, Offline Events, etc) on a timely basis that will lead to your participation either online or offline in the many musical/cultural things that the great artists we love provide for us.

    We feel that it is of paramount importance that YOU participate, because without YOUR active participation, the culture we love is going to die a slow and painful death!


    We hope that you will enjoy this FREE publication, from Soul-Patrol.com . If you do, and you wish to continue to get it every two weeks for FREE , click here , go to the Soul-Patrol.com website or use the form below to register to get it.


    To Subscribe To The Soul-Patrol Newsletter: 

    Email Address   Zip Code  

     



    Forward it to your friends (artists and music fans) on the internet who love good music and ask them to subscribe as well!

    NOTE:All of the music that you can access from this publication is being streamed via RealAudio with the consent of the artist/copy write holder with the hope that you will take a listen and decide to give them a chance to earn a place in your music collection. Soul-Patrol partners with these entities and others to fulfill it's mission to help to facilitate the extension of "Great Black Music into the Future", so that it's historical legacy will be available to our children.
    Feel free to email me with any ideas, suggestions or complaints about this publication

    --Bob Davis
    earthjuice@prodigy.net


    1. CD Review - Jazzhole: 'Circle Of the Sun'      

    JazzholeHow many of yall remember the NYC based group called " JAZZHOLE"? Remember they were pretty hot for a while in the 1990's 'acid jazz' scene, putting out some truly innovative and FUNKY sounds.  Jazzhole have been members of Soul-Patrol for several years now and I am pretty excited to be able to be in a position to tell you all about their SLAMMIN new CD called 'Circle Of the Sun. I've been listening to it over the past few weeks and it's badd! 

    Jazzhole has been around for quite a while and has been one of the leaders in putting out some high quality (and FUNKY) music against the current tide of worthless CRAP for the last decade.

    Of course the rest of the world now seems to be catching up with the vision of what Jazzhole has been trying to do. I think the mass media now refers to this kind of music as "neo soul"? (screw the label, the music is damn good) However they aren't ready to rest on the accomplishments of the past. Jazzhole has got a BRAND NEW CD called "Circle Of the Sun", which is off the hook and well worth your consideration at this time. Go to the link and check it out and while you are there you can also check out some of the sound clips from the legacy that Jazzhole has been building over the course of the past 10 years. take a listen and let me know what cha think?

    (PREDICTION: 2003 will be a GREAT year for NEW music)

    --Bob Davis

    2. Floetry's "Floetic" (Hype or the Real Deal?)

    What kinda hype? If there's any hype surrounding Floetry's "Floetic", I haven't been paying much (if any) attention to it. And, if the "hype" YOU mention comes from, say, airings of music videos on cable, then forget it, since I don't DO cable, man... "Floetic" came to my attention, via word-of-mouth from some other, independent sources whom I trust. But, as always, and in the end, I form my OWN opinions about the music I like, as well as other things in this life. *I* am MY OWN leader (within), with the Lord (Goddess) as CEO (outside of myself)... That's just how it goes, for me. Moving on... What's my opinion? I like this CD, overall :)... As I listen to a lot of the cuts, I find myself wantin' to dance! There IS a groove there that *I* (at least) can feel. Plus, I have been gettin' into the lyrics, as well as the interplay between the spoken word and singing on many of the selections. AND, I don't get offended and/or depressed by the lyrics, either (a BIG thumbs UP!...). IMHO, these sisters have got somethin' goin' on, have a few thangs to say, and *I*, at least, feel it, and see more potential. As far as I can tell, the "floetist" can FLOW, and the "songstress" can SANG, in this duo. "Floetic" (title cut), "Fun", "If I Was A Bird", and "Butterflies" are some of my favorites on that CD, and at the moment. And, I'm sure that you know that Floetry wrote "Butterflies", and Michael Jackson recorded it on his OWN joint, right? Well, *I* like Floetry's version of THEIR own song much better :)... So, that's my opinion. Remember, YOU asked for it, and you GOT it...LOL! What say YOU??

    3. Commentary: I have a few issues with Tom Joyner (part 1)      

    a. When he comes into a market he forces the stations established morning man OUT! He even did it to his own 'boy' Isaac Hayes.
    Tom is going to be the only star and he is not going to deal with another DJ who has a style or following.

    b. I also am disheartened at the number of black author's who have written to talk about the shaft of being on Sybil's book club. They pay $1500.00 for the 3 minutes on air. They get there and find out Sybil has not read their book so they must supply notes and then there is no promotion for the event and the author's (unless they are already big names) have no audience for the book club portion.

    c. Also, I heard a few years ago there was a story explaining that when you call into the TJ Foundation to donate, $15.00 to HBCU that $7.00 goes to the school and $8.00 goes to the TJ foundation. I'd love to really find out the truth behind that one if anyone can shed some light? The scholarship money TJ passes out over the air is sad. $1500.00. The cabins on his cruise cost more. Go to a local Links, Jack & Jill, Delta, Omega, Alpha, AKA any of their scholarship dinners and they'll be giving out far greater amount than TJ does on a national level. For the money TJ pulls in he should be giving substantial awards.

    d. He says his mission is supposed to be keeping old school on the Air. Well, commercial artists with big labels don't need his help but why they are his guests? Look at his guest list. Do you ever see the DELLS? Do you ever hear Ray, Goodman & Brown? What about Billy Paul and TJ always has a Mrs. Jones story. Look at the core of Classic Soul and the artists AREN’T on Tom's show. If you can't buy your way on it isn’t happening. How many times does Luther need to be a guest? But Edwin Starr, Bettye LaVette, King Floyd, and a list of Classic Soul artist all had new CD's released but you won't hear them on TJ's show. Ever hear TJ talk about the inductions into the R&R Hall of Fame. He has a national platform and could champion a few black artists into the hall. But the voice of Black America is silent on those issues. I just think if he is going to wear that title he should truly use his voice where it will best benefit his listener’s IMHO

    --Peace & Blessings, Sistah Rib

    4. Concert Review: Victor Wooten at the Knitting Factory 1/21/2003  


    Victor Wooten

    We had an absolutely MAGNIFICENT time at the Victor Wooten Show last Friday here at the Knitting Factory Hollywood...Victor, his brothers and MC Divinity were a musician's delight and certainly the standing room only capacity crowd of approximately 600 thought so as well during the 3 1/2 hour performance which should ensure many more return performances in the future!! Oh Yes!!

    AWESOME to say the least and this performance truly put all the pieces in place as we of course saw him with Bela at UCLA several months ago and now we have had the wonderful opportunity to see the extensions of this Great Showman, and the complete band, down to the magic tricks. In between time, we were treated to a fabulous segment with J.D. Blair who sat in on the drums and came to the forefront demonstrating one of the routines he and Victor used to do when he was in the group prior to his current duties with Shania Twain (who Victor also told the audience to look out for JD at the Super Bowl performance). Reggie Wooten is no doubt "The Teacher" and his precision is lighting sharp and colorful. You can tell they had a BLAST coming up together playing real music with the correct chord changes...Most of the material was from the ‘Live In America’ CD with stratospheric Funk, Fusion, Soul and Jazz with plenty of comic relief in between..:-)

    The show was simply FANTASTIC and Victor's final note on the war, peace and simply just pulling together as one people, with LOVE, completed the Pure, Live, music excursion...They are at The Coachouse this week in San Juan Capistrano.. again we look forward to their return.. And as Debra, Karl, Bob, Gary and all have said time and time again after seeing their show, the Wooten Brothers should be A MUST for all to see!!

    Lastly, it was pleasure to meet and greet the new Los Angeles/West Coast Soul-Patrol Coordinator Vernon Wright  who we look forward to working with in the next couple of months as we emerge from our studio projects...:-)

    It's All About the Music..:-)
    Lisa Gay
    www.LisaGayandThrill.com

    5. Competition in Radio and Concert Industries Act: Good News For Artists and Consumers (Bad News For Clear Channel, Joyner, Hughes and other KNEE-GRO Radio Station Operators)  

    I urge you all to please see the details about this legislation at Senator Feingold's website at:
    http://feingold.senate.gov/~feingold/releases/03/01/2003128910.html

    In my opinion this is a good piece of legislation and hopefully it will be ratified by
    Congress.
    I know that Black folks aren't supposed to care about stuff like this, but it's when we don't that we usually end up getting SCREWED.
    If it this legislation is passed, there will be relief provided to BOTH artists and consumers.
    It would ultimately lead to an END to the current MONOPOLISTIC/FASCIST policies currently being employed by KNEE-GRO RADIO STATION OPERATORS (both Black and White).

    In my opinion this is an important development and it's RIGHT ON TIME FOR BLACK HISTORY MONTH. My view is that our 'history of our music won't even have a future at all', if the CESSPOOL of modern day KNEE-GRO radio isn't cleaned up.

    I would ask ALL Soul-Patrollers to consider doing one or both of the following...

    a. If you feel so inclined, feel free to write Senator Feingold at the following email address to tell him that you support this legislation:
    russell_feingold@feingold.senate.gov

    b. Forward this email to as many people as you know who care about the past present and
    future of OUR culture.

    I urge you all to please see the details about this legislation at Senator Feingold's website at:
    http://feingold.senate.gov/~feingold/releases/03/01/2003128910.html

    Thanks In Advance
    Bob Davis
    www.soul-patrol.com
    earthjuice@prodigy.net

    6. Soul-Patrol.Net Radio January Top 20  

    Here are the most listened to broadcasts currently playing on Soul-Patrol.Net radio. industry,  the year 2002 was indeed a great year for newly released music!  The year 2003 looks to be just as good with the following new releases coming our way in 2003.

    1. Supremes Anthology
    Click Here To Listen Online

    2. Ray Goodman and Brown - A Moment With Friends
    Click Here To Listen Online

    3. Victor Wooten - Live In America
    Click Here To Listen Online

    4. Marvin Gaye - What's Going On
    Click Here To Listen Online

    5. Jackson Five Sampler
    Click Here To Listen Online

    6. Sonny Boy - Urban Misfit
    Click Here To Listen Online

    7. Rick James - Street Songs Live
    Click Here To Listen Online

    8. Smokey Robinson and the Miracles - Going To A Go Go/Away We A Go Go
    Click Here To Listen Online

    9. Soul-Patrol Digest Magazine Overview
    Click Here To Listen Online

    10. Rare Funk w/Mr. C
    Click Here To Listen Online

    11. Gary Tyson's Jimi Hendrix Retrospective
    Click Here To Listen Online

    12. Gary Tyson's Five Stairsteps Retrospective
    Click Here To Listen Online

    13. Marvin Gaye - Let's Get It On
    Click Here To Listen Online

    14. Original P - Live at the Roxy in Boston (1999)
    Click Here To Listen Online

    15. Mandrill - Peace and Love
    Click Here To Listen Online

    16. Will Chill Master of the Slow Jam #1
    Click Here To Listen Online

    17. Soul Sanctuary - Fertile Ground, Rhythm Republik, Julie Dexter, BlaKbushe
    Click Here To Listen Online

    18. Soul-Patrol Salutes Isaac Hayes
    Click Here To Listen Online

    19. Soul-Patrol Jazz - Philip Bailey, Jonathan Butler, Monette Sundler, Leroy Wolford,
    D'Ernia, Dale Fildler
    Click Here To Listen Online

    20. Will Chill Master of the Slow Jam #2
    Click Here To Listen Online


    PAY ATTENTION:
    We hope that you are enjoying this FREE publication, from Soul-Patrol.com . If you do, and you wish to continue to get it every two weeks for FREE , click here or go to the Soul-Patrol.com website and register to get it.
    Forward it to your friends on the internet who love good music and ask them to subscribe as well!


    7. Soul-Patrollers In The News

  • Standing in the Shadows of Motown (HIP-O Records and produced by our own Harry Weinger) Has Received Two Grammy Nominations for: 1) Best Traditional R&B Vocal Performance and Chaka Khan & The Funk Brothers: "What's Going On". 2) Best Compilation Soundtrack Album For A Motion Picture, TV or Other Visual Media Standing In The Shadows Of Motown The Funk Brothers & Various Artists.
     
  • Soul-Patrollers, The Mighty, Mighty Dells were recently presented with the keys to the city of their hometown of Harvey, IL, by mayor Nickolas Greaves, in recognition of their 50 years in the entertainment business.
     
  • Soul-Patroller and legendary Philadelphia Disc Jockey 'Giant' Gene Arnold was recently inducted into the Disco Hall of Fame'. Be sure to check out Giant Gene's History of Disco Part 3 being featured as a part of our Black History Month celebration on Soul-Patrol.Net Radio.

  • Soul/Jazz/Funk music legends Michael Henderson, Billy Paul and Jean Carne will be appearing at Yoshi's in the San Francisco Bay Area july 15-16.

  • Our very own MIGHTY SAM MCCLAIN (the best Soul Singer alive) will be relasing a brand new, independently produced CD entitled: 'ONE MORE BRIDGE TO CROSS'. We have already heard it and it should be on your MUST HAVE LIST for this year. We will be talking quite a bit about this CD and about Mighty Sam throught the year. You can visit his website and listen to some clips and if you like what you hear, we urge you to pre-order the CD directly from the site.

  • I have long been a fan of Jazzhole's blend of jazz/funk/soul. They manage to put out SLAMMIN music that respects the traditions of the past, without sounding 'retro'. Check out Jazzhole's brand new CD 'Circle Of The Sun', at their newly redesigned website at www.jazzhole.com

  • Did yall notice Soul-Patroller JD Blair (from the Victor Wooten Band) playing drums behind Shania Twain during the halftime show at the Super Bowl? Up on that stage he was pretty easy to spot :-)
  • Time To Get Funked Up Los Angeles!!!!  Rio Soul and Slapbak live at B.B. Kings - Universal Citywalk, Saturday Night - February 8th at 9pm and the damage is just $10.00.  Bring your “Starchild Shades” with you.

  • Be sure to check out the new Valentine's Day releases from our friends at HIP-O Records featuring: Gregory Isaacs, Patti LaBelle, Will Downing and Angela Winbush.

  • Look for reviews of new music coming soon from Soul Generation, Jeff Lorber, Etta James, BlaKbushe, Spyro Gyra, Marion Meadows, Joe McBride, Calvin Owens, Queen Esther.

  • Look out Southern California!! Our resident "love man", brotha WILL WHEATON will be bringing his silky voice to the following venues in February:
    - February 7th & 8th Stevie's Creole Café 16911 Ventura Blvd. Encino, Ca.818.528.3500 Showtime 9:00 pm
    - February 14th Valentines Day The Warehouse Restaurant 4499Admiralty Way Marina Del Rey, Ca. 90292 Showtime 9:00 pm
    - February 21th & 22nd Stevie's Creole Café 16911 Ventura Blvd. Encino, Ca. 818 528 3500 Showtime 9:00 pm

  • If you are planning to come to NYC next month for either the Rock n' Roll Hall of Fame Induction Ceremonies or the R&B Foundation Pioneer Awards, be sure to drop me an email and let me know.


    If you have a news item, update, etc that you would like to submit to the Soul-Patrol Newsletter, please send them via email to:

     
    8. Upcoming Online Chat Sessions

    Soul-Patrol.com will be having a special series of online chat sessions, featuring some of our favorite artists, who will join us live in the Soul-Patrol chat room and answer your questions in celebration of Black History Month, stay tuned for email alerts on the chat schedule and other online updates for www.soul-patrol.com .  Here is what we have on tap so far
  • Doo Wop Chat Session/Listening Party with the Harptones (Mr. Raoul Cita) 2/12/2003 at 10 pm est.
  • Classic Soul Chat Session/Listening Party with Black Ivory (Mr. Stuart Bascomb) 2/19/2003 at 10 pm est.
  • Jazz/Funk Chat Session/Listening Party with James Mtume 2/26/2003 at 10 pm est.

  • 9. Upcoming Offline Soul-Patrol Events

    Soul-Patrol will be having a series of offline events celebrating Black History Month during February in Los Angeles (Vernon Wright), Pittsburgh (Kevin Amos), Chicago (Karl Williams), NYC (Cheryl Page), Wahington DC (Zenobia Leviston)<, Tampa (Marsha Thomas) and Philadelphia (Blanche Valentine ).  If you live in these areas feel free to contact the appropriate person via email for more details.  In addition we will be sending all subscribers to this publication a separate email announcement concerning these events, based on the zip code information you have given us.

    ---------------------------------------
    PITTSBURGH, PA
    ---------------------------------------


    Ol' School Night in tha Burg' Soul Patrol Style EVERY Tuesday Night In February!!
    7:00 pm - 12:00 am ( EST )
    Location: Kelly's Pittsburgh/East Liberty

    All you Soul Patrollers in the Tri-state area come on out and join your host DJ Stephan Brodus on tha wheels of steel and the Funkoverlord, Kevin Amos, for an evening of great Classic Selection Of Soul, Funk & Jazz.
    Kelly's is located at 6012 Penn Circle South just above S. Highland and right below the MLK Jr. Busway about half a block. Bring your friends and rock this funky joint on a Tuesday!
    6012 Penn Circle South, East Liberty/Pittsburgh (412) 363-6012

    For further information contact Kevin Amos - Chcago Soul-Patrol Chapter Coordinator

    ---------------------------------------
    WASHINGTON, DC/MARYLAND/VIRGINIA
    ---------------------------------------


    The Dells & The Temptations
    February 14, 2003
    7:00 pm - 11:00 pm ( EST )
    Location: Baltimore Arena - 201 Baltimore St. - Baltimore, MD

    Valentines Night with the Love Songs of The Dells & Temptations with special guest, Harold Melvin's Bluenotes & The Soft Tones. Wow!!! This show is a must. Ticket Prices are $50, $35 & $27.50 on Sale Now.

    For more information contact Zenobia Leviston - DC/MD/VA Soul-Patrol Chapter Coordinator

    ---------------------------------------
    NEW YORK, NEW YORK
    ---------------------------------------


    'Jazz: The True Welcome'
    Saturday, Feb. 15th 3 p.m.
    Location: Metropolitan Museum of Art, New York, NY

    As part of Black History Month, Soul-Patrol is going to see the film "Jazz: The True Welcome", directed by Ken Burns. This film highlights the music of Louis Armstrong, Chick Webb, Duke Ellington, Benny Goodman between 1929 and 1934.

    THIS IS A FREE EVENT!!! Please RSVP a.s.a.p


    Friday, February 21, 2003

    SP'er Luis Bernard, Spoken Word Artist
    Open Mic at 7 pm, Show starts at 9 pm
    Location: Vibe Theory @ 2 Steps Down Restaurant, 240 DeKalb Avenue between (Vanderbilt and Clermont Streets) Brooklyn, NY

    Our fellow SP'er, Luis Bernard, resumed his writing a few months ago and has been really hitting the Open Mic events at different venues. His work has been very well received everywhere he has performed. After only 3 months of performing, Luis was asked to be a featured artist! Luis has now been featured 5 times!!! Soul-Patrol will be out in full force to support Luis as a Spoken Word Artist and to celebrate his Birthday!!
    Vibe Theory is run by Bless and Sadiq Truth and the Show is hosted by Buttafly. This is not to be missed! So come on down to celebrate!!
    Price $8.00
    Reasonably priced Soul-Food and Seafood
    There is limited seating, so you must RSVP A.S.A.P.!!

    For further information contact Cheryl Page- NYC Soul-Patrol Chapter Coordinator

    ---------------------------------------
    TAMPA BAY, FL
    ---------------------------------------


    Monday, February 24, 2003
    BLACK HISTORY CELEBRATION 2003
    7:00 pm - 9:30 pm ( EST )
    Location: TAMPA BAY, FL
    Traditional African Folk Tales, Storytelling And Singing. By Soul-Patrol Own Kwabena Dinizulu. Share The Sprit Of Black Heritage Through This Program Together Is Better With The Entire Family.

    Hillsborough County
    John F. Germany Public Library
    900 North Ashley Dr.
    Tampa, Fl 33602
    (813)273-3652
    For further information contact Marsha Thomas - Tampa Soul-Patrol Chapter Coordinator


    ---------------------------------------
    PHILADELPHIA, PA
    ---------------------------------------



    Philly Posse is Jumpin' Blues and Jazz
    Friday, February 21 at 8PM
    Location: Sedgwick Cultural Center 7137 Germantown Ave. Philadelphia, PA 19119 Phone: 215-248-9229

    Ok Patroller's I have said I'm back and I am in full effect. The city of Brotherly LOVE is sizzling with live performances of some of the hottest unsung talents in the nation.
    And if you wanna do yourself a "flavor" join us for this particular Black History month event on Friday, February 21 at 8PM we'll be viewing a fantastic rare film and jammin to a jazz/blues concert (hey I said Jumpin' Blues and Jazz)
    Prior to the film we will be joining film scholar Larry Richards for a presentation and chat on early jazz and blues (aka soundies) recorded on film. Then we'll be treated to a showing of a rare jazz "soundie" plus the rarely seen film gem "Reet, Petite, and Gone" (1947) starring Louis Jordan. Tickets include a special pre-screening concert by the Eric Wortham Trio. Tickets: $8 in advance (members $7) $10 at the door (members $8).

    For further information contact Blanche Valentine - Philly/NJ Soul-Patrol Chapter Coordinator

    ---------------------------------------
    LOS ANGELES, CA
    ---------------------------------------


    (To Be Announced)
    Vernon Wright - LA Soul-Patrol Chapter Coordinator

  • ---------------------------------------
    CHICAGO, IL
    ---------------------------------------


    (To Be Announced)

    Karl Williams - Chcago Soul-Patrol Chapter Coordinator

    Hopefully you enjoyed this edition of the Soul-Patrol Newsletter.
    We will be back in about two weeks with the next edition, with any email alerts as required.

    If you have any comments, questions, etc feel free to drop me an email and let me know what's on your mind.

    Bob Davis
    earthjuice@prodigy.net


  • Soul-Patrol Sponsorship Oppurtunities:

    If you or your organization is has a need to reach 2,000,000 Soul, Funk, Jazz, Blues, Rock n Roll fans on a worldwide basis, then you may be interested in talking with us.  
    We have sponsorship oppurtunities available for Soul-Patrol's Website, Soul-Patrol's Daily Interactive Mailing List and/or Soul-Patrol's Monthly Magazine.
    Contact us for the current rate schedules via
    email.


    To Subscribe To The Soul-Patrol Newsletter: 

    Email Address   Zip Code  

     



    The intent of Soul Patrol , is to be a celebration of Great Black Music From The Ancient To The Future. It's all about Soul, Jazz, Blues, Rock, Funk, and about the culture they have evolved from.





  • SOUL-PATROL SPONSORS

    Click on the graphics below and visit the websites of our sponsors. And when you do, be sure to drop them a line and tell them that Soul-Patrol sent you!
    * HARPTONES 
    Vocal Magic Of The Harptones, doo wop, Willie
Wingfield, Raoul Cita
    * JAZZHOLE 
    JAZZHOLE - Funk, Jazz, Soul, Neo Soul, World
Music
    * Michael B. Sutton 
    Michael B. Sutton - Singer/Songwriter, Slow
Jam Master, similar to EWF Luther, Barry White, Will Downing
    * Ray, Goodman and Brown (aka The Moments) 
    Ray, Goodman and  Brown
    * Sage Ali 
    Sage Ali - Singer/Songwriter, similar to EWF
    * Soul Sounds 
    Soul Sounds
    * Will Wheaton 
    Will Wheaton
    * Rio Soul 
    Rio Soul
    * Hip-O Records 
    HIP-O Records
    * Groove Doctors 
    Groove Doctors
    * Lisa Gay and Thrill 
    Lisa Gay and Thrill
    * Universal Music 
    Universal Music
    * Mandrill 
    Mandrill
    * "Mighty" Sam McClain 
    Mighty Sam McClain
    * Billy Paul 
    Billy Paul


    PLAYING IN FEBURARY
    SOUL-PATROL.NET RADIO
    * Soul-Patrol Magazine 
    * 70's Supremes Anthology 
    * RGB (aka the Moments) 
    * Radio BRC @ Soul-Patrol #8 
    * Soul-Patrol Jazz #2 
    * Sage Ali 
    * Will Chill (Slow Jams #4) 

    Soul-Patrol.com || Soul-Patrol.Net Radio || Soul-Patrol Digest Magazine || Soul-Patrol Event Calendar

    © 1999 - 2002
    Davis Industries
    All Rights Reserved.

    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 4:11: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9862B37B401 for ; Fri, 7 Feb 2003 04:11:02 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 479F243FBD for ; Fri, 7 Feb 2003 04:11:02 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h17CB1gG038159 for ; Fri, 7 Feb 2003 04:11:01 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h17CB1Tv038157 for current@freebsd.org; Fri, 7 Feb 2003 04:11:01 -0800 (PST) Date: Fri, 7 Feb 2003 04:11:01 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302071211.h17CB1Tv038157@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Fri Feb 7 03:10:04 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Fri Feb 7 03:41:04 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Fri Feb 7 03:41:05 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4450: warning: duplicate script for target "geom_bsd.o" ignored /h/des/src/sys/dev/lmc/if_lmc.c:32:2: warning: #warning "The lmc driver is broken and is not compiled with LINT" /h/des/src/sys/dev/pdq/pdq.c: In function `pdq_initialize': /h/des/src/sys/dev/pdq/pdq.c:1606: warning: cast discards qualifiers from pointer target type /h/des/src/sys/pci/meteor.c:149:2: warning: #warning "The meteor driver is broken and is not compiled with LINT" /h/des/src/sys/pci/simos.c:30:2: warning: #warning "The simos driver is broken and is not compiled with LINT" /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_open': /h/des/src/sys/dev/gfb/gfb_pci.c:268: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:268: (Each undeclared identifier is reported only once /h/des/src/sys/dev/gfb/gfb_pci.c:268: for each function it appears in.) cc1: warnings being treated as errors /h/des/src/sys/dev/gfb/gfb_pci.c:275: warning: passing arg 1 of `genfbopen' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_close': /h/des/src/sys/dev/gfb/gfb_pci.c:284: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:285: warning: passing arg 1 of `genfbclose' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_read': /h/des/src/sys/dev/gfb/gfb_pci.c:293: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:294: warning: passing arg 1 of `genfbread' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_write': /h/des/src/sys/dev/gfb/gfb_pci.c:302: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:303: warning: passing arg 1 of `genfbwrite' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_ioctl': /h/des/src/sys/dev/gfb/gfb_pci.c:311: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:312: warning: passing arg 1 of `genfbioctl' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_mmap': /h/des/src/sys/dev/gfb/gfb_pci.c:320: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:321: warning: passing arg 1 of `genfbmmap' from incompatible pointer type *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 4:36:24 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74B5B37B401; Fri, 7 Feb 2003 04:36:23 -0800 (PST) Received: from daemon.kr.FreeBSD.org (daemon.kr.freebsd.org [211.176.62.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BDBB43FCB; Fri, 7 Feb 2003 04:36:22 -0800 (PST) (envelope-from cjh@kr.FreeBSD.org) Received: from gradius.wdb.co.kr (daemon [211.176.62.31]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id CFAD38F617; Fri, 7 Feb 2003 21:36:08 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by gradius.wdb.co.kr (8.12.6/8.12.6) with ESMTP id h17Ca5ua004673; Fri, 7 Feb 2003 21:36:05 +0900 (KST) (envelope-from cjh@kr.FreeBSD.org) Date: Fri, 07 Feb 2003 21:36:04 +0900 (KST) Message-Id: <20030207.213604.59654504.cjh@kr.FreeBSD.org> To: thomas@FreeBSD.ORG Cc: tjr@FreeBSD.ORG, current@FreeBSD.ORG, roberto@FreeBSD.ORG Subject: Re: 5.0 cron problem From: CHOI Junho In-Reply-To: <20030207.194304.39156547.cjh@kr.FreeBSD.org> References: <20030205204250.A12276@dilbert.robbins.dropbear.id.au> <20030207103742.GA61102@melusine.cuivre.fr.eu.org> <20030207.194304.39156547.cjh@kr.FreeBSD.org> Organization: Korea FreeBSD Users Group X-URL: http://www.kr.FreeBSD.org/~cjh X-Mailer: Mew version 3.1.51 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: CHOI Junho Subject: Re: 5.0 cron problem Date: Fri, 07 Feb 2003 19:43:04 +0900 (KST) > > I tried it to 5.0-RELEASE. It works with my previous crontab file. > Oops. It doesn't solve the problem. There is no error when editing crontab, but the variable is not substituted correctly(just blank). -- CHOI Junho KFUG FreeBSD Project Web Data Bank Key fingerprint = 1369 7374 A45F F41A F3C0 07E3 4A01 C020 E602 60F5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 4:38:33 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 818A537B401 for ; Fri, 7 Feb 2003 04:38:26 -0800 (PST) Received: from mail.openet-telecom.com (mail.openet-telecom.com [62.17.151.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBD8143F85 for ; Fri, 7 Feb 2003 04:38:24 -0800 (PST) (envelope-from peter.edwards@openet-telecom.com) Received: from mail.openet-telecom.com (unverified) by frodo.openet-telecom.lan (Content Technologies SMTPRS 4.2.10) with ESMTP id for ; Fri, 7 Feb 2003 12:38:03 +0000 Received: from rocklobster.openet-telecom.lan (10.0.0.40) by mail.openet-telecom.com (NPlex 6.5.027) id 3DEC869E0002BD58 for freebsd-current@freebsd.org; Fri, 7 Feb 2003 12:27:21 +0000 Date: Fri, 7 Feb 2003 12:42:44 +0000 From: Peter Edwards To: freebsd-current@freebsd.org Subject: [resend] gdb, threads, and corefiles Message-Id: <20030207124244.74bf9df7.peter.edwards@openet-telecom.com> Organization: Openet Telecom X-Mailer: Sylpheed version 0.8.9 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Fri__7_Feb_2003_12:42:44_+0000_082d7400" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --Multipart_Fri__7_Feb_2003_12:42:44_+0000_082d7400 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sorry if this appears twice: my webmail client appears to have dropped the original message on the floor. gdb didn't find threads in corefiles: The support was just missing. The attached patch does the job. Also attached is a small test program which easily generates a corefile with threads in it, if anyone wants to test/commit it. Before and after output below: > petere@rocklobster$ cc -o threadcore -Wall -g -pthread threadcore.c > petere@rocklobster$ ./threadcore > started thread 0 > started thread 1 > started thread 2 > started thread 3 > zsh: bus error (core dumped) ./threadcore > petere@rocklobster$ gdb threadcore threadcore.core > GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. This GDB was configured as "i386-undermydesk-freebsd"... > Core was generated by `threadcore'. > Program terminated with signal 10, Bus error. > Reading symbols from /usr/lib/libc_r.so.5...done. > Loaded symbols for /usr/lib/libc_r.so.5 > Reading symbols from /usr/lib/libc.so.5...done. > Loaded symbols for /usr/lib/libc.so.5 > Reading symbols from /usr/libexec/ld-elf.so.1...done. > Loaded symbols for /usr/libexec/ld-elf.so.1 > #0 0x280d5463 in kill () from /usr/lib/libc.so.5 > (gdb) i thr > * 1 process 41359 0x280d5463 in kill () from /usr/lib/libc.so.5 > (gdb) quit > petere@rocklobster$ /usr/src/gnu/usr.bin/binutils/gdb/gdb threadcore > threadcore.core GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. This GDB was configured as "i386-undermydesk-freebsd"... > Core was generated by `threadcore'. > Program terminated with signal 10, Bus error. > Reading symbols from /usr/lib/libc_r.so.5...done. > Loaded symbols for /usr/lib/libc_r.so.5 > Reading symbols from /usr/lib/libc.so.5...done. > Loaded symbols for /usr/lib/libc.so.5 > Reading symbols from /usr/libexec/ld-elf.so.1...done. > Loaded symbols for /usr/libexec/ld-elf.so.1 > #0 0x280d5463 in kill () from /usr/lib/libc.so.5 > (gdb) i thr > 7 Process 41359 0x280d5463 in kill () from /usr/lib/libc.so.5 > 6 Process 41359 0x2807b7ec in _thread_kern_sched () from > /usr/lib/libc_r.so.5 5 Process 41359 0x2807b7ec in _thread_kern_sched > () from /usr/lib/libc_r.so.5 4 Process 41359 0x2807b7ec in > _thread_kern_sched () from /usr/lib/libc_r.so.5 3 Process 41359 > 0x2807b7ec in _thread_kern_sched () from /usr/lib/libc_r.so.5 2 > Process 41359 0x2807b7ec in _thread_kern_sched () from > /usr/lib/libc_r.so.5 > * 1 Process 41359 0x280d5463 in kill () from /usr/lib/libc.so.5 > (gdb) Enjoy, Peter. --Multipart_Fri__7_Feb_2003_12:42:44_+0000_082d7400 Content-Type: text/plain; name="threadcore.c" Content-Disposition: attachment; filename="threadcore.c" Content-Transfer-Encoding: 7bit #include #include #include #include #include #include void *thr(void *a) { printf("started thread %d\n", (int)a); pause(); return 0; } int main(int argc, char **argv) { const int THREADCOUNT = 4; int i; pthread_t threads[THREADCOUNT]; for (i = 0; i < THREADCOUNT; i++) if (pthread_create(&threads[i], 0, thr, (void *)i) != 0) errx(-1, "cannot create thread"); sleep(1); kill(0, SIGBUS); return 0; } --Multipart_Fri__7_Feb_2003_12:42:44_+0000_082d7400 Content-Type: text/plain; name="gdb-threads.diff" Content-Disposition: attachment; filename="gdb-threads.diff" Content-Transfer-Encoding: 7bit Index: freebsd-uthread.c =================================================================== RCS file: /pub/FreeBSD/development/FreeBSD-CVS/src/gnu/usr.bin/binutils/gdb/freebsd-uthread.c,v retrieving revision 1.10 diff -u -r1.10 freebsd-uthread.c --- freebsd-uthread.c 4 Jan 2003 17:35:54 -0000 1.10 +++ freebsd-uthread.c 7 Feb 2003 12:34:19 -0000 @@ -46,6 +46,10 @@ #include #include "gdbcore.h" +int coreops_suppress_target = 1; /* Ugh. Override the version in corelow.c. */ +extern struct target_ops core_ops; /* target vector for corelow.c */ +static struct target_ops orig_core_ops; /* target vector for corelow.c */ + extern int child_suppress_run; extern struct target_ops child_ops; /* target vector for inftarg.c */ @@ -60,6 +64,7 @@ /* Pointer to the next function on the objfile event chain. */ static void (*target_new_objfile_chain) (struct objfile *objfile); +static void freebsd_uthread_find_new_threads (void); static void freebsd_uthread_resume PARAMS ((ptid_t pid, int step, enum target_signal signo)); @@ -472,7 +477,10 @@ if (freebsd_uthread_attaching || TIDGET(inferior_ptid) == 0) { - child_ops.to_fetch_registers (regno); + if (target_has_execution) + child_ops.to_fetch_registers (regno); + else + orig_core_ops.to_fetch_registers (regno); return; } @@ -481,7 +489,10 @@ if (active) { - child_ops.to_fetch_registers (regno); + if (target_has_execution) + child_ops.to_fetch_registers (regno); + else + orig_core_ops.to_fetch_registers (regno); return; } @@ -501,8 +512,12 @@ for (regno = first_regno; regno <= last_regno; regno++) { - if (regmap[regno] == -1) - child_ops.to_fetch_registers (regno); + if (regmap[regno] == -1) { + if (target_has_execution) + child_ops.to_fetch_registers (regno); + else + orig_core_ops.to_fetch_registers (regno); + } else if (thread) supply_register (regno, (char*) ®base[regmap[regno]]); @@ -683,6 +698,11 @@ LOOKUP_VALUE(PS_RUNNING); LOOKUP_VALUE(PS_DEAD); + if (!target_has_execution) { + read_thread_offsets(); + freebsd_uthread_find_new_threads(); + } + freebsd_uthread_active = 1; } @@ -731,6 +751,27 @@ return ret; } +static int +freebsd_utcore_thread_alive (ptid_t ptid) +{ + return 1; +} + +static void +freebsd_utcore_attach (char *args, int from_tty) +{ + orig_core_ops.to_attach (args, from_tty); + push_target (&core_ops); + freebsd_uthread_attaching = 1; +} + +static void +freebsd_utcore_detach (char *args, int from_tty) +{ + unpush_target (&core_ops); + orig_core_ops.to_detach (args, from_tty); +} + static void freebsd_uthread_stop (void) { @@ -874,12 +915,41 @@ freebsd_uthread_vec.get_thread_info = freebsd_uthread_get_thread_info; #endif } + + + +static void +init_freebsd_core_ops () +{ + orig_core_ops = core_ops; + core_ops.to_shortname = "freebsd-uthreads (corefile)"; + core_ops.to_longname = "FreeBSD uthreads (corefile)"; + core_ops.to_doc = "FreeBSD user threads support (for corefiles)."; + core_ops.to_has_all_memory = 0; + core_ops.to_has_memory = 1; + core_ops.to_has_stack = 1; + core_ops.to_has_registers = 1; + core_ops.to_has_execution = 0; + core_ops.to_has_thread_control = tc_none; + core_ops.to_magic = OPS_MAGIC; + core_ops.to_pid_to_str = freebsd_uthread_pid_to_str; + core_ops.to_thread_alive = freebsd_utcore_thread_alive; + core_ops.to_attach = freebsd_utcore_attach; + core_ops.to_detach = freebsd_utcore_detach; + core_ops.to_stratum = core_stratum; + core_ops.to_find_new_threads = freebsd_uthread_find_new_threads; + core_ops.to_fetch_registers = freebsd_uthread_fetch_registers; + core_ops.to_sections = 0; + core_ops.to_sections_end = 0; +} void _initialize_freebsd_uthread () { init_freebsd_uthread_ops (); + init_freebsd_core_ops (); add_target (&freebsd_uthread_ops); + add_target (&core_ops); target_new_objfile_chain = target_new_objfile_hook; target_new_objfile_hook = freebsd_uthread_new_objfile; --Multipart_Fri__7_Feb_2003_12:42:44_+0000_082d7400-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 5: 7:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AE6837B401; Fri, 7 Feb 2003 05:07:27 -0800 (PST) Received: from melusine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [62.212.105.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE20E43FAF; Fri, 7 Feb 2003 05:07:26 -0800 (PST) (envelope-from thomas@FreeBSD.ORG) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id A9FB32C3D4; Fri, 7 Feb 2003 14:07:24 +0100 (CET) Date: Fri, 7 Feb 2003 14:07:24 +0100 From: Thomas Quinot To: CHOI Junho Cc: thomas@FreeBSD.ORG, tjr@FreeBSD.ORG, current@FreeBSD.ORG, roberto@FreeBSD.ORG Subject: Re: 5.0 cron problem Message-ID: <20030207130724.GA28122@melusine.cuivre.fr.eu.org> Reply-To: Thomas Quinot References: <20030205204250.A12276@dilbert.robbins.dropbear.id.au> <20030207103742.GA61102@melusine.cuivre.fr.eu.org> <20030207.194304.39156547.cjh@kr.FreeBSD.org> <20030207.213604.59654504.cjh@kr.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030207.213604.59654504.cjh@kr.FreeBSD.org> User-Agent: Mutt/1.4i X-message-flag: WARNING! Using Outlook can damage your computer. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Le 2003-02-07, CHOI Junho écrivait : > Oops. It doesn't solve the problem. There is no error when editing > crontab, but the variable is not substituted correctly(just blank). Hum, strange, it seemed to work here. Can you send me your crontab and the output of 'cron -x pars' ? Thomas. -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 5:10:27 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E74D537B405; Fri, 7 Feb 2003 05:10:25 -0800 (PST) Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id E15AF43F85; Fri, 7 Feb 2003 05:10:24 -0800 (PST) (envelope-from dgilbert@velocet.ca) Received: from trooper.velocet.ca (trooper.velocet.net [216.138.242.2]) by sabre.velocet.net (Postfix) with ESMTP id A5F0C137F16; Fri, 7 Feb 2003 08:10:18 -0500 (EST) Received: by trooper.velocet.ca (Postfix, from userid 66) id 56C4474D00; Fri, 7 Feb 2003 08:10:18 -0500 (EST) Received: by canoe.velocet.net (Postfix, from userid 101) id 2F380567628; Thu, 6 Feb 2003 20:25:27 -0500 (EST) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15939.2823.45299.471388@canoe.velocet.net> Date: Thu, 6 Feb 2003 20:25:27 -0500 To: freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Preferred Gigabit interfaces for -CURRENT X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG We're about to make the switch from 100M interfaces to GigE interfaces for our transit routers ... which are FreeBSD-5.0 based SMP (Athlon) boxes. Our current favorite card is the intel i82559-based fxp cards. They handle the load best on our testing of 100M cards. Remember that our load is large and small packets and that hardware checksums are not a win (although hardware vlans are). So... I need to know what GigE chipsets I should test. I recently tested Intel GigE cards ... with dismal results... less than half the packets-per-second on the (otherwise) same hardware. Small packets (as in DOS attacks) are a real concern here. I believe that someone here recomended Tigon III based cards ... but I was recently looking through 5.0-RELEASE's hardware notes and couldn't find any mention of Tigon III. A hint on where to buy the cards may be helpful _and_ I'd like to know if the choice might be different for -STABLE (as some of our routers run -STABLE). Dave. -- ============================================================================ |David Gilbert, Velocet Communications. | Two things can only be | |Mail: dgilbert@velocet.net | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 5:30:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38C2637B401; Fri, 7 Feb 2003 05:30:42 -0800 (PST) Received: from unet.ru (unet.ru [195.9.254.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF54D43F93; Fri, 7 Feb 2003 05:30:40 -0800 (PST) (envelope-from vick@unet.ru) Received: from unet.ru by unet.ru (8.12.6/Unet) with ESMTP id h17DUG9J003849; Fri, 7 Feb 2003 16:30:23 +0300 (MSK) Message-ID: <3E43B4E8.1020908@unet.ru> Date: Fri, 07 Feb 2003 16:30:16 +0300 From: Victor Ponomarev User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021030 X-Accept-Language: en, ru MIME-Version: 1.0 To: "Marc G. Fournier" Cc: John Baldwin , James Schmidt , freebsd-smp@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: se7500+dual xeon? References: <20030207004431.P63349@hub.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks to all! As I wrote it's a my mistake with kernel installing. I should pay more attention on upper part of dmesg ouput to see that new kernel didn't install. By the way does anyone compare heavy load multiprocessor performance 5.0-RELEASE and 4.7-STABLE? Is it worth to upgrade a production machine? Marc G. Fournier wrote: >On Thu, 6 Feb 2003, John Baldwin wrote: > > > >>His board is a WV2, not a CW2. The WV2's should work fine though they >>might need a BIOS update. >> >> > >I can verify the WV2's ... just built a server with one of these .. can't >verify the BIOS issue, as it was upgraded before I got the machine, but >have been most impressd with both the server and the chassis ... > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 5:49:55 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 005AF37B401; Fri, 7 Feb 2003 05:49:54 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26E2643F3F; Fri, 7 Feb 2003 05:49:52 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id F1651218101; Fri, 7 Feb 2003 22:49:44 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h17Dnic20455; Fri, 7 Feb 2003 22:49:44 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHU92908; Fri, 7 Feb 2003 22:49:44 +0900 (JST) Date: Fri, 07 Feb 2003 22:49:44 +0900 Message-ID: From: Hidetoshi Shimokawa To: Michael Reifenberger Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & EPSON scanner In-Reply-To: <20030207120752.Q685@nihil.reifenberger.com> References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> <20030202112833.M8458@Reifenberger.com> <20030205110746.T2445@nihil.reifenberger.com> <20030206120437.W683@nihil.reifenberger.com> <20030207105338.O2514@nihil.reifenberger.com> <20030207120752.Q685@nihil.reifenberger.com> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Try SANE-patch included in: http://people.freebsd.org/~simokawa/firewire/firewire-20030205.tar.gz /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html At Fri, 7 Feb 2003 12:13:25 +0100 (CET), Michael Reifenberger wrote: > > Hi, > next phenomen :-) > > I have an 'Epson perfection 2450 Photo' scanner which gets found using firewire as: > pass0 at sbp0 bus 0 target 0 lun 0 > pass0: Fixed Processor SCSI-4 device > pass0: 50.000MB/s transfers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 5:59:20 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 897DF37B401 for ; Fri, 7 Feb 2003 05:59:18 -0800 (PST) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B4343FD7 for ; Fri, 7 Feb 2003 05:59:17 -0800 (PST) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.6/8.12.5) with ESMTP id h17DxGdK076632 for ; Fri, 7 Feb 2003 14:59:16 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.6/8.12.5/Submit) id h17DxG0U076631; Fri, 7 Feb 2003 14:59:16 +0100 (CET) Date: Fri, 7 Feb 2003 14:59:16 +0100 (CET) Message-Id: <200302071359.h17DxG0U076631@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG Reply-To: freebsd-current@FreeBSD.ORG Subject: Re: Preferred Gigabit interfaces for -CURRENT In-Reply-To: X-Newsgroups: list.freebsd-current User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.7-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Gilbert wrote: > We're about to make the switch from 100M interfaces to GigE interfaces > for our transit routers ... which are FreeBSD-5.0 based SMP (Athlon) > boxes. Our current favorite card is the intel i82559-based fxp > cards. They handle the load best on our testing of 100M cards. > Remember that our load is large and small packets and that hardware > checksums are not a win (although hardware vlans are). As far as I know, all of the GigE cards do hardware checksums anyway. Those which support VLAN de/muxing in hardware are listed in the vlan(4) manpage and in the respective interface manpages (bge, em, gx etc.) -- I think most of them do, if not all. > So... I need to know what GigE chipsets I should test. I recently > tested Intel GigE cards ... with dismal results... less than half the > packets-per-second on the (otherwise) same hardware. Small packets > (as in DOS attacks) are a real concern here. > > I believe that someone here recomended Tigon III based cards ... but I > was recently looking through 5.0-RELEASE's hardware notes and couldn't > find any mention of Tigon III. That's the Broadcom BCM570x chipset (bge driver). It's only inofficially called "Tigon III" because it's based on the Tigon I/II from Alteon. Having said that -- We do have a bunch of Compaq DL360-G2 machines in production, each of which has two of those bge interfaces. We make heavy use of VLANs, and the performance is very good. However, we're running 4.7 (because they are production servers), and our packet profile is probably very different from yours (most of the traffic is NFS, HTTP, SQL queries and similar things). Regards Oliver PS: "a bunch" == about 20 of them, more to come. -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 7:14:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDAC337B40A for ; Fri, 7 Feb 2003 07:14:51 -0800 (PST) Received: from storming.org (MG034063.user.veloxzone.com.br [200.165.34.63]) by mx1.FreeBSD.org (Postfix) with SMTP id 6536E43FDD for ; Fri, 7 Feb 2003 07:14:49 -0800 (PST) (envelope-from fred@storming.org) Received: (qmail 1209 invoked by uid 1000); 7 Feb 2003 13:14:36 -0200 Date: Fri, 7 Feb 2003 13:14:36 -0200 From: Fred Souza To: David Malone Cc: Kris Kennaway , current@FreeBSD.ORG, ume@FreeBSD.ORG, clive@tongi.org Subject: Re: Linux networking emulation broken? Message-ID: <20030207151436.GA1130@torment.storming.org> Reply-To: fred@storming.org References: <20030206162353.GA935@torment.storming.org> <20030206190021.GB17316@rot13.obsecurity.org> <20030206222826.GA15446@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: <20030206222826.GA15446@walton.maths.tcd.ie> X-Sender: fred@storming.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I'm guessing the short patch at: >=20 > http://www.maths.tcd.ie/~dwmalone/linux_sendmsg.patch >=20 > should help. Can you try it and let me know? I've just tried that and it still tries connecting to 4.0.0.0:111 instead of localhost:111. I had to follow Hajimu UMEMOTO's suggestion, once with your patch it stopped complaining about a casting error (I don't remember exactly what the error was). Fred --=20 "Some people seem to think that `damn' is God's last name." --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Q81cKbRS1GgW4fYRAmLUAJwPxeBiuu1kOLND6ei96vrD4RzoIwCbBxvq /wqDDLYfcimmXxkoBB5zRAY= =a17H -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 7:30:26 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A29F037B401; Fri, 7 Feb 2003 07:30:20 -0800 (PST) Received: from cheer.mahoroba.org (flets20-242.kamome.or.jp [218.45.20.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC22243FBF; Fri, 7 Feb 2003 07:30:13 -0800 (PST) (envelope-from ume@mahoroba.org) Received: from lyrics.mahoroba.org (IDENT:ciRnoXDiBPM29QFkM7CK25TmIYAIfmJZ4PxDCaalJwMZdtPPxNhCr4sqwB5fTn23@lyrics.mahoroba.org [IPv6:3ffe:501:185b:8010:280:88ff:fe03:4841]) (user=ume mech=CRAM-MD5 bits=0) by cheer.mahoroba.org (8.12.7/8.12.7) with ESMTP/inet6 id h17FTuCQ094783 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 8 Feb 2003 00:29:56 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sat, 08 Feb 2003 00:29:56 +0900 Message-ID: From: Hajimu UMEMOTO To: David Rhodus Cc: "Sean Winn" , FreeBSD users , obraun@FreeBSD.org Subject: Re: rsync --daemon problems In-Reply-To: References: <007e01c2ce2f$8c403c80$f400a8c0@private.gothic.net.au> User-Agent: xcite1.38> Wanderlust/2.11.0 (Wonderwall) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.4 Emacs/21.2 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 5.0-CURRENT MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: multipart/mixed; boundary="Multipart_Sat_Feb__8_00:29:56_2003-1" X-Spam-Status: No, hits=-1.0 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT version=2.44 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Multipart_Sat_Feb__8_00:29:56_2003-1 Content-Type: text/plain; charset=US-ASCII Hi, >>>>> On Thu, 6 Feb 2003 19:33:10 -0500 >>>>> David Rhodus said: david> On one machine that rsync start's on, I get this from netstat. david> tcp6 0 0 *.873 *.* david> LISTEN It seems the daemon mode of rsync depends on an IPv4-mapped IPv6 address. Since an IPv4-mapped IPv6 address is off by default on 5-CURRENT, rsync doesn't listen on IPv4. Further, rsync has a bug that it always listen on 1st entry's address of the result of getaddrinfo() call. Please try attached patch. With this patch, rsync listen on both an IPv4 and an IPv6. Sincerely, --Multipart_Sat_Feb__8_00:29:56_2003-1 Content-Type: text/x-patch; charset=US-ASCII Content-Disposition: attachment; filename="patch-socket.c" Content-Transfer-Encoding: 7bit Index: socket.c diff -u socket.c.orig socket.c --- socket.c.orig Mon Jan 27 12:35:09 2003 +++ socket.c Sat Feb 8 00:06:59 2003 @@ -292,11 +292,11 @@ * @param bind_address Local address to bind, or NULL to allow it to * default. **/ -static int open_socket_in(int type, int port, const char *bind_address, - int af_hint) +static int *open_socket_in(int type, int port, const char *bind_address, + int af_hint) { int one=1; - int s; + int *s, *socks, maxs; struct addrinfo hints, *all_ai, *resp; char portbuf[10]; int error; @@ -310,41 +310,65 @@ if (error) { rprintf(FERROR, RSYNC_NAME ": getaddrinfo: bind address %s: %s\n", bind_address, gai_strerror(error)); - return -1; + return NULL; + } + + /* Count max number of sockets we may open */ + for (maxs = 0, resp = all_ai; resp; resp = resp->ai_next, maxs++) + ; + socks = malloc((maxs + 1) * sizeof(int)); + if (!socks) { + rprintf(FERROR, + RSYNC_NAME "couldn't allocate memory for sockets"); + return NULL; } /* We may not be able to create the socket, if for example the * machine knows about IPv6 in the C library, but not in the * kernel. */ + *socks = 0; /* num of sockets counter at start of array */ + s = socks + 1; for (resp = all_ai; resp; resp = resp->ai_next) { - s = socket(resp->ai_family, resp->ai_socktype, + *s = socket(resp->ai_family, resp->ai_socktype, resp->ai_protocol); - if (s == -1) + if (*s == -1) /* See if there's another address that will work... */ continue; - setsockopt(s, SOL_SOCKET, SO_REUSEADDR, + setsockopt(*s, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof one); +#ifdef IPV6_V6ONLY + if (resp->ai_family == AF_INET6) + setsockopt(*s, IPPROTO_IPV6, IPV6_V6ONLY, + (char *)&one, sizeof one); +#endif + /* now we've got a socket - we need to bind it */ - if (bind(s, all_ai->ai_addr, all_ai->ai_addrlen) < 0) { + if (bind(*s, resp->ai_addr, resp->ai_addrlen) < 0) { /* Nope, try another */ - close(s); + close(*s); continue; } - freeaddrinfo(all_ai); - return s; + (*socks)++; + s++; } - rprintf(FERROR, RSYNC_NAME ": open inbound socket on port %d failed: " - "%s\n", - port, - strerror(errno)); + if (all_ai) + freeaddrinfo(all_ai); - freeaddrinfo(all_ai); - return -1; + if (*socks == 0) { + rprintf(FERROR, + RSYNC_NAME ": open inbound socket on port %d failed: " + "%s\n", + port, + strerror(errno)); + free(socks); + return NULL; + } + return socks; } @@ -376,19 +400,29 @@ void start_accept_loop(int port, int (*fn)(int, int)) { - int s; + fd_set deffds; + int *s, maxfd, i, j; extern char *bind_address; extern int default_af_hint; /* open an incoming socket */ s = open_socket_in(SOCK_STREAM, port, bind_address, default_af_hint); - if (s == -1) + if (s == NULL) exit_cleanup(RERR_SOCKETIO); /* ready to listen */ - if (listen(s, 5) == -1) { - close(s); - exit_cleanup(RERR_SOCKETIO); + FD_ZERO(&deffds); + maxfd = -1; + for (i = 1; i <= *s; i++) { + if (listen(s[i], 5) == -1) { + for (j = 1; j <= i; j++) + close(s[j]); + free(s); + exit_cleanup(RERR_SOCKETIO); + } + FD_SET(s[i], &deffds); + if (maxfd < s[i]) + maxfd = s[i]; } @@ -406,16 +440,20 @@ forever */ log_close(); - FD_ZERO(&fds); - FD_SET(s, &fds); + FD_COPY(&deffds, &fds); - if (select(s+1, &fds, NULL, NULL, NULL) != 1) { + if (select(maxfd + 1, &fds, NULL, NULL, NULL) != 1) { continue; } - if(!FD_ISSET(s, &fds)) continue; - - fd = accept(s,(struct sockaddr *)&addr,&addrlen); + fd = -1; + for (i = 1; i <= *s; i++) { + if (FD_ISSET(s[i], &fds)) { + fd = accept(s[i], (struct sockaddr *)&addr, + &addrlen); + break; + } + } if (fd == -1) continue; @@ -430,7 +468,7 @@ if ((pid = fork()) == 0) { int ret; - close(s); + close(s[i]); /* open log file in child before possibly giving up privileges */ log_open(); @@ -452,6 +490,7 @@ close(fd); } } + free(s); } --Multipart_Sat_Feb__8_00:29:56_2003-1 Content-Type: text/plain; charset=US-ASCII -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ --Multipart_Sat_Feb__8_00:29:56_2003-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 7:31:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16E1337B401 for ; Fri, 7 Feb 2003 07:31:48 -0800 (PST) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4100043F75 for ; Fri, 7 Feb 2003 07:31:47 -0800 (PST) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (mdkwemrxikju7o7e@dsl-135-123.aei.ca [66.36.135.123]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id h17FVeY08569; Fri, 7 Feb 2003 10:31:40 -0500 (EST) Received: from anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with ESMTP id E48025; Fri, 7 Feb 2003 10:31:39 -0500 (EST) Message-ID: <3E43D15C.5030706@anarcat.ath.cx> Date: Fri, 07 Feb 2003 10:31:40 -0500 From: The Anarcat User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: fr-ca, fr, en-us, en MIME-Version: 1.0 To: Lars Eggert Cc: current@freebsd.org Subject: Re: pcm channel duplicate lock References: <3E42F8BE.1060706@isi.edu> In-Reply-To: <3E42F8BE.1060706@isi.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Can it be possible that this would be related to the problem I'm having with xmms on -release right now? Except that -release don't have WITNESS stuff enabled? I guess I should try enabling debugging. Just a shot in the dark... A. Lars Eggert wrote: > Got thsi when opening gnomemeeting2 while having xmms playing: > > acquiring duplicate lock of same type: "pcm channel" > 1st pcm0:record:0 @ /usr/src/sys/dev/sound/pcm/sound.c:191 > 2nd pcm0:play:0 @ /usr/src/sys/dev/sound/pcm/sound.c:191 > Debugger("witness_lock") > Stopped at Debugger+0x5a: xchgl %ebx,in_Debugger.0 > db> trace > Debugger(c0328da1,c6283a54,c0532609,bf,eb3828ac) at Debugger+0x5a > witness_lock(c635ce40,8,c0532609,bf,eb3828d4) at witness_lock+0x142 > _mtx_lock_flags(c635ce40,0,c0532609,bf,c5e5) at _mtx_lock_flags+0x63 > pcm_chnalloc(c21a9e00,1,c5e5,ffffffff,8) at pcm_chnalloc+0x66 > dsp_open(c03a6a50,7,2000,c6612780,c0534380) at dsp_open+0x12f > spec_open(eb3829c8,eb382ae4,c0217796,eb3829c8,c03b3ae0) at > spec_open+0x37d > spec_vnoperate(eb3829c8,c03b3ae0,0,180,c6612780) at spec_vnoperate+0x18 > vn_open_cred(eb382bd4,eb382cd4,0,c7575600,eb382cc0) at vn_open_cred+0x306 > vn_open(eb382bd4,eb382cd4,0,295,eb382b20) at vn_open+0x29 > kern_open(c6612780,888ceb0,0,7,0) at kern_open+0x197 > open(c6612780,eb382d10,c0363f83,407,c6610c50) at open+0x30 > syscall(875002f,2f,bfbf002f,6,0) at syscall+0x3d6 > Xint0x80_syscall() at Xint0x80_syscall+0x1d > --- syscall (5, FreeBSD ELF32, open), eip = 0x2932e273, esp = > 0xbfa65abc, ebp = 0xbfa65ad8 --- > > Lars To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 9: 5:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BBDC37B401; Fri, 7 Feb 2003 09:05:17 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 144EB43FBD; Fri, 7 Feb 2003 09:05:16 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 Feb 2003 17:05:15 +0000 (GMT) Date: Fri, 7 Feb 2003 17:05:12 +0000 From: David Malone To: Clive Lin Cc: Kris Kennaway , Fred Souza , current@freebsd.org, ume@freebsd.org Subject: Re: Linux networking emulation broken? Message-ID: <20030207170512.GA50781@walton.maths.tcd.ie> References: <20030206162353.GA935@torment.storming.org> <20030206190021.GB17316@rot13.obsecurity.org> <20030206222826.GA15446@walton.maths.tcd.ie> <20030207010848.GA48438@fatpipi.cirx.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030207010848.GA48438@fatpipi.cirx.org> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I'm guessing the short patch at: > > > > http://www.maths.tcd.ie/~dwmalone/linux_sendmsg.patch > > > > should help. Can you try it and let me know? OK - I found a second bug, which is a bit more subtle, but which seems to fix sendto and stop it sending packets to 4.0.0.0. I've updated the patch, please let me know if it helps. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 9:23:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F81837B401; Fri, 7 Feb 2003 09:23:45 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E5CB43FB1; Fri, 7 Feb 2003 09:23:44 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h17HNSOm024878; Fri, 7 Feb 2003 12:23:28 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h17HNR6M024873; Fri, 7 Feb 2003 12:23:27 -0500 (EST) (envelope-from hiten) Date: Fri, 7 Feb 2003 12:23:27 -0500 From: Hiten Pandya To: Julian Elischer Cc: John Baldwin , FreeBSD current users Subject: Re: vnode locking question. Message-ID: <20030207172327.GA23165@unixdaemons.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 06, 2003 at 10:53:08AM -0800, Julian Elischer wrote the words in effect of: > > > On Thu, 6 Feb 2003, John Baldwin wrote: > > > > > On 05-Feb-2003 Julian Elischer wrote: > > > > > > Is there ever a case when a vnode is locked for longer than the duration > > > of the syscall that locked it? > > > > Shouldn't be. That would be a bug I believe. Userland threads should > > never hold any kernel locks. > > That's what I think too but I just thought I'd ask.. > (NFS worries me a bit) > If It did, wouldn't that give a panic() with something like: "panic: mutex held on exit to userland..." ... or something like that? -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 10:30:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D7A937B401; Fri, 7 Feb 2003 10:30:13 -0800 (PST) Received: from mike.reifenberger.com (pD9E50AE8.dip.t-dialin.net [217.229.10.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id E239D43FAF; Fri, 7 Feb 2003 10:30:10 -0800 (PST) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (nihil [10.0.0.2]) by mike.reifenberger.com (8.12.6/8.12.6) with ESMTP id h17IU29O063068; Fri, 7 Feb 2003 19:30:02 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (localhost.reifenberger.com [127.0.0.1]) by nihil.reifenberger.com (8.12.6/8.12.6) with ESMTP id h17ITquQ008843; Fri, 7 Feb 2003 19:29:52 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from localhost (root@localhost) by nihil.reifenberger.com (8.12.6/8.12.6/Submit) with ESMTP id h17ITpjt008840; Fri, 7 Feb 2003 19:29:52 +0100 (CET) Date: Fri, 7 Feb 2003 19:29:51 +0100 (CET) From: Michael Reifenberger To: Hidetoshi Shimokawa Cc: Hidetoshi Shimokawa , FreeBSD-Current Subject: Re: -current, IBM A30p & EPSON scanner In-Reply-To: Message-ID: <20030207192829.N671@nihil.reifenberger.com> References: <200301281509.h0SF97FM007160@repoman.freebsd.org> <20030128100059.A29598@espresso.q9media.com> <20030128202924.T649@nihil.reifenberger.com> <20030202112833.M8458@Reifenberger.com> <20030205110746.T2445@nihil.reifenberger.com> <20030206120437.W683@nihil.reifenberger.com> <20030207105338.O2514@nihil.reifenberger.com> <20030207120752.Q685@nihil.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-1.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 7 Feb 2003, Hidetoshi Shimokawa wrote: > Date: Fri, 07 Feb 2003 22:49:44 +0900 > From: Hidetoshi Shimokawa > To: Michael Reifenberger > Cc: Hidetoshi Shimokawa , > FreeBSD-Current > Subject: Re: -current, IBM A30p & EPSON scanner > > Try SANE-patch included in: > > http://people.freebsd.org/~simokawa/firewire/firewire-20030205.tar.gz > Doesn't apply because in sane-backends epson.c seems to have been splitted into epson.c and epson_scsi.c . Will try to merge into the two... Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 10:56:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D669237B401; Fri, 7 Feb 2003 10:56:33 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FF4B43F3F; Fri, 7 Feb 2003 10:56:33 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h17IuLP4084324; Fri, 7 Feb 2003 13:56:21 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Fri, 7 Feb 2003 13:56:21 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Hiten Pandya Cc: Julian Elischer , John Baldwin , FreeBSD current users Subject: Re: vnode locking question. In-Reply-To: <20030207172327.GA23165@unixdaemons.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 7 Feb 2003, Hiten Pandya wrote: > On Thu, Feb 06, 2003 at 10:53:08AM -0800, Julian Elischer wrote the words in effect of: > > > > On Thu, 6 Feb 2003, John Baldwin wrote: > > > > > On 05-Feb-2003 Julian Elischer wrote: > > > > > > > > Is there ever a case when a vnode is locked for longer than the duration > > > > of the syscall that locked it? > > > > > > Shouldn't be. That would be a bug I believe. Userland threads should > > > never hold any kernel locks. > > > > That's what I think too but I just thought I'd ask.. > > (NFS worries me a bit) > > If It did, wouldn't that give a panic() with something like: > "panic: mutex held on exit to userland..." > > ... or something like that? Nope; lockmgr doesn't have that feature, although all the SMPng locking primitives do, I believe. In fact, I believe that's the source of Julian's question, since I've had a conversation with him about adding that sort of sanity checking. In adding that sort of sanity checking, you want to be very sure we don't break any existing assumptions. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 12:24:42 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A53737B401 for ; Fri, 7 Feb 2003 12:24:41 -0800 (PST) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id C526C43FDD for ; Fri, 7 Feb 2003 12:24:40 -0800 (PST) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id MUA74016 for ; Fri, 07 Feb 2003 12:24:34 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id CFE885D04 for ; Fri, 7 Feb 2003 12:24:34 -0800 (PST) To: current@freebsd.org Subject: How to create a device in current Date: Fri, 07 Feb 2003 12:24:34 -0800 From: "Kevin Oberman" Message-Id: <20030207202434.CFE885D04@ptavv.es.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I maintain a port for FreeBSD that I am trying to fix to run on V5. The port is the mWave modem software for some IBM laptop internal modems and it needs to create a /dev entry which I previously did with a simple mknod. This doesn't work under 5.0, so I am trying to figure out how to get the device node created in the rc script for the port. The command I used in V4 is mknod "/dev/mwave c 96 0". Where so I read up on creating something like this with devfs? R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 12:32:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2E3D37B401 for ; Fri, 7 Feb 2003 12:32:45 -0800 (PST) Received: from herbelot.dyndns.org (herbelot.net1.nerim.net [62.212.117.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6162243F85 for ; Fri, 7 Feb 2003 12:32:39 -0800 (PST) (envelope-from thierry@herbelot.com) Received: from diversion.herbelot.nom (diversion.herbelot.nom [192.168.2.6]) by herbelot.dyndns.org (8.12.6/8.12.6) with ESMTP id h17KOk0f003327; Fri, 7 Feb 2003 21:24:46 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" From: Thierry Herbelot To: "Kevin Oberman" , current@FreeBSD.ORG Subject: Re: How to create a device in current Date: Fri, 7 Feb 2003 21:32:21 +0100 User-Agent: KMail/1.4.3 References: <20030207202434.CFE885D04@ptavv.es.net> In-Reply-To: <20030207202434.CFE885D04@ptavv.es.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200302072132.21675.thierry@herbelot.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Le Friday 07 February 2003 21:24, Kevin Oberman a écrit : > I maintain a port for FreeBSD that I am trying to fix to run on > V5. The port is the mWave modem software for some IBM laptop internal > modems and it needs to create a /dev entry which I previously did with > a simple mknod. This doesn't work under 5.0, so I am trying to figure > out how to get the device node created in the rc script for the port. > > The command I used in V4 is mknod "/dev/mwave c 96 0". Where so I read > up on creating something like this with devfs? > could this paper be relevant : (it may require some rewriting of the device driver code) TfH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 12:36:52 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 084C137B401 for ; Fri, 7 Feb 2003 12:36:37 -0800 (PST) Received: from fsp1.physik.ruhr-uni-bochum.de (fsp1.physik.ruhr-uni-bochum.de [134.147.168.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67C4043FCB for ; Fri, 7 Feb 2003 12:36:32 -0800 (PST) (envelope-from strattbo@fsp1.physik.ruhr-uni-bochum.de) Received: (from strattbo@localhost) by fsp1.physik.ruhr-uni-bochum.de (8.11.6/8.11.6/SuSE Linux 0.5) id h17Kac318762 for current@freebsd.org; Fri, 7 Feb 2003 21:36:38 +0100 Date: Fri, 7 Feb 2003 21:36:38 +0100 From: Thomas Stratmann To: current@freebsd.org Subject: no disks w/ acpi; long wait pnp_probe w/o acpi Message-ID: <20030207213638.B18577@fsp1.physik.ruhr-uni-bochum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi everyone, the situation is the same as described in my previous posting, except: * new kernel from yesterday's sources * played around a bit with my device.hint, only minor changes. Dmesg output from two boots is appended. First is an acpi-boot, second without acpi (unset acpi_load in loader) with location marked where the boot waits for approx. five minutes. Very annoying. Can someone see what's going on? Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #6: Fri Feb 7 17:32:10 GMT 2003 root@curdwarf:/usr/src/sys/i386/compile/bootable_dbg Preloaded elf kernel "/boot/kernel/kernel" at 0xc049a000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc049a0b4. Calibrating clock(s) ... TSC clock: 233259209 Hz, i8254 clock: 1193038 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method Timecounter "TSC" frequency 233288938 Hz CPU: Pentium/P55C (quarter-micron) (233.29-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x581 Stepping = 1 Features=0x8001bf real memory = 67174400 (64 MB) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x004c1000 - 0x04007fff, 62156800 bytes (15175 pages) avail memory = 60289024 (57 MB) bios32: Found BIOS32 Service Directory header at 0xc00f8e20 bios32: Entry = 0xfe95a (c00fe95a) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xf0000+0xc5f8 pnpbios: Found PnP BIOS data at 0xc00f8e30 pnpbios: Entry = f0000:90a8 Rev = 1.0 pnpbios: Event flag at 510 pnpbios: OEM ID c932f351 Other BIOS signatures found: Intel Pentium detected, installing workaround for F00F bug Initializing GEOMetry subsystem wlan: <802.11 Link Layer> null: mem: random: npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15 ACPI-0438: *** Error: Looking up [\\_SB_.SBAT] in namespace, AE_NOT_FOUND ACPI-1287: *** Error: Method execution failed, AE_NOT_FOUND acpi0: power button is handled as a fixed feature programming model. ACPI timer looks GOOD min = 0, max = 2, width = 3 ACPI timer looks GOOD min = 0, max = 1, width = 2 ACPI timer looks GOOD min = 0, max = 1, width = 2 ACPI timer looks GOOD min = 0, max = 1, width = 2 ACPI timer looks GOOD min = 0, max = 1, width = 2 ACPI timer looks GOOD min = 0, max = 1, width = 2 ACPI timer looks GOOD min = 0, max = 1, width = 2 ACPI timer looks GOOD min = 0, max = 1, width = 2 ACPI timer looks GOOD min = 0, max = 1, width = 2 ACPI timer looks GOOD min = 0, max = 1, width = 2 Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <32-bit timer at 3.579545MHz> port 0x18a8-0x18ab on acpi0 acpi_cpu0: on acpi0 acpi_tz0: on acpi0 acpi_lid0: on acpi0 acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 pci_open(1): mode 1 addr port (0x0cf8) is 0x8000a050 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=06011179) Using $PIR table, 5 entries at 0xc00f8e80 PCI-Only Interrupts: none Location Bus Device Pin Link IRQs embedded 0 17 A 0x01 3 4 5 6 7 9 10 11 12 14 15 embedded 0 19 A 0x01 3 4 5 6 7 9 10 11 12 14 15 embedded 0 19 B 0x01 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 6 A 0x01 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 6 B 0x01 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 11 A 0x01 3 4 5 6 7 9 10 11 12 14 15 pcib0: port 0xcf8-0xcff on acpi0 ---- initial configuration ------------------------ \\_SB_.PCI0.EIO_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.19.0 \\_SB_.PCI0.EIO_.LNKB irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.19.1 \\_SB_.PCI0.EIO_.LNKC irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.17.0 \\_SB_.PCI0.EIO_.LNKD irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.0 \\_SB_.PCI0.EIO_.LNKC irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.6.0 \\_SB_.PCI0.EIO_.LNKD irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.6.1 ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- \\_SB_.PCI0.EIO_.LNKA irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.19.0 \\_SB_.PCI0.EIO_.LNKB irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.19.1 \\_SB_.PCI0.EIO_.LNKC irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.17.0 \\_SB_.PCI0.EIO_.LNKD irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.11.0 \\_SB_.PCI0.EIO_.LNKC irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.6.0 \\_SB_.PCI0.EIO_.LNKD irq 11: [ 3 4 5 6 7 9 10 11 12 14 15] low,level,sharable 0.6.1 pci0: on pcib0 pci0: physical bus=0 found-> vendor=0x1179, dev=0x0601, revid=0x2e bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0xa280, cachelnsz=8 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type 3, range 32, base fd000000, size 24, enabled map[14]: type 1, range 32, base ffc00000, size 21, enabled map[18]: type 1, range 32, base ffb00000, size 20, enabled found-> vendor=0x10c8, dev=0x0004, revid=0x01 bus=0, slot=4, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0003, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x10 (4000 ns), maxlat=0xff (63750 ns) intpin=a, irq=255 map[10]: type 4, range 32, base 0000ffe0, size 5, enabled found-> vendor=0x1179, dev=0x0701, revid=0x22 bus=0, slot=17, func=0 class=07-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0005, statreg=0x0400, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=11 found-> vendor=0x1179, dev=0x060f, revid=0x20 bus=0, slot=19, func=0 class=06-07-00, hdrtype=0x02, mfdev=1 cmdreg=0x0000, statreg=0x0480, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 found-> vendor=0x1179, dev=0x060f, revid=0x20 bus=0, slot=19, func=1 class=06-07-00, hdrtype=0x02, mfdev=1 cmdreg=0x0000, statreg=0x0480, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=b, irq=255 pci0: at device 4.0 (no driver attached) pci0: at device 17.0 (no driver attached) pcib0: matched entry for 0.19.INTA (source \\_SB_.PCI0.EIO_.LNKA) pcib0: slot 19 INTA is routed to irq 11 pcic0: irq 11 at device 19.0 on pci0 pcic0: PCI Memory allocated: 0x88000000 pcic0: PCI Configuration space: 0x00: 0x060f1179 0x04800003 0x06070020 0x00820000 0x10: 0x88000000 0x04800000 0x00141400 0x00000000 0x20: 0x00000000 0x00000000 0x00000000 0x00000000 0x30: 0x00000000 0x00000000 0x00000000 0x0420010b 0x40: 0x00011179 0x00000001 0x00000000 0x00000000 0x50: 0x00000000 0x00000000 0x00000000 0x00000000 0x60: 0x00000000 0x00000000 0x00000000 0x00000000 0x70: 0x00000000 0x00000000 0x00000000 0x00000000 0x80: 0x00000000 0x00000000 0x00000000 0x01000000 0x90: 0x00000000 0x00000000 0x00000000 0x00000000 0xa0: 0x860011f0 0x00000002 0x00000000 0x0000d100 0xb0: 0x3f3f3fc3 0x0a081020 0x00010100 0x000003f1 0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 0xf0: 0x00000000 0x00000000 0x00000000 0x00000008 pccard0: on pcic0 pcib0: matched entry for 0.19.INTB (source \\_SB_.PCI0.EIO_.LNKB) pcib0: slot 19 INTB is routed to irq 11 pcic1: irq 11 at device 19.1 on pci0 pcic1: PCI Memory allocated: 0x88001000 pcic1: PCI Configuration space: 0x00: 0x060f1179 0x04800003 0x06070020 0x00820000 0x10: 0x88001000 0x04800000 0x00151500 0x00000000 0x20: 0x00000000 0x00000000 0x00000000 0x00000000 0x30: 0x00000000 0x00000000 0x00000000 0x0420020b 0x40: 0x00011179 0x00000001 0x00000000 0x00000000 0x50: 0x00000000 0x00000000 0x00000000 0x00000000 0x60: 0x00000000 0x00000000 0x00000000 0x00000000 0x70: 0x00000000 0x00000000 0x00000000 0x00000000 0x80: 0x00000000 0x00000000 0x00000000 0x01000000 0x90: 0x00000000 0x00000000 0x00000000 0x00000000 0xa0: 0x860021f0 0x00000002 0x00000000 0x0000d100 0xb0: 0x3f3f3fc3 0x0a081020 0x00010100 0x000003f1 0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 0xf0: 0x00000000 0x00000000 0x00000000 0x00000008 pccard1: on pcic1 unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0047 atkbd: keyboard ID 0x41ab (2) kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000 psm0: unable to allocate IRQ psmcpnp0 irq 12 on acpi0 psm0: current command byte:0047 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0-00, 2 buttons psm0: config:00000000, flags:00000000, packet size:3 psm0: syncmask:c0, syncbits:00 sio0: irq maps: 0x2001 0x2011 0x2011 0x2011 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A unknown: not probed (disabled) ppc0: using extended I/O port range ppc0: ECP SPP SPP ppc0 port 0x778-0x77a,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold plip0: on ppbus0 lp0: bpf attached lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) Device configuration finished. procfs registered Timecounters tick every 10.000 msec lo0: bpf attached acpi_cpu0: set speed to 100.0% acpi_cpu: throttling enabled, 16 steps (100% to 6.2%), currently 100.0% acpi_acad0: acline initialization start acpi_acad0: On Line acpi_acad0: acline initialization done, tried 1 times acpi_cmbat0: battery initialization start acpi_cmbat0: battery initialization done, tried 1 times Mounting root from ufs:/dev/ad0s3a setrootbyname failed ffs_mountroot: can't find rootvp Root mount failed: 6 Manual root filesystem specification: : Mount using filesystem eg. ufs:da0s1a ? List valid disk boot devices Abort manual input mountroot> c Mounting root from c Can't allocate root mount for filesystem 'c': 19 Root mount failed: 19 Manual root filesystem specification: : Mount using filesystem eg. ufs:da0s1a ? List valid disk boot devices Abort manual input mountroot> panic: Root mount failed, startup aborted. syncing disks, buffers remaining... done Uptime: 18s Terminate ACPI pcic0: Autodetected 5.0V card pccard: card inserted, slot 0 pcic0: reset 1 int is 10 stat is ff Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot, --> or switch off the system now. Rebooting... Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #6: Fri Feb 7 17:32:10 GMT 2003 root@curdwarf:/usr/src/sys/i386/compile/bootable_dbg Preloaded elf kernel "/boot/kernel/kernel" at 0xc0450000. Calibrating clock(s) ... TSC clock: 233260140 Hz, i8254 clock: 1193043 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method Timecounter "TSC" frequency 233288881 Hz CPU: Pentium/P55C (quarter-micron) (233.29-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x581 Stepping = 1 Features=0x8001bf real memory = 67174400 (64 MB) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x00477000 - 0x04007fff, 62459904 bytes (15249 pages) avail memory = 60596224 (57 MB) bios32: Found BIOS32 Service Directory header at 0xc00f8e20 bios32: Entry = 0xfe95a (c00fe95a) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xf0000+0xc5f8 pnpbios: Found PnP BIOS data at 0xc00f8e30 pnpbios: Entry = f0000:90a8 Rev = 1.0 pnpbios: Event flag at 510 pnpbios: OEM ID c932f351 Other BIOS signatures found: Intel Pentium detected, installing workaround for F00F bug Initializing GEOMetry subsystem wlan: <802.11 Link Layer> random: null: mem: npx0: on motherboard npx0: INT 16 interface pci_open(1): mode 1 addr port (0x0cf8) is 0x8000a050 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=06011179) Using $PIR table, 5 entries at 0xc00f8e80 PCI-Only Interrupts: none Location Bus Device Pin Link IRQs embedded 0 17 A 0x01 3 4 5 6 7 9 10 11 12 14 15 embedded 0 19 A 0x01 3 4 5 6 7 9 10 11 12 14 15 embedded 0 19 B 0x01 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 6 A 0x01 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 6 B 0x01 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 11 A 0x01 3 4 5 6 7 9 10 11 12 14 15 pcib0: at pcibus 0 on motherboard pci0: on pcib0 pci0: physical bus=0 found-> vendor=0x1179, dev=0x0601, revid=0x2e bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0xa280, cachelnsz=8 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type 3, range 32, base fd000000, size 24, enabled map[14]: type 1, range 32, base ffc00000, size 21, enabled map[18]: type 1, range 32, base ffb00000, size 20, enabled found-> vendor=0x10c8, dev=0x0004, revid=0x01 bus=0, slot=4, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0003, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x10 (4000 ns), maxlat=0xff (63750 ns) intpin=a, irq=255 map[10]: type 4, range 32, base 0000ffe0, size 5, enabled found-> vendor=0x1179, dev=0x0701, revid=0x22 bus=0, slot=17, func=0 class=07-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0005, statreg=0x0400, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=11 map[10]: type 1, range 32, base fff00000, size 12, enabled found-> vendor=0x1179, dev=0x060f, revid=0x20 bus=0, slot=19, func=0 class=06-07-00, hdrtype=0x02, mfdev=1 cmdreg=0x0007, statreg=0x0480, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 map[10]: type 1, range 32, base fff01000, size 12, enabled found-> vendor=0x1179, dev=0x060f, revid=0x20 bus=0, slot=19, func=1 class=06-07-00, hdrtype=0x02, mfdev=1 cmdreg=0x0007, statreg=0x0480, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=b, irq=255 pci0: at device 4.0 (no driver attached) pci0: at device 17.0 (no driver attached) pci_cfgintr_virgin: using routable interrupt 3 pci_cfgintr: 0:19 INTA routed to irq 3 pcic0: mem 0xfff00000-0xfff00fff irq 3 at device 19.0 on pci0 pcic0: PCI Configuration space: 0x00: 0x060f1179 0x04800007 0x06070020 0x00820000 0x10: 0xfff00000 0x04800000 0x00141400 0x00000000 0x20: 0x00000000 0x00000000 0x00000000 0x00000000 0x30: 0x00000000 0x00000000 0x00000000 0x04200103 0x40: 0x00011179 0x00000001 0x00000000 0x00000000 0x50: 0x00000000 0x00000000 0x00000000 0x00000000 0x60: 0x00000000 0x00000000 0x00000000 0x00000000 0x70: 0x00000000 0x00000000 0x00000000 0x00000000 0x80: 0x00000000 0x00000000 0x00000000 0x01000000 0x90: 0x00000000 0x00000000 0x00000000 0x00000000 0xa0: 0x860011f0 0x00000002 0x00000000 0x0000d100 0xb0: 0x3f3f3fc3 0x0a081020 0x00010100 0x000003f1 0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 0xf0: 0x00000000 0x00000000 0x00000000 0x00000008 pccard0: on pcic0 pci_cfgintr_search: linked (1) to configured irq 3 at 0:19:0 pci_cfgintr: 0:19 INTB routed to irq 3 pcic1: mem 0xfff01000-0xfff01fff irq 3 at device 19.1 on pci0 pcic1: PCI Configuration space: 0x00: 0x060f1179 0x04800007 0x06070020 0x00820000 0x10: 0xfff01000 0x04800000 0x00151500 0x00000000 0x20: 0x00000000 0x00000000 0x00000000 0x00000000 0x30: 0x00000000 0x00000000 0x00000000 0x04200203 0x40: 0x00011179 0x00000001 0x00000000 0x00000000 0x50: 0x00000000 0x00000000 0x00000000 0x00000000 0x60: 0x00000000 0x00000000 0x00000000 0x00000000 0x70: 0x00000000 0x00000000 0x00000000 0x00000000 0x80: 0x00000000 0x00000000 0x00000000 0x01000000 0x90: 0x00000000 0x00000000 0x00000000 0x00000000 0xa0: 0x860021f0 0x00000002 0x00000000 0x0000d100 0xb0: 0x3f3f3fc3 0x0a081020 0x00010100 0x000003f1 0xc0: 0x00000000 0x00000000 0x00000000 0x00000000 0xd0: 0x00000000 0x00000000 0x00000000 0x00000000 0xe0: 0x00000000 0x00000000 0x00000000 0x00000000 0xf0: 0x00000000 0x00000000 0x00000000 0x00000008 pccard1: on pcic1 isa0: on motherboard pnpbios: 16 devices, largest 195 bytes PNP0c01: adding fixed memory32 range 0-0x9ffff, size=0xa0000 PNP0c01: adding fixed memory32 range 0xf0000-0xfffff, size=0x10000 PNP0c01: adding fixed memory32 range 0x100000-0x400ffff, size=0x3f10000 PNP0c01: adding fixed memory32 range 0x4010000-0x403ffff, size=0x30000 PNP0c01: adding fixed memory32 range 0xfff00000-0xffffffff, size=0x100000 PNP0c01: adding fixed memory32 range 0xfef80000-0xfeffffff, size=0x80000 pnpbios: handle 1 device ID PNP0c01 (010cd041) PNP0200: adding io range 0-0xf, size=0x10, align=0x1 PNP0200: adding io range 0x81-0x83, size=0x3, align=0x1 PNP0200: adding io range 0x87-0x87, size=0x1, align=0x1 PNP0200: adding io range 0x89-0x8b, size=0x3, align=0x1 PNP0200: adding io range 0x8f-0x8f, size=0x1, align=0x1 PNP0200: adding io range 0xc0-0xdf, size=0x20, align=0x1 PNP0200: adding dma mask 0x10 pnpbios: handle 2 device ID PNP0200 (0002d041) PNP0000: adding io range 0x20-0x21, size=0x2, align=0x1 PNP0000: adding io range 0xa0-0xa1, size=0x2, align=0x1 PNP0000: adding irq mask 0x4 pnpbios: handle 3 device ID PNP0000 (0000d041) PNP0100: adding io range 0x40-0x43, size=0x4, align=0x1 PNP0100: adding irq mask 0x1 pnpbios: handle 4 device ID PNP0100 (0001d041) PNP0800: adding io range 0x61-0x61, size=0x1, align=0x1 pnpbios: handle 5 device ID PNP0800 (0008d041) PNP0c04: adding io range 0xf0-0xff, size=0x10, align=0x1 PNP0c04: adding irq mask 0x2000 pnpbios: handle 6 device ID PNP0c04 (040cd041) PNP0303: adding io range 0x60-0x60, size=0x1, align=0x1 PNP0303: adding io range 0x64-0x64, size=0x1, align=0x1 PNP0303: adding irq mask 0x2 pnpbios: handle 7 device ID PNP0303 (0303d041) PNP0f13: adding irq mask 0x1000 pnpbios: handle 8 device ID PNP0f13 (130fd041) PNP0b00: adding io range 0x70-0x71, size=0x2, align=0x1 PNP0b00: adding irq mask 0x100 pnpbios: handle 9 device ID PNP0b00 (000bd041) PNP0c02: adding io range 0x80-0x80, size=0x1, align=0x1 PNP0c02: adding io range 0x84-0x86, size=0x3, align=0x1 PNP0c02: adding io range 0x88-0x88, size=0x1, align=0x1 PNP0c02: adding io range 0x8c-0x8e, size=0x3, align=0x1 PNP0c02: adding io range 0xe0-0xef, size=0x10, align=0x1 PNP0c02: adding io range 0xb0-0xb2, size=0x3, align=0x1 PNP0c02: adding io range 0x24-0x25, size=0x2, align=0x1 PNP0c02: adding io range 0x2e-0x2f, size=0x2, align=0x1 PNP0c02: adding io range 0x62-0x62, size=0x1, align=0x1 PNP0c02: adding io range 0x66-0x66, size=0x1, align=0x1 PNP0c02: adding io range 0x68-0x6f, size=0x8, align=0x1 PNP0c02: adding io range 0x1882-0x1885, size=0x4, align=0x1 PNP0c02: adding io range 0x1888-0x188d, size=0x6, align=0x1 PNP0c02: adding io range 0x18a0-0x18af, size=0x10, align=0x1 PNP0c02: adding io range 0x18b0-0x18bf, size=0x10, align=0x1 PNP0c02: adding io range 0x18c0-0x18cf, size=0x10, align=0x1 PNP0c02: adding io range 0x480-0x48f, size=0x10, align=0x1 PNP0c02: adding io range 0xcf8-0xcff, size=0x8, align=0x1 PNP0c02: adding io range 0x4d0-0x4d1, size=0x2, align=0x1 PNP0c02: adding io range 0x100-0x107, size=0x8, align=0x1 PNP0c02: adding io range 0x10e-0x10e, size=0x1, align=0x1 pnpbios: handle 10 device ID PNP0c02 (020cd041) PNP0600: adding io range 0x1f0-0x1f7, size=0x8, align=0x1 PNP0600: adding io range 0x3f6-0x3f6, size=0x1, align=0x1 PNP0600: adding irq mask 0x4000 pnpbios: handle 12 device ID PNP0600 (0006d041) PNP0501: adding io range 0x3f8-0x3ff, size=0x8, align=0x1 PNP0501: adding irq mask 0x10 pnpbios: handle 14 device ID PNP0501 (0105d041) PNP0401: adding io range 0x378-0x37a, size=0x3, align=0x1 PNP0401: adding io range 0x778-0x77a, size=0x3, align=0x1 PNP0401: adding irq mask 0x80 PNP0401: adding dma mask 0x8 pnpbios: handle 16 device ID PNP0401 (0104d041) pnpbios: handle 17 device ID PNP0a03 (030ad041) PNP0e03: adding io range 0x3e0-0x3e1, size=0x2, align=0x1 pnpbios: handle 20 device ID PNP0e03 (030ed041) YMH0021: adding io range 0x220-0x22f, size=0x10, align=0x1 YMH0021: adding io range 0x530-0x537, size=0x8, align=0x1 YMH0021: adding io range 0x388-0x38f, size=0x8, align=0x1 YMH0021: adding io range 0x330-0x331, size=0x2, align=0x1 YMH0021: adding io range 0x370-0x371, size=0x2, align=0x1 YMH0021: adding irq mask 0x20 YMH0021: adding dma mask 0x2 YMH0021: adding dma mask 0x1 pnpbios: handle 22 device ID YMH0021 (2100a865) Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 sc: sc0 already exists; skipping it vga: vga0 already exists; skipping it isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: Ó âàñ íåò çàêàçîâ

    Ó âàñ íåò çàêàçîâ? Ïåğåñòàëè çâîíèòü êëèåíòû? Î Âàøèõ óñëóãàõ íèêòî íå çíàåò? Íå õâàòàåò äåíåã íà ïğîâåäåíèå øèğîêîìàñøòàáíîé ğåêëàìû?

    Âñå ıòè ïğîáëåìû ìû ñìîæåì ğåøèòü âñåãî çà 300$. Çà ıòè äåíüãè ó Âàñ ïîÿâèòüñÿ âîçìîæíîñòü ğàçîñëàòü ñâîå ñîîáùåíèå íà 3.800.000 ïîëó÷àòåëåé! Òîëüêî âäóìàéòåñü â ıòó öèôğó! Ğàññûëêà äëèòüñÿ â òå÷åíèè 1 äíÿ.  áàçó E-Mail àäğåñîâ ïîïàëè íå òîëüêî îğãàíèçàöèè è ïğåäïğèÿòèÿ Ìîñêâû è Ğîññèè, íî è âñå ÷àñòíûå ëèöà. Âñÿ áàçà íà 100% âåğèôèöèğîâàííàÿ è ìû äàåì ãàğàíòèş íà å¸ êà÷åñòâî!

    ÏËŞÑ! Çàêàçàâ ó íàñ E-Mail ğàññûëêó ñåé÷àñ, Âû ñìîæåòå âîñïîëüçîâàòüñÿ íàøåé íàêîïèòåëüíîé ñèñòåìîé (ïîäğîáíîñòè ïğè çàêàçå).

    Çàêàçàòü ğàññûëêó Âû ñìîæåòå çäåñü.

    ×òîáû óäàëèòü ñâîé E-Mail, íàæìèòå çäåñü.

    (ñ) 2003 DEMETRIUS Software.

    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 12:54:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 591B537B401 for ; Fri, 7 Feb 2003 12:54:46 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E2D043FAF for ; Fri, 7 Feb 2003 12:54:45 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h17KsgqV011870; Fri, 7 Feb 2003 21:54:43 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Hiten Pandya Cc: current@FreeBSD.ORG Subject: Re: GEOM and Extended Slices From: phk@phk.freebsd.dk In-Reply-To: Your message of "Fri, 07 Feb 2003 15:41:21 EST." <20030207204121.GA41562@unixdaemons.com> Date: Fri, 07 Feb 2003 21:54:42 +0100 Message-ID: <11869.1044651282@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030207204121.GA41562@unixdaemons.com>, Hiten Pandya writes: >Hi gang. > >Recently removing the NO_GEOM option from my kernel; I noticed that my >dos extended slices dev entries disappeared under a GEOM kernel. This >is sorta bad, but I can bare for now. > >Also, I tried searching the sys/geom/ tree if there was anything >relating to this, but could not find anything for `grep -i extend`. > >So, is it just me, or is this is a problem? Please send me dmesg from a verbose boot in private email. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 13: 0:27 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AB6A37B401 for ; Fri, 7 Feb 2003 13:00:26 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id A02CE43FB1 for ; Fri, 7 Feb 2003 13:00:24 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id WAA09273; Fri, 7 Feb 2003 22:00:09 +0100 (CET) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.6/8.12.6) with ESMTP id h17KujRL073867; Fri, 7 Feb 2003 21:56:45 +0100 (MET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.6/8.12.6/Submit) id h17KujgW073866; Fri, 7 Feb 2003 21:56:45 +0100 (MET) Date: Fri, 7 Feb 2003 21:56:45 +0100 (MET) Message-Id: <200302072056.h17KujgW073866@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <20030207105857.T2514@nihil.reifenberger.com> In-Reply-To: <20030207105857.T2514@nihil.reifenberger.com> From: j@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: vinum start & -current doesn't work as expected X-Original-Newsgroups: local.freebsd.current To: freebsd-current@freebsd.org Cc: Michael Reifenberger Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Michael Reifenberger wrote: > After reboot, a `vinum start` gives me: > ** no drives found: No such file or directory Do you perchance have a kernel without GEOM? vinum start has now been changed to use sysctl kern.disks as the list of devices to scan. Hmm. No, maybe not... I'm afraid i should change the userland to perform the same as the early startup in the kernel now does. What does your sysctl kern.disks say? As a workaround, you can try setting vinum_load=YES vinum.autostart=YES in your /boot/loader.conf, /and/ remove the start_vinum line from rc.conf. Please tell me whether this gives different results. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 13:10: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1248337B40C for ; Fri, 7 Feb 2003 13:10:08 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1F2443FD7 for ; Fri, 7 Feb 2003 13:10:06 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id WAA09445 for freebsd-current@freebsd.org; Fri, 7 Feb 2003 22:10:06 +0100 (CET) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.6/8.12.6) with ESMTP id h17L1JRL074108 for ; Fri, 7 Feb 2003 22:01:19 +0100 (MET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.6/8.12.6/Submit) id h17L1JSh074107; Fri, 7 Feb 2003 22:01:19 +0100 (MET) Date: Fri, 7 Feb 2003 22:01:19 +0100 (MET) Message-Id: <200302072101.h17L1JSh074107@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <20030201182012.GC97784@e-Gitt.NET> <20030202.064707.11429179.imp@bsdimp.com> From: j@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: Question about devd concept X-Original-Newsgroups: local.freebsd.current To: freebsd-current@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "M. Warner Losh" wrote: > devd works for me when I have devices in my machine at boot. It > does run the start script for me. I've got a related problem. My kernel is a bit modularized, and with devd, when i insert the card into the running machine, the script framework properly kldloads the respective driver (using /usr/local/bin/smart-loader as suggested in the devd.conf template). However, this doesn't work when the card is already present at boot time. Is this likely to be the same problem? (I'm currently working around it by pre-loading all potential NIC modules from the loader.) -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 13:55:13 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 705A337B401 for ; Fri, 7 Feb 2003 13:55:11 -0800 (PST) Received: from mike.reifenberger.com (pD9E50AE8.dip.t-dialin.net [217.229.10.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A85843F3F for ; Fri, 7 Feb 2003 13:55:09 -0800 (PST) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (nihil [10.0.0.2]) by mike.reifenberger.com (8.12.6/8.12.6) with ESMTP id h17Lt19O063596; Fri, 7 Feb 2003 22:55:01 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (localhost.reifenberger.com [127.0.0.1]) by nihil.reifenberger.com (8.12.6/8.12.6) with ESMTP id h17LspuQ033224; Fri, 7 Feb 2003 22:54:51 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from localhost (root@localhost) by nihil.reifenberger.com (8.12.6/8.12.6/Submit) with ESMTP id h17Lso74033221; Fri, 7 Feb 2003 22:54:50 +0100 (CET) Date: Fri, 7 Feb 2003 22:54:50 +0100 (CET) From: Michael Reifenberger To: Joerg Wunsch Cc: freebsd-current@freebsd.org Subject: Re: vinum start & -current doesn't work as expected In-Reply-To: <200302072056.h17KujgW073866@uriah.heep.sax.de> Message-ID: <20030207225249.O33219@nihil.reifenberger.com> References: <20030207105857.T2514@nihil.reifenberger.com> <200302072056.h17KujgW073866@uriah.heep.sax.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-1.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 7 Feb 2003, Joerg Wunsch wrote: > Date: Fri, 7 Feb 2003 21:56:45 +0100 (MET) > From: Joerg Wunsch > Reply-To: Joerg Wunsch > To: freebsd-current@freebsd.org > Cc: Michael Reifenberger > Subject: Re: vinum start & -current doesn't work as expected > > Michael Reifenberger wrote: > > > After reboot, a `vinum start` gives me: > > ** no drives found: No such file or directory > > Do you perchance have a kernel without GEOM? -current without GEOM? :-) > > vinum start has now been changed to use sysctl kern.disks as the list > of devices to scan. Hmm. No, maybe not... I'm afraid i should > change the userland to perform the same as the early startup in the > kernel now does. > > What does your sysctl kern.disks say? (nihil)(root) # sysctl -a kern.disks kern.disks: da1 da0 ad1 ad0 > > As a workaround, you can try setting > > vinum_load=YES > vinum.autostart=YES > > in your /boot/loader.conf, /and/ remove the start_vinum line from > rc.conf. Please tell me whether this gives different results. > Will try. Thanks so far! Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:10: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F25F937B401 for ; Fri, 7 Feb 2003 15:10:04 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 997AA43F93 for ; Fri, 7 Feb 2003 15:10:03 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id AAA10908; Sat, 8 Feb 2003 00:10:02 +0100 (CET) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.6/8.12.6) with ESMTP id h17N0kRL081355; Sat, 8 Feb 2003 00:00:46 +0100 (MET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.6/8.12.6/Submit) id h17N0j5V081354; Sat, 8 Feb 2003 00:00:45 +0100 (MET) Date: Sat, 8 Feb 2003 00:00:45 +0100 From: Joerg Wunsch To: Michael Reifenberger Cc: freebsd-current@freebsd.org Subject: Re: vinum start & -current doesn't work as expected Message-ID: <20030208000045.I63152@uriah.heep.sax.de> Reply-To: Joerg Wunsch Mail-Followup-To: Joerg Wunsch , Michael Reifenberger , freebsd-current@freebsd.org References: <20030207105857.T2514@nihil.reifenberger.com> <200302072056.h17KujgW073866@uriah.heep.sax.de> <20030207225249.O33219@nihil.reifenberger.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030207225249.O33219@nihil.reifenberger.com>; from root@nihil.reifenberger.com on Fri, Feb 07, 2003 at 10:54:50PM +0100 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG As Michael Reifenberger wrote: > > What does your sysctl kern.disks say? > > (nihil)(root) # sysctl -a kern.disks > kern.disks: da1 da0 ad1 ad0 That's OK. I guess it's time to dump the old vinum start code from vinum(8) completely, and use the in-kernel scan now. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:13:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E9CA37B401; Fri, 7 Feb 2003 15:13:33 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAE1744001; Fri, 7 Feb 2003 15:13:19 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h17NDHGQ029184; Sat, 8 Feb 2003 02:13:17 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h17NDHmN029183; Sat, 8 Feb 2003 02:13:17 +0300 (MSK) (envelope-from ache) Date: Sat, 8 Feb 2003 02:13:16 +0300 From: "Andrey A. Chernov" To: Bruce Evans Cc: phk@freebsd.org, current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030207231315.GA29117@nagual.pp.ru> References: <20030206103144.GB12538@nagual.pp.ru> <20030206215533.T511-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030206215533.T511-100000@gamplex.bde.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 06, 2003 at 22:10:43 +1100, Bruce Evans wrote: > > More precisely: some are mounted, but they are mounted read-only (modulo > the bug that adjkerntz is run a little after mounting filesystems read-write). Obvious workaround: could DEVFS be mounted read-only initially and then re-mounted as read-write after adjkerntz started, in the same manner as / remounted read-write, i.e. with "mount -u" ? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:15:50 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E285E37B40D for ; Fri, 7 Feb 2003 15:15:49 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 136A643FCB for ; Fri, 7 Feb 2003 15:15:49 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h17NFlqV013431 for ; Sat, 8 Feb 2003 00:15:48 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: current@freebsd.org Subject: curses programmer wanted to help with GEOM admin tools From: Poul-Henning Kamp Date: Sat, 08 Feb 2003 00:15:47 +0100 Message-ID: <13430.1044659747@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG If somebody out there wonder how to make a contribution to FreeBSD being a good curses programmer, I have the answer for you: I could use some help with the user-interface side of some admin tools for GEOM. Apply in private email. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:16:20 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 617B937B401 for ; Fri, 7 Feb 2003 15:16:19 -0800 (PST) Received: from citymail.com.tw (148.1.30.61.isp.tfn.net.tw [61.30.1.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 067EE43F93 for ; Fri, 7 Feb 2003 15:16:10 -0800 (PST) (envelope-from chin1122@citymail.com.tw) From: jerry@FreeBSD.ORG Subject: ¦¬¤J¼W¥[ªº¤èªk Reply-To: ch1n1122@citymail.com.tw Date: 08 Feb 2003 07:36:17 +0800 Organization: Foobar Inc. X-Mailer: Gammadyne Mailer x-delete-me: 1 (this tells Gammadyne's server to delete the message) MIME-Version: 1.0 Content-Type: text/html Content-Transfer-Encoding: 8bit Message-Id: <20030207231610.067EE43F93@mx1.FreeBSD.org> To: undisclosed-recipients: ; Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ¦L¶r¾÷

    ·s¦~§ª«°e±z¤@¥x¦L¶r¾÷ ...

    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:16:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E133437B405 for ; Fri, 7 Feb 2003 15:16:32 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id D65E343F93 for ; Fri, 7 Feb 2003 15:16:31 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h17NGOqV013495; Sat, 8 Feb 2003 00:16:24 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: "Andrey A. Chernov" Cc: Bruce Evans , current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@phk.freebsd.dk In-Reply-To: Your message of "Sat, 08 Feb 2003 02:13:16 +0300." <20030207231315.GA29117@nagual.pp.ru> Date: Sat, 08 Feb 2003 00:16:24 +0100 Message-ID: <13494.1044659784@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030207231315.GA29117@nagual.pp.ru>, "Andrey A. Chernov" writes: >On Thu, Feb 06, 2003 at 22:10:43 +1100, Bruce Evans wrote: >> >> More precisely: some are mounted, but they are mounted read-only (modulo >> the bug that adjkerntz is run a little after mounting filesystems read-write). > >Obvious workaround: could DEVFS be mounted read-only initially and then >re-mounted as read-write after adjkerntz started, in the same manner as / >remounted read-write, i.e. with "mount -u" ? Can we stop considering workarounds, and instead work on solving the problem please ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:21:52 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 247F237B415 for ; Fri, 7 Feb 2003 15:21:50 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id A297C43F75 for ; Fri, 7 Feb 2003 15:21:48 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 3D7B8519A1; Sat, 8 Feb 2003 09:51:45 +1030 (CST) Date: Sat, 8 Feb 2003 09:51:45 +1030 From: Greg 'groggy' Lehey To: Joerg Wunsch Cc: Michael Reifenberger , freebsd-current@freebsd.org Subject: Re: vinum start & -current doesn't work as expected Message-ID: <20030207232145.GE67449@wantadilla.lemis.com> References: <20030207105857.T2514@nihil.reifenberger.com> <200302072056.h17KujgW073866@uriah.heep.sax.de> <20030207225249.O33219@nihil.reifenberger.com> <20030208000045.I63152@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="//IivP0gvsAy3Can" Content-Disposition: inline In-Reply-To: <20030208000045.I63152@uriah.heep.sax.de> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --//IivP0gvsAy3Can Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Saturday, 8 February 2003 at 0:00:45 +0100, Joerg Wunsch wrote: > As Michael Reifenberger wrote: > >>> What does your sysctl kern.disks say? >> >> (nihil)(root) # sysctl -a kern.disks >> kern.disks: da1 da0 ad1 ad0 > > That's OK. > > I guess it's time to dump the old vinum start code from > vinum(8) completely, and use the in-kernel scan now. This sounds like a good idea. Greg -- See complete headers for address and phone numbers --//IivP0gvsAy3Can Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+RD+JIubykFB6QiMRAurRAKCkmO3XG3DX2Beob3mqHn1uCdruGgCgsGXu QP2JPaSJhF30dqiQlVUFnDQ= =NHLX -----END PGP SIGNATURE----- --//IivP0gvsAy3Can-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:26: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F408837B401 for ; Fri, 7 Feb 2003 15:25:59 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D45AE43FA3 for ; Fri, 7 Feb 2003 15:25:58 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h17NPvGQ036743; Sat, 8 Feb 2003 02:25:57 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h17NPu5T036742; Sat, 8 Feb 2003 02:25:56 +0300 (MSK) (envelope-from ache) Date: Sat, 8 Feb 2003 02:25:56 +0300 From: "Andrey A. Chernov" To: phk@phk.freebsd.dk Cc: Bruce Evans , current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030207232556.GA36704@nagual.pp.ru> References: <20030207231315.GA29117@nagual.pp.ru> <13494.1044659784@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13494.1044659784@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 08, 2003 at 00:16:24 +0100, phk@phk.freebsd.dk wrote: > > Can we stop considering workarounds, and instead work on solving > the problem please ? I see no solving way until kernel will understand fully and can handle timezone database format. It means timezone code should be integrated into kernel. And for which reason? Only to heal DEVFS timestamps? Mount workaround looks more light-weighted. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:45: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDF2137B401 for ; Fri, 7 Feb 2003 15:45:02 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58C1743FA3 for ; Fri, 7 Feb 2003 15:45:02 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h17Nj2gG073511 for ; Fri, 7 Feb 2003 15:45:02 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h17Nj1G6073495 for current@freebsd.org; Fri, 7 Feb 2003 15:45:01 -0800 (PST) Date: Fri, 7 Feb 2003 15:45:01 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302072345.h17Nj1G6073495@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Fri Feb 7 15:12:04 PST 2003 -------------------------------------------------------------- ===> sound/driver/ess /h/des/src/sys/dev/sound/isa/es1888.c: In function `es1888_identify': /h/des/src/sys/dev/sound/isa/es1888.c:149: `ISA_ORDER_PNP' undeclared (first use in this function) /h/des/src/sys/dev/sound/isa/es1888.c:149: (Each undeclared identifier is reported only once /h/des/src/sys/dev/sound/isa/es1888.c:149: for each function it appears in.) /h/des/src/sys/dev/sound/isa/es1888.c:153: warning: implicit declaration of function `isa_set_vendorid' /h/des/src/sys/dev/sound/isa/es1888.c:153: warning: implicit declaration of function `PNP_EISAID' /h/des/src/sys/dev/sound/isa/es1888.c:154: warning: implicit declaration of function `isa_set_logicalid' *** Error code 1 Stop in /h/des/src/sys/modules/sound/driver/ess. *** Error code 1 Stop in /h/des/src/sys/modules/sound/driver. *** Error code 1 Stop in /h/des/src/sys/modules/sound. *** Error code 1 Stop in /h/des/src/sys/modules. *** Error code 1 Stop in /h/des/obj/h/des/src/sys/GENERIC. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:48: 1 2003 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 69ED737B401; Fri, 7 Feb 2003 15:48:00 -0800 (PST) Date: Fri, 7 Feb 2003 17:48:00 -0600 From: Juli Mallett To: "Andrey A. Chernov" Cc: phk@phk.freebsd.dk, Bruce Evans , current@freebsd.org Subject: Re: Wrong date for DEVFS entries Message-ID: <20030207174800.A21568@FreeBSD.org> References: <20030207231315.GA29117@nagual.pp.ru> <13494.1044659784@critter.freebsd.dk> <20030207232556.GA36704@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030207232556.GA36704@nagual.pp.ru>; from ache@nagual.pp.ru on Sat, Feb 08, 2003 at 02:25:56AM +0300 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-LiveJournal: flata, jmallett X-Negacore: Yes Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: "Andrey A. Chernov" [ Data: 2003-02-07 ] [ Subjecte: Re: Wrong date for DEVFS entries ] > On Sat, Feb 08, 2003 at 00:16:24 +0100, phk@phk.freebsd.dk wrote: > > > > Can we stop considering workarounds, and instead work on solving > > the problem please ? > > I see no solving way until kernel will understand fully and can handle > timezone database format. It means timezone code should be integrated > into kernel. And for which reason? Only to heal DEVFS timestamps? Mount > workaround looks more light-weighted. The contents of /dev/ really don't need audited, in a devfs world, like they might be in a non-devfs one. For example hiding rootkits in /dev/wd0./foo or /dev/somedev0/ or whatever isn't really quite the issue it may have ever been. People who read too much into the contents of a devfs /dev should not be too surprised if the results are dodgy. What with cloning and all. -- Juli Mallett AIM: BSDFlata -- IRC: juli on EFnet OpenDarwin, Mono, FreeBSD Developer ircd-hybrid Developer, EFnet addict FreeBSD on MIPS-Anything on FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:58:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0DEC37B401 for ; Fri, 7 Feb 2003 15:58:29 -0800 (PST) Received: from 100m.mpr200-1.esr.lvcm.net (100m.mpr200-1.esr.lvcm.net [24.234.0.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05ADC43F85 for ; Fri, 7 Feb 2003 15:58:24 -0800 (PST) (envelope-from tdondich@majiknetworks.com) Received: from majiknetworks.com (ip68-108-119-37.lv.lv.cox.net [68.108.119.37]) by 100m.mpr200-1.esr.lvcm.net (Mirapoint Messaging Server MOS 2.9.3.5) with ESMTP id ASY91521; Fri, 7 Feb 2003 15:58:15 -0800 (PST) Message-ID: <3E44493E.7030802@majiknetworks.com> Date: Fri, 07 Feb 2003 16:03:10 -0800 From: Taylor Dondich User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Subject: File Corruption in msdos filesystem types Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I was working in some files that were mounted via a msdos filesystem. After working in the files, I started seeing weird activity. Information in parts of the file were being duplicated at the end of the file. Has anyone else had this kind of activity when dealing with an msdos filesystem under CURRENT? And if this is the first, what information can I post that would be useful to the people dealing with this part? Taylor Dondich To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 15:59:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89CD637B401 for ; Fri, 7 Feb 2003 15:59:58 -0800 (PST) Received: from citymail.com.tw (148.1.30.61.isp.tfn.net.tw [61.30.1.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id B37B343FE3 for ; Fri, 7 Feb 2003 15:59:49 -0800 (PST) (envelope-from chin1122@citymail.com.tw) From: jerry@FreeBSD.ORG Subject: ¦¬¤J¼W¥[ªº¤èªk Reply-To: ch1n1122@citymail.com.tw Date: 08 Feb 2003 08:19:57 +0800 Organization: Foobar Inc. X-Mailer: Gammadyne Mailer x-delete-me: 1 (this tells Gammadyne's server to delete the message) MIME-Version: 1.0 Content-Type: text/html Content-Transfer-Encoding: 8bit Message-Id: <20030207235949.B37B343FE3@mx1.FreeBSD.org> To: undisclosed-recipients: ; Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ¦L¶r¾÷

    ·s¦~§ª«°e±z¤@¥x¦L¶r¾÷ ...

    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 16:29:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E525637B401 for ; Fri, 7 Feb 2003 16:29:15 -0800 (PST) Received: from storming.org (MG034063.user.veloxzone.com.br [200.165.34.63]) by mx1.FreeBSD.org (Postfix) with SMTP id 1E20D43F75 for ; Fri, 7 Feb 2003 16:29:14 -0800 (PST) (envelope-from fred@storming.org) Received: (qmail 932 invoked by uid 1000); 7 Feb 2003 22:29:07 -0200 Date: Fri, 7 Feb 2003 22:29:07 -0200 From: Fred Souza To: David Malone Cc: Clive Lin , Kris Kennaway , current@freebsd.org, ume@freebsd.org Subject: Re: Linux networking emulation broken? Message-ID: <20030208002907.GA916@torment.storming.org> Reply-To: fred@storming.org References: <20030206162353.GA935@torment.storming.org> <20030206190021.GB17316@rot13.obsecurity.org> <20030206222826.GA15446@walton.maths.tcd.ie> <20030207010848.GA48438@fatpipi.cirx.org> <20030207170512.GA50781@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: <20030207170512.GA50781@walton.maths.tcd.ie> X-Sender: fred@storming.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > OK - I found a second bug, which is a bit more subtle, but which > seems to fix sendto and stop it sending packets to 4.0.0.0. I've > updated the patch, please let me know if it helps. Yes, it works perfectly for me now. :-) Fred --=20 "Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction which doesn't work." --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RE9TKbRS1GgW4fYRApHzAJ0UmjRIQdqnclGr+D2CiNx3NRKpaQCcClZc WggcvxaSlu0nnHnDUZX8ntU= =rcLs -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 16:44:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF21537B401; Fri, 7 Feb 2003 16:44:44 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BF2143F85; Fri, 7 Feb 2003 16:44:44 -0800 (PST) (envelope-from altea@attbi.com) Received: from [192.168.1.34] (c-24-126-197-60.we.client2.attbi.com[24.126.197.60]) by sccrmhc03.attbi.com (sccrmhc03) with SMTP id <2003020800444200300juq5pe>; Sat, 8 Feb 2003 00:44:43 +0000 Subject: RE: Server locking hard -- A LOT!!! From: joseph To: Muhannad Asfour Cc: rcovell@rolet.com, FreeBSD-current@FreeBSD.ORG, FreeBSD-questions@FreeBSD.ORG In-Reply-To: <1044480172.20623.1.camel@bsdbox.qubix.ca> References: <1044480172.20623.1.camel@bsdbox.qubix.ca> Content-Type: text/plain Organization: Message-Id: <1044665133.1069.0.camel@technoART.we.client2.attbi.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 07 Feb 2003 16:45:33 -0800 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Trying turning polling on in the kernel on the ethernet NIC you are using. SOunds like an interrupt issue. Set to 1000 to 3000 depending on how responsive you need it to be.... joseph On Wed, 2003-02-05 at 13:22, Muhannad Asfour wrote: > On Wed, 2003-02-05 at 08:20, Robert Covell wrote: > > > -----Original Message----- > > > From: owner-freebsd-questions@FreeBSD.ORG > > > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Muhannad Asfour > > > Sent: Tuesday, February 04, 2003 9:25 PM > > > To: freebsd-questions@FreeBSD.ORG > > > Cc: freebsd-current@FreeBSD.ORG > > > Subject: Server locking hard -- A LOT!!! > > > > > > > > > Hello. I've recently faced a rather odd issue that I've never seen > > > before. I bought a new server (specs below), and I loaded it up with > > > FreeBSD 5.0-RELEASE (I know, I know, not for a production environment, > > > but this is a personal server). Now, whenever I get about 30 > > > simultaneous connections, the box just locks hard. I tested all the > > > hardware components (CPU, Memory, HD, NIC, etc.) and even bought new > > > ones just to make sure and all end up with the same result. I can never > > > keep a decent uptime (never went past 2 days so far). As soon as I get > > > a mediocre http load (30 simul. connections), the box just locks hard. > > > I built a debug kernel, I tried everything imaginable, and I have not > > > found a solution whatsoever. Everyone seems to be stumped by this. I > > > tried FreeBSD 4.7-RELEASE, 4.7-STABLE, 5.0-RELEASE and 5.0-CURRENT on > > > this box. All give me the same result. I checked everywhere for > > > relevant logs to explain what is occuring, but had no such luck. This > > > is truly the million dollar question for me right now, because I have no > > > idea why it would lock under such a petty load. I'm not sure what to do > > > to fix this issue, I've tried many different areas for support and > > > haven't come up with anything as I stated earlier. I'm not overclocking > > > or anything if that's what you're wondering. If anyone could assist me > > > in any way shape or form to get this working, I would appreciate it very > > > very much. Also, if you e-mail back, I'm not subscribed to the lists, > > > so could you please CC it to me. In the past 4 hours, it has locked > > > hard about 3 times because of a 28-34 connection load. > > > > > > Machine Specs: > > > Single Pentium IV 2.4 GHz processor > > > ASUS P4S533 motherboard > > > 512MB DDR333 RAM (will be 1GB next week) > > > 120GB Maxtor 7200rpm (ATA133) HDD > > > 40GB Maxtor 7200 rpm (ATA66) HDD > > > Floppy Disk Drive > > > ATI Rage 128 (32 meg) AGP 4x graphics adapter > > > 52x LG CD-ROM drive > > > 3Com 3C905C-TX NIC > > > Currently running FreeBSD 5.0-CURRENT as of Sunday Feb. 2, 13:02:05 EST > > > 2003. > > > > > > Thank you very much > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > I have seen things like this that are not software related at all but due to > > a faulty power supply. Did you replace that when you went out and bought > > new hardware? You might want to try and take off your CD-ROM and or the > > secondary HD. This will cut back on your power usage and might be a good > > test. If it still does it, get a new power supply that has enough juice. > > > > Sincerely, > > > > Robert T. Covell > > President / Owner > > Rolet Internet Services, LLC > > Web: www.rolet.com > > Email: rcovell@rolet.com > > Phone: 816.471.1095 > > Fax: 816.471.3447 > > 24x7: 816.210.7145 > > > > Well, I took off the CD-ROM drive, so now it's just the two HDs and a > floppy drive. We'll see if it was a power supply issue after all. > > Thanks > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 17: 4:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9980137B401 for ; Fri, 7 Feb 2003 17:04:35 -0800 (PST) Received: from mail3.panix.com (mail3.panix.com [166.84.1.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1084043FAF for ; Fri, 7 Feb 2003 17:04:35 -0800 (PST) (envelope-from evenson@panix.com) Received: from panix3.panix.com (panix3.panix.com [166.84.1.3]) by mail3.panix.com (Postfix) with ESMTP id 5297998B68; Fri, 7 Feb 2003 20:04:29 -0500 (EST) Received: (from evenson@localhost) by panix3.panix.com (8.11.6/8.8.8/PanixN1.0) id h1814TU17994; Fri, 7 Feb 2003 20:04:29 -0500 (EST) To: Dong Lin Cc: current@FreeBSD.ORG Subject: Re: ATA code is buggy and slower References: <3E43248F.2030303@plan9.bell-labs.com> From: Mark Evenson Date: 07 Feb 2003 20:04:29 -0500 In-Reply-To: <3E43248F.2030303@plan9.bell-labs.com> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dong Lin writes: > My 5.0R kernel complains about "READ timeout" and "resetting" when I > try to dd the disk. But everything *works* if I boot the same > equipment with 4.5R and 4.7R. It seems that the error can occur on any > sector I pick as long as I keep reading it inside a loop, a sign of > timing problems. > [...] I had similar symptoms last week with a CURRENT system on a ThinkPad X20, which coupled with "hard error reading sector . . ." errors made me think that my disk was dying. After managing to get the system upgraded to a CURRENT from around 20030204, the symptoms have gone away. Not sure if this helps that much, but at least here is another report of ATA problems that *seem* to have been software related. -- Mark Evenson "A screaming comes across the sky. It has happened before, but there is nothing to compare to it now." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 17:33: 6 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87E6337B401; Fri, 7 Feb 2003 17:33:04 -0800 (PST) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02DBE43FA3; Fri, 7 Feb 2003 17:33:04 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc52.attbi.com (rwcrmhc52) with ESMTP id <2003020801330305200k0m6ne>; Sat, 8 Feb 2003 01:33:03 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA21716; Fri, 7 Feb 2003 17:33:02 -0800 (PST) Date: Fri, 7 Feb 2003 17:33:01 -0800 (PST) From: Julian Elischer To: Hiten Pandya Cc: John Baldwin , FreeBSD current users Subject: Re: vnode locking question. In-Reply-To: <20030207172327.GA23165@unixdaemons.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 7 Feb 2003, Hiten Pandya wrote: > On Thu, Feb 06, 2003 at 10:53:08AM -0800, Julian Elischer wrote the words in effect of: > > > > > > On Thu, 6 Feb 2003, John Baldwin wrote: > > > > > > > > On 05-Feb-2003 Julian Elischer wrote: > > > > > > > > Is there ever a case when a vnode is locked for longer than the duration > > > > of the syscall that locked it? > > > > > > Shouldn't be. That would be a bug I believe. Userland threads should > > > never hold any kernel locks. > > > > That's what I think too but I just thought I'd ask.. > > (NFS worries me a bit) > > > > If It did, wouldn't that give a panic() with something like: > "panic: mutex held on exit to userland..." > > ... or something like that? lockmgr loacks are not the same as mutexes (though they should be merged some time.) > > -- > Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) > http://www.unixdaemons.com/~hiten/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 19:48:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CEB537B401 for ; Fri, 7 Feb 2003 19:48:14 -0800 (PST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9DB843FA3 for ; Fri, 7 Feb 2003 19:48:13 -0800 (PST) (envelope-from wa1ter@hotmail.com) Received: from hotmail.com wa1ter@smtp-send.myrealbox.com [67.114.254.179] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.28 $ on Novell NetWare via secured & encrypted transport (TLS); Fri, 07 Feb 2003 20:48:15 -0700 Message-ID: <3E447E62.1050203@hotmail.com> Date: Fri, 07 Feb 2003 19:49:54 -0800 From: walt Organization: none User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3a) Gecko/20030125 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: GEOM and Extended Slices References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hiten Pandya wrote: > Hi gang. > > Recently removing the NO_GEOM option from my kernel; I noticed that my > dos extended slices dev entries disappeared under a GEOM kernel... I've been using extended slices on both -stable and -current for quite a while without any problems, both with and without GEOM. How were the extended slices created? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 19:48:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C7ED37B401; Fri, 7 Feb 2003 19:48:34 -0800 (PST) Received: from daemon.kr.FreeBSD.org (daemon.kr.freebsd.org [211.176.62.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89A0E43FCB; Fri, 7 Feb 2003 19:48:32 -0800 (PST) (envelope-from cjh@kr.FreeBSD.org) Received: from gradius.wdb.co.kr (daemon [211.176.62.31]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id 8315C8F618; Sat, 8 Feb 2003 12:48:27 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by gradius.wdb.co.kr (8.12.6/8.12.6) with ESMTP id h183mOua014803; Sat, 8 Feb 2003 12:48:24 +0900 (KST) (envelope-from cjh@kr.FreeBSD.org) Date: Sat, 08 Feb 2003 12:48:23 +0900 (KST) Message-Id: <20030208.124823.115905861.cjh@kr.FreeBSD.org> To: thomas@FreeBSD.ORG Cc: tjr@FreeBSD.ORG, current@FreeBSD.ORG, roberto@FreeBSD.ORG Subject: Re: 5.0 cron problem From: CHOI Junho In-Reply-To: <20030207130724.GA28122@melusine.cuivre.fr.eu.org> References: <20030207.194304.39156547.cjh@kr.FreeBSD.org> <20030207.213604.59654504.cjh@kr.FreeBSD.org> <20030207130724.GA28122@melusine.cuivre.fr.eu.org> Organization: Korea FreeBSD Users Group X-URL: http://www.kr.FreeBSD.org/~cjh X-Mailer: Mew version 3.1.51 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Oh sorry... I didn't restart cron :P. It works well. 'cron -x pars' says that whitespaces is correctly parsed. From: Thomas Quinot Subject: Re: 5.0 cron problem Date: Fri, 7 Feb 2003 14:07:24 +0100 > Le 2003-02-07, CHOI Junho =E9crivait : > = > > Oops. It doesn't solve the problem. There is no error when editing > > crontab, but the variable is not substituted correctly(just blank).= > = > Hum, strange, it seemed to work here. Can you send me your crontab an= d > the output of 'cron -x pars' ? > = > Thomas. > = > -- = > Thomas.Quinot@Cuivre.FR.EU.ORG -- CHOI Junho KFUG FreeBSD Project Web Data Bank Key fingerprint =3D 1369 7374 A45F F41A F3C0 07E3 4A01 C020 E602 60F5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 21:52:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55F5F37B401; Fri, 7 Feb 2003 21:52:34 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id F29ED43FBD; Fri, 7 Feb 2003 21:52:32 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id QAA06549; Sat, 8 Feb 2003 16:52:24 +1100 Date: Sat, 8 Feb 2003 16:52:28 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Andrey A. Chernov" Cc: phk@freebsd.org, Subject: Re: Wrong date for DEVFS entries In-Reply-To: <20030207231315.GA29117@nagual.pp.ru> Message-ID: <20030208164836.P15198-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 8 Feb 2003, Andrey A. Chernov wrote: > On Thu, Feb 06, 2003 at 22:10:43 +1100, Bruce Evans wrote: > > > > More precisely: some are mounted, but they are mounted read-only (modulo > > the bug that adjkerntz is run a little after mounting filesystems read-write). > > Obvious workaround: could DEVFS be mounted read-only initially and then > re-mounted as read-write after adjkerntz started, in the same manner as / > remounted read-write, i.e. with "mount -u" ? No. devfs silently ignores MNT_RDONLY and doesn't support MNT_UPDATE. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 21:57:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BCA037B401 for ; Fri, 7 Feb 2003 21:57:34 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FCC143FAF for ; Fri, 7 Feb 2003 21:57:33 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id h185vQ8X006960; Fri, 7 Feb 2003 21:57:26 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.6/Submit) id h185uBDx006910; Fri, 7 Feb 2003 21:56:11 -0800 (PST) Date: Fri, 7 Feb 2003 21:56:11 -0800 From: "David O'Brien" To: Chad David Cc: current@freebsd.org Subject: Re: minor yacc warnings Message-ID: <20030208055611.GA6765@dragon.nuxi.com> Reply-To: obrien@freebsd.org Mail-Followup-To: David O'Brien , Chad David , current@freebsd.org References: <20030204042410.GA31903@colnta.acns.ab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030204042410.GA31903@colnta.acns.ab.ca> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The problem with this fix is it depends on a FreeBSD'ism -- "__unused". One must be able to take a generated parser and run it on non-FreeBSD systems. -Dlint really should be the way to avoid this warning. On Mon, Feb 03, 2003 at 09:24:10PM -0700, Chad David wrote: > We are having minor problems with a newer gcc generating warnings > for yacc due to yyrcsid not being used. Does anyone object to the > following patch to skeleton.c or have a better way of handling this? > -Dlint causes other problems. > > Thanks. > > -- > Chad David davidc@issci.ca > www.FreeBSD.org davidc@freebsd.org > ISSci Inc. Calgary, Alberta Canada > Index: skeleton.c > =================================================================== > RCS file: /mnt1/ncvs/src/usr.bin/yacc/skeleton.c,v > retrieving revision 1.34 > diff -u -d -r1.34 skeleton.c > --- skeleton.c 9 Apr 2002 11:39:05 -0000 1.34 > +++ skeleton.c 4 Feb 2003 04:10:14 -0000 > @@ -60,8 +60,9 @@ > const char *banner[] = > { > "#ifndef lint", > + "#include ", > "static char const ", > - "yyrcsid[] = \"$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.34 2002/04/09 11:39:05 ru Exp $\";", > + "yyrcsid[] __unused = \"$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.34 2002/04/09 11:39:05 ru Exp $\";", > "#endif", > "#include ", > "#define YYBYACC 1", To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 23:32:39 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A87F137B401 for ; Fri, 7 Feb 2003 23:32:38 -0800 (PST) Received: from topperwein.dyndns.org (acs-24-154-51-184.zoominternet.net [24.154.51.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1D0943FAF for ; Fri, 7 Feb 2003 23:32:37 -0800 (PST) (envelope-from behanna@topperwein.dyndns.org) Received: from topperwein.pennasoft.com (localhost [127.0.0.1]) by topperwein.dyndns.org (8.12.6/8.12.6) with ESMTP id h187Wx9K021857 for ; Sat, 8 Feb 2003 02:33:00 -0500 (EST) (envelope-from behanna@topperwein.dyndns.org) Received: (from behanna@localhost) by topperwein.pennasoft.com (8.12.6/8.12.6/Submit) id h187WsQ3021856 for current@freebsd.org; Sat, 8 Feb 2003 02:32:54 -0500 (EST) From: Chris BeHanna Reply-To: chris@pennasoft.com To: current@freebsd.org Subject: Cross-build ports from stable box? Date: Sat, 8 Feb 2003 02:32:54 -0500 User-Agent: KMail/1.5 Organization: PennaSoft Corporation MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302080232.54550.chris@pennasoft.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The hard drive on my laptop died, which I took as a sign to bite the bullet and install -current (and pick up cardbus support for my spiffy new wireless card in the process). The laptop is a PIII-500. My workstation is a 1.3GHz T-bird, but it needs to stay -stable, as it's the home office workhorse (fileserver, SAMBA, print spooler, mail server, and firewall). Is there any way that I can build ports on the fast -STABLE box using a -CURRENT cross-environment? Thanks, -- Chris BeHanna http://www.pennasoft.com Principal Consultant PennaSoft Corporation chris@pennasoft.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 23:42:25 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28A8A37B401 for ; Fri, 7 Feb 2003 23:42:24 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63AA043F75 for ; Fri, 7 Feb 2003 23:42:23 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id C601167B88; Fri, 7 Feb 2003 23:42:22 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 7B7A4E70; Fri, 7 Feb 2003 23:42:22 -0800 (PST) Date: Fri, 7 Feb 2003 23:42:22 -0800 From: Kris Kennaway To: Chris BeHanna Cc: current@FreeBSD.ORG Subject: Re: Cross-build ports from stable box? Message-ID: <20030208074222.GA25594@rot13.obsecurity.org> References: <200302080232.54550.chris@pennasoft.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <200302080232.54550.chris@pennasoft.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 08, 2003 at 02:32:54AM -0500, Chris BeHanna wrote: > The hard drive on my laptop died, which I took as a sign to bite > the bullet and install -current (and pick up cardbus support for my > spiffy new wireless card in the process). >=20 > The laptop is a PIII-500. My workstation is a 1.3GHz T-bird, but > it needs to stay -stable, as it's the home office workhorse > (fileserver, SAMBA, print spooler, mail server, and firewall). >=20 > Is there any way that I can build ports on the fast -STABLE box > using a -CURRENT cross-environment? Not really..a number of -current binaries use syscalls that are not present in 4.x. What should work is using distcc with the gcc32 port on your stable box. distcc is quite remarkable. Kris --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RLTdWry0BWjoQKURAjwmAJ9Z4cUVKJ05OBWgMEJZspHqfFLlngCfY8yH urZyh+flqxMk6M6xYB3mr88= =CCBV -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri Feb 7 23:53:54 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A2E137B401; Fri, 7 Feb 2003 23:53:52 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 069B443F75; Fri, 7 Feb 2003 23:53:52 -0800 (PST) (envelope-from wes@softweyr.com) Received: from foogate.softweyr.com (66-75-151-22.san.rr.com [66.75.151.22]) by smtp-relay.omnis.com (Postfix) with ESMTP id CCF1C4391F; Fri, 7 Feb 2003 23:50:14 -0800 (PST) From: Wes Peters Organization: Softweyr To: David Gilbert , freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Re: Preferred Gigabit interfaces for -CURRENT Date: Sat, 8 Feb 2003 00:49:00 +0000 User-Agent: KMail/1.5 References: <15939.2823.45299.471388@canoe.velocet.net> In-Reply-To: <15939.2823.45299.471388@canoe.velocet.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302080049.00472.wes@softweyr.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday 07 February 2003 01:25, David Gilbert wrote: > We're about to make the switch from 100M interfaces to GigE interfaces > for our transit routers ... which are FreeBSD-5.0 based SMP (Athlon) > boxes. Our current favorite card is the intel i82559-based fxp > cards. They handle the load best on our testing of 100M cards. > Remember that our load is large and small packets and that hardware > checksums are not a win (although hardware vlans are). > > So... I need to know what GigE chipsets I should test. I recently > tested Intel GigE cards ... with dismal results... less than half the > packets-per-second on the (otherwise) same hardware. Small packets > (as in DOS attacks) are a real concern here. Wow, this wasn't my experience at all. At my previous employer we used Intel EEPro 1000 Server cards with the em(4) driver on FreeBSD 4.5 with nary a hitch and excellent performance. This was on ServerWorks chipset motherboards with P-III and P4 processors. > I believe that someone here recomended Tigon III based cards ... but I > was recently looking through 5.0-RELEASE's hardware notes and couldn't > find any mention of Tigon III. The follow-on to the Tigon II is the Broadcom BCM570x supported by the bge(4) driver in FreeBSD. This is not what you want. They're certainly cheap to test with, though; the Netgear GA302T sells for under $40 at a few online retailers. -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 0: 1:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA4C037B401 for ; Sat, 8 Feb 2003 00:01:29 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B3F943FBD for ; Sat, 8 Feb 2003 00:01:28 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h1881KqV017138; Sat, 8 Feb 2003 09:01:20 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: "Andrey A. Chernov" Cc: Bruce Evans , current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@phk.freebsd.dk In-Reply-To: Your message of "Sat, 08 Feb 2003 02:25:56 +0300." <20030207232556.GA36704@nagual.pp.ru> Date: Sat, 08 Feb 2003 09:01:20 +0100 Message-ID: <17137.1044691280@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030207232556.GA36704@nagual.pp.ru>, "Andrey A. Chernov" writes: >On Sat, Feb 08, 2003 at 00:16:24 +0100, phk@phk.freebsd.dk wrote: >> >> Can we stop considering workarounds, and instead work on solving >> the problem please ? > >I see no solving way until kernel will understand fully and can handle >timezone database format. It means timezone code should be integrated >into kernel. And for which reason? Only to heal DEVFS timestamps? Mount >workaround looks more light-weighted. Please re-read my earlier email on the topic. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 0:49:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60CF937B401 for ; Sat, 8 Feb 2003 00:49:11 -0800 (PST) Received: from mpcomp01.mp-comp.com (alb-24-195-240-196.nycap.rr.com [24.195.240.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51DCD43F75 for ; Sat, 8 Feb 2003 00:48:47 -0800 (PST) (envelope-from guiik@420.am) Received: from 420.am ([65.66.221.115]) by mpcomp01.mp-comp.com with Microsoft SMTPSVC(5.0.2195.5329); Sat, 8 Feb 2003 03:56:17 -0500 Message-ID: <000000ab40f4$00007cf0$000054bb@sdf.se> To: Cc: , , , , From: "Samantha" Subject: Eduactional Time15715 Date: Sat, 08 Feb 2003 00:46:05 -2000 MIME-Version: 1.0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 08 Feb 2003 08:56:18.0187 (UTC) FILETIME=[F18F6DB0:01C2CF4F] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG
    = This message is an advertisement. We will continue to bring you valuabl= e permission based messages on the products and services that interest you most= unless you wish to decline<= /a>. We process all requests immediately. Copyright 2000, 2001, 2002 all r= ights reserved. 

    3D""




     

     




    3D"" 3D""
     
    RECEIVE THE GREATEST RETURN ON YOUR MARKETING DOLLAR!!
    We can show you how, with New Marketing techniques and innov= ative ideas for your products and services
    3D""
     
    This message is an advertisement. We will continue to bring you valuabl= e permission based messages on the products and services that interest you most= unless you wish to decline<= /a>. We process all requests immediately. Copyright 2000, 2001, 2002 all r= ights reserved. 
    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 1: 9: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CE5A37B405 for ; Sat, 8 Feb 2003 01:09:03 -0800 (PST) Received: from empire.explosive.mail.net (empire.explosive.mail.net [205.205.25.120]) by mx1.FreeBSD.org (Postfix) with SMTP id B700D43FA3 for ; Sat, 8 Feb 2003 01:09:01 -0800 (PST) (envelope-from mykroft@explosive.mail.net) Received: (qmail 18764 invoked from network); 8 Feb 2003 09:06:45 -0000 Received: from ticking.explosive.mail.net (HELO ticking) (205.205.25.116) by empire.explosive.mail.net with SMTP; 8 Feb 2003 09:06:45 -0000 Message-ID: <002c01c2cf51$d7a76e50$7419cdcd@ticking> From: "Adam Maas" To: "Wes Peters" , "David Gilbert" , , References: <15939.2823.45299.471388@canoe.velocet.net> <200302080049.00472.wes@softweyr.com> Subject: Re: Preferred Gigabit interfaces for -CURRENT Date: Sat, 8 Feb 2003 04:09:52 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Likely part of the performance issue was due to the Chipset of the motherboard. Your typical 32bit 33MHz PCI bus is going to be marginal for routing GigE traffic, just due to bus bandwidth limitations, but it'll handle multiple 100BaseTX cards just fine. While a higher-end setup like a Serverworks chipset, with a 64bit, 66MHz bus will handle the traffic better. OF course, if you really want good routing performance on a*BSD platform, you should be looking at a Juniper M20 or M40. Adam ----- Original Message ----- From: "Wes Peters" To: "David Gilbert" ; ; Sent: Friday, February 07, 2003 7:49 PM Subject: Re: Preferred Gigabit interfaces for -CURRENT > On Friday 07 February 2003 01:25, David Gilbert wrote: > > We're about to make the switch from 100M interfaces to GigE interfaces > > for our transit routers ... which are FreeBSD-5.0 based SMP (Athlon) > > boxes. Our current favorite card is the intel i82559-based fxp > > cards. They handle the load best on our testing of 100M cards. > > Remember that our load is large and small packets and that hardware > > checksums are not a win (although hardware vlans are). > > > > So... I need to know what GigE chipsets I should test. I recently > > tested Intel GigE cards ... with dismal results... less than half the > > packets-per-second on the (otherwise) same hardware. Small packets > > (as in DOS attacks) are a real concern here. > > Wow, this wasn't my experience at all. At my previous employer we > used Intel EEPro 1000 Server cards with the em(4) driver on FreeBSD > 4.5 with nary a hitch and excellent performance. This was on > ServerWorks chipset motherboards with P-III and P4 processors. > > > I believe that someone here recomended Tigon III based cards ... but I > > was recently looking through 5.0-RELEASE's hardware notes and couldn't > > find any mention of Tigon III. > > The follow-on to the Tigon II is the Broadcom BCM570x supported by > the bge(4) driver in FreeBSD. This is not what you want. They're > certainly cheap to test with, though; the Netgear GA302T sells for > under $40 at a few online retailers. > > -- > > Where am I, and what am I doing in this handbasket? > > Wes Peters wes@softweyr.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 1:24:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9447437B401 for ; Sat, 8 Feb 2003 01:24:13 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7951D43FBF for ; Sat, 8 Feb 2003 01:24:07 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 1132167B88 for ; Sat, 8 Feb 2003 01:24:07 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id CB1F676F; Sat, 8 Feb 2003 01:24:06 -0800 (PST) Date: Sat, 8 Feb 2003 01:24:06 -0800 From: Kris Kennaway To: current@FreeBSD.org Subject: Panic in fork() Message-ID: <20030208092406.GA12104@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Fatal trap 12: page fault while in kernel mode cpuid = 0; lapic.id = 01000000 fault virtual address = 0x14 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01a1e2d stack pointer = 0x10:0xe4146c74 frame pointer = 0x10:0xe4146cbc code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 99992 (sh) kernel: type 12 trap, code=0 Stopped at fork1+0x3fd: cmpl %ebx,0x14(%eax) db> trace fork1(c6ee5000,14,0,e4146cd4,c6c04788) at fork1+0x3fd fork(c6ee5000,e4146d10,c03445dc,407,0) at fork+0x52 syscall(2f,2f,2f,80f9cb4,80fe000) at syscall+0x28e Xint0x80_syscall() at Xint0x80_syscall+0x1d --- syscall (2, FreeBSD ELF32, fork), eip = 0x807bd63, esp = 0xbfbff69c, ebp = 0xbfbff6c8 --- db> Kris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 2:48:47 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 413A537B401 for ; Sat, 8 Feb 2003 02:48:45 -0800 (PST) Received: from flaske.stud.ntnu.no (flaske.stud.ntnu.no [129.241.56.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F19A43F85 for ; Sat, 8 Feb 2003 02:48:44 -0800 (PST) (envelope-from morten@rodal.no) Received: from localhost (localhost [127.0.0.1]) by flaske.stud.ntnu.no (Postfix) with ESMTP id CDA35FF485; Sat, 8 Feb 2003 11:48:42 +0100 (CET) Received: from slurp.rodal.no (m200h.studby.ntnu.no [129.241.135.200]) by flaske.stud.ntnu.no (Postfix) with ESMTP id 15A4AFF563; Sat, 8 Feb 2003 11:48:42 +0100 (CET) Received: (from morten@localhost) by slurp.rodal.no (8.12.6/8.12.6/Submit) id h18AmfBQ082034; Sat, 8 Feb 2003 11:48:41 +0100 (CET) (envelope-from morten) Date: Sat, 8 Feb 2003 11:48:41 +0100 From: Morten Rodal To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: Panic in fork() Message-ID: <20030208104836.GB11725@slurp.rodal.no> References: <20030208092406.GA12104@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline In-Reply-To: <20030208092406.GA12104@rot13.obsecurity.org> X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 08, 2003 at 01:24:06AM -0800, Kris Kennaway wrote: > Fatal trap 12: page fault while in kernel mode > cpuid =3D 0; lapic.id =3D 01000000 > fault virtual address =3D 0x14 > fault code =3D supervisor read, page not present > instruction pointer =3D 0x8:0xc01a1e2d > stack pointer =3D 0x10:0xe4146c74 > frame pointer =3D 0x10:0xe4146cbc > code segment =3D base 0x0, limit 0xfffff, type 0x1b > =3D DPL 0, pres 1, def32 1, gran 1 > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > current process =3D 99992 (sh) > kernel: type 12 trap, code=3D0 > Stopped at fork1+0x3fd: cmpl %ebx,0x14(%eax) > db> trace > fork1(c6ee5000,14,0,e4146cd4,c6c04788) at fork1+0x3fd > fork(c6ee5000,e4146d10,c03445dc,407,0) at fork+0x52 > syscall(2f,2f,2f,80f9cb4,80fe000) at syscall+0x28e > Xint0x80_syscall() at Xint0x80_syscall+0x1d > --- syscall (2, FreeBSD ELF32, fork), eip =3D 0x807bd63, esp =3D 0xbfbff6= 9c, ebp =3D 0xbfbff6c8 --- > db> >=20 Is this anything like the one I experienced in late January? http://www.freebsd.org/cgi/getmsg.cgi?fetch=3D1447263+1454677+/usr/local/ww= w/db/text/2003/freebsd-current/20030126.freebsd-current --=20 Morten Rodal --oLBj+sq0vYjzfsbl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+ROCEbWe1Cy11WVsRAjMIAKCJ2FUqrf0b+PCBE8STWs+f5uVBAwCfQeHX lxfBPI2rpmoR5nnBzJAhRhU= =UyuQ -----END PGP SIGNATURE----- --oLBj+sq0vYjzfsbl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 3: 5:16 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FA5737B401 for ; Sat, 8 Feb 2003 03:05:14 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7C4943F93 for ; Sat, 8 Feb 2003 03:05:13 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 280E967B88; Sat, 8 Feb 2003 03:05:13 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id BF8D3E5A; Sat, 8 Feb 2003 03:05:12 -0800 (PST) Date: Sat, 8 Feb 2003 03:05:12 -0800 From: Kris Kennaway To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: Panic in fork() Message-ID: <20030208110512.GB12696@rot13.obsecurity.org> References: <20030208092406.GA12104@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <20030208092406.GA12104@rot13.obsecurity.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 08, 2003 at 01:24:06AM -0800, Kris Kennaway wrote: > Fatal trap 12: page fault while in kernel mode > cpuid =3D 0; lapic.id =3D 01000000 > fault virtual address =3D 0x14 > fault code =3D supervisor read, page not present > instruction pointer =3D 0x8:0xc01a1e2d > stack pointer =3D 0x10:0xe4146c74 > frame pointer =3D 0x10:0xe4146cbc > code segment =3D base 0x0, limit 0xfffff, type 0x1b > =3D DPL 0, pres 1, def32 1, gran 1 > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > current process =3D 99992 (sh) > kernel: type 12 trap, code=3D0 > Stopped at fork1+0x3fd: cmpl %ebx,0x14(%eax) > db> trace > fork1(c6ee5000,14,0,e4146cd4,c6c04788) at fork1+0x3fd > fork(c6ee5000,e4146d10,c03445dc,407,0) at fork+0x52 > syscall(2f,2f,2f,80f9cb4,80fe000) at syscall+0x28e > Xint0x80_syscall() at Xint0x80_syscall+0x1d > --- syscall (2, FreeBSD ELF32, fork), eip =3D 0x807bd63, esp =3D 0xbfbff6= 9c, ebp =3D 0xbfbff6c8 --- > db> bento# addr2line -e kernel.debug 0xc01a1e2d =2E./../../kern/kern_fork.c:388 for (; p2 !=3D NULL; p2 =3D LIST_NEXT(p2, p_list)) { PROC_LOCK(p2); 388 --> while (p2->p_pid =3D=3D trypid ||=20 Kris --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RORnWry0BWjoQKURAqY3AKD807DJsaZWDDW9jiVnYCapUKxikQCfaJR2 UDgv8C9FCLEXhiNbcKWHbDU= =bTZB -----END PGP SIGNATURE----- --ibTvN161/egqYuK8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 3:18:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 608C637B401 for ; Sat, 8 Feb 2003 03:18:56 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84E1A43FBF for ; Sat, 8 Feb 2003 03:18:55 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 01AD067B88 for ; Sat, 8 Feb 2003 03:18:54 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 97FCC76F; Sat, 8 Feb 2003 03:18:54 -0800 (PST) Date: Sat, 8 Feb 2003 03:18:54 -0800 From: Kris Kennaway To: current@FreeBSD.org Subject: Dumping broken? Message-ID: <20030208111854.GA13178@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I'm having lots of problems with crashdumps under 5.0. Most of the time trying to force a dump via 'call doadump' returns an error about 'Context switches not permitted in the debugger'. Calling it again causes the system to hang. Is anyone else seeing this? Kris --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+ROeeWry0BWjoQKURArzWAJwI6L9gJsxNlxbSWVubk0OFzAgvpgCgr08f qCuxJNqWyk2YSAZGj4o36U4= =Yeg7 -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 4:16:49 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B09BE37B401 for ; Sat, 8 Feb 2003 04:16:47 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E39943F75 for ; Sat, 8 Feb 2003 04:16:47 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h18CGl7h044595 for ; Sat, 8 Feb 2003 04:16:47 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h18CGllr044593 for current@freebsd.org; Sat, 8 Feb 2003 04:16:47 -0800 (PST) Date: Sat, 8 Feb 2003 04:16:47 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302081216.h18CGllr044593@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Sat Feb 8 03:14:46 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Sat Feb 8 03:46:20 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Sat Feb 8 03:46:21 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4454: warning: duplicate script for target "geom_bsd.o" ignored /h/des/src/sys/dev/lmc/if_lmc.c:32:2: warning: #warning "The lmc driver is broken and is not compiled with LINT" /h/des/src/sys/dev/pdq/pdq.c: In function `pdq_initialize': /h/des/src/sys/dev/pdq/pdq.c:1606: warning: cast discards qualifiers from pointer target type /h/des/src/sys/pci/meteor.c:149:2: warning: #warning "The meteor driver is broken and is not compiled with LINT" /h/des/src/sys/pci/simos.c:30:2: warning: #warning "The simos driver is broken and is not compiled with LINT" /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_open': /h/des/src/sys/dev/gfb/gfb_pci.c:268: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:268: (Each undeclared identifier is reported only once /h/des/src/sys/dev/gfb/gfb_pci.c:268: for each function it appears in.) cc1: warnings being treated as errors /h/des/src/sys/dev/gfb/gfb_pci.c:275: warning: passing arg 1 of `genfbopen' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_close': /h/des/src/sys/dev/gfb/gfb_pci.c:284: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:285: warning: passing arg 1 of `genfbclose' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_read': /h/des/src/sys/dev/gfb/gfb_pci.c:293: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:294: warning: passing arg 1 of `genfbread' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_write': /h/des/src/sys/dev/gfb/gfb_pci.c:302: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:303: warning: passing arg 1 of `genfbwrite' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_ioctl': /h/des/src/sys/dev/gfb/gfb_pci.c:311: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:312: warning: passing arg 1 of `genfbioctl' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_mmap': /h/des/src/sys/dev/gfb/gfb_pci.c:320: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:321: warning: passing arg 1 of `genfbmmap' from incompatible pointer type *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 4:25:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70A5137B401 for ; Sat, 8 Feb 2003 04:25:27 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id C050F43F93 for ; Sat, 8 Feb 2003 04:25:26 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h18CPKOm052948; Sat, 8 Feb 2003 07:25:20 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h18CPKcJ052947; Sat, 8 Feb 2003 07:25:20 -0500 (EST) (envelope-from hiten) Date: Sat, 8 Feb 2003 07:25:20 -0500 From: Hiten Pandya To: walt Cc: current@FreeBSD.ORG Subject: Re: GEOM and Extended Slices Message-ID: <20030208122520.GA52344@unixdaemons.com> References: <3E447E62.1050203@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E447E62.1050203@hotmail.com> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 07, 2003 at 07:49:54PM -0800, walt wrote the words in effect of: > Hiten Pandya wrote: > >Hi gang. > > > >Recently removing the NO_GEOM option from my kernel; I noticed that my > >dos extended slices dev entries disappeared under a GEOM kernel... > > I've been using extended slices on both -stable and -current for > quite a while without any problems, both with and without GEOM. > > How were the extended slices created? The extended slices were created before FreeBSD 4.3 was installed on my machine. After that, I just kept building world and kernel and upgraded to 5.0. It used to work before GEOM, but then it suddenly stopped. Cheers. -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 5:26:21 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B650637B405 for ; Sat, 8 Feb 2003 05:26:19 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 8DC3843F75 for ; Sat, 8 Feb 2003 05:26:17 -0800 (PST) (envelope-from tmoestl@gmx.net) Received: (qmail 6002 invoked by uid 0); 8 Feb 2003 13:26:16 -0000 Received: from p508E55B2.dip.t-dialin.net (HELO galatea.local) (80.142.85.178) by mail.gmx.net (mp008-rz3) with SMTP; 8 Feb 2003 13:26:16 -0000 Received: from tmm by galatea.local with local (Exim 4.12 #1) id 18hV2d-0000dz-00; Sat, 08 Feb 2003 14:29:11 +0100 Date: Sat, 8 Feb 2003 14:29:11 +0100 From: Thomas Moestl To: Kris Kennaway Cc: current@FreeBSD.org Subject: Re: Dumping broken? Message-ID: <20030208132910.GA624@crow.dom2ip.de> Mail-Followup-To: Kris Kennaway , current@FreeBSD.org References: <20030208111854.GA13178@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline In-Reply-To: <20030208111854.GA13178@rot13.obsecurity.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, 2003/02/08 at 03:18:54 -0800, Kris Kennaway wrote: > I'm having lots of problems with crashdumps under 5.0. Most of the > time trying to force a dump via 'call doadump' returns an error about > 'Context switches not permitted in the debugger'. Calling it again > causes the system to hang. Is anyone else seeing this? If this is on ATA, try the attached patch. It changes ata_getparam() to not block anymore by reverting to the pre-r1.138 behaviour. This is just a quick hack though, since r1.138 was apparently made to fix probing of some CD-ROMs (so these are broken again by this patch). - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ata-dump.diff" Index: ata-all.c =================================================================== RCS file: /ncvs/src/sys/dev/ata/ata-all.c,v retrieving revision 1.163 diff -u -r1.163 ata-all.c --- ata-all.c 19 Jan 2003 20:18:07 -0000 1.163 +++ ata-all.c 21 Jan 2003 17:01:13 -0000 @@ -514,7 +514,7 @@ /* apparently some devices needs this repeated */ do { - if (ata_command(atadev, command, 0, 0, 0, ATA_WAIT_INTR)) { + if (ata_command(atadev, command, 0, 0, 0, ATA_WAIT_READY)) { ata_prtdev(atadev, "%s identify failed\n", command == ATA_C_ATAPI_IDENTIFY ? "ATAPI" : "ATA"); free(ata_parm, M_ATA); --sm4nu43k4a2Rpi4c-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 5:39:48 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7118D37B401 for ; Sat, 8 Feb 2003 05:39:46 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D8F343F93 for ; Sat, 8 Feb 2003 05:39:45 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id AAA05809; Sun, 9 Feb 2003 00:38:57 +1100 Date: Sun, 9 Feb 2003 00:39:01 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: Dumping broken? In-Reply-To: <20030208111854.GA13178@rot13.obsecurity.org> Message-ID: <20030209000140.H18099-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 8 Feb 2003, Kris Kennaway wrote: > I'm having lots of problems with crashdumps under 5.0. Most of the > time trying to force a dump via 'call doadump' returns an error about > 'Context switches not permitted in the debugger'. Calling it again > causes the system to hang. Is anyone else seeing this? This might be caused by ddb not disabling interrupts or by a driver bug (not keeping interrupts disabled, or not using polled mode for dumping so that dumping can work with interrupts disabled, or going near a mutex for dumping). If you call doadump() after ddb was invoked for certain fatal traps, then the 'Context switches not permitted in the debugger' is probably normal because of an old bug in ddb (it doesn't run with interrupts disabled in this case). Try the enclosed patch. Calls from ddb invoked by panic() shouldn't have this problem, but panic() is very likely to hang or die on a lock even before it gets to doadump(). %%% Index: db_interface.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/db_interface.c,v retrieving revision 1.69 diff -u -2 -r1.69 db_interface.c --- db_interface.c 21 Sep 2002 18:53:58 -0000 1.69 +++ db_interface.c 21 Sep 2002 23:56:57 -0000 @@ -78,4 +78,5 @@ kdb_trap(int type, int code, struct i386_saved_state *regs) { + u_int ef; volatile int ddb_mode = !(boothowto & RB_GDB); @@ -97,4 +98,8 @@ } + /* XXX is this correctly placed? SMP restart seems to be too early. */ + ef = read_eflags(); + disable_intr(); + switch (type) { case T_BPTFLT: /* breakpoint */ @@ -217,4 +222,7 @@ regs->tf_cs = ddb_regs.tf_cs & 0xffff; regs->tf_ds = ddb_regs.tf_ds & 0xffff; + + write_eflags(ef); + return (1); } %%% Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 6: 2:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CC2137B401 for ; Sat, 8 Feb 2003 06:02:13 -0800 (PST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 919C543F75 for ; Sat, 8 Feb 2003 06:02:12 -0800 (PST) (envelope-from wa1ter@hotmail.com) Received: from hotmail.com wa1ter@smtp-send.myrealbox.com [64.175.106.149] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.28 $ on Novell NetWare via secured & encrypted transport (TLS); Sat, 08 Feb 2003 07:02:13 -0700 Message-ID: <3E450E49.4030906@hotmail.com> Date: Sat, 08 Feb 2003 06:03:53 -0800 From: walt Organization: none User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3a) Gecko/20030125 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: GEOM and Extended Slices References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hiten Pandya wrote: > On Fri, Feb 07, 2003 at 07:49:54PM -0800, walt wrote the words in effect of: > >>Hiten Pandya wrote: >> >>>Hi gang. >>> >>>Recently removing the NO_GEOM option from my kernel; I noticed that my >>>dos extended slices dev entries disappeared under a GEOM kernel... >> >>I've been using extended slices on both -stable and -current for >>quite a while without any problems, both with and without GEOM. >> >>How were the extended slices created? > > > The extended slices were created before FreeBSD 4.3 was installed on my > machine. After that, I just kept building world and kernel and upgraded > to 5.0. It used to work before GEOM, but then it suddenly stopped. I just noticed that there are a bunch of GEOM options in /usr/src/sys/conf/GENERIC that I was not using in my custom kernel. I just added several of them that seem at least vaguely appropriate to my machine (I don't know what any of them actually are for, however). Extended slices are still working okay with the new options added. Are you using any of them in your kernel? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 6: 7:56 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D9CA37B401 for ; Sat, 8 Feb 2003 06:07:55 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6BC843F93 for ; Sat, 8 Feb 2003 06:07:54 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h18E7mOm060798; Sat, 8 Feb 2003 09:07:48 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h18E7mRm060797; Sat, 8 Feb 2003 09:07:48 -0500 (EST) (envelope-from hiten) Date: Sat, 8 Feb 2003 09:07:48 -0500 From: Hiten Pandya To: walt Cc: freebsd-current@FreeBSD.ORG Subject: Re: GEOM and Extended Slices Message-ID: <20030208140748.GA60701@unixdaemons.com> References: <3E450E49.4030906@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E450E49.4030906@hotmail.com> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 08, 2003 at 06:03:53AM -0800, walt wrote the words in effect of: > Hiten Pandya wrote: > >On Fri, Feb 07, 2003 at 07:49:54PM -0800, walt wrote the words in effect > >of: > > > >>Hiten Pandya wrote: > >> > >>>Hi gang. > >>> > >>>Recently removing the NO_GEOM option from my kernel; I noticed that my > >>>dos extended slices dev entries disappeared under a GEOM kernel... > >> > >>I've been using extended slices on both -stable and -current for > >>quite a while without any problems, both with and without GEOM. > >> > >>How were the extended slices created? > > > > > >The extended slices were created before FreeBSD 4.3 was installed on my > >machine. After that, I just kept building world and kernel and upgraded > >to 5.0. It used to work before GEOM, but then it suddenly stopped. > > I just noticed that there are a bunch of GEOM options in > /usr/src/sys/conf/GENERIC that I was not using in my custom > kernel. I just added several of them that seem at least vaguely > appropriate to my machine (I don't know what any of them actually > are for, however). Extended slices are still working okay with > the new options added. Are you using any of them in your kernel? Nop, no additional GEOM related options. -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 6:15:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D54B837B401 for ; Sat, 8 Feb 2003 06:15:51 -0800 (PST) Received: from flaske.stud.ntnu.no (flaske.stud.ntnu.no [129.241.56.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA3D543FA3 for ; Sat, 8 Feb 2003 06:15:47 -0800 (PST) (envelope-from morten@rodal.no) Received: from localhost (localhost [127.0.0.1]) by flaske.stud.ntnu.no (Postfix) with ESMTP id 2296EFF1E4; Sat, 8 Feb 2003 15:15:46 +0100 (CET) Received: from slurp.rodal.no (m200h.studby.ntnu.no [129.241.135.200]) by flaske.stud.ntnu.no (Postfix) with ESMTP id 63CE4FF108; Sat, 8 Feb 2003 15:15:45 +0100 (CET) Received: (from morten@localhost) by slurp.rodal.no (8.12.6/8.12.6/Submit) id h18EFiiZ086298; Sat, 8 Feb 2003 15:15:44 +0100 (CET) (envelope-from morten) Date: Sat, 8 Feb 2003 15:15:44 +0100 From: Morten Rodal To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: Panic in fork() Message-ID: <20030208141542.GC11725@slurp.rodal.no> References: <20030208092406.GA12104@rot13.obsecurity.org> <20030208110512.GB12696@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ALfTUftag+2gvp1h" Content-Disposition: inline In-Reply-To: <20030208110512.GB12696@rot13.obsecurity.org> X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ALfTUftag+2gvp1h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 08, 2003 at 03:05:12AM -0800, Kris Kennaway wrote: > bento# addr2line -e kernel.debug 0xc01a1e2d > ../../../kern/kern_fork.c:388 >=20 > for (; p2 !=3D NULL; p2 =3D LIST_NEXT(p2, p_list)) { > PROC_LOCK(p2); > 388 --> while (p2->p_pid =3D=3D trypid ||=20 >=20 That is the exact same spot I saw my computer (old smp machine) crash. I think someone mentioned that it would be more or less impossible to crash there since one would not enter the for loop when p2 is NULL. Could it be that PROC_LOCK tampers with p2? Also see my other post to your original message. --=20 Morten Rodal --ALfTUftag+2gvp1h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RREObWe1Cy11WVsRAsC9AKDiwaD9IsyBgdXjqsg6hS0xs8Bg2gCcDGl8 qkc0VDnbB49hkXB9V8m8hVY= =vbMd -----END PGP SIGNATURE----- --ALfTUftag+2gvp1h-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 6:54: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5373137B401 for ; Sat, 8 Feb 2003 06:54:01 -0800 (PST) Received: from birch.ripe.net (birch.ripe.net [193.0.1.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4539843F75 for ; Sat, 8 Feb 2003 06:54:00 -0800 (PST) (envelope-from marks@ripe.net) Received: from laptop.6bone.nl (cow.ripe.net [193.0.1.239]) by birch.ripe.net (8.12.5/8.11.6) with SMTP id h18ErwAq020217; Sat, 8 Feb 2003 15:53:58 +0100 Received: (nullmailer pid 7597 invoked by uid 1000); Sat, 08 Feb 2003 14:53:58 -0000 Date: Sat, 8 Feb 2003 15:53:58 +0100 From: Mark Santcroos To: Ian Dowse Cc: freebsd-current@FreeBSD.ORG Subject: Re: backgroud fsck is still locking up system (fwd) Message-ID: <20030208145358.GA7480@laptop.6bone.nl> References: <200212070152.gB71qc59094441@beastie.mckusick.com> <200212071426.aa60667@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212071426.aa60667@salmon.maths.tcd.ie> User-Agent: Mutt/1.4i X-Handles: MS6-6BONE, MS18417-RIPE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Dec 07, 2002 at 02:26:39PM +0000, Ian Dowse wrote: > BTW, I've been using a fsck_ffs modificaton for a while now that > does something like the disabled kernel I/O slowdown, but from > userland. How about the following change (patch included) to make the slowdown optional? On my laptop I prefer to do the fsck sometimes as fast as possible. This could be easily made into a rc.conf variable. Please let me know if you would be interested in that and I will come up with a patch. Mark Index: fsck.h =================================================================== RCS file: /usr/cvs/src/sbin/fsck_ffs/fsck.h,v retrieving revision 1.28 diff -u -r1.28 fsck.h --- fsck.h 16 Sep 2002 11:27:47 -0000 1.28 +++ fsck.h 8 Feb 2003 13:42:18 -0000 @@ -234,6 +234,7 @@ char nflag; /* assume a no response */ char yflag; /* assume a yes response */ int bkgrdflag; /* use a snapshot to run on an active system */ +int noslowdown; /* don't slow down a background fsck */ int bflag; /* location of alternate super block */ int debug; /* output debugging info */ int cvtlevel; /* convert to newer file system format */ Index: fsutil.c =================================================================== RCS file: /usr/cvs/src/sbin/fsck_ffs/fsutil.c,v retrieving revision 1.20 diff -u -r1.20 fsutil.c --- fsutil.c 7 Dec 2002 21:40:31 -0000 1.20 +++ fsutil.c 8 Feb 2003 13:33:54 -0000 @@ -357,12 +357,12 @@ offset = blk; offset *= dev_bsize; - if (bkgrdflag) + if (bkgrdflag && !noslowdown) slowio_start(); if (lseek(fd, offset, 0) < 0) rwerror("SEEK BLK", blk); else if (read(fd, buf, (int)size) == size) { - if (bkgrdflag) + if (bkgrdflag && !noslowdown) slowio_end(); return (0); } Index: main.c =================================================================== RCS file: /usr/cvs/src/sbin/fsck_ffs/main.c,v retrieving revision 1.36 diff -u -r1.36 main.c --- main.c 21 Aug 2002 18:10:28 -0000 1.36 +++ main.c 8 Feb 2003 13:41:28 -0000 @@ -82,7 +82,7 @@ sync(); skipclean = 1; - while ((ch = getopt(argc, argv, "b:Bc:dfFm:npy")) != -1) { + while ((ch = getopt(argc, argv, "b:Bc:dfFm:npyz")) != -1) { switch (ch) { case 'b': skipclean = 0; @@ -133,6 +133,10 @@ case 'y': yflag++; nflag = 0; + break; + + case 'z': + noslowdown = 1; break; default: -- Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 6:58:56 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D8D937B401 for ; Sat, 8 Feb 2003 06:58:54 -0800 (PST) Received: from list-svr.nventure.com (list-svr.nventure.com [208.186.46.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1087B43F3F for ; Sat, 8 Feb 2003 06:58:54 -0800 (PST) (envelope-from plathem@ivestnw.net) Received: from ivestnw.net ([208.187.15.9]) by list-svr.nventure.com (Post.Office MTA v3.5.3 release 223 ID# 0-67609U1600L200S0V35) with ESMTP id com for ; Sat, 8 Feb 2003 07:12:02 -0800 Message-ID: <3E451B22.2030603@ivestnw.net> Date: Sat, 08 Feb 2003 06:58:42 -0800 From: Pat Lathem User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030202 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org Subject: Attempting to mount flashcard Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello all. I'm trying to get my digital camera's flashcard reader working with FreeBSD 5.0-current. When I try to mount the card (mount_msdosfs /dev/da0 /mnt or mount -t msdos) I get a long delay (~1m) followed by: msdosfs: /dev/da0: Input/output error This is displayed when I insert the card: umass0: SCM Microsystems Inc. eUSB MultimediaCard Adapter, rev1.10/4.04,addr 2 (~30s pause) umass0: BBB reset failed, TIMEOUT da0 at umass-sim0 bus 0 target 0 lum 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 15MB (31424 512 byte sectors: 64H 32/T 15C) camcontrol devlist -v : scbus0 on umass-sim0 bus 0: at scbus0 target 0 lun 0 (da0,pass0) scbus-1 on xpt0 bus 0 < > at scbus-1 target -1 lyn -1 (xpt0) Can anyone provide some more information, or links (I have searched quite a bit) that I could use to figure out how to mount this device properly? Thanks for your time, Pat Lathem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 7: 9:36 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 339CF37B401 for ; Sat, 8 Feb 2003 07:09:35 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 0E59343FA3 for ; Sat, 8 Feb 2003 07:09:34 -0800 (PST) (envelope-from tmoestl@gmx.net) Received: (qmail 20595 invoked by uid 0); 8 Feb 2003 15:09:32 -0000 Received: from p508E55B2.dip.t-dialin.net (HELO galatea.local) (80.142.85.178) by mail.gmx.net (mp011-rz3) with SMTP; 8 Feb 2003 15:09:32 -0000 Received: from tmm by galatea.local with local (Exim 4.12 #1) id 18hWeY-000D95-00; Sat, 08 Feb 2003 16:12:26 +0100 Date: Sat, 8 Feb 2003 16:12:26 +0100 From: Thomas Moestl To: Morten Rodal Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: Panic in fork() Message-ID: <20030208151226.GB624@crow.dom2ip.de> Mail-Followup-To: Morten Rodal , Kris Kennaway , current@FreeBSD.ORG References: <20030208092406.GA12104@rot13.obsecurity.org> <20030208110512.GB12696@rot13.obsecurity.org> <20030208141542.GC11725@slurp.rodal.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030208141542.GC11725@slurp.rodal.no> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2003/02/08 at 15:15:44 +0100, Morten Rodal wrote: > On Sat, Feb 08, 2003 at 03:05:12AM -0800, Kris Kennaway wrote: > > bento# addr2line -e kernel.debug 0xc01a1e2d > > ../../../kern/kern_fork.c:388 > > > > for (; p2 != NULL; p2 = LIST_NEXT(p2, p_list)) { > > PROC_LOCK(p2); > > 388 --> while (p2->p_pid == trypid || > > > > That is the exact same spot I saw my computer (old smp machine) crash. > I think someone mentioned that it would be more or less impossible to > crash there since one would not enter the for loop when p2 is NULL. > > Could it be that PROC_LOCK tampers with p2? addr2line will usually point to the first line of a statement if it spans multiple lines; in this case, the full guard is: while (p2->p_pid == trypid || p2->p_pgrp->pg_id == trypid || p2->p_session->s_sid == trypid) { The fault address indicates, that p2->p_pgrp->p_session (p_session is a macro that expands to p_pgrp->p_session) is NULL, since the offset of s_sid in struct session is 0x14. I haven't yet found out how that could happen though, this field is never legitimatly NULL and the locking seems to be tight so that it cannot be freed from under fork1(). - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 8:10:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3057937B401 for ; Sat, 8 Feb 2003 08:10:39 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C4FB43F93 for ; Sat, 8 Feb 2003 08:10:34 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h18GAVGQ045121; Sat, 8 Feb 2003 19:10:31 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h18GAOuB045120; Sat, 8 Feb 2003 19:10:24 +0300 (MSK) (envelope-from ache) Date: Sat, 8 Feb 2003 19:10:24 +0300 From: "Andrey A. Chernov" To: phk@phk.freebsd.dk Cc: Bruce Evans , current@FreeBSD.ORG Subject: Re: Wrong date for DEVFS entries Message-ID: <20030208161023.GA45063@nagual.pp.ru> References: <20030207232556.GA36704@nagual.pp.ru> <17137.1044691280@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17137.1044691280@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 08, 2003 at 09:01:20 +0100, phk@phk.freebsd.dk wrote: > >I see no solving way until kernel will understand fully and can handle > >timezone database format. It means timezone code should be integrated > >into kernel. And for which reason? Only to heal DEVFS timestamps? Mount > >workaround looks more light-weighted. > > Please re-read my earlier email on the topic. I wrote this after careful examination of your earlier email about taking zoneinfo information at boot time, i.e. about "/boot/timezone.hint" which must be in zoneinfo format to handle unlimited amount of machine up/down times. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 8:13:40 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D78337B401; Sat, 8 Feb 2003 08:13:39 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D447043FA3; Sat, 8 Feb 2003 08:13:37 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id h18GDWGQ045186; Sat, 8 Feb 2003 19:13:32 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id h18GDWUe045185; Sat, 8 Feb 2003 19:13:32 +0300 (MSK) (envelope-from ache) Date: Sat, 8 Feb 2003 19:13:32 +0300 From: "Andrey A. Chernov" To: Bruce Evans Cc: phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Wrong date for DEVFS entries Message-ID: <20030208161331.GB45063@nagual.pp.ru> References: <20030207231315.GA29117@nagual.pp.ru> <20030208164836.P15198-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030208164836.P15198-100000@gamplex.bde.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 08, 2003 at 16:52:28 +1100, Bruce Evans wrote: > > > > Obvious workaround: could DEVFS be mounted read-only initially and then > > re-mounted as read-write after adjkerntz started, in the same manner as / > > remounted read-write, i.e. with "mount -u" ? > > No. devfs silently ignores MNT_RDONLY and doesn't support MNT_UPDATE. I mean not right now situation, but it could fixed to handle them. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 9: 0:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 391BF37B401; Sat, 8 Feb 2003 09:00:33 -0800 (PST) Received: from melusine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [62.212.105.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DD7243F93; Sat, 8 Feb 2003 09:00:31 -0800 (PST) (envelope-from thomas@FreeBSD.ORG) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id A80B82C400; Sat, 8 Feb 2003 18:00:29 +0100 (CET) Date: Sat, 8 Feb 2003 18:00:29 +0100 From: Thomas Quinot To: CHOI Junho Cc: thomas@FreeBSD.ORG, tjr@FreeBSD.ORG, current@FreeBSD.ORG, roberto@FreeBSD.ORG Subject: Re: 5.0 cron problem Message-ID: <20030208170029.GB98416@melusine.cuivre.fr.eu.org> Reply-To: Thomas Quinot References: <20030207.194304.39156547.cjh@kr.FreeBSD.org> <20030207.213604.59654504.cjh@kr.FreeBSD.org> <20030207130724.GA28122@melusine.cuivre.fr.eu.org> <20030208.124823.115905861.cjh@kr.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030208.124823.115905861.cjh@kr.FreeBSD.org> User-Agent: Mutt/1.4i X-message-flag: WARNING! Using Outlook can damage your computer. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Le 2003-02-08, CHOI Junho écrivait : > Oh sorry... I didn't restart cron :P. It works well. 'cron -x pars' > says that whitespaces is correctly parsed. OK, that's reassuring! Ollivier can you review the posted patch please? Thanks, Thomas. -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 9:23:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F098D37B401; Sat, 8 Feb 2003 09:23:51 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51CC843FAF; Sat, 8 Feb 2003 09:23:51 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0350.cvx22-bradley.dialup.earthlink.net ([209.179.199.95] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18hYhb-0003Uh-00; Sat, 08 Feb 2003 09:23:44 -0800 Message-ID: <3E453CC8.6A93E760@mindspring.com> Date: Sat, 08 Feb 2003 09:22:16 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Wes Peters Cc: David Gilbert , freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Re: Preferred Gigabit interfaces for -CURRENT References: <15939.2823.45299.471388@canoe.velocet.net> <200302080049.00472.wes@softweyr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4813ac735c79d3d5adebd8dcf060ffc28a2d4e88014a4647c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wes Peters wrote: > On Friday 07 February 2003 01:25, David Gilbert wrote: > > I believe that someone here recomended Tigon III based cards ... but I > > was recently looking through 5.0-RELEASE's hardware notes and couldn't > > find any mention of Tigon III. > > The follow-on to the Tigon II is the Broadcom BCM570x supported by > the bge(4) driver in FreeBSD. This is not what you want. They're > certainly cheap to test with, though; the Netgear GA302T sells for > under $40 at a few online retailers. I personally really like the Tigon III. It doesn't have the alignment issues that some of the cards do, so you get to avoid the m_pullup() (and the copy that happenes with it, in tcp_input()), since it can scatter/gather to an unaligned address. It's also the first card I'm aware of that does the full range of checksum offloading, without slowing the card down, which (finally!) lets you offload some of the network processing to the card (i.e. it does IP, TCP, and UDP). The card itself does interrupt coelescing in hardware, and you can adjust both the trigger and buffer thresholds from the driver. Using 64bit 66MHz slots, it's possible to keep two interfaces completely loaded, while retaining sufficient CPU and bus bandwidth to actually do other work (though, in general, you will want to tune your stack, and replace the mbuf allocator). About the only complaint I really have about it is that, unlike the Tigon II, now that Broadcomm got their grubby little hands on it, unlike Alteon, they are refusing to make the firmware sources available so people can do useful work in the context of the firmware. Actually, there are some really brilliant things you can do, if you can replace the firmware, that can take you up to theoretical max packets a second very easily and quickly. We were able to get in the neighborhood of 31,000 connections per second with the Tigon III, alll other things being equal, even before FreeBSD added the SYN cache and SYN cookie code. Is there a particular reason you don't like the card, or at least prefer the other card more? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 9:34:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7960537B401 for ; Sat, 8 Feb 2003 09:34:25 -0800 (PST) Received: from mike.reifenberger.com (pD9E50DE9.dip.t-dialin.net [217.229.13.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 636DB43F75 for ; Sat, 8 Feb 2003 09:34:23 -0800 (PST) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (nihil [10.0.0.2]) by mike.reifenberger.com (8.12.6/8.12.6) with ESMTP id h18HYG9O068982; Sat, 8 Feb 2003 18:34:17 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from nihil.reifenberger.com (localhost.reifenberger.com [127.0.0.1]) by nihil.reifenberger.com (8.12.6/8.12.6) with ESMTP id h18HY6co000707; Sat, 8 Feb 2003 18:34:06 +0100 (CET) (envelope-from root@nihil.reifenberger.com) Received: from localhost (root@localhost) by nihil.reifenberger.com (8.12.6/8.12.6/Submit) with ESMTP id h18HY4At000704; Sat, 8 Feb 2003 18:34:06 +0100 (CET) Date: Sat, 8 Feb 2003 18:34:04 +0100 (CET) From: Michael Reifenberger To: Joerg Wunsch Cc: freebsd-current@freebsd.org Subject: Re: vinum start & -current doesn't work as expected In-Reply-To: <20030207225249.O33219@nihil.reifenberger.com> Message-ID: <20030208181905.Y664@nihil.reifenberger.com> References: <20030207105857.T2514@nihil.reifenberger.com> <200302072056.h17KujgW073866@uriah.heep.sax.de> <20030207225249.O33219@nihil.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, hits=-1.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 7 Feb 2003, Michael Reifenberger wrote: ... > > As a workaround, you can try setting > > > > vinum_load=YES > > vinum.autostart=YES > > > > in your /boot/loader.conf, /and/ remove the start_vinum line from > > rc.conf. Please tell me whether this gives different results. Bad things happen when doing the above. Vinum forgets his configuration on loading. I did the following: 1.) Configure a volume as: drive d0 device /dev/da0s1a drive d1 device /dev/da1s1a volume ablage setupstate plex name ablage.p0 org concat sd name ablage.p0.s0 drive d0 size 0b plex name ablage.p1 org concat sd name ablage.p1.s0 drive d1 size 0b 2.) Reboot 3.) During startup I get now: ... da0 at sbp0 bus 0 target 0 lun 0 da0: Fixed Simplified Direct Access SCSI-4 device da0: 50.000MB/s transfers da0: 194481MB (398297088 512 byte sectors: 255H 63S/T 24792C) da1 at sbp0 bus 0 target 1 lun 0 da1: Fixed Simplified Direct Access SCSI-4 device da1: 50.000MB/s transfers da1: 194481MB (398297088 512 byte sectors: 255H 63S/T 24792C) vinum: loaded cd0 at ata0 bus 0 target 1 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present vinum: reading configuration from da0s1a vinum: updating configuration from da1s1a Mounting root from ufs:/dev/ad0s3a ... 5.) ls -l /dev/vinum total 0 crw------- 1 root wheel 91, 0x40000001 8 Feb 18:15 control crw------- 1 root wheel 91, 0x40000000 8 Feb 18:15 controld 6.) Taking a look at /dev/da0s1a gives something like: ... ^@^@^@^@^@^@^@^@volume ablage state up plex name ablage.p0 state up org concat vol ablage plex name ablage.p1 state up org concat vol ablage sd name ablage.p0.s0 drive d0 plex ablage.p0 len 398296697s driveoffset 265s state up plexoffset 0s sd name ablage.p1.s0 drive d1 plex ablage.p1 len 398296697s driveoffset 265s state up plexoffset 0s ... 7.) Maybe not to late, doing a `vinum read /dev/da0s1 /dev/da1s1; vinum l`: ... nada ... 8.) Taking a look at /dev/da0s1a gives now something like: ... ^@^@^@^@IN VINO^@^@^@^A^@nihil^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@d0^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@£>B>!ã^C^@¹;E>&5^L^@^@^D^O{/^@^@^@^@^@^@^@^@ ^@^@ú<98>^C>^@^@^@^@ú<98>^C>^@^@^@^@ú<98>^C>^@^@^@^@^@^@ ^@^@^@^@^@^@rxh8^@^@^B^@xËÒ^A^@À^A^@^@^@^@^@`ÎKĞ^D^@^@^@^@^@^@^@^@^@^@^@°ª^WÃ^@^@^@^@^@^@^@^@^@^@^@^@PİøÂ0Ñ÷ÂHr^\Ã^@<90>äÑ^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^C^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<89><85>èşÿÿÙ<9D>¤şÿÿó^O^P<85>¤şÿÿó^O,À<89><85>äşÿ ÿ^O¶D<9A>^AÁà^Kó^O*Àó^O^Q<85>¤şÿÿÙ<85>^\ÿÿÿÙ<85>¤şÿÿÙÉØÌÙÌ^@^@^@^@ÿÿÙÉŞÄÙ<85>^XÿÿÿØÊÙÊØÍÙÌŞÂÙ<85>^\ÿÿÿØËÙÊÙ<9D>¤şÿÿÙÉó^O^P <85>¤şÿÿØ<85>^XÿÿÿÙÊØ<8D>^PÿÿÿÙÊó^O,ÀØÍÙÊ^E^@^D^@^@<89><85>ÜşÿÿØÄØÍÙÊÙ<9D>¤şÿÿó^O^P<85>¤şÿÿó^O,À<89><85>Øşÿÿ^O¶D<9A>^BÁà^Kó ^O*Àó^O^Q<85>¤şÿ^@^@^@^@^ .. (Hmmm. nix config) 9.) `cd /etc/vinum; vinum create firewire.conf`: 4 drives: D d1 State: up /dev/da1s1a A: 0/194480 MB (0%) D d0 State: up /dev/da0s1a A: 0/194480 MB (0%) 1 volumes: V ablage State: up Plexes: 2 Size: 189 GB 2 plexes: P ablage.p0 C State: up Subdisks: 1 Size: 189 GB P ablage.p1 C State: up Subdisks: 1 Size: 189 GB 2 subdisks: S ablage.p0.s0 State: up D: d0 Size: 189 GB S ablage.p1.s0 State: up D: d1 Size: 189 GB 10.) Goto 2.) Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 9:35:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF74737B401 for ; Sat, 8 Feb 2003 09:35:13 -0800 (PST) Received: from melusine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [62.212.105.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 369DA43F85 for ; Sat, 8 Feb 2003 09:35:13 -0800 (PST) (envelope-from thomas@FreeBSD.ORG) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id EFF492C3D2; Sat, 8 Feb 2003 18:35:11 +0100 (CET) Date: Sat, 8 Feb 2003 18:35:11 +0100 From: Thomas Quinot To: current@freebsd.org Subject: Corrupted crashdump? Message-ID: <20030208173511.GA2625@melusine.cuivre.fr.eu.org> Reply-To: Thomas Quinot Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-message-flag: WARNING! Using Outlook can damage your computer. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On a Dell Inspiron 8200 laptop, with ACPI disabled, 5.0-REL rebooted while the system was quiescent. gdb appears to be unable to make sense of the produced crash dump: # gdb -k /usr/obj/usr/src/sys/MALEVIL/kernel.debug vmcore.1 GNU gdb 5.2.1 (FreeBSD) [...] This GDB was configured as "i386-undermydesk-freebsd"... can not access 0xc03a4a2c, invalid address (c03a4a2c) can not access 0xc03a4a2c, invalid address (c03a4a2c) panic messages: --- dmesg: kvm_read: invalid address (c03bf6bc) --- can not access 0xc03d6d40, invalid address (c03d6d40) can not access 0xc03d6d40, invalid address (c03d6d40) #0 0x00000000 in ?? () (kgdb) bt #0 0x00000000 in ?? () (kgdb) Thomas. -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 9:38: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF6D737B503 for ; Sat, 8 Feb 2003 09:37:58 -0800 (PST) Received: from lakemtao04.cox.net (lakemtao04.cox.net [68.1.17.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3C5843F85 for ; Sat, 8 Feb 2003 09:37:57 -0800 (PST) (envelope-from ataraxia@cox.net) Received: from arkadia.nv.cox.net ([68.98.189.223]) by lakemtao04.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030208173757.OGWQ22825.lakemtao04.cox.net@arkadia.nv.cox.net> for ; Sat, 8 Feb 2003 12:37:57 -0500 Received: by arkadia.nv.cox.net (Postfix, from userid 1001) id D820B14D87A; Sat, 8 Feb 2003 12:37:56 -0500 (EST) Date: Sat, 8 Feb 2003 12:37:56 -0500 From: Ray Kohler To: freebsd-current@freebsd.org Subject: Compiling with high optimization? Message-ID: <20030208173756.GA56030@arkadia.nv.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Has anyone tried building world/kernel with high optimizations (-O2, -O3) recently? What breaks? (Booby prize to whoever says "common sense" ;) I last tried it quite a few months ago and the resolver died on me, don't know what else. I'm not really thinking of running like that, but I am curious about others' experiences. -- Ray Kohler When you're not looking at it, this fortune is written in FORTRAN. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 9:49:45 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94B5C37B401; Sat, 8 Feb 2003 09:49:43 -0800 (PST) Received: from nebula.wanadoo.fr (ca-sqy-2-191.abo.wanadoo.fr [80.8.55.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id F032343F3F; Sat, 8 Feb 2003 09:49:41 -0800 (PST) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost.wanadoo.fr [127.0.0.1]) by nebula.wanadoo.fr (8.12.6/8.12.6) with ESMTP id h18HnajO000821; Sat, 8 Feb 2003 18:49:36 +0100 (CET) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.6/8.12.6/Submit) id h18HnZoK000820; Sat, 8 Feb 2003 18:49:35 +0100 (CET) Date: Sat, 8 Feb 2003 18:49:35 +0100 From: Aurelien Nephtali To: Thomas Quinot Cc: current@FreeBSD.ORG Subject: Re: Corrupted crashdump? Message-ID: <20030208174935.GA754@nebula.wanadoo.fr> References: <20030208173511.GA2625@melusine.cuivre.fr.eu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <20030208173511.GA2625@melusine.cuivre.fr.eu.org> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I've got the same problem after a panic, the produced core dump was invalid. I'm on -CURRENT and I think the reason of the core production isn't the sam= e as you, but the core dump problem is the same, I'm sure of it. I'm also on a laptop (Compaq Presarion) but ACPI is enabled. I have removed the core dump :/ -- Aurelien On Sat, Feb 08, 2003 at 06:35:11PM +0100, Thomas Quinot wrote: > On a Dell Inspiron 8200 laptop, with ACPI disabled, 5.0-REL rebooted > while the system was quiescent. gdb appears to be unable to make sense > of the produced crash dump: >=20 > # gdb -k /usr/obj/usr/src/sys/MALEVIL/kernel.debug vmcore.1 > GNU gdb 5.2.1 (FreeBSD) > [...] > This GDB was configured as "i386-undermydesk-freebsd"... > can not access 0xc03a4a2c, invalid address (c03a4a2c) > can not access 0xc03a4a2c, invalid address (c03a4a2c) > panic messages: > --- > dmesg: kvm_read: invalid address (c03bf6bc) > --- > can not access 0xc03d6d40, invalid address (c03d6d40) > can not access 0xc03d6d40, invalid address (c03d6d40) > #0 0x00000000 in ?? () > (kgdb) bt > #0 0x00000000 in ?? () > (kgdb) >=20 > Thomas. >=20 > --=20 > Thomas.Quinot@Cuivre.FR.EU.ORG >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RUMvDNsbHbt8ok8RAv0OAJ4/g3cSwpgu2c/t5n3mknFHUGUI3gCfY1Wq 687A7NgtwJdfSr3UNOgUUII= =Sgq7 -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 10:17:36 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33F1637B401 for ; Sat, 8 Feb 2003 10:17:35 -0800 (PST) Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46CE743F3F for ; Sat, 8 Feb 2003 10:17:34 -0800 (PST) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (rdu57-229-060.nc.rr.com [66.57.229.60]) by habanero.hesketh.net (8.12.6/8.12.6) with ESMTP id h18IHUfx027388 for ; Sat, 8 Feb 2003 13:17:30 -0500 X-Received-From: brent@mutt.rcfile.org X-Delivered-To: X-Spam-Filter: check_local@habanero.hesketh.net by digitalanswers.org Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.12.6/8.12.6) with ESMTP id h18IHaXD014145 for ; Sat, 8 Feb 2003 13:17:36 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.6/8.12.6/Submit) id h18IHaLZ014144 for freebsd-current@freebsd.org; Sat, 8 Feb 2003 13:17:36 -0500 (EST) Date: Sat, 8 Feb 2003 13:17:36 -0500 From: Brent Verner To: freebsd-current@freebsd.org Subject: gcc-3.2.1 and c++ headers Message-ID: <20030208181736.GA14066@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.7-STABLE #32: Tue Feb 4 11:04:18 EST 2003 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTTS User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In trying to compile the most recent native jdk-1.4.1, I noticed that compiling with the header didn't work. // ** won't link ** #include // ** works ** // #include // ** works ** // #include // using namespace std; int main(){ return 1; } void xxx (ostream& os) { os << ' '; os << "out\n"; } This code will compile on 4.7-stable (gcc-2.95), and on debian/linux (gcc-3.2.2) with a #warning. I am aware that the <$HEADER.h> includes are deprecated, but is there any intent to allow the deprecated headers to work with the system compiler (gcc-3.2.1), or should any affected apps be considered broken (on 5.0-current)? thanks. brent -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 10:22:27 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C43137B401 for ; Sat, 8 Feb 2003 10:22:26 -0800 (PST) Received: from smtp.acd.net (smtp.acd.net [207.179.102.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B93043F75 for ; Sat, 8 Feb 2003 10:22:21 -0800 (PST) (envelope-from taxman@ACD.NET) Received: from Knoppix ([207.179.77.192]) by smtp.acd.net with Microsoft SMTPSVC(5.0.2195.5329); Sat, 8 Feb 2003 13:22:31 -0500 Content-Type: text/plain; charset="iso-8859-1" From: taxman To: Adrian Penisoara , freebsd-current@freebsd.org Subject: Re: New technologies in FreeBSD 5.x vs. 4.x Date: Sat, 8 Feb 2003 13:23:58 +0100 User-Agent: KMail/1.4.3 References: <20030206151052.U68316@yoda.warpnet.ro> In-Reply-To: <20030206151052.U68316@yoda.warpnet.ro> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302081323.58909.taxman@acd.net> X-OriginalArrivalTime: 08 Feb 2003 18:22:31.0988 (UTC) FILETIME=[0B860F40:01C2CF9F] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hmm. somewhat OT for -current and very OT for -hackers (crossposting remo= ved).=20 -questions would be better On Thursday 06 February 2003 02:17 pm, Adrian Penisoara wrote: > I'm about to write an article on FreeBSD for PC Magazine Romania and = I > would like to concentrate on the new technologies introduced in FreeBSD > 5.x. excellent, the advocacy is welcome > Where can I find a (preferrably detailed) list of the new technologie= s > introduced with FreeBSD 5.x ? http://www.freebsd.org/releases/5.0R/relnotes.html for your given architecture is designed to give you this information. > I would also like, if possible, to > get in touch with a few of the main developers that took charge of > coding them. You could read through a lot of the manpages for new technology as listed= in=20 the relnotes. The authors of each are listed in the manpage. That doesn= 't=20 get you everybody that contributed, but is a good start Very detailed information for every commit can be found at: http://www.freebsd.org/cgi/cvsweb.cgi/ > Thank you very much, > Adrian Penisoara > Ady (@freebsd.ady.ro, @rofug.ro) > ROFUG founder To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 10:57:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07F9237B401 for ; Sat, 8 Feb 2003 10:57:33 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA31C43FD7 for ; Sat, 8 Feb 2003 10:57:28 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id h18Iw1hE006197; Sat, 8 Feb 2003 13:58:01 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id h18Iw0BG006196; Sat, 8 Feb 2003 13:58:00 -0500 (EST) Date: Sat, 8 Feb 2003 13:58:00 -0500 From: Craig Rodrigues To: Adrian Penisoara Cc: freebsd-current@freebsd.org Subject: Re: New technologies in FreeBSD 5.x vs. 4.x Message-ID: <20030208185800.GA5141@attbi.com> References: <20030206151052.U68316@yoda.warpnet.ro> <200302081323.58909.taxman@acd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302081323.58909.taxman@acd.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 08, 2003 at 01:23:58PM +0100, taxman wrote: > Very detailed information for every commit can be found at: > http://www.freebsd.org/cgi/cvsweb.cgi/ Adrian, For your FreeBSD news article, if you want to get in contact with developers who have added new things to FreeBSD, I recommend you look at the latest status reports in 2002: http://www.freebsd.org/news/status/status.html Those reports have nice summaries of new features, with contact e-mails for the developers who added those features. -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 12:34:58 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D6CC37B401; Sat, 8 Feb 2003 12:34:55 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E38B43FDF; Sat, 8 Feb 2003 12:34:55 -0800 (PST) (envelope-from wes@softweyr.com) Received: from foogate.softweyr.com (66-75-151-22.san.rr.com [66.75.151.22]) by smtp-relay.omnis.com (Postfix) with ESMTP id 2C65043192; Sat, 8 Feb 2003 12:33:41 -0800 (PST) From: Wes Peters Organization: Softweyr To: Terry Lambert Subject: Re: Preferred Gigabit interfaces for -CURRENT Date: Sat, 8 Feb 2003 13:32:29 +0000 User-Agent: KMail/1.5 Cc: David Gilbert , freebsd-current@freebsd.org, freebsd-net@freebsd.org References: <15939.2823.45299.471388@canoe.velocet.net> <200302080049.00472.wes@softweyr.com> <3E453CC8.6A93E760@mindspring.com> In-Reply-To: <3E453CC8.6A93E760@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302081332.29146.wes@softweyr.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Saturday 08 February 2003 17:22, Terry Lambert wrote: > Wes Peters wrote: > > On Friday 07 February 2003 01:25, David Gilbert wrote: > > > I believe that someone here recomended Tigon III based cards ... but I > > > was recently looking through 5.0-RELEASE's hardware notes and couldn't > > > find any mention of Tigon III. > > > > The follow-on to the Tigon II is the Broadcom BCM570x supported by > > the bge(4) driver in FreeBSD. This is not what you want. They're > > certainly cheap to test with, though; the Netgear GA302T sells for > > under $40 at a few online retailers. > > I personally really like the Tigon III. It doesn't have the > alignment issues that some of the cards do, so you get to avoid > the m_pullup() (and the copy that happenes with it, in tcp_input()), > since it can scatter/gather to an unaligned address. > > It's also the first card I'm aware of that does the full range of > checksum offloading, without slowing the card down, which (finally!) > lets you offload some of the network processing to the card (i.e. > it does IP, TCP, and UDP). > > The card itself does interrupt coelescing in hardware, and you can > adjust both the trigger and buffer thresholds from the driver. > > Using 64bit 66MHz slots, it's possible to keep two interfaces > completely loaded, while retaining sufficient CPU and bus > bandwidth to actually do other work (though, in general, you will > want to tune your stack, and replace the mbuf allocator). > > About the only complaint I really have about it is that, unlike > the Tigon II, now that Broadcomm got their grubby little hands on > it, unlike Alteon, they are refusing to make the firmware sources > available so people can do useful work in the context of the > firmware. Yeah, a prototype Xylan GigE switch blade was done with Tigon-II's and we did a bit of hacking in the firmware. They were pretty cool; we used the usual Xylan SPARC processors on the card only for bus and chassis management and did most of the cool packet stuff in the Tigon itself. > Actually, there are some really brilliant things you can do, if > you can replace the firmware, that can take you up to theoretical > max packets a second very easily and quickly. We were able to get > in the neighborhood of 31,000 connections per second with the Tigon > III, alll other things being equal, even before FreeBSD added the > SYN cache and SYN cookie code. > > Is there a particular reason you don't like the card, or at least > prefer the other card more? Our testing, which mostly comprised throwing a pair of cards into a system, turning on bridging and blasting it with a SmartBits, showed the Intels to be faster with less CPU load. The Intel cards were 2x the price, but still well within our rather permissive budget. When you're putting 4, 8, or even 16 GB DDR RAM into a box the cost of a pair of network cards isn't significant. ;^) If I were buying a card myself, I'd likely go with the NetGear because it's cheap and it works, but you well know I'm a cheapskate. Not having access to the doco suxxors. -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 12:50:21 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9300337B401; Sat, 8 Feb 2003 12:50:20 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF17B43FB1; Sat, 8 Feb 2003 12:50:18 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id VAA28090; Sat, 8 Feb 2003 21:50:17 +0100 (CET) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.6/8.12.6) with ESMTP id h18KgRUm002764; Sat, 8 Feb 2003 21:42:27 +0100 (MET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.6/8.12.6/Submit) id h18KgRra002763; Sat, 8 Feb 2003 21:42:27 +0100 (MET) Date: Sat, 8 Feb 2003 21:42:27 +0100 From: Joerg Wunsch To: "Greg 'groggy' Lehey" Cc: Michael Reifenberger , freebsd-current@FreeBSD.org Subject: Re: vinum start & -current doesn't work as expected Message-ID: <20030208214227.A1294@uriah.heep.sax.de> Reply-To: Joerg Wunsch Mail-Followup-To: Joerg Wunsch , Greg 'groggy' Lehey , Michael Reifenberger , freebsd-current@FreeBSD.org References: <20030207105857.T2514@nihil.reifenberger.com> <200302072056.h17KujgW073866@uriah.heep.sax.de> <20030207225249.O33219@nihil.reifenberger.com> <20030208000045.I63152@uriah.heep.sax.de> <20030207232145.GE67449@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030207232145.GE67449@wantadilla.lemis.com>; from grog@FreeBSD.org on Sat, Feb 08, 2003 at 09:51:45AM +1030 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG As Greg 'groggy' Lehey wrote: > > I guess it's time to dump the old vinum start code from > > vinum(8) completely, and use the in-kernel scan now. > > This sounds like a good idea. Not after looking a bit closer. ;-) The only difference ist that the userland "vinum start" uses devstat, while the in-kernel autoscan if vinum.autostart is set uses sysctl kern.disks (devstat is not available in the kernel). Both use the same backend function. So yes, the userland should probably be changed to use the sysctl as well, but that's certainly not the root of Michael's problems. Something else must be the problem there. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 12:56:55 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9AC737B401 for ; Sat, 8 Feb 2003 12:56:53 -0800 (PST) Received: from tomts23-srv.bellnexxia.net (tomts23.bellnexxia.net [209.226.175.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id B200343F93 for ; Sat, 8 Feb 2003 12:56:52 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from gabby.gsicomp.on.ca ([65.95.176.5]) by tomts23-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030208205651.FHQW20375.tomts23-srv.bellnexxia.net@gabby.gsicomp.on.ca>; Sat, 8 Feb 2003 15:56:51 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (8.12.6/8.12.6) with SMTP id h18KrkjC094541; Sat, 8 Feb 2003 15:53:46 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <002001c2cfb4$93443960$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Brent Verner" , References: <20030208181736.GA14066@rcfile.org> Subject: Re: gcc-3.2.1 and c++ headers Date: Sat, 8 Feb 2003 15:56:38 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Your working example below compiles without error using gcc 2.95.x (FreeBSD 4.x) and gcc 3.2.x (FreeBSD 5.x), which is expected since it's compliant C++. (See Stroustrup's The C++ Programming Language, section 9.2.2, which indicates that the proper way to include C++ standard library headers such as iostream, string, etc. is using angle brackets and no dot-h.) Be glad that the gcc maintainers have finally updated their C++ compiler to be more standards-compliant. I'd suggest feeding back patches to the jdk maintainer. -- Matt Emmerton ----- Original Message ----- From: "Brent Verner" To: Sent: Saturday, February 08, 2003 1:17 PM Subject: gcc-3.2.1 and c++ headers > In trying to compile the most recent native jdk-1.4.1, I noticed > that compiling with the header didn't work. > > // ** won't link ** > #include > > // ** works ** > // #include > > // ** works ** > // #include > // using namespace std; > > int main(){ > return 1; > } > void xxx (ostream& os) { > os << ' '; > os << "out\n"; > } > > This code will compile on 4.7-stable (gcc-2.95), and on > debian/linux (gcc-3.2.2) with a #warning. > > I am aware that the <$HEADER.h> includes are deprecated, but is > there any intent to allow the deprecated headers to work with > the system compiler (gcc-3.2.1), or should any affected apps > be considered broken (on 5.0-current)? > > thanks. > brent > > -- > "Develop your talent, man, and leave the world something. Records are > really gifts from people. To think that an artist would love you enough > to share his music with anyone is a beautiful thing." -- Duane Allman > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 13: 8:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C9CE37B401 for ; Sat, 8 Feb 2003 13:08:33 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B37643FA3 for ; Sat, 8 Feb 2003 13:08:33 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 45B2FAE165; Sat, 8 Feb 2003 13:08:24 -0800 (PST) Date: Sat, 8 Feb 2003 13:08:24 -0800 From: Alfred Perlstein To: current@freebsd.org Subject: syslog bug Message-ID: <20030208210824.GK88781@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG syslog(3) botches things if you pass it a string that has "%%m" in it. this should fix it, any comments? Index: syslog.c =================================================================== RCS file: /home/ncvs/src/lib/libc/gen/syslog.c,v retrieving revision 1.28 diff -u -r1.28 syslog.c --- syslog.c 14 Nov 2002 12:40:14 -0000 1.28 +++ syslog.c 8 Feb 2003 21:08:09 -0000 @@ -190,12 +190,18 @@ } /* Substitute error message for %m. */ - for ( ; (ch = *fmt); ++fmt) + for ( ; (ch = *fmt); ++fmt) { if (ch == '%' && fmt[1] == 'm') { ++fmt; fputs(strerror(saved_errno), fmt_fp); - } else + } else if (ch == '%' && fmt[1] == '%') { + ++fmt; + fputc(ch, fmt_fp); + fputc(ch, fmt_fp); + } else { fputc(ch, fmt_fp); + } + } /* Null terminate if room */ fputc(0, fmt_fp); -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 13:15: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7464B37B401 for ; Sat, 8 Feb 2003 13:15:01 -0800 (PST) Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3733E43F75 for ; Sat, 8 Feb 2003 13:15:00 -0800 (PST) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (rdu57-229-060.nc.rr.com [66.57.229.60]) by habanero.hesketh.net (8.12.6/8.12.6) with ESMTP id h18LEsfx030689; Sat, 8 Feb 2003 16:14:55 -0500 X-Received-From: brent@mutt.rcfile.org X-Delivered-To: freebsd-current@FreeBSD.ORG X-Spam-Filter: check_local@habanero.hesketh.net by digitalanswers.org Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.12.6/8.12.6) with ESMTP id h18LF4XD015196; Sat, 8 Feb 2003 16:15:04 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.6/8.12.6/Submit) id h18LF3XF015195; Sat, 8 Feb 2003 16:15:03 -0500 (EST) Date: Sat, 8 Feb 2003 16:15:03 -0500 From: Brent Verner To: Matthew Emmerton Cc: freebsd-current@FreeBSD.ORG Subject: Re: gcc-3.2.1 and c++ headers Message-ID: <20030208211503.GA15069@rcfile.org> References: <20030208181736.GA14066@rcfile.org> <002001c2cfb4$93443960$1200a8c0@gsicomp.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002001c2cfb4$93443960$1200a8c0@gsicomp.on.ca> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.7-STABLE #32: Tue Feb 4 11:04:18 EST 2003 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTTS User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [2003-02-08 15:56] Matthew Emmerton said: | Your working example below compiles without error using gcc 2.95.x (FreeBSD | 4.x) and gcc 3.2.x (FreeBSD 5.x), which is expected since it's compliant | C++. (See Stroustrup's The C++ Programming Language, section 9.2.2, which | indicates that the proper way to include C++ standard library headers such | as iostream, string, etc. is using angle brackets and no dot-h.) You compiled it on a -current (gcc-3.2.1) system? It does will not compile on mine, current as of 6 Feb. I noticed the problem with -current from 2 Feb, so I can't comment on anything before that date. brent@scratch$ cat test.cc #include int main(){ return 1; } void xxx (ostream& os) { os << ' '; os << "out\n"; } brent@scratch$ g++ test.cc -o test /var/tmp//ccuRnfCI.o: In function `xxx(ostream&)': /var/tmp//ccuRnfCI.o(.text+0x27): undefined reference to `ostream::operator<<(char)' /var/tmp//ccuRnfCI.o(.text+0x3a): undefined reference to `ostream::operator<<(char const*)' brent@scratch$ uname -a FreeBSD scratch.rcfile.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Feb 6 13:39:46 EST 2003 root@scratch.rcfile.org:/jail/.usr.obj/jail/.cvsup/src/sys/SCRATCH i386 brent@scratch$ g++ -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.2.1 [FreeBSD] 20021119 (release) | Be glad that the gcc maintainers have finally updated their C++ compiler to | be more standards-compliant. agreed :-) | I'd suggest feeding back patches to the jdk maintainer. the jdk code uses the header, and will not compile on my system w/o some tweaks. cheers. brent -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 13:19:54 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0951A37B406 for ; Sat, 8 Feb 2003 13:19:51 -0800 (PST) Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id E06F643F93 for ; Sat, 8 Feb 2003 13:19:49 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from gabby.gsicomp.on.ca ([65.95.176.5]) by tomts6-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030208211949.FGXG23571.tomts6-srv.bellnexxia.net@gabby.gsicomp.on.ca>; Sat, 8 Feb 2003 16:19:49 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (8.12.6/8.12.6) with SMTP id h18LGhjC094624; Sat, 8 Feb 2003 16:16:43 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <005201c2cfb7$c81e29e0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Brent Verner" Cc: References: <20030208181736.GA14066@rcfile.org> <002001c2cfb4$93443960$1200a8c0@gsicomp.on.ca> <20030208211503.GA15069@rcfile.org> Subject: Re: gcc-3.2.1 and c++ headers Date: Sat, 8 Feb 2003 16:19:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It compiled on -CURRENT and -STABLE using this: #include You've got #include in your example below. Matt ----- Original Message ----- From: "Brent Verner" To: "Matthew Emmerton" Cc: Sent: Saturday, February 08, 2003 4:15 PM Subject: Re: gcc-3.2.1 and c++ headers > [2003-02-08 15:56] Matthew Emmerton said: > | Your working example below compiles without error using gcc 2.95.x (FreeBSD > | 4.x) and gcc 3.2.x (FreeBSD 5.x), which is expected since it's compliant > | C++. (See Stroustrup's The C++ Programming Language, section 9.2.2, which > | indicates that the proper way to include C++ standard library headers such > | as iostream, string, etc. is using angle brackets and no dot-h.) > > You compiled it on a -current (gcc-3.2.1) system? It does will not > compile on mine, current as of 6 Feb. I noticed the problem > with -current from 2 Feb, so I can't comment on anything before > that date. > > brent@scratch$ cat test.cc > #include > int main(){ > return 1; > } > void xxx (ostream& os) { > os << ' '; > os << "out\n"; > } > brent@scratch$ g++ test.cc -o test > /var/tmp//ccuRnfCI.o: In function `xxx(ostream&)': > /var/tmp//ccuRnfCI.o(.text+0x27): undefined reference to `ostream::operator<<(char)' > /var/tmp//ccuRnfCI.o(.text+0x3a): undefined reference to `ostream::operator<<(char const*)' > brent@scratch$ uname -a > FreeBSD scratch.rcfile.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Feb 6 13:39:46 EST 2003 root@scratch.rcfile.org:/jail/.usr.obj/jail/.cvsup/src/sys/SCRATCH i386 > brent@scratch$ g++ -v > Using built-in specs. > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 3.2.1 [FreeBSD] 20021119 (release) > > | Be glad that the gcc maintainers have finally updated their C++ compiler to > | be more standards-compliant. > > agreed :-) > > | I'd suggest feeding back patches to the jdk maintainer. > > the jdk code uses the header, and will not compile on > my system w/o some tweaks. > > cheers. > brent > > -- > "Develop your talent, man, and leave the world something. Records are > really gifts from people. To think that an artist would love you enough > to share his music with anyone is a beautiful thing." -- Duane Allman > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 13:30:26 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D3B937B401 for ; Sat, 8 Feb 2003 13:30:23 -0800 (PST) Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 055D443F3F for ; Sat, 8 Feb 2003 13:30:22 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from gabby.gsicomp.on.ca ([65.95.176.5]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030208213020.HVBG17488.tomts5-srv.bellnexxia.net@gabby.gsicomp.on.ca>; Sat, 8 Feb 2003 16:30:20 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (8.12.6/8.12.6) with SMTP id h18LQpjC094678; Sat, 8 Feb 2003 16:26:51 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <006301c2cfb9$327987c0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Matthew Emmerton" , "Brent Verner" Cc: References: <20030208181736.GA14066@rcfile.org> <002001c2cfb4$93443960$1200a8c0@gsicomp.on.ca> <20030208211503.GA15069@rcfile.org> <005201c2cfb7$c81e29e0$1200a8c0@gsicomp.on.ca> Subject: Re: gcc-3.2.1 and c++ headers Date: Sat, 8 Feb 2003 16:29:43 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Specifically, this is the exact code that compiles error/warning free on gcc 2.95.4 (4-STABLE) and gcc 3.2.1 (5.0-REL) // begin code #include using namespace std; void xxx (ostream& os); int main(void) { xxx(cout); } void xxx (ostream& os) { os << '>'; os << "out\n"; } // end code ----- Original Message ----- From: "Matthew Emmerton" To: "Brent Verner" Cc: Sent: Saturday, February 08, 2003 4:19 PM Subject: Re: gcc-3.2.1 and c++ headers > It compiled on -CURRENT and -STABLE using this: > > #include > > You've got #include in your example below. > > Matt > > ----- Original Message ----- > From: "Brent Verner" > To: "Matthew Emmerton" > Cc: > Sent: Saturday, February 08, 2003 4:15 PM > Subject: Re: gcc-3.2.1 and c++ headers > > > > [2003-02-08 15:56] Matthew Emmerton said: > > | Your working example below compiles without error using gcc 2.95.x > (FreeBSD > > | 4.x) and gcc 3.2.x (FreeBSD 5.x), which is expected since it's compliant > > | C++. (See Stroustrup's The C++ Programming Language, section 9.2.2, > which > > | indicates that the proper way to include C++ standard library headers > such > > | as iostream, string, etc. is using angle brackets and no dot-h.) > > > > You compiled it on a -current (gcc-3.2.1) system? It does will not > > compile on mine, current as of 6 Feb. I noticed the problem > > with -current from 2 Feb, so I can't comment on anything before > > that date. > > > > brent@scratch$ cat test.cc > > #include > > int main(){ > > return 1; > > } > > void xxx (ostream& os) { > > os << ' '; > > os << "out\n"; > > } > > brent@scratch$ g++ test.cc -o test > > /var/tmp//ccuRnfCI.o: In function `xxx(ostream&)': > > /var/tmp//ccuRnfCI.o(.text+0x27): undefined reference to > `ostream::operator<<(char)' > > /var/tmp//ccuRnfCI.o(.text+0x3a): undefined reference to > `ostream::operator<<(char const*)' > > brent@scratch$ uname -a > > FreeBSD scratch.rcfile.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Feb 6 > 13:39:46 EST 2003 > root@scratch.rcfile.org:/jail/.usr.obj/jail/.cvsup/src/sys/SCRATCH i386 > > brent@scratch$ g++ -v > > Using built-in specs. > > Configured with: FreeBSD/i386 system compiler > > Thread model: posix > > gcc version 3.2.1 [FreeBSD] 20021119 (release) > > > > | Be glad that the gcc maintainers have finally updated their C++ compiler > to > > | be more standards-compliant. > > > > agreed :-) > > > > | I'd suggest feeding back patches to the jdk maintainer. > > > > the jdk code uses the header, and will not compile on > > my system w/o some tweaks. > > > > cheers. > > brent > > > > -- > > "Develop your talent, man, and leave the world something. Records are > > really gifts from people. To think that an artist would love you enough > > to share his music with anyone is a beautiful thing." -- Duane Allman > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 13:40:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EAE037B401 for ; Sat, 8 Feb 2003 13:40:43 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4349043F75 for ; Sat, 8 Feb 2003 13:40:42 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h18LedqV021961 for ; Sat, 8 Feb 2003 22:40:40 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: current@FreeBSD.ORG Subject: Re: Preview: GEOMs statistics code. From: phk@phk.freebsd.dk In-Reply-To: Your message of "Tue, 04 Feb 2003 22:44:47 +0100." <25779.1044395087@critter.freebsd.dk> Date: Sat, 08 Feb 2003 22:40:39 +0100 Message-ID: <21960.1044740439@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have played with the statistics collection in GEOM a bit, and need more feedback, but first: try to play with it a bit. Assuming you're running -current as of today, otherwise install include files and libgeom by hand first. Apply this patch in src/sys/geom and make a new kernel. http://phk.freebsd.dk/patch/geom_io.patch Stick these two in a directory and run "make". http://phk.freebsd.dk/patch/Makefile http://phk.freebsd.dk/patch/gstat.c Then run sysctl kern.geom.collectstats=1 to enable collection of statistics in the kernel (reports of the performance impact of doing so welcome!) and then run the "gstat" program in an xterm. Notice that the program uses two ANSI escape sequences directly ("ESC [ 2 J" and "ESC [ H") I didn't want to mess with curses right now. You will get a display like this: dT L(q) ops/s r/s ms/r w/s ms/w d/s mw/d %busy Id 1.010 0 0 0 . 0 . 0 . 0.0 0xc412a580 1.010 0 0 0 . 0 . 0 . 0.0 0xc3fe2b40 1.010 0 44 0 . 21 1.0 23 0.0 1.9 0xc412a400 1.010 0 0 0 . 0 . 0 . 0.0 0xc3fe2680 1.010 0 44 0 . 21 1.0 23 0.0 1.9 0xc3fe2600 1.010 0 44 0 . 21 1.0 23 0.1 2.0 0xc4108e80 1.010 0 44 0 . 21 1.0 23 0.1 101.0 0xc3fe2500 1.010 0 44 0 . 21 1.1 23 0.6 3.1 0xc4108d00 1.010 0 0 0 . 0 . 0 . 0.0 0xc3fe24c0 1.010 0 44 0 . 21 1.1 23 0.6 3.1 0xc3fe2bc0 1.010 0 0 0 . 0 . 0 . 0.0 0xc418c180 1.010 0 0 0 . 0 . 0 . 0.0 0xc4312140 The columns are: dT Seconds in this measurement interval (change the sleep at the bottom of gstat.c to modify). L(q) Number of transactions in queue at this moment in time ops/s Operations per second in this interval. r/s, w/s, d/s Reads, Writes and Deletes per second in this interval ms/r, ms/w, ms/d Milliseconds per read, write and delete (average for interval). %busy Attempted calculation of %busy according to the discussion here. Id A not very random number which can be translated to something meaningfull with the output of sysctl -b kern.geom.confxml Another easy way is to use dd if=/dev/ad0 of=/dev/null dd if=/dev/ad0s1 of=/dev/null ... to identify the various devices if this is important. And as you will probably discover, the %busy is not very calm and the other columns will take a hit every so often too. I can of course make these statistics a perfect snapshot by employing locks around all the updates (that will be cheaper than atomics because there are several fields updated at the same time), and grabbing the lock when I get a snapshot. But doing so will cost us in performance: The actual lock operations, even if uncontested costs something, while it may not affect I/O throughput, it will affect the entire systems throughput. Then there is the lock contention, that is probably not too bad, it's cheap operations and they are not _that_ frequent. I will need to use read(2) or ioctl(2) to pull the data out of the kernel instead of the mmap(2) I use now, since I need a place to grab the lock. That means userland/kernel transitions. A number of intermediate solutions exist, such as flagging the structures while they are being updated (possibly with memory barriers). All it comes down to in the end is: How much of a performance hit do we want to take to collect disk statistics ? Input still very much appreciated... Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 13:55: 5 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCDCC37B401 for ; Sat, 8 Feb 2003 13:55:03 -0800 (PST) Received: from habanero.hesketh.net (habanero.hesketh.net [66.45.6.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id E410E43F3F for ; Sat, 8 Feb 2003 13:55:02 -0800 (PST) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (rdu57-229-060.nc.rr.com [66.57.229.60]) by habanero.hesketh.net (8.12.6/8.12.6) with ESMTP id h18Lsvfx031337; Sat, 8 Feb 2003 16:54:58 -0500 X-Received-From: brent@mutt.rcfile.org X-Delivered-To: freebsd-current@FreeBSD.ORG X-Spam-Filter: check_local@habanero.hesketh.net by digitalanswers.org Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.12.6/8.12.6) with ESMTP id h18Lt7XD015510; Sat, 8 Feb 2003 16:55:07 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.12.6/8.12.6/Submit) id h18Lt7w8015509; Sat, 8 Feb 2003 16:55:07 -0500 (EST) Date: Sat, 8 Feb 2003 16:55:07 -0500 From: Brent Verner To: Matthew Emmerton Cc: freebsd-current@FreeBSD.ORG Subject: Re: gcc-3.2.1 and c++ headers Message-ID: <20030208215507.GA15470@rcfile.org> References: <20030208181736.GA14066@rcfile.org> <002001c2cfb4$93443960$1200a8c0@gsicomp.on.ca> <20030208211503.GA15069@rcfile.org> <005201c2cfb7$c81e29e0$1200a8c0@gsicomp.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005201c2cfb7$c81e29e0$1200a8c0@gsicomp.on.ca> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.7-STABLE #32: Tue Feb 4 11:04:18 EST 2003 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTTS User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [2003-02-08 16:19] Matthew Emmerton said: | It compiled on -CURRENT and -STABLE using this: | | #include | | You've got #include in your example below. Deleting /usr/include/g++ and making installworld, fixes my "problem". The compiler now gives the expected behavior; it compiles the code with a warning. sorry for the noise. Why doesn't installworld clean up old headers? brent -- "Develop your talent, man, and leave the world something. Records are really gifts from people. To think that an artist would love you enough to share his music with anyone is a beautiful thing." -- Duane Allman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 14: 5: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 215E537B401 for ; Sat, 8 Feb 2003 14:04:58 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B9CB43F75 for ; Sat, 8 Feb 2003 14:04:57 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 0088A67B88; Sat, 8 Feb 2003 14:04:56 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id CF428F63; Sat, 8 Feb 2003 14:04:56 -0800 (PST) Date: Sat, 8 Feb 2003 14:04:56 -0800 From: Kris Kennaway To: Thomas Moestl Cc: Morten Rodal , Kris Kennaway , current@FreeBSD.ORG Subject: Re: Panic in fork() Message-ID: <20030208220456.GB15257@rot13.obsecurity.org> References: <20030208092406.GA12104@rot13.obsecurity.org> <20030208110512.GB12696@rot13.obsecurity.org> <20030208141542.GC11725@slurp.rodal.no> <20030208151226.GB624@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jq0ap7NbKX2Kqbes" Content-Disposition: inline In-Reply-To: <20030208151226.GB624@crow.dom2ip.de> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --jq0ap7NbKX2Kqbes Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 08, 2003 at 04:12:26PM +0100, Thomas Moestl wrote: > addr2line will usually point to the first line of a statement if it > spans multiple lines; in this case, the full guard is: >=20 > while (p2->p_pid =3D=3D trypid || > p2->p_pgrp->pg_id =3D=3D trypid || > p2->p_session->s_sid =3D=3D trypid) { OK, I suspected that. tjr was looking into this last night and proposed the following patch: http://people.freebsd.org/~tjr/kf.diff Kris Index: kern_fork.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /x/freebsd/src/sys/kern/kern_fork.c,v retrieving revision 1.181 diff -u -r1.181 kern_fork.c --- kern_fork.c 1 Feb 2003 12:17:07 -0000 1.181 +++ kern_fork.c 8 Feb 2003 11:32:18 -0000 @@ -318,6 +318,7 @@ * exceed the limit. The variable nprocs is the current number of * processes, maxproc is the limit. */ + sx_slock(&proctree_lock); sx_xlock(&allproc_lock); uid =3D td->td_ucred->cr_ruid; if ((nprocs >=3D maxproc - 10 && uid !=3D 0) || nprocs >=3D maxproc) { @@ -425,6 +426,7 @@ LIST_INSERT_HEAD(&allproc, p2, p_list); LIST_INSERT_HEAD(PIDHASH(p2->p_pid), p2, p_hash); sx_xunlock(&allproc_lock); + sx_sunlock(&proctree_lock); =20 /* * Malloc things while we don't hold any locks. @@ -759,6 +761,7 @@ return (0); fail: sx_xunlock(&allproc_lock); + sx_sunlock(&proctree_lock); uma_zfree(proc_zone, newproc); if (p1->p_flag & P_KSES) { PROC_LOCK(p1); --jq0ap7NbKX2Kqbes Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RX8IWry0BWjoQKURAgiCAKCxL7rUGCNP/duXmwjHNUXUGzn4HQCdERUS oAHnk4QKRGxPzVV5Fc0QZP8= =sET8 -----END PGP SIGNATURE----- --jq0ap7NbKX2Kqbes-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 14:12:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 094C537B401; Sat, 8 Feb 2003 14:12:50 -0800 (PST) Received: from hotmail.com (f93.sea2.hotmail.com [207.68.165.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEA1343F85; Sat, 8 Feb 2003 14:12:49 -0800 (PST) (envelope-from tobe_better@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 8 Feb 2003 14:12:49 -0800 Received: from 195.229.241.232 by sea2fd.sea2.hotmail.msn.com with HTTP; Sat, 08 Feb 2003 22:12:49 GMT X-Originating-IP: [195.229.241.232] From: "Auge Mike" To: current@freebsd.org Subject: printf....! Date: Sun, 09 Feb 2003 02:12:49 +0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Feb 2003 22:12:49.0525 (UTC) FILETIME=[376AE250:01C2CFBF] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I was trying to know how "printf" works in FreeBSD... I hvae reached to this point : #define _write(fd, s, n) \ __syscall(SYS_write, (int)(fd), (const void *)(s), (size_t)(n)) I'am not really familiar with the way FreeBSD handle interrupts. I like from any one of you to tell me what functions will be called next and in which files, till we get the string of the printf function argment displayed in the terminal. Yours, _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 14:23:25 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85EF537B401 for ; Sat, 8 Feb 2003 14:23:23 -0800 (PST) Received: from smtpout.mac.com (A17-250-248-86.apple.com [17.250.248.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26A3E43F75 for ; Sat, 8 Feb 2003 14:23:23 -0800 (PST) (envelope-from leimy2k@mac.com) Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h18MNM51010320 for ; Sat, 8 Feb 2003 14:23:22 -0800 (PST) Received: from mac.com ([66.156.162.95]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id HA0GUY00.M26; Sat, 8 Feb 2003 14:23:22 -0800 Date: Sat, 8 Feb 2003 16:23:21 -0600 Subject: Re: printf....! Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: current@FreeBSD.ORG To: "Auge Mike" From: David Leimbach In-Reply-To: Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Isn't it ultimately interrupt 08 on the PC with an index in the EAX register for the write "subroutine"? I am pretty sure that's correct. I might have the interrupt value wrong though. Dave On Saturday, February 8, 2003, at 04:12 PM, Auge Mike wrote: > > > > > Hi all, > > I was trying to know how "printf" works in FreeBSD... I hvae reached > to this > point : > > #define _write(fd, s, n) \ > __syscall(SYS_write, (int)(fd), (const void *)(s), (size_t)(n)) > > I'am not really familiar with the way FreeBSD handle interrupts. I > like from > any one of you to tell me what functions will be called next and in > which > files, till we get the string of the printf function argment displayed > in > the terminal. > > Yours, > > > > _________________________________________________________________ > The new MSN 8: advanced junk mail protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 14:25:25 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC0E237B401 for ; Sat, 8 Feb 2003 14:25:23 -0800 (PST) Received: from energyhq.homeip.net (213-97-200-73.uc.nombres.ttd.es [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4704843F75 for ; Sat, 8 Feb 2003 14:25:22 -0800 (PST) (envelope-from flynn@energyhq.homeip.net) Received: from christine.energyhq.tk (christine.energyhq.tk [192.168.0.1]) by energyhq.homeip.net (Postfix) with SMTP id 3C129AF5CB; Sat, 8 Feb 2003 23:25:22 +0100 (CET) Date: Sat, 8 Feb 2003 23:24:41 +0100 From: Miguel Mendez To: David Leimbach Cc: tobe_better@hotmail.com, current@FreeBSD.ORG Subject: Re: printf....! Message-Id: <20030208232441.4265dd9a.flynn@energyhq.homeip.net> In-Reply-To: References: X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386--netbsdelf) X-Face: 1j}k*2E>Y\+C~E|/wehi[:dCM,{N7/uE 3o# P,{t7gA/qnovFDDuyQV.1hdT7&#d)q"xY33}{_GS>kk'S{O]nE$A`T|\4&p\&mQyexOLb8}FO List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --2PyWMgArFDUz=.HU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 8 Feb 2003 16:23:21 -0600 David Leimbach wrote: Howdy. > Isn't it ultimately interrupt 08 on the PC with an index in the EAX > register for the write "subroutine"? > > I am pretty sure that's correct. I might have the interrupt value > wrong though. s/08/0x80/ :-) Cheers, -- Miguel Mendez - flynn@energyhq.homeip.net GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt EnergyHQ :: http://www.energyhq.tk Of course it runs NetBSD! --2PyWMgArFDUz=.HU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (NetBSD) iD8DBQE+RYOtnLctrNyFFPERAszZAKDFDu2iqmAPTFzyD08uvDQSX4hEXQCfcnQx C2uD/M20L6AalpXbpoi7Wiw= =YcP9 -----END PGP SIGNATURE----- --2PyWMgArFDUz=.HU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 14:36:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A0A437B401 for ; Sat, 8 Feb 2003 14:36:43 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5B0943FBF for ; Sat, 8 Feb 2003 14:36:42 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id h18MagXv064129; Sat, 8 Feb 2003 14:36:42 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id h18MagtK064128; Sat, 8 Feb 2003 14:36:42 -0800 (PST) Date: Sat, 8 Feb 2003 14:36:41 -0800 From: Steve Kargl To: Brent Verner Cc: Matthew Emmerton , freebsd-current@FreeBSD.ORG Subject: Re: gcc-3.2.1 and c++ headers Message-ID: <20030208223641.GA63886@troutmask.apl.washington.edu> References: <20030208181736.GA14066@rcfile.org> <002001c2cfb4$93443960$1200a8c0@gsicomp.on.ca> <20030208211503.GA15069@rcfile.org> <005201c2cfb7$c81e29e0$1200a8c0@gsicomp.on.ca> <20030208215507.GA15470@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030208215507.GA15470@rcfile.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 08, 2003 at 04:55:07PM -0500, Brent Verner wrote: > [2003-02-08 16:19] Matthew Emmerton said: > | It compiled on -CURRENT and -STABLE using this: > | > | #include > | > | You've got #include in your example below. > > Deleting /usr/include/g++ and making installworld, fixes my > "problem". The compiler now gives the expected behavior; it > compiles the code with a warning. > > sorry for the noise. > > > Why doesn't installworld clean up old headers? > > Why can't people read /src/UPDATING? -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 14:43:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E470037B401 for ; Sat, 8 Feb 2003 14:43:57 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 242CE43F75 for ; Sat, 8 Feb 2003 14:43:57 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id h18MibhE016366; Sat, 8 Feb 2003 17:44:37 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id h18Mibmp016365; Sat, 8 Feb 2003 17:44:37 -0500 (EST) Date: Sat, 8 Feb 2003 17:44:36 -0500 From: Craig Rodrigues To: Auge Mike Cc: current@FreeBSD.ORG Subject: Re: printf....! Message-ID: <20030208224436.GA14654@attbi.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >I was trying to know how "printf" works in FreeBSD... I hvae reached >to this >point : > >#define _write(fd, s, n) \ > __syscall(SYS_write, (int)(fd), (const void *)(s), (size_t)(n)) > >I'am not really familiar with the way FreeBSD handle interrupts. I >like from >any one of you to tell me what functions will be called next and in >which >files, till we get the string of the printf function argment displayed >in >the terminal. Look in /usr/src/sys/kern/syscalls.master. You will see that this write() is listed as a system call. If you run the script makesyscalls.sh which is in the same directory, it will create syscalls.c, syscalls.h, sysproto.h, and syscall.mk. If you look at /usr/src/sys/sys/syscall.h, you will see SYS_write defined in that file. You can see the man page for syscall() to see what it does when you do syscall(SYS_write, ...); Look in /usr/src/sys/kern/sys_generic.c, and look at the write() function there..... I'm not familiar with DOS interrupts, but hopefully that will give you more clues....:) You should also look at the Developer's Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 14:59:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C174237B401 for ; Sat, 8 Feb 2003 14:59:31 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47CD543FBD for ; Sat, 8 Feb 2003 14:59:31 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 01FE067B88 for ; Sat, 8 Feb 2003 14:59:31 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id EBD24E5A; Sat, 8 Feb 2003 14:59:30 -0800 (PST) Date: Sat, 8 Feb 2003 14:59:30 -0800 From: Kris Kennaway To: current@FreeBSD.org Subject: __semctl() prototype Message-ID: <20030208225930.GA31290@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Can someone take a look at lib/libc/gen/semctl.c and tell me where the __semctl() sysctl should be prototyped? Kris --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RYvSWry0BWjoQKURAvYsAJ90yuj1hngVhcU3gpCNkyAYKtGBHACeIgSo Zc2m4PybJP/FwPmA8durKz4= =m4E5 -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 15: 6:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BC3237B401 for ; Sat, 8 Feb 2003 15:06:28 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-80.dsl.lsan03.pacbell.net [67.115.74.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F25E43F75 for ; Sat, 8 Feb 2003 15:06:27 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 3B97467B88; Sat, 8 Feb 2003 15:06:27 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 26655E5C; Sat, 8 Feb 2003 15:06:27 -0800 (PST) Date: Sat, 8 Feb 2003 15:06:27 -0800 From: Kris Kennaway To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: _fpathconf() and __semctl() prototypes Message-ID: <20030208230626.GA31434@rot13.obsecurity.org> References: <20030208225930.GA31290@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <20030208225930.GA31290@rot13.obsecurity.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Feb 08, 2003 at 02:59:30PM -0800, Kris Kennaway wrote: > Can someone take a look at lib/libc/gen/semctl.c and tell me where > the __semctl() sysctl should be prototyped? Also _fpathconf() in lib/libc/gen/statvfs.c Kris --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RY1yWry0BWjoQKURAsKeAJsEW72tIy0pKpTiT+G1E81qEv+PJACgijBR INo62pkXm+NOwhG5HNUz99M= =TVBX -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 15:11:57 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F7C837B401 for ; Sat, 8 Feb 2003 15:11:56 -0800 (PST) Received: from relay8.melbpc.org.au (newglider.melbpc.org.au [203.12.152.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01BA043F3F for ; Sat, 8 Feb 2003 15:11:55 -0800 (PST) (envelope-from kpeter@melbpc.org.au) Received: from melbpc.org.au (a1-61.melbpc.org.au [203.12.158.61]) by relay8.melbpc.org.au (8.12.6/8.12.6) with ESMTP id h18NBpP5017558 for ; Sun, 9 Feb 2003 10:11:52 +1100 (EST) (envelope-from kpeter@melbpc.org.au) Message-ID: <3E458EB6.8060306@melbpc.org.au> Date: Sun, 09 Feb 2003 10:11:50 +1100 From: Peter Kostouros Reply-To: kpeter@melbpc.org.au Organization: Private Individual User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3a) Gecko/20021222 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@FreeBSD.ORG Subject: Question regarding LOR in vfs_mount.c Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-RAVMilter-Version: 8.3.4(snapshot 20020706) (relay1) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi The LOR detected in /usr/src/sys/kern/vfs_mount.c (process lock on line 1144, and filedesc structure on line 1151) has been previously reported: I have noticed it upon shutdown. An LOR fix was presented recently for a similar LOR arising in kern_descrip.c , see http://www.freebsd.org/cgi/getmsg.cgi?fetch=571049+573330+/usr/local/www/db/text/2003/freebsd-current/20030202.freebsd-current, and replies. Following upon this, would a similar solution resolve the LOR in vfs_mount.c, or should something more involved be taking place? -- Regards Peter As always the organisation disavows knowledge of this email To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 15:27:28 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F5F737B401 for ; Sat, 8 Feb 2003 15:27:27 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id A71B743FAF for ; Sat, 8 Feb 2003 15:27:26 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h18NROYP020533; Sat, 8 Feb 2003 15:27:24 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h18NROP8020532; Sat, 8 Feb 2003 15:27:24 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sat, 8 Feb 2003 15:27:24 -0800 From: David Schultz To: Ray Kohler Cc: freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? Message-ID: <20030208232724.GA20435@HAL9000.homeunix.com> Mail-Followup-To: Ray Kohler , freebsd-current@FreeBSD.ORG References: <20030208173756.GA56030@arkadia.nv.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030208173756.GA56030@arkadia.nv.cox.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Ray Kohler : > Has anyone tried building world/kernel with high optimizations (-O2, > -O3) recently? What breaks? (Booby prize to whoever says "common sense" > ;) I last tried it quite a few months ago and the resolver died on me, > don't know what else. I'm not really thinking of running like that, but > I am curious about others' experiences. First, let me answer the question that you really meant to ask but forgot to, namely, ``How much of a performance difference does -O3 make over -O for the kernel/world?'' The answer is ``very little, for most purposes.'' So if you do use higher optimization levels, at least do a little benchmarking to make sure it was worth it. To answer your second question, higher optimization levels usually work, but there *will* be new bugs. I know of several libc problems due to -fstrict-aliasing, and I'm told that the inline assembly for TCP checksumming can still break. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 15:33: 7 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E15037B401 for ; Sat, 8 Feb 2003 15:33:06 -0800 (PST) Received: from baraca.united.net.ua (ns.united.net.ua [193.111.8.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FB5843FA3 for ; Sat, 8 Feb 2003 15:33:01 -0800 (PST) (envelope-from max@vega.com) Received: from vega.vega.com (root@xDSL-2-2.united.net.ua [193.111.9.226]) by baraca.united.net.ua (8.12.6/8.12.6) with ESMTP id h18NWuek081685; Sun, 9 Feb 2003 01:32:57 +0200 (EET) (envelope-from max@vega.com) Received: from vega.vega.com (max@localhost.vega.com [127.0.0.1]) by vega.vega.com (8.12.6/8.12.5) with ESMTP id h18NXcUk071227; Sun, 9 Feb 2003 01:33:38 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: (from max@localhost) by vega.vega.com (8.12.6/8.12.5/Submit) id h18NXb2E071226; Sun, 9 Feb 2003 01:33:37 +0200 (EET) Date: Sun, 9 Feb 2003 01:33:37 +0200 From: Maxim Sobolev To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: _fpathconf() and __semctl() prototypes Message-ID: <20030208233337.GA71208@vega.vega.com> References: <20030208225930.GA31290@rot13.obsecurity.org> <20030208230626.GA31434@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20030208230626.GA31434@rot13.obsecurity.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 08, 2003 at 03:06:27PM -0800, Kris Kennaway wrote: > On Sat, Feb 08, 2003 at 02:59:30PM -0800, Kris Kennaway wrote: > > Can someone take a look at lib/libc/gen/semctl.c and tell me where > > the __semctl() sysctl should be prototyped? > > Also _fpathconf() in lib/libc/gen/statvfs.c /usr/src/lib/libc/include/namespace.h AFAIK, those `_*' functions are necessary in the libc_r, where it is needed to make sure that a thread-safe version of the function in question is called instead of unsafe one. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 16: 1:13 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F09237B401 for ; Sat, 8 Feb 2003 16:01:11 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 745EB43F93 for ; Sat, 8 Feb 2003 16:01:09 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 4C54751986; Sun, 9 Feb 2003 10:31:07 +1030 (CST) Date: Sun, 9 Feb 2003 10:31:07 +1030 From: Greg 'groggy' Lehey To: Joerg Wunsch , Michael Reifenberger , freebsd-current@FreeBSD.org Subject: Re: vinum start & -current doesn't work as expected Message-ID: <20030209000107.GL99377@wantadilla.lemis.com> References: <20030207105857.T2514@nihil.reifenberger.com> <200302072056.h17KujgW073866@uriah.heep.sax.de> <20030207225249.O33219@nihil.reifenberger.com> <20030208000045.I63152@uriah.heep.sax.de> <20030207232145.GE67449@wantadilla.lemis.com> <20030208214227.A1294@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f54savKjS/tSNRaU" Content-Disposition: inline In-Reply-To: <20030208214227.A1294@uriah.heep.sax.de> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --f54savKjS/tSNRaU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Saturday, 8 February 2003 at 21:42:27 +0100, Joerg Wunsch wrote: > As Greg 'groggy' Lehey wrote: > >>> I guess it's time to dump the old vinum start code from >>> vinum(8) completely, and use the in-kernel scan now. >> >> This sounds like a good idea. > > Not after looking a bit closer. ;-) The only difference ist that the > userland "vinum start" uses devstat, while the in-kernel autoscan if > vinum.autostart is set uses sysctl kern.disks (devstat is not > available in the kernel). Yes it is. But there were (valid) objections to using in the kernel. By the time they came up, I was already using it in userland, and since nobody asked me to back it out, I didn't :-) > Both use the same backend function. So yes, the userland should > probably be changed to use the sysctl as well, Correct. > but that's certainly not the root of Michael's problems. Something > else must be the problem there. Yes, I'll look at that in a minute. Greg -- See complete headers for address and phone numbers --f54savKjS/tSNRaU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+RZpDIubykFB6QiMRApLJAJ49u/rfJSvb5wENFOHYe2C1QNm8ZACePuGM E1BzEX6fmxiilAwQxr69g10= =KIOk -----END PGP SIGNATURE----- --f54savKjS/tSNRaU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 16: 5:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DC5E37B401 for ; Sat, 8 Feb 2003 16:05:48 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 914FA43F75 for ; Sat, 8 Feb 2003 16:05:45 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id C2D7151988; Sun, 9 Feb 2003 10:35:43 +1030 (CST) Date: Sun, 9 Feb 2003 10:35:43 +1030 From: Greg 'groggy' Lehey To: Michael Reifenberger Cc: Joerg Wunsch , freebsd-current@freebsd.org Subject: Re: vinum start & -current doesn't work as expected Message-ID: <20030209000543.GM99377@wantadilla.lemis.com> References: <20030207105857.T2514@nihil.reifenberger.com> <200302072056.h17KujgW073866@uriah.heep.sax.de> <20030207225249.O33219@nihil.reifenberger.com> <20030208181905.Y664@nihil.reifenberger.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="um2V5WpqCyd73IVb" Content-Disposition: inline In-Reply-To: <20030208181905.Y664@nihil.reifenberger.com> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --um2V5WpqCyd73IVb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Saturday, 8 February 2003 at 18:34:04 +0100, Michael Reifenberger wrote: > On Fri, 7 Feb 2003, Michael Reifenberger wrote: > ... >>> As a workaround, you can try setting >>> >>> vinum_load=YES >>> vinum.autostart=YES >>> >>> in your /boot/loader.conf, /and/ remove the start_vinum line from >>> rc.conf. Please tell me whether this gives different results. > > Bad things happen when doing the above. > Vinum forgets his configuration on loading. > > I did the following: > 1.) Configure a volume as: > drive d0 device /dev/da0s1a > drive d1 device /dev/da1s1a > > volume ablage setupstate > plex name ablage.p0 org concat > sd name ablage.p0.s0 drive d0 size 0b > plex name ablage.p1 org concat > sd name ablage.p1.s0 drive d1 size 0b > > 2.) Reboot Why? What was there before? > 3.) During startup I get now: > ... > (normal looking messages) > ... > > 5.) ls -l /dev/vinum > total 0 > crw------- 1 root wheel 91, 0x40000001 8 Feb 18:15 control > crw------- 1 root wheel 91, 0x40000000 8 Feb 18:15 controld OK, no volumes. > 6.) Taking a look at /dev/da0s1a gives something like: > ... > ^@^@^@^@^@^@^@^@volume ablage state up > plex name ablage.p0 state up org concat vol ablage > plex name ablage.p1 state up org concat vol ablage > sd name ablage.p0.s0 drive d0 plex ablage.p0 len 398296697s driveoffset 265s > state up plexoffset 0s > sd name ablage.p1.s0 drive d1 plex ablage.p1 len 398296697s driveoffset 265s > state up plexoffset 0s > ... Where does that start? What does vinum dumpconfig say? > 7.) Maybe not to late, doing a `vinum read /dev/da0s1 /dev/da1s1; vinum l`: > ... nada ... No, it's tried that already. > 8.) Taking a look at /dev/da0s1a gives now something like: > ... > ^@^@^@^@IN > VINO^@^@^@^A^@nihil^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@d0^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ Hmm. So it seems it has found the slices. > 9.) `cd /etc/vinum; vinum create firewire.conf`: > 4 drives: 4? > D d1 State: up /dev/da1s1a A: 0/194480 MB (0%) > D d0 State: up /dev/da0s1a A: 0/194480 MB (0%) Hmm. > 10.) Goto 2.) Why? Was the data accessible? I've never seen anything like this. Try the following: 1. After booting, at step 6 above, run vinum dumpconfig -v. 2. Do a vinum stop, then vinum start. 3. See what things look like (l, dumpconfig) 4. If it's still not working, do a vinum start and vinum create 5. See what things look like (l, dumpconfig). Greg -- See complete headers for address and phone numbers --um2V5WpqCyd73IVb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+RZtXIubykFB6QiMRAgQJAKCt2e0VyeShIxdL9neNEDr4cOiyywCeJrjk yhnxNV6ADZo4Q1e56y2iEk0= =vLGM -----END PGP SIGNATURE----- --um2V5WpqCyd73IVb-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 16: 9:54 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0287337B401 for ; Sat, 8 Feb 2003 16:09:53 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AEF943F3F for ; Sat, 8 Feb 2003 16:09:52 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0373.cvx40-bradley.dialup.earthlink.net ([216.244.43.118] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18hf2X-0003vf-00; Sat, 08 Feb 2003 16:09:46 -0800 Message-ID: <3E459BF3.BB3FC381@mindspring.com> Date: Sat, 08 Feb 2003 16:08:19 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Schultz Cc: Ray Kohler , freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? References: <20030208173756.GA56030@arkadia.nv.cox.net> <20030208232724.GA20435@HAL9000.homeunix.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a48a9934feaaac47a186b7891fa2248f782601a10902912494350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Schultz wrote: > Thus spake Ray Kohler : > > Has anyone tried building world/kernel with high optimizations (-O2, > > -O3) recently? What breaks? (Booby prize to whoever says "common sense" > > ;) I last tried it quite a few months ago and the resolver died on me, > > don't know what else. I'm not really thinking of running like that, but > > I am curious about others' experiences. > > First, let me answer the question that you really meant to ask but > forgot to, namely, ``How much of a performance difference does -O3 > make over -O for the kernel/world?'' The answer is ``very little, > for most purposes.'' So if you do use higher optimization levels, > at least do a little benchmarking to make sure it was worth it. Actually, failure to use optimization suppresses some compilation warnings, particularly those which normally print from using some variables without initializing them. We were just bit by this, the other day (search -current list archives for "zebras": mea maxima culpa). > To answer your second question, higher optimization levels usually > work, but there *will* be new bugs. I know of several libc > problems due to -fstrict-aliasing, and I'm told that the inline > assembly for TCP checksumming can still break. There are a number of places, particularly on non-i386 platforms, where optimization actually doesn't work. I think that's why it was turned off for the libc compilation, and why the bug crept in. It's probably useful to compile world with optimization occasionally, to make compilation-time detectable bugs like that to show up, but, as you point out, it'd probably be a *bad* idea to actually use the resulting code, at least until after the next GCC import, which will supposedly fix the Alpha optimizer. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 16:25:55 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8AD037B422 for ; Sat, 8 Feb 2003 16:25:53 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 217D243F93 for ; Sat, 8 Feb 2003 16:25:48 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h190PgYP020854; Sat, 8 Feb 2003 16:25:42 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h190PgwI020853; Sat, 8 Feb 2003 16:25:42 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Date: Sat, 8 Feb 2003 16:25:42 -0800 From: David Schultz To: Terry Lambert Cc: Ray Kohler , freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? Message-ID: <20030209002542.GA20812@HAL9000.homeunix.com> Mail-Followup-To: Terry Lambert , Ray Kohler , freebsd-current@FreeBSD.ORG References: <20030208173756.GA56030@arkadia.nv.cox.net> <20030208232724.GA20435@HAL9000.homeunix.com> <3E459BF3.BB3FC381@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E459BF3.BB3FC381@mindspring.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Terry Lambert : > David Schultz wrote: > > Thus spake Ray Kohler : > > > Has anyone tried building world/kernel with high optimizations (-O2, > > > -O3) recently? What breaks? (Booby prize to whoever says "common sense" > > > ;) I last tried it quite a few months ago and the resolver died on me, > > > don't know what else. I'm not really thinking of running like that, but > > > I am curious about others' experiences. > > > > First, let me answer the question that you really meant to ask but > > forgot to, namely, ``How much of a performance difference does -O3 > > make over -O for the kernel/world?'' The answer is ``very little, > > for most purposes.'' So if you do use higher optimization levels, > > at least do a little benchmarking to make sure it was worth it. > > Actually, failure to use optimization suppresses some compilation > warnings, particularly those which normally print from using some > variables without initializing them. I think you're thinking of dataflow analysis, which I believe gcc does with -O and higher optimization levels. So unless you're using -O0, I would expect that you'd get all the warnings you want. > There are a number of places, particularly on non-i386 platforms, > where optimization actually doesn't work. I think that's why it > was turned off for the libc compilation, and why the bug crept in. > > It's probably useful to compile world with optimization occasionally, > to make compilation-time detectable bugs like that to show up, but, as > you point out, it'd probably be a *bad* idea to actually use the > resulting code, at least until after the next GCC import, which will > supposedly fix the Alpha optimizer. Yes, the possibility of being bitten by compiler bugs is certainly higher with higher optimization levels. Alpha with -O2 seems to have been broken for years, and I have seen strange things happen on IA64 as well. But the i386 code generators have received much wider testing and debugging, so there is somewhat less danger there. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 16:33:19 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D2F437B401 for ; Sat, 8 Feb 2003 16:33:17 -0800 (PST) Received: from beast.freebsd.org (beast.freebsd.org [216.136.204.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E230E43F85 for ; Sat, 8 Feb 2003 16:33:16 -0800 (PST) (envelope-from des@FreeBSD.org) Received: from beast.freebsd.org (localhost [127.0.0.1]) by beast.freebsd.org (8.12.6/8.12.6) with ESMTP id h190XG7h039456 for ; Sat, 8 Feb 2003 16:33:16 -0800 (PST) (envelope-from des@beast.freebsd.org) Received: (from des@localhost) by beast.freebsd.org (8.12.6/8.12.6/Submit) id h190XGQg039454 for current@freebsd.org; Sat, 8 Feb 2003 16:33:16 -0800 (PST) Date: Sat, 8 Feb 2003 16:33:16 -0800 (PST) From: Dag-Erling Smorgrav Message-Id: <200302090033.h190XGQg039454@beast.freebsd.org> To: current@freebsd.org Subject: alpha tinderbox failure Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/des/tinderbox/alpha/obj/h/des/src/alpha/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- >>> Kernel build for GENERIC started on Sat Feb 8 15:23:21 PST 2003 -------------------------------------------------------------- >>> Kernel build for GENERIC completed on Sat Feb 8 16:00:52 PST 2003 -------------------------------------------------------------- >>> Kernel build for LINT started on Sat Feb 8 16:00:53 PST 2003 -------------------------------------------------------------- ===> vinum "Makefile", line 4458: warning: duplicate script for target "geom_bsd.o" ignored /h/des/src/sys/dev/lmc/if_lmc.c:32:2: warning: #warning "The lmc driver is broken and is not compiled with LINT" /h/des/src/sys/dev/pdq/pdq.c: In function `pdq_initialize': /h/des/src/sys/dev/pdq/pdq.c:1606: warning: cast discards qualifiers from pointer target type /h/des/src/sys/pci/meteor.c:149:2: warning: #warning "The meteor driver is broken and is not compiled with LINT" /h/des/src/sys/pci/simos.c:30:2: warning: #warning "The simos driver is broken and is not compiled with LINT" /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_open': /h/des/src/sys/dev/gfb/gfb_pci.c:268: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:268: (Each undeclared identifier is reported only once /h/des/src/sys/dev/gfb/gfb_pci.c:268: for each function it appears in.) cc1: warnings being treated as errors /h/des/src/sys/dev/gfb/gfb_pci.c:275: warning: passing arg 1 of `genfbopen' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_close': /h/des/src/sys/dev/gfb/gfb_pci.c:284: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:285: warning: passing arg 1 of `genfbclose' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_read': /h/des/src/sys/dev/gfb/gfb_pci.c:293: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:294: warning: passing arg 1 of `genfbread' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_write': /h/des/src/sys/dev/gfb/gfb_pci.c:302: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:303: warning: passing arg 1 of `genfbwrite' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_ioctl': /h/des/src/sys/dev/gfb/gfb_pci.c:311: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:312: warning: passing arg 1 of `genfbioctl' from incompatible pointer type /h/des/src/sys/dev/gfb/gfb_pci.c: In function `pcigfb_mmap': /h/des/src/sys/dev/gfb/gfb_pci.c:320: `gfb_devclass' undeclared (first use in this function) /h/des/src/sys/dev/gfb/gfb_pci.c:321: warning: passing arg 1 of `genfbmmap' from incompatible pointer type *** Error code 1 Stop in /h/des/obj/h/des/src/sys/LINT. *** Error code 1 Stop in /h/des/src. *** Error code 1 Stop in /h/des/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 16:40:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 849DB37B401 for ; Sat, 8 Feb 2003 16:40:35 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4D0443F75 for ; Sat, 8 Feb 2003 16:40:34 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.6/8.12.2) with ESMTP id h190eT8X004490 for ; Sat, 8 Feb 2003 16:40:29 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.6/8.12.6/Submit) id h190dDHJ098512 for freebsd-current@freebsd.org; Sat, 8 Feb 2003 16:39:13 -0800 (PST) Date: Sat, 8 Feb 2003 16:39:13 -0800 From: "David O'Brien" To: freebsd-current@freebsd.org Subject: Any chance of getting these OpenSSL warnings quieted? Message-ID: <20030209003913.GA88948@dragon.nuxi.com> Reply-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG cc -pipe -O -march=athlon -D_IEEE_LIBM -D_ARCH_INDIRECT=i387_ -c /FBSD/src/lib/msun/src/e_gammaf_r.c -o e_gammaf_r.o In file included from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/e_os2.h:56, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/symhacks.h:58, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/crypto.h:78, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/bio.h:67, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/err.h:68, from /FBSD/src/crypto/openssl/crypto/cpt_err.c:62: /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/opensslconf.h:177:1: warning: "OPENSSL_NO_KRB5" redefined /FBSD/src/crypto/openssl/crypto/cpt_err.c:1:1: warning: this is the location of the previous definition cc -pipe -O -march=athlon -D_IEEE_LIBM -D_ARCH_INDIRECT=i387_ -c /FBSD/src/lib/msun/src/e_j1.c -o e_j1.o In file included from /FBSD/src/crypto/openssl/e_os.h:62, from /FBSD/src/crypto/openssl/crypto/cryptlib.h:65, from /FBSD/src/crypto/openssl/crypto/cryptlib.c:61: /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/opensslconf.h:177:1: warning: "OPENSSL_NO_KRB5" redefined /FBSD/src/crypto/openssl/crypto/cryptlib.c:1:1: warning: this is the location of the previous definition In file included from /FBSD/src/crypto/openssl/e_os.h:62, from /FBSD/src/crypto/openssl/crypto/cryptlib.h:65, from /FBSD/src/crypto/openssl/crypto/cversion.c:61: /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/opensslconf.h:177:1: warning: "OPENSSL_NO_KRB5" redefined /FBSD/src/crypto/openssl/crypto/cversion.c:1:1: warning: this is the location of the previous definition In file included from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/e_os2.h:56, from /FBSD/src/crypto/openssl/crypto/ebcdic.c:214: /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/opensslconf.h:177:1: warning: "OPENSSL_NO_KRB5" redefined /FBSD/src/crypto/openssl/crypto/ebcdic.c:1:1: warning: this is the location of the previous definition In file included from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/e_os2.h:56, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/symhacks.h:58, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/crypto.h:78, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/bio.h:67, from /FBSD/src/crypto/openssl/crypto/ex_data.c:144: /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/opensslconf.h:177:1: warning: "OPENSSL_NO_KRB5" redefined /FBSD/src/crypto/openssl/crypto/ex_data.c:1:1: warning: this is the location of the previous definition In file included from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/e_os2.h:56, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/symhacks.h:58, from /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/crypto.h:78, from /FBSD/src/crypto/openssl/crypto/mem.c:61: /FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/opensslconf.h:177:1: warning: "OPENSSL_NO_KRB5" redefined /FBSD/src/crypto/openssl/crypto/mem.c:1:1: warning: this is the location of the previous definition To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 17:16: 1 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E58B37B401 for ; Sat, 8 Feb 2003 17:16:00 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id A406743F3F for ; Sat, 8 Feb 2003 17:15:59 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id h191FvC6216658 for ; Sat, 8 Feb 2003 20:15:57 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20030209003913.GA88948@dragon.nuxi.com> References: <20030209003913.GA88948@dragon.nuxi.com> Date: Sat, 8 Feb 2003 20:15:56 -0500 To: freebsd-current@FreeBSD.ORG From: Garance A Drosihn Subject: Re: Any chance of getting these OpenSSL warnings quieted? Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 4:39 PM -0800 2/8/03, David O'Brien wrote: >cc -pipe -O -march=athlon -D_IEEE_LIBM -D_ARCH_INDIRECT=i387_ -c >/FBSD/src/lib/msun/src/e_gammaf_r.c -o e_gammaf_r.o >In file included from >/FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/e_os2.h:56, > from >/FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/symhacks.h:58, > from >/FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/crypto.h:78, > from >/FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/bio.h:67, > from >/FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/err.h:68, > from /FBSD/src/crypto/openssl/crypto/cpt_err.c:62: >/FBSD/obj/FBSD/src/secure/lib/libcrypto/openssl/opensslconf.h:177:1: >warning: "OPENSSL_NO_KRB5" redefined >/FBSD/src/crypto/openssl/crypto/cpt_err.c:1:1: warning: this is the >location of the previous definition Yeah, I noticed that openssl had recently started to generate a lot more warning messages at buildworld time, but I hadn't looked into it. There are now four times more lines of warning messages from openssl than from everything else in buildworld combined, if I'm counting this right. In any case, the list of warnings now overflows my scrollback buffer, so it's pretty noticeable. I'm also getting a number of syslog'ed error messages about sshd[14235]: in _openpam_check_error_code(): pam_sm_setcred(): unexpected return value 24 with the system I built on Feb 3rd. However, I do notice there have been more changes since then, so that problem may already be fixed. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 17:24:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 206AF37B401 for ; Sat, 8 Feb 2003 17:24:34 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7703D43F75 for ; Sat, 8 Feb 2003 17:24:33 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0226.cvx40-bradley.dialup.earthlink.net ([216.244.42.226] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18hgCt-0006Ko-00; Sat, 08 Feb 2003 17:24:32 -0800 Message-ID: <3E45AD75.47C80368@mindspring.com> Date: Sat, 08 Feb 2003 17:23:01 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Schultz Cc: Ray Kohler , freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? References: <20030208173756.GA56030@arkadia.nv.cox.net> <20030208232724.GA20435@HAL9000.homeunix.com> <3E459BF3.BB3FC381@mindspring.com> <20030209002542.GA20812@HAL9000.homeunix.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4574f64eb36913c47966288ebad833de1a7ce0e8f8d31aa3f350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Schultz wrote: > Thus spake Terry Lambert : > > Actually, failure to use optimization suppresses some compilation > > warnings, particularly those which normally print from using some > > variables without initializing them. > > I think you're thinking of dataflow analysis, which I believe gcc > does with -O and higher optimization levels. So unless you're > using -O0, I would expect that you'd get all the warnings you > want. See the thread "Re: tmpfile breakage on setuid executables". Kris accidently introduced a bug that had to do with whether or not a variable was used before it was initialized. The compiler didn't complain when he checked it before committing it because optimization was off by default; it should have complained, e.g.: "x.c:9:warning: `foo' might be used uninitialized in this function" > > There are a number of places, particularly on non-i386 platforms, > > where optimization actually doesn't work. I think that's why it > > was turned off for the libc compilation, and why the bug crept in. > > > > It's probably useful to compile world with optimization occasionally, > > to make compilation-time detectable bugs like that to show up, but, as > > you point out, it'd probably be a *bad* idea to actually use the > > resulting code, at least until after the next GCC import, which will > > supposedly fix the Alpha optimizer. > > Yes, the possibility of being bitten by compiler bugs is certainly > higher with higher optimization levels. Alpha with -O2 seems to > have been broken for years, and I have seen strange things happen > on IA64 as well. But the i386 code generators have received much > wider testing and debugging, so there is somewhat less danger there. Yes. I just wanted to point out that what's probably a good idea for catching coding errors like uninitialized variables is definitely not a good idea for distributing code for people to run. I wasn't really sure why he was asking, so I tried to look at it from both angles. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 17:50:58 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 028A337B401 for ; Sat, 8 Feb 2003 17:50:57 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 531D843F93 for ; Sat, 8 Feb 2003 17:50:56 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h191osYP021335; Sat, 8 Feb 2003 17:50:54 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h191orJm021334; Sat, 8 Feb 2003 17:50:53 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Date: Sat, 8 Feb 2003 17:50:53 -0800 From: David Schultz To: Terry Lambert Cc: Ray Kohler , freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? Message-ID: <20030209015053.GB21191@HAL9000.homeunix.com> Mail-Followup-To: Terry Lambert , Ray Kohler , freebsd-current@FreeBSD.ORG References: <20030208173756.GA56030@arkadia.nv.cox.net> <20030208232724.GA20435@HAL9000.homeunix.com> <3E459BF3.BB3FC381@mindspring.com> <20030209002542.GA20812@HAL9000.homeunix.com> <3E45AD75.47C80368@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E45AD75.47C80368@mindspring.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Terry Lambert : > David Schultz wrote: > > Thus spake Terry Lambert : > > > Actually, failure to use optimization suppresses some compilation > > > warnings, particularly those which normally print from using some > > > variables without initializing them. > > > > I think you're thinking of dataflow analysis, which I believe gcc > > does with -O and higher optimization levels. So unless you're > > using -O0, I would expect that you'd get all the warnings you > > want. > > See the thread "Re: tmpfile breakage on setuid executables". > > Kris accidently introduced a bug that had to do with whether or > not a variable was used before it was initialized. The compiler > didn't complain when he checked it before committing it because > optimization was off by default; it should have complained, e.g.: > > "x.c:9:warning: `foo' might be used uninitialized in this function" Thanks, I saw that. I'm just pointing out that all you need is -O to get that warning: das@bloody-mary:~> cat foo.c int main() { int foo; return foo; } das@bloody-mary:~> gcc -o foo foo.c -Wall -O foo.c: In function `main': foo.c:2: warning: `foo' might be used uninitialized in this function This is one of those things that gcc3 does pretty well, but Sun's javac does very badly. First of all, in Java, the above warning is considered an error (except *maybe* in JDK 1.4, which is broken and slow on IA64 so I can't use it). Second, the dataflow analysis in javac is braindead, so the compiler is almost always wrong. When I get the same warning from gcc, it's usually right unless interprocedural analysis would be required. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 19:39:59 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E20D37B401 for ; Sat, 8 Feb 2003 19:39:58 -0800 (PST) Received: from smtp04.iprimus.com.au (smtp04.iprimus.com.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id C041C43F75 for ; Sat, 8 Feb 2003 19:39:56 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from smtp02.iprimus.net.au (210.50.76.70) by smtp04.iprimus.com.au (6.7.010) id 3E41F723000605A2 for current@FreeBSD.org; Sun, 9 Feb 2003 14:39:50 +1100 Received: from dilbert.robbins.dropbear.id.au ([210.50.201.242]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Sun, 9 Feb 2003 14:39:49 +1100 Received: from dilbert.robbins.dropbear.id.au (wj7mafqd4jegvp83@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id h193dcJd002763; Sun, 9 Feb 2003 14:39:39 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id h193daht002762; Sun, 9 Feb 2003 14:39:36 +1100 (EST) (envelope-from tim) Date: Sun, 9 Feb 2003 14:39:36 +1100 From: Tim Robbins To: Kris Kennaway Cc: Thomas Moestl , Morten Rodal , current@FreeBSD.org Subject: Re: Panic in fork() Message-ID: <20030209143936.A2648@dilbert.robbins.dropbear.id.au> References: <20030208092406.GA12104@rot13.obsecurity.org> <20030208110512.GB12696@rot13.obsecurity.org> <20030208141542.GC11725@slurp.rodal.no> <20030208151226.GB624@crow.dom2ip.de> <20030208220456.GB15257@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030208220456.GB15257@rot13.obsecurity.org>; from kris@obsecurity.org on Sat, Feb 08, 2003 at 02:04:56PM -0800 X-OriginalArrivalTime: 09 Feb 2003 03:39:49.0777 (UTC) FILETIME=[E5FFC010:01C2CFEC] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 08, 2003 at 02:04:56PM -0800, Kris Kennaway wrote: > On Sat, Feb 08, 2003 at 04:12:26PM +0100, Thomas Moestl wrote: > > > addr2line will usually point to the first line of a statement if it > > spans multiple lines; in this case, the full guard is: > > > > while (p2->p_pid == trypid || > > p2->p_pgrp->pg_id == trypid || > > p2->p_session->s_sid == trypid) { > > OK, I suspected that. > > tjr was looking into this last night and proposed the following patch: Alfred was the one who pointed out that holding proctree was probably necessary, though :-) Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 19:42:22 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A12CC37B401 for ; Sat, 8 Feb 2003 19:42:21 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id D485A43F75 for ; Sat, 8 Feb 2003 19:42:20 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id h193gIC6147438 for ; Sat, 8 Feb 2003 22:42:19 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: <20030209003913.GA88948@dragon.nuxi.com> Date: Sat, 8 Feb 2003 22:42:17 -0500 To: freebsd-current@FreeBSD.ORG From: Garance A Drosihn Subject: Re: Any chance of getting these OpenSSL warnings quieted? Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 8:15 PM -0500 2/8/03, Garance A Drosihn wrote: >I'm also getting a number of syslog'ed error messages about > > sshd[14235]: in _openpam_check_error_code(): > pam_sm_setcred(): unexpected return value 24 > >with the system I built on Feb 3rd. However, I do notice there >have been more changes since then, so that problem may already >be fixed. Ignore this part. It looks like it has been fixed. There's still a few hundred warnings in the buildworld section compiling openssl though. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 19:59:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F9F937B405 for ; Sat, 8 Feb 2003 19:59:45 -0800 (PST) Received: from ip68-14-60-78.no.no.cox.net (ip68-14-60-78.no.no.cox.net [68.14.60.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B59C43F85 for ; Sat, 8 Feb 2003 19:59:44 -0800 (PST) (envelope-from conrads@ip68-14-60-78.no.no.cox.net) Received: from ip68-14-60-78.no.no.cox.net (localhost [127.0.0.1]) by ip68-14-60-78.no.no.cox.net (8.12.6/8.12.6) with ESMTP id h1941wIP072567; Sat, 8 Feb 2003 22:01:58 -0600 (CST) (envelope-from conrads@ip68-14-60-78.no.no.cox.net) Received: (from conrads@localhost) by ip68-14-60-78.no.no.cox.net (8.12.6/8.12.6/Submit) id h1941mpw072183; Sat, 8 Feb 2003 22:01:48 -0600 (CST) Message-ID: X-Mailer: XFMail 1.5.3 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030208173756.GA56030@arkadia.nv.cox.net> Date: Sat, 08 Feb 2003 22:01:48 -0600 (CST) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: Conrad Sabatier To: Ray Kohler Subject: Re: Compiling with high optimization? Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 08-Feb-2003 Ray Kohler wrote: > Has anyone tried building world/kernel with high optimizations (-O2, > -O3) recently? What breaks? (Booby prize to whoever says "common sense" > ;) I last tried it quite a few months ago and the resolver died on me, > don't know what else. I'm not really thinking of running like that, but > I am curious about others' experiences. Call me a fool, but I've been using this for quite some time now, in both -stable (well, with slight modifications) and -current: CPUTYPE?=k7 CFLAGS= -O2 -pipe -mmmx -m3dnow -fforce-mem -fforce-addr -fstrength-reduce \ -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \ -fexpensive-optimizations -fschedule-insns2 COPTFLAGS= -O2 -pipe -mmmx -m3dnow -fforce-mem -fforce-addr -fstrength-reduce \ -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \ -fexpensive-optimizations -fschedule-insns2 My -current box seems to be remarkably stable (and fast!). Guess I must be living right. :-) -- Conrad Sabatier - "In Unix veritas" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 20:54:34 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 220B937B401 for ; Sat, 8 Feb 2003 20:54:30 -0800 (PST) Received: from mail.cepnews.com (mail.cepnews.com [217.31.235.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95CFD43FBD for ; Sat, 8 Feb 2003 20:54:28 -0800 (PST) (envelope-from CepNews@CepNews.com) Received: from mail.cepnews.com (localhost.localdomain [127.0.0.1]) by mail.cepnews.com (8.12.5/8.12.5) with ESMTP id h195BSur015491; Sun, 9 Feb 2003 07:11:28 +0200 Received: from localhost (root@localhost) by mail.cepnews.com (8.12.5/8.12.5/Submit) with SMTP id h195AFfY015479; Sun, 9 Feb 2003 07:10:15 +0200 Date: Sun, 9 Feb 2003 07:10:15 +0200 From: CepNews@CepNews.com Received: by mail.cepnews.com ; Sun, 9 Feb 2003 07:07:06 +0200 Subject: CepNews Şubat 2003 MIME-Version: 1.0 Content-Type: text/html To: undisclosed-recipients: ; Message-ID: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG CepNews
    TELSİM'DEN TÜRKİYE'YE BİR İLK.

    Telsim, dünyanın en büyük uydu telekomünikasyon operatörü Globalstar ile yaptığı işbirliği sonucunda, Türkiye'nin uydu destekli hizmet veren ilk GSM operatörü olmuştur. Kısaca, Telsim-Globalstar birlikteliği, dünyanın her noktasındaki dağ, açık deniz, ova, orman gibi yerleşim merkezlerinden uzak olan ve GSM, yani hücresel telekomünikasyon sistemlerinin kapsama alanı dışında kalan bölgelerde dahi mobil iletişim olanağı sunmaktadır.
     
    Ayrıntılı bilgi için tıklayın...
     
    Cep telefonunu cep televizyonu yaptık!

    Türkiye'de artık cep telefonundan televizyon yayınlarını izleyebileceksiniz. Dünyada, Mobile Video Streaming (MVS) adı verilen "cepte televizyon yayını" izleme imkânını veren bu teknolojiyi, Türkiye'de, Türk bilgisayar mühendisleri yarattı. Telsim Teknolojisi'nin arkasındaki, 150 bilgisayar mühendisi. Telsim'in Türkiye ve dünya üzerindeki rekabet gücünün ekonomik ve teknolojik boyutlarını önemli ölçülerde artıran bu beyin gücü, Telsim'in üstünlüklerinden biri. Bu üstünlüğü sayesinde Telsim, dilediği zaman, dilediği teknolojik yenilikleri kendi yaratabiliyor. Kimseye bağımlı olmadan devreye sokabiliyor. İşte bu ayrıcalık, Telsim'le diğerleri arasındaki farkı yaratıyor. Telsim Teknolojisi, şimdi Türkiye'ye MVS, yani "cepte televizyon yayını"nı sunuyor. MVS'ten yaralanarak, cep televizyonunuzdan pardon cep telefonunuzdan, 24 saat Star televizyonunu, haftanın TOP 10 video kliplerini, futbolla ilgili haberleri, maç görüntülerini, Türkiye'den ve dünyadan önemli politik ve ekonomik haberleri, son dakika gelişmelerini, magazin haberlerini 1 Nisan 2003 tarihine kadar ücretsiz izleyebilirsiniz. Telsim'i diğerlerinden farklı kılan mühendisler ordusunun, yani beyin gücünün Telsim'e ve Türkiye'ye getirdiği teknolojik yenilikler devam edecek. Bekleyin.

    Ayrıntılı bilgi için tıklayın...

     

    Bu mesaj size Telsim Mobil Telekomünikasyon Hizmetleri A.Ş. tarafından
    gönderilmiştir. Bu tür mesajları almak istemiyorsanız lütfen tıklayınız

    This message was sent to you by Telsim Mobile Telecommunications. To unsubscribe
    from this service, please click here

    To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 21: 0:58 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4242C37B401 for ; Sat, 8 Feb 2003 21:00:57 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8CAB43F75 for ; Sat, 8 Feb 2003 21:00:56 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id h1950jMZ045884; Sat, 8 Feb 2003 23:00:45 -0600 (CST) (envelope-from dan) Date: Sat, 8 Feb 2003 23:00:45 -0600 From: Dan Nelson To: Conrad Sabatier Cc: Ray Kohler , freebsd-current@FreeBSD.ORG Subject: Re: Compiling with high optimization? Message-ID: <20030209050045.GD5356@dan.emsphone.com> References: <20030208173756.GA56030@arkadia.nv.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Feb 08), Conrad Sabatier said: > Call me a fool, but I've been using this for quite some time now, in both > -stable (well, with slight modifications) and -current: > > CPUTYPE?=k7 > > CFLAGS= -O2 -pipe -mmmx -m3dnow -fforce-mem -fforce-addr -fstrength-reduce \ > -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \ > -fexpensive-optimizations -fschedule-insns2 Have you actually tested the benefits of these switches? If you had, you would have discovered that -fforce-mem, -fstrength-reduce, -fthread-jumps, -fcse-follow-jumps, -fcse-skip-blocks, -frerun-cse-after-loop, -fexpensive-optimizations, and -fschedule-insns2 do absolutely nothing, since -O2 enables them anyway. -fforce-addr is the only non-redundant -f flag in that whole list. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat Feb 8 21: 8:36 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A63AE37B401 for ; Sat, 8 Feb 2003 21:08:35 -0800 (PST) Received: from ip68-14-60-78.no.no.cox.net (ip68-14-60-78.no.no.cox.net [68.14.60.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id C780643FBD for ; Sat, 8 Feb 2003 21:08:34 -0800 (PST) (envelope-from conrads@ip68-14-60-78.no.no.cox.net) Received: from ip68-14-60-78.no.no.cox.net (localhost [127.0.0.1]) by ip68-14-60-78.no.no.cox.net (8.12.6/8.12.6) with ESMTP id h195AcIP017927; Sat, 8 Feb 2003 23:10:38 -0600 (CST) (envelope-from conrads@ip68-14-60-78.no.no.cox.net) Received: (from conrads@localhost) by ip68-14-60-78.no.no.cox.net (8.12.6/8.12.6/Submit) id h195AXRw017926; Sat, 8 Feb 2003 23:10:33 -0600 (CST) Message-ID: X-Mailer: XFMail 1.5.3 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030209050045.GD5356@dan.emsphone.com> Date: Sat, 08 Feb 2003 23:10:32 -0600 (CST) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: Conrad Sabatier To: Dan Nelson Subject: Re: Compiling with high optimization? Cc: freebsd-current@FreeBSD.ORG, Ray Kohler Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09-Feb-2003 Dan Nelson wrote: > In the last episode (Feb 08), Conrad Sabatier said: >> Call me a fool, but I've been using this for quite some time now, in both >> -stable (well, with slight modifications) and -current: >> >> CPUTYPE?=k7 >> >> CFLAGS= -O2 -pipe -mmmx -m3dnow -fforce-mem -fforce-addr -fstrength-reduce \ >> -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop \ >> -fexpensive-optimizations -fschedule-insns2 > > Have you actually tested the benefits of these switches? If you had, > you would have discovered that -fforce-mem, -fstrength-reduce, > -fthread-jumps, -fcse-follow-jumps, -fcse-skip-blocks, > -frerun-cse-after-loop, > -fexpensive-optimizations, and -fschedule-insns2 do absolutely nothing, since > -O2 enables them anyway. -fforce-addr is the only non-redundant -f flag in > that whole list. Yes, I figured some of them were redundant, but it was kind of hard to figure out which ones, so I just went ahead and used them. :-) -- Conrad Sabatier - "In Unix veritas" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message