From owner-freebsd-current Sun Mar 9 2: 0: 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 AD4D937B401 for ; Sun, 9 Mar 2003 02:00:00 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 90D9843FAF for ; Sun, 9 Mar 2003 01:59:58 -0800 (PST) (envelope-from alexander.pohoyda@gmx.net) Received: (qmail 32348 invoked by uid 0); 9 Mar 2003 09:59:56 -0000 Received: from p508BEB18.dip.t-dialin.net (EHLO oak.pohoyda.family) (80.139.235.24) by mail.gmx.net (mp001-rz3) with SMTP; 09 Mar 2003 10:59:56 +0100 Received: from oak.pohoyda.family (oak.pohoyda.family [127.0.0.1]) by oak.pohoyda.family (8.12.8/8.12.6) with ESMTP id h29A0Ane003439; Sun, 9 Mar 2003 11:00:13 +0100 (CET) (envelope-from alexander.pohoyda@gmx.net) Received: (from apog@localhost) by oak.pohoyda.family (8.12.8/8.12.6/Submit) id h29A050T003436; Sun, 9 Mar 2003 11:00:05 +0100 (CET) X-Authentication-Warning: oak.pohoyda.family: apog set sender to alexander.pohoyda@gmx.net using -f To: Andrei Popov Cc: stable@freebsd.org, current@freebsd.org, andrei@ceesaxp.org Subject: Re: XFree86 4.3 and Cyrillic Xkb layouts References: <20030308205158.84603.qmail@web13304.mail.yahoo.com> From: Alexander Pohoyda Date: 09 Mar 2003 11:00:03 +0100 In-Reply-To: <20030308205158.84603.qmail@web13304.mail.yahoo.com> Message-ID: <87fzpweu70.fsf@oak.pohoyda.family> Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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 Andrei Popov writes: > There's something fishy with Xkb in 4.3: whenever I try cyrillic > layouts (e.g. ru, bg, ua, etc.), I cannot type a thing (and yes, > cyrillic fonts are listed in font path). > Running xev shows that event is there. Anyone seen the same > behavior/knows what may be the cause? Please try setting the locale: export LC_CTYPE="ru_RU.KOI8-R" or setenv LC_CTYPE "ru_RU.KOI8-R" -- Alexander Pohoyda To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 2: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 F150E37B401; Sun, 9 Mar 2003 02:40:44 -0800 (PST) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B95043FA3; Sun, 9 Mar 2003 02:40:43 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd02.sul.t-online.de by mailout06.sul.t-online.com with smtp id 18ryEL-0007ho-01; Sun, 09 Mar 2003 11:40:33 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[217.83.21.141]) by fmrl02.sul.t-online.com with esmtp id 18ryE1-0nLjBwC; Sun, 9 Mar 2003 11:40:13 +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 h29AeC8Z020302; Sun, 9 Mar 2003 11:40:12 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.7/8.12.7) with SMTP id h29AeB4u001092; Sun, 9 Mar 2003 11:40:12 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Sun, 9 Mar 2003 11:40:11 +0100 From: Alexander Leidinger To: "Simon 'corecode' Schubert" Cc: bde@zeta.org.au, current@FreeBSD.ORG, phk@FreeBSD.ORG Subject: Re: Do we still have a FIFO / named pipe problem? Message-Id: <20030309114011.5c4fd699.Alexander@Leidinger.net> In-Reply-To: <20030215235650.6b140807.corecode@corecode.ath.cx> References: <20030209170616.2e4e3635.Alexander@Leidinger.net> <20030210033714.O1731-100000@gamplex.bde.org> <20030215235650.6b140807.corecode@corecode.ath.cx> 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 Sat, 15 Feb 2003 23:56:50 +0100 "Simon 'corecode' Schubert" wrote: > Lately Bruce Evans wrote: > > > This change makes such opens bogusly time out after 1 second (unless > > there is already a writer). > > > > There seems to be a race in fifo_open(): opens for read don't > > terminate the wait if the reader goes away before the opener looks. > > It is not clear if sendmail is affected by this race or one of its > > own. > > > > Untested fix for this and rev.1.79, and for a similar race in blocking > > opens of named pipes for reading: > > fixes issues with apsfilter manual duplexing for me. could somebody > please commit this patch? ping phk Bye, Alexander. -- There's no place like ~ 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 Sun Mar 9 3: 0: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 5B44D37B404 for ; Sun, 9 Mar 2003 03:00:53 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A1F443FB1 for ; Sun, 9 Mar 2003 03:00:52 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h29B0UNw010402; Sun, 9 Mar 2003 12:00:35 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Alexander Leidinger Cc: "Simon 'corecode' Schubert" , bde@zeta.org.au, current@FreeBSD.ORG Subject: Re: Do we still have a FIFO / named pipe problem? From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 09 Mar 2003 11:40:11 +0100." <20030309114011.5c4fd699.Alexander@Leidinger.net> Date: Sun, 09 Mar 2003 12:00:30 +0100 Message-ID: <10401.1047207630@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 <20030309114011.5c4fd699.Alexander@Leidinger.net>, Alexander Leiding er writes: >On Sat, 15 Feb 2003 23:56:50 +0100 >"Simon 'corecode' Schubert" wrote: > >> Lately Bruce Evans wrote: >> >> > This change makes such opens bogusly time out after 1 second (unless >> > there is already a writer). >> > >> > There seems to be a race in fifo_open(): opens for read don't >> > terminate the wait if the reader goes away before the opener looks. >> > It is not clear if sendmail is affected by this race or one of its >> > own. >> > >> > Untested fix for this and rev.1.79, and for a similar race in blocking >> > opens of named pipes for reading: >> >> fixes issues with apsfilter manual duplexing for me. could somebody >> please commit this patch? > >ping phk I'm sort of expecting Bruce to commit his own patch ? -- 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 Mar 9 5: 1: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 3D3B537B404 for ; Sun, 9 Mar 2003 05:01:37 -0800 (PST) Received: from hobby.digiware.nl (d9218.upc-d.chello.nl [213.46.9.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B4DF43FBF for ; Sun, 9 Mar 2003 05:01:34 -0800 (PST) (envelope-from wjw@withagen.nl) Received: from dual (dual [212.61.27.71]) by hobby.digiware.nl (8.12.8/8.12.8a) with SMTP id h29D1oEw061167 for ; Sun, 9 Mar 2003 14:01:52 +0100 (CET) (envelope-from wjw@withagen.nl) Message-ID: <05e901c2e63c$0e440440$471b3dd4@digiware.nl> From: "Willem Jan Withagen" To: Subject: /usr/src5/sys/kern/kern_lock.c:243: could sleep with "buf queue lock" locked from /usr/src5/sys/kern/vfs_bio.c:2104 Date: Sun, 9 Mar 2003 14:01:50 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: base64 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 SSduIG5vdCBzaHVyZSBpZiB0aGlzIGlzIHN0aWxsIHRoZSBwbGFjZSB0byBkcm9wIHRoZXNlPz8/ DQpJIGhhdmVuJ3Qgc2VlbiBtYXkgb2ZmIHRoZXNlIGxhdGVseSBvbiB0aGUgbGlzdC4uLg0KDQpG b3VuZCBpbiBteSBkbWVzZyBvZiB5ZXN0ZXJkYXksIHN5c3RlbSBpcyBub3cgNSBkYXlzIHVwOg0K DQovdXNyL3NyYzUvc3lzL2tlcm4va2Vybl9sb2NrLmM6MjQzOiBjb3VsZCBzbGVlcCB3aXRoICJi dWYgcXVldWUgbG9jayIgbG9ja2VkIGZyb20gL3Vzci9zcmM1L3N5cy9rZXJuL3Zmc19iaW8uYzoy MTA0DQoNCmZyZWViZWUjIHVuYW1lIC1hDQpGcmVlQlNEIGZyZWViZWUuZGlnaXdhcmUubmwgNS4w LUNVUlJFTlQgRnJlZUJTRCA1LjAtQ1VSUkVOVCAjNDogU2F0IE1hciAgMSAxNzo1MDoxNiBDRVQg MjAwMyAgICAgcm9vdEBmcmVlYmVlLmRpZ2l3YXJlLm5sOi9tbnQyL29iai91c3Ivc3JjNS9zeXMv R0VORVJJQyAgaTM4Ng0KDQpJJ2xsIGluc3RhbGwgeWVzdGVyZGF5cyBrZXJuZWwgYW5kIHJ1biB0 aGF0IHRvIHNlZSBpZiBpdCByZW9jY3Vycy4NCg0KLS1XalcNCg0KDQoNCg== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 5:48: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 F131837B401 for ; Sun, 9 Mar 2003 05:48:39 -0800 (PST) Received: from web13307.mail.yahoo.com (web13307.mail.yahoo.com [216.136.175.43]) by mx1.FreeBSD.org (Postfix) with SMTP id 48ECA43FB1 for ; Sun, 9 Mar 2003 05:48:39 -0800 (PST) (envelope-from andyelf@yahoo.com) Message-ID: <20030309134838.50020.qmail@web13307.mail.yahoo.com> Received: from [213.76.96.254] by web13307.mail.yahoo.com via HTTP; Sun, 09 Mar 2003 05:48:38 PST Date: Sun, 9 Mar 2003 05:48:38 -0800 (PST) From: Andrei Popov Subject: Re: XFree86 4.3 and Cyrillic Xkb layouts To: Alexander Pohoyda Cc: stable@freebsd.org, current@freebsd.org, andrei@ceesaxp.org In-Reply-To: <87fzpweu70.fsf@oak.pohoyda.family> 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 > Please try setting the locale: > export LC_CTYPE="ru_RU.KOI8-R" > or > setenv LC_CTYPE "ru_RU.KOI8-R" Yow! Worked -- which is a bit strange: with 4.2 nothing like this was necessary... > -- > Alexander Pohoyda > Thanks, -- Andrei __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 5:52: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 5268837B401 for ; Sun, 9 Mar 2003 05:52:26 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8F5743FAF for ; Sun, 9 Mar 2003 05:52:13 -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 AAA22201; Mon, 10 Mar 2003 00:51:51 +1100 Date: Mon, 10 Mar 2003 00:51:50 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Poul-Henning Kamp Cc: Alexander Leidinger , "Simon 'corecode' Schubert" , Subject: Re: Do we still have a FIFO / named pipe problem? In-Reply-To: <10401.1047207630@critter.freebsd.dk> Message-ID: <20030310004846.H15648-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 Sun, 9 Mar 2003, Poul-Henning Kamp wrote: > In message <20030309114011.5c4fd699.Alexander@Leidinger.net>, Alexander Leiding > er writes: > >On Sat, 15 Feb 2003 23:56:50 +0100 > >"Simon 'corecode' Schubert" wrote: > > > >> Lately Bruce Evans wrote: > >> > >> > This change makes such opens bogusly time out after 1 second (unless > >> > there is already a writer). > >> > > >> > There seems to be a race in fifo_open(): opens for read don't > >> > terminate the wait if the reader goes away before the opener looks. > >> > It is not clear if sendmail is affected by this race or one of its > >> > own. > >> > > >> > Untested fix for this and rev.1.79, and for a similar race in blocking > >> > opens of named pipes for reading: > >> > >> fixes issues with apsfilter manual duplexing for me. could somebody > >> please commit this patch? > > > >ping phk > > I'm sort of expecting Bruce to commit his own patch ? I'm sort of expecting Poul-Henning to report whether it fixes the sendmail problem :-). Also, since I don't normally run -current, changes to it are hard to test properly. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 9:13: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 8F48837B401 for ; Sun, 9 Mar 2003 09:13:55 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9056943F75 for ; Sun, 9 Mar 2003 09:13:54 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h29HDiNw075028; Sun, 9 Mar 2003 18:13:50 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Bruce Evans Cc: Alexander Leidinger , "Simon 'corecode' Schubert" , current@FreeBSD.ORG Subject: Re: Do we still have a FIFO / named pipe problem? From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 10 Mar 2003 00:51:50 +1100." <20030310004846.H15648-100000@gamplex.bde.org> Date: Sun, 09 Mar 2003 18:13:44 +0100 Message-ID: <75027.1047230024@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 <20030310004846.H15648-100000@gamplex.bde.org>, Bruce Evans writes: >> I'm sort of expecting Bruce to commit his own patch ? > >I'm sort of expecting Poul-Henning to report whether it fixes the >sendmail problem :-). Also, since I don't normally run -current, >changes to it are hard to test properly. Ahh, my report must have gotten lost then: Yes, it works for me. -- 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 Mar 9 9: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 D0B8737B401 for ; Sun, 9 Mar 2003 09:14:56 -0800 (PST) Received: from seed.net.tw (sn16.seed.net.tw [139.175.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8D2543F93 for ; Sun, 9 Mar 2003 09:14:53 -0800 (PST) (envelope-from leafy@leafy.idv.tw) Received: from [211.74.132.105] (port=49199 helo=leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.10:4) id 18s4Nx-000OUG-00 for freebsd-current@freebsd.org; Mon, 10 Mar 2003 01:14:53 +0800 Received: from leafy.idv.tw (nobody@localhost [127.0.0.1]) by leafy.idv.tw (8.12.8/8.12.8) with ESMTP id h29HEqr6002545 for ; Mon, 10 Mar 2003 01:14:52 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.8/8.12.8/Submit) id h29HEqVn002544 for freebsd-current@freebsd.org; Mon, 10 Mar 2003 01:14:52 +0800 (CST) Date: Mon, 10 Mar 2003 01:14:52 +0800 From: leafy To: freebsd-current@freebsd.org Subject: How does a module decide what to support? Message-ID: <20030309171452.GA2510@leafy.idv.tw> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=big5 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 From my observations (yes, please correct me if I am wrong), that modules define what to support in their respective makefiles in the form of SRC= aaa.c bbb.c opt_*.h Where opt_*.h are automagically generated if they are not in machine@ (and the generated files are just empty files that indicate that the kernel file does not specify this option), else they are linked from machine@. If some makefile list SRC= a.c b.c opt_inet.h opt_inet6.h and kernel config lists 'option INET' *only*, then opt_inet.h has '#define INET 1' in it and opt_inet6.h is empty. Is this correct? Jiawei -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 10:49: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 E0EBB37B401 for ; Sun, 9 Mar 2003 10:49:19 -0800 (PST) Received: from mail.flugsvamp.com (ts46-01-qdr3643.mdfrd.or.charter.com [68.118.36.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24F4543FB1 for ; Sun, 9 Mar 2003 10:49:19 -0800 (PST) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by mail.flugsvamp.com (8.12.6/8.12.6) id h29Imm4S028389; Sun, 9 Mar 2003 12:48:48 -0600 (CST) (envelope-from jlemon) Date: Sun, 9 Mar 2003 12:48:48 -0600 (CST) From: Jonathan Lemon Message-Id: <200303091848.h29Imm4S028389@mail.flugsvamp.com> To: leafy@leafy.idv.tw, current@freebsd.org Subject: Re: How does a module decide what to support? X-Newsgroups: local.mail.freebsd-current In-Reply-To: Organization: Cc: Sender: owner-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 article you write: >From my observations (yes, please correct me if I am wrong), that >modules define what to support in their respective makefiles in the form >of > >SRC= aaa.c bbb.c opt_*.h > >Where opt_*.h are automagically generated if they are not in machine@ >(and the generated files are just empty files that indicate that the >kernel file does not specify this option), else they are linked from >machine@. > >If some makefile list >SRC= a.c b.c opt_inet.h opt_inet6.h >and kernel config lists 'option INET' *only*, then opt_inet.h has >'#define INET 1' in it and opt_inet6.h is empty. > >Is this correct? Yes, I believe so. This is why module makefiles should explicitly create the opt_* files with the #define set, so the module supports all options. See the recent commits I did to the if_tun module, for example (thanks for pointing it out). -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 12: 5: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 21C9E37B404 for ; Sun, 9 Mar 2003 12:05:44 -0800 (PST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F1E043FCB for ; Sun, 9 Mar 2003 12:05:43 -0800 (PST) (envelope-from wa1ter@myrealbox.com) Received: from myrealbox.com wa1ter@smtp-send.myrealbox.com [67.119.36.81] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.32 $ on Novell NetWare via secured & encrypted transport (TLS); Sun, 09 Mar 2003 13:05:48 -0700 Message-ID: <3E6B9EA0.5030409@myrealbox.com> Date: Sun, 09 Mar 2003 12:05:52 -0800 From: walt Organization: none User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3b) Gecko/20030213 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Warning: driver mistake 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 Starting today I noticed this warning at bootup: WARNING: Driver mistake: make_dev(console) called before SI_SUB_DRIVERS Is there more info I should supply? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 12:29: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 C65EC37B401 for ; Sun, 9 Mar 2003 12:29:50 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC48643F3F for ; Sun, 9 Mar 2003 12:29: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.8/8.12.8) with ESMTP id h29KTkNw009259; Sun, 9 Mar 2003 21:29:47 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: walt Cc: freebsd-current@FreeBSD.ORG Subject: Re: Warning: driver mistake From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 09 Mar 2003 12:05:52 PST." <3E6B9EA0.5030409@myrealbox.com> Date: Sun, 09 Mar 2003 21:29:46 +0100 Message-ID: <9258.1047241786@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 <3E6B9EA0.5030409@myrealbox.com>, walt writes: >Starting today I noticed this warning at bootup: >WARNING: Driver mistake: make_dev(console) called before SI_SUB_DRIVERS > >Is there more info I should supply? Ooops. No, that is plenty. I'll fix it. -- 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 Mar 9 12:44: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 71D8D37B401; Sun, 9 Mar 2003 12:44:37 -0800 (PST) Received: from mail.cruzio.com (mail.cruzio.com [63.249.95.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AF0B43F93; Sun, 9 Mar 2003 12:44:36 -0800 (PST) (envelope-from brucem@cruzio.com) Received: from cruzio.com (dsl3-63-249-85-132.cruzio.com [63.249.85.132]) by mail.cruzio.com with ESMTP id h29Kivt0025437; Sun, 9 Mar 2003 12:44:58 -0800 (PST) Received: (from brucem@localhost) by cruzio.com (8.11.3/8.11.3) id h29LDYS00731; Sun, 9 Mar 2003 13:13:34 -0800 (PST) (envelope-from brucem) Date: Sun, 9 Mar 2003 13:13:34 -0800 (PST) From: "Bruce R. Montague" Message-Id: <200303092113.h29LDYS00731@cruzio.com> To: freebsd-current@FreeBSD.ORG Subject: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) Cc: sos@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 Hi, the current -current ata driver panics at boot when using the CS5530 (National GX1, ex-"cyrix"). This driver worked in the past on -current, likely up until the major rework that appears to be underway as of 20-Feb-2003 (that is, the creation of "ata-chipset.c", etc.) Routine "ata_cyrix_setmode()" in "ata-chipset.c" appears to be assuming that "channel->dma" has a valid pointer to a "struct ata_dma_funcs", and that "channel->r_bmio" is a valid bus resource id. This is not the case, both "channel->dma" and "channel->r_bmio" (bus master I/O supported) are 0, which will result in panics. The first use (and panic) occurs at: atadev->channel->dma->alignment = 16; "ata_cyrix_setmode+0x8b: movl $0x10,0x20(%eax)" on my build (%eax is 0). These panics occur regardless of the setting of TUNABLE_INIT() "ata_dma". Routine "ata_dmainit()", which mallocs the "struct ata_dma_funcs" is (likely correctly) never called. If required due to DMA support, it is allocated during the driver probe via "ctlr->dmainit(ch)" in "ata_pcisub_probe()" in "ata-pci.c". To make the system "come up", I replaced "ata_cyrix_setmode()" with the following: static void ata_cyrix_setmode(struct ata_device *atadev, int mode) { int error; mode = ata_limit_mode(atadev, mode, ATA_UDMA2); error = ata_command(atadev, ATA_C_SETFEATURES, 0, mode, ATA_C_F_SETXFER, ATA_WAIT_READY); if (bootverbose) ata_prtdev(atadev, "%s setting %s on Cyrix chip\n", (error) ? "failed" : "success", ata_mode2str(mode)); atadev->mode = mode; } This seems to work, I am using the system without apparent problems, but it is strictly a "by guess and by god" fix - I haven't studied or understood the whole new ata driver scaffolding. What is (a) correct fix? Is there a better and more complete thing envisoned? Is there a tunable I don't understand? Or a feature flag? Is the current "cyrix" code in transit and untested? Should "ata_dma" or "r_bmio" be checked in the setmode codepath? Can I help assure this is fixed right? I can at least test, if need be. As a minor question, is the style to allocate malloced data structures (such as "ata_dma_funcs") in the probe code instead of attach code, as seems to be the intent in this driver, and leave permanent bus resource allocation until the attach? (in this case the "ata_pcisub_probe()" never reaches the allocation code because it checks and finds "r_bmio" is 0). - bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 13: 8: 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 33DF037B401; Sun, 9 Mar 2003 13:08:00 -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 E5D1B43FE0; Sun, 9 Mar 2003 13:07:57 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.8/8.12.8) id h29L7qgi038028; Sun, 9 Mar 2003 22:07:52 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200303092107.h29L7qgi038028@spider.deepcore.dk> Subject: Re: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) In-Reply-To: <200303092113.h29LDYS00731@cruzio.com> To: "Bruce R. Montague" Date: Sun, 9 Mar 2003 22:07:52 +0100 (CET) Cc: freebsd-current@FreeBSD.ORG, sos@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 Bruce R. Montague wrote: > I'll look into it, thanks for reporting! > Hi, the current -current ata driver panics at boot > when using the CS5530 (National GX1, ex-"cyrix"). > This driver worked in the past on -current, likely > up until the major rework that appears to be > underway as of 20-Feb-2003 (that is, the creation > of "ata-chipset.c", etc.) > > Routine "ata_cyrix_setmode()" in "ata-chipset.c" > appears to be assuming that "channel->dma" has a > valid pointer to a "struct ata_dma_funcs", and > that "channel->r_bmio" is a valid bus resource > id. This is not the case, both "channel->dma" and > "channel->r_bmio" (bus master I/O supported) are > 0, which will result in panics. The first use (and > panic) occurs at: > > atadev->channel->dma->alignment = 16; > > "ata_cyrix_setmode+0x8b: movl $0x10,0x20(%eax)" > on my build (%eax is 0). > > These panics occur regardless of the setting of > TUNABLE_INIT() "ata_dma". > > Routine "ata_dmainit()", which mallocs the "struct > ata_dma_funcs" is (likely correctly) never called. > If required due to DMA support, it is allocated > during the driver probe via "ctlr->dmainit(ch)" > in "ata_pcisub_probe()" in "ata-pci.c". > > To make the system "come up", I replaced > "ata_cyrix_setmode()" with the following: > > static void > ata_cyrix_setmode(struct ata_device *atadev, int mode) > { > int error; > > mode = ata_limit_mode(atadev, mode, ATA_UDMA2); > > error = ata_command(atadev, ATA_C_SETFEATURES, 0, mode, > ATA_C_F_SETXFER, ATA_WAIT_READY); > > if (bootverbose) > ata_prtdev(atadev, "%s setting %s on Cyrix chip\n", > (error) ? "failed" : "success", ata_mode2str(mode)); > > atadev->mode = mode; > } > > > This seems to work, I am using the system without > apparent problems, but it is strictly a "by guess > and by god" fix - I haven't studied or understood > the whole new ata driver scaffolding. > > What is (a) correct fix? Is there a better and > more complete thing envisoned? Is there a tunable > I don't understand? Or a feature flag? Is the > current "cyrix" code in transit and untested? > Should "ata_dma" or "r_bmio" be checked in the > setmode codepath? Can I help assure this is fixed > right? I can at least test, if need be. > > As a minor question, is the style to allocate > malloced data structures (such as "ata_dma_funcs") > in the probe code instead of attach code, as seems > to be the intent in this driver, and leave permanent > bus resource allocation until the attach? (in this > case the "ata_pcisub_probe()" never reaches the > allocation code because it checks and finds "r_bmio" > is 0). > > > > > > - bruce > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 13:55: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 68C1137B401; Sun, 9 Mar 2003 13:55:54 -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 6C99E43FD7; Sun, 9 Mar 2003 13:55:53 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.8/8.12.8) id h29LtoW8047455; Sun, 9 Mar 2003 22:55:50 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200303092155.h29LtoW8047455@spider.deepcore.dk> Subject: Re: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) In-Reply-To: <200303092113.h29LDYS00731@cruzio.com> To: "Bruce R. Montague" Date: Sun, 9 Mar 2003 22:55:50 +0100 (CET) Cc: freebsd-current@FreeBSD.ORG, sos@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 Bruce R. Montague wrote: > > Routine "ata_cyrix_setmode()" in "ata-chipset.c" > appears to be assuming that "channel->dma" has a > valid pointer to a "struct ata_dma_funcs", and > that "channel->r_bmio" is a valid bus resource > id. This is not the case, both "channel->dma" and > "channel->r_bmio" (bus master I/O supported) are > 0, which will result in panics. The first use (and > panic) occurs at: OK, just looked a bit more closely at this, if the r_bmio address is not set in the chipset registers something is wrong as these are used to setup PIO and DMA timings in the chipset. So if your BIOS doesn't set the bmio address, there is *no way* I can set any modes on your HW, ie you need to use whatever mode the BIOS has setup for you. Could you please dump the pci reg 0x20 (with pciconf) and verify that it is endeed 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 Sun Mar 9 14:39: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 9495837B404 for ; Sun, 9 Mar 2003 14:39:26 -0800 (PST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id A621243FB1 for ; Sun, 9 Mar 2003 14:39:25 -0800 (PST) (envelope-from wa1ter@myrealbox.com) Received: from myrealbox.com wa1ter@smtp-send.myrealbox.com [67.114.255.56] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.32 $ on Novell NetWare via secured & encrypted transport (TLS); Sun, 09 Mar 2003 15:39:30 -0700 Message-ID: <3E6BC2A6.3000809@myrealbox.com> Date: Sun, 09 Mar 2003 14:39:34 -0800 From: walt Organization: none User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3b) Gecko/20030213 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Warning: driver mistake 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 Poul-Henning Kamp wrote: > In message <3E6B9EA0.5030409@myrealbox.com>, walt writes: > >>Starting today I noticed this warning at bootup: >>WARNING: Driver mistake: make_dev(console) called before SI_SUB_DRIVERS >> >>Is there more info I should supply? > > > Ooops. No, that is plenty. I'll fix it. Yes, fixed now. Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 15:41: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 BB74E37B404; Sun, 9 Mar 2003 15:41:29 -0800 (PST) Received: from mail.cruzio.com (mail.cruzio.com [63.249.95.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBDD843FCB; Sun, 9 Mar 2003 15:41:28 -0800 (PST) (envelope-from brucem@cruzio.com) Received: from cruzio.com (dsl3-63-249-85-132.cruzio.com [63.249.85.132]) by mail.cruzio.com with ESMTP id h29Nfpt0094276; Sun, 9 Mar 2003 15:41:51 -0800 (PST) Received: (from brucem@localhost) by cruzio.com (8.11.3/8.11.3) id h2A0AQM00982; Sun, 9 Mar 2003 16:10:26 -0800 (PST) (envelope-from brucem) Date: Sun, 9 Mar 2003 16:10:26 -0800 (PST) From: "Bruce R. Montague" Message-Id: <200303100010.h2A0AQM00982@cruzio.com> To: freebsd-current@FreeBSD.ORG Subject: Re: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) Cc: sos@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 Hi, re the ata driver and CS5530, Soren Schmidt asked: > Could you please dump the pci reg 0x20 (with pciconf) and > verify that it is endeed 0 ? Ok (it's _not_ 0): ----- geode# pciconf -r pci0:18:2 0x20 0000fc01 geode# pciconf -r pci0:18:2 32 0000fc01 ----- Is this 0x20 on F2, F2BAR4? Is it supposed to be 0, not the "I/O mapped Bus Master IDE Registers..."? I have a 5530 manual (although I'm uncertain if all the "5530s" really look the same in all ways...). Bits 31:4 are the bus master IDE base address (0xfc0). The RO 1 indicates a 16-byte I/O range. I am using a reasonably recent National Semiconductor Centaurus 2 development board. My understanding is that this is National's current reference development platform. It uses National's XpressROM BIOS, intended for use with the GX1 and CS5530. This BIOS seems to evolve rather rapidly, it doesn't look like the BIOS is very recent. The BIOS screen says: ------ Rev: v2.22 B Built: 07/01/2002 07:54:38 CPU: GX1 8.2 @334 Mhz PCI:33Mhz Multiplier:10x 5530A Rev:B1 Memory:192512k @83 MHz CAS:3 SDRAM Divisor:4 Shift SDCLK: 2.0 Floppy A:1.44M Drive 80:41174MB COM1:03F8 LPT1:0378 XpressROM V3.2.5 RTC:Present COM2:02F8 VSA:0202 USB:Enabled VBIOS:040D PM:Disabled CPU Voltage 2.20 9211: B1/C1 ------ I'll try to track down "r_bmio" life. The same hardware runs the "/boot/kernel.last_good/kernel" "FreeBSD 5.0-CURRENT #3: Mon Jan 20 ... 2003" fine, there are no obvious driver problems. Other than the expected -current deltas, the only other difference between the two systems that I know of is that the older system is not using the TSC clock. I'll see if that changes things. They are basically both GENERIC. Other misc info: ------ geode# dmesg | egrep 5530 atapci0: port 0xfc00-0xfc0f at device 18.2 on pci0 ------ geode# pciconf -l hostb0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x00011078 rev=0x00 hdr=0x00 sis0@pci0:13:0: class=0x020000 card=0x0020100b chip=0x0020100b rev=0x00 hdr=0x00 isab0@pci0:18:0: class=0x060100 card=0x00000000 chip=0x01001078 rev=0x30 hdr=0x00 none0@pci0:18:1: class=0x068000 card=0x00000000 chip=0x01011078 rev=0x00 hdr=0x00 atapci0@pci0:18:2: class=0x010180 card=0x00000000 chip=0x01021078 rev=0x00 hdr=0x00 none1@pci0:18:3: class=0x040100 card=0x69b61078 chip=0x01031078 rev=0x00 hdr=0x00 none2@pci0:18:4: class=0x030000 card=0x584d1078 chip=0x01041078 rev=0x00 hdr=0x00 ohci0@pci0:19:0: class=0x0c0310 card=0xa0f80e11 chip=0xa0f80e11 rev=0x06 hdr=0x00 ----- FreeBSD geode 5.0-CURRENT FreeBSD 5.0-CURRENT #10: Sun Mar 9 06:47:09 GMT 2003 brucem@geode:/usr/src/sys/i386/compile/GENERIC i386 - bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 17:12: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 B4C5837B401; Sun, 9 Mar 2003 17:12:28 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 998F943FCB; Sun, 9 Mar 2003 17:12:27 -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 <200303100112260020082mele>; Mon, 10 Mar 2003 01:12:26 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA99896; Sun, 9 Mar 2003 17:12:25 -0800 (PST) Date: Sun, 9 Mar 2003 17:12:24 -0800 (PST) From: Julian Elischer To: "Bruce R. Montague" Cc: freebsd-current@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) In-Reply-To: <200303100010.h2A0AQM00982@cruzio.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 Hi I didn;t see the original problem, just the reply.. Just one thing to be aware of when using the 5530. I used a 5530 on the Interjet-II. It has a terrible bug where it fails if the data being transferred to/from the disk by DMA is not alligned on a 16 byte boundary. programs such as newfs and fsck would sometimes make this happen when accessing a raw drive. This was not in the manual at that time, and I don't know if Soeren has the code to check for this. Such transffers must be done using PIO. This may be a red-herring.. (the symptom was that it would never complete the transfer and would hang the bus.) On Sun, 9 Mar 2003, Bruce R. Montague wrote: > > > Hi, re the ata driver and CS5530, Soren Schmidt asked: > > > Could you please dump the pci reg 0x20 (with pciconf) and > > verify that it is endeed 0 ? > > Ok (it's _not_ 0): > > ----- > geode# pciconf -r pci0:18:2 0x20 > 0000fc01 > geode# pciconf -r pci0:18:2 32 > 0000fc01 > ----- > > Is this 0x20 on F2, F2BAR4? Is it supposed to be > 0, not the "I/O mapped Bus Master IDE Registers..."? > I have a 5530 manual (although I'm uncertain if > all the "5530s" really look the same in all > ways...). Bits 31:4 are the bus master IDE base > address (0xfc0). The RO 1 indicates a 16-byte I/O range. > > I am using a reasonably recent National Semiconductor > Centaurus 2 development board. My understanding > is that this is National's current reference > development platform. It uses National's XpressROM > BIOS, intended for use with the GX1 and CS5530. > This BIOS seems to evolve rather rapidly, it > doesn't look like the BIOS is very recent. The > BIOS screen says: > > ------ > Rev: v2.22 B Built: 07/01/2002 07:54:38 > CPU: GX1 8.2 @334 Mhz PCI:33Mhz Multiplier:10x 5530A Rev:B1 > Memory:192512k @83 MHz CAS:3 SDRAM Divisor:4 Shift SDCLK: 2.0 > Floppy A:1.44M Drive 80:41174MB COM1:03F8 LPT1:0378 XpressROM V3.2.5 > RTC:Present COM2:02F8 VSA:0202 > USB:Enabled VBIOS:040D > PM:Disabled > CPU Voltage 2.20 9211: B1/C1 > ------ > > I'll try to track down "r_bmio" life. > > The same hardware runs the "/boot/kernel.last_good/kernel" > "FreeBSD 5.0-CURRENT #3: Mon Jan 20 ... 2003" > fine, there are no obvious driver problems. Other > than the expected -current deltas, the only other > difference between the two systems that I know of > is that the older system is not using the TSC > clock. I'll see if that changes things. They > are basically both GENERIC. > > Other misc info: > > ------ > geode# dmesg | egrep 5530 > atapci0: port 0xfc00-0xfc0f at device 18.2 on pci0 > > ------ > > geode# pciconf -l > hostb0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x00011078 rev=0x00 hdr=0x00 > sis0@pci0:13:0: class=0x020000 card=0x0020100b chip=0x0020100b rev=0x00 hdr=0x00 > isab0@pci0:18:0: class=0x060100 card=0x00000000 chip=0x01001078 rev=0x30 hdr=0x00 > none0@pci0:18:1: class=0x068000 card=0x00000000 chip=0x01011078 rev=0x00 hdr=0x00 > atapci0@pci0:18:2: class=0x010180 card=0x00000000 chip=0x01021078 rev=0x00 hdr=0x00 > none1@pci0:18:3: class=0x040100 card=0x69b61078 chip=0x01031078 rev=0x00 hdr=0x00 > none2@pci0:18:4: class=0x030000 card=0x584d1078 chip=0x01041078 rev=0x00 hdr=0x00 > ohci0@pci0:19:0: class=0x0c0310 card=0xa0f80e11 chip=0xa0f80e11 rev=0x06 hdr=0x00 > > ----- > FreeBSD geode 5.0-CURRENT FreeBSD 5.0-CURRENT #10: Sun Mar 9 06:47:09 GMT 2003 > brucem@geode:/usr/src/sys/i386/compile/GENERIC i386 > > > > > > > > - bruce > > 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 Mar 9 17:46: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 9EAAD37B408; Sun, 9 Mar 2003 17:46:44 -0800 (PST) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 336FF43FE9; Sun, 9 Mar 2003 17:46:41 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.12.8/8.12.7) with ESMTP id h2A1kcQA031241; Sun, 9 Mar 2003 20:46:39 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: Date: Sun, 9 Mar 2003 20:46:37 -0500 To: Marcin =?iso-8859-1?Q?CIE=C2LAK?= , freebsd-current@FreeBSD.ORG From: Garance A Drosihn Subject: Re: Fix for rtc, vmware modules and post-500104 -current Cc: freebsd-emulation@FreeBSD.ORG, , , phk@FreeBSD.ORG Content-Type: text/plain; charset="iso-8859-1" ; format="flowed" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.28 Sender: owner-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:37 PM +0100 3/5/03, Marcin CIE=C2LAK wrote: >See the patches enclosed to emulators/rtc > and emulators/vmware2 ports. > >Tested only for -current with: > >#define __FreeBSD_version 500104 This does get it so the vmware module will load correctly at system startup, and I think the result is basically working. There is still a complaint at system-startup about driver "vmmon" used unreserved major device number 200 but I don't know what the proper fix for that is. Unfortunately my X11-configuration is currently screwed up, so I can't really tell if vmware2 is working right. I can tell that these updates do get it working better. -- Garance Alistair Drosehn =3D 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 Sun Mar 9 17:49: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 D169437B401; Sun, 9 Mar 2003 17:49:41 -0800 (PST) Received: from tomts22-srv.bellnexxia.net (tomts22-srv.bellnexxia.net [209.226.175.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD23343F75; Sun, 9 Mar 2003 17:49:40 -0800 (PST) (envelope-from mike@sparc64.style9.org) Received: from sparc64.style9.org ([65.93.76.196]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030310014940.NYZG15778.tomts22-srv.bellnexxia.net@sparc64.style9.org>; Sun, 9 Mar 2003 20:49:40 -0500 Received: (from mike@localhost) by sparc64.style9.org (8.12.6/8.12.6/Submit) id h2A1oRn5042980; Sun, 9 Mar 2003 20:50:27 -0500 (EST) Date: Sun, 9 Mar 2003 20:50:27 -0500 (EST) From: Mike Barcroft Message-Id: <200303100150.h2A1oRn5042980@sparc64.style9.org> To: current@FreeBSD.org, sparc64@FreeBSD.org Subject: sparc64 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 Tinderbox FAQ: http://people.FreeBSD.org/~mike/tinderbox.html -------------------------------------------------------------- >>> 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 /tinderbox/sparc64/obj/tinderbox/sparc64/src/sparc64/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- ===> lib/libpam/modules/pam_opieaccess cc1: warnings being treated as errors /tinderbox/sparc64/src/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c: In function `pam_sm_authenticate': /tinderbox/sparc64/src/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c:70: warning: passing arg 2 of `opielookup' discards qualifiers from pointer target type /tinderbox/sparc64/src/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c:80: warning: passing arg 1 of `opieaccessfile' discards qualifiers from pointer target type *** Error code 1 Stop in /tinderbox/sparc64/src/lib/libpam/modules/pam_opieaccess. *** Error code 1 Stop in /tinderbox/sparc64/src/lib/libpam/modules. *** Error code 1 Stop in /tinderbox/sparc64/src/lib/libpam. *** Error code 1 Stop in /tinderbox/sparc64/src. *** Error code 1 Stop in /tinderbox/sparc64/src. *** Error code 1 Stop in /tinderbox/sparc64/src. *** Error code 1 Stop in /tinderbox/sparc64/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 21:37: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 CBE0937B401; Sun, 9 Mar 2003 21:37:57 -0800 (PST) Received: from mail.cruzio.com (mail.cruzio.com [63.249.95.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 500EF43FDD; Sun, 9 Mar 2003 21:37:57 -0800 (PST) (envelope-from brucem@cruzio.com) Received: from cruzio.com (dsl3-63-249-85-132.cruzio.com [63.249.85.132]) by mail.cruzio.com with ESMTP id h2A5cLt0025372; Sun, 9 Mar 2003 21:38:21 -0800 (PST) Received: (from brucem@localhost) by cruzio.com (8.11.3/8.11.3) id h2A66tn01508; Sun, 9 Mar 2003 22:06:55 -0800 (PST) (envelope-from brucem) Date: Sun, 9 Mar 2003 22:06:55 -0800 (PST) From: "Bruce R. Montague" Message-Id: <200303100606.h2A66tn01508@cruzio.com> To: freebsd-current@FreeBSD.ORG Subject: Re: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) Cc: sos@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 Hi, regarding the CS5530 driver initialization (ata cyrix) panic, the problem of channel "dma" and "r_bmio" fields being 0 is due to the hardware PCI config cmd register not having the expected value. In "ata-pci.c / ata_pci_attach()" the code fragment: /* is busmastering supported ? */ if ((cmd & (PCIM_CMD_PORTEN | PCIM_CMD_BUSMASTEREN)) == (PCIM_CMD_PORTEN | PCIM_CMD_BUSMASTEREN)) { failed because "cmd" was 0x01 instead of 0x05 (the PORTEN | BUSMASTEREN is 0x05). The 5530 datasheet (well, SC1200 datasheet) says cmd bit 2 (Bus Master) must be set to 1... why isnt it? Changing the code at the top of ata_pci_attach() from: cmd = pci_read_config(dev, PCIR_COMMAND, 2); to: pci_write_config(dev, PCIR_COMMAND, 0x05, 2 ); cmd = pci_read_config(dev, PCIR_COMMAND, 2); causes the driver to not to panic on "ata_cyrix_setmode()"; it appears to complete both the probe and attach boot operations. Now the driver is dying (the system is hanging) at the first attempt to use dma, that is, after the first call to "ata_dmastart()". The "ata_dmastart()" completes ok, but the system immediatly hangs (it appears up, but spinning at interrupt level or somesuch, I can sometimes break into ddb or scroll the console a bit before things totally freeze). I'll see what else I can find. Replacing use of the TSC by the 8254 appears to have nothing to do with this problem (although it's necessary for anything even close to accurate sleep'ing). The older version of -current doesn't have this problem. I'll see if I can find why. It's the same hardware, I can boot either system and the old ata driver works ok. I'm debugging the new -current under the old working -current. Did something change in the PCI initialization that's likely a cause? - bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 22:11: 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 86DCA37B401; Sun, 9 Mar 2003 22:11:00 -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 738A543F85; Sun, 9 Mar 2003 22:10:58 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.8/8.12.8) id h2A6AhX5044154; Mon, 10 Mar 2003 07:10:43 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200303100610.h2A6AhX5044154@spider.deepcore.dk> Subject: Re: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) In-Reply-To: <200303100606.h2A66tn01508@cruzio.com> To: "Bruce R. Montague" Date: Mon, 10 Mar 2003 07:10:43 +0100 (CET) Cc: freebsd-current@FreeBSD.ORG, sos@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 Bruce R. Montague wrote: > > /* is busmastering supported ? */ > if ((cmd & (PCIM_CMD_PORTEN | PCIM_CMD_BUSMASTEREN)) == > (PCIM_CMD_PORTEN | PCIM_CMD_BUSMASTEREN)) { > > failed because "cmd" was 0x01 instead of 0x05 (the > PORTEN | BUSMASTEREN is 0x05). The 5530 datasheet > (well, SC1200 datasheet) says cmd bit 2 (Bus > Master) must be set to 1... why isnt it? > > Changing the code at the top of ata_pci_attach() > from: > cmd = pci_read_config(dev, PCIR_COMMAND, 2); > > to: > pci_write_config(dev, PCIR_COMMAND, 0x05, 2 ); > cmd = pci_read_config(dev, PCIR_COMMAND, 2); > > causes the driver to not to panic on "ata_cyrix_setmode()"; > it appears to complete both the probe and attach boot > operations. > > Now the driver is dying (the system is hanging) > at the first attempt to use dma, that is, after > the first call to "ata_dmastart()". The > "ata_dmastart()" completes ok, but the system > immediatly hangs (it appears up, but spinning at > interrupt level or somesuch, I can sometimes break > into ddb or scroll the console a bit before things > totally freeze). I'll see what else I can find. Thats probably because the HW hasn't been setup to be able to do busmastering. > The older version of -current doesn't have this > problem. I'll see if I can find why. It's the > same hardware, I can boot either system and the > old ata driver works ok. I'm debugging the new > -current under the old working -current. Did > something change in the PCI initialization that's > likely a cause? Setting up busmastering and the enabled bit is a BIOS thing, I only test for it being enabled and that has not changed in the ATA driver for a loooog time. Now the driver fails to survive a missing DMA bit, and thats a bug alright, the following patch should solve that: Index: ata-chipset.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-chipset.c,v retrieving revision 1.11 diff -u -r1.11 ata-chipset.c --- ata-chipset.c 3 Mar 2003 11:51:08 -0000 1.11 +++ ata-chipset.c 9 Mar 2003 21:58:52 -0000 @@ -480,7 +480,10 @@ if (ata_default_interrupt(dev)) return ENXIO; - ctlr->setmode = ata_cyrix_setmode; + if (ctlr->r_bmio) + ctlr->setmode = ata_cyrix_setmode; + else + ctlr->setmode = ata_generic_setmode; return 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 Sun Mar 9 22: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 08B9237B404; Sun, 9 Mar 2003 22:15:51 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7200E43F93; Sun, 9 Mar 2003 22:15: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.8/8.12.8) with ESMTP id h2A6Fmjx085410; Mon, 10 Mar 2003 09:15:48 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.8/8.12.6/Submit) id h2A6Fme5085409; Mon, 10 Mar 2003 09:15:48 +0300 (MSK) (envelope-from ache) Date: Mon, 10 Mar 2003 09:15:48 +0300 From: "Andrey A. Chernov" To: standards@freebsd.org, current@freebsd.org Subject: CFR: add widely accepted _ISOC99_SOURCE Message-ID: <20030310061548.GA85361@nagual.pp.ru> 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 Many programs (from ports too) defines _ISOC99_SOURCE to get C99 functions, but we don't sense this define currently. Here is the fix for review: --- cdefs.h.bak Wed Oct 23 05:04:06 2002 +++ cdefs.h Mon Mar 10 09:11:01 2003 @@ -360,6 +360,9 @@ #define __POSIX_VISIBLE 198808 #define __ISO_C_VISIBLE 0 #endif /* _POSIX_C_SOURCE */ +#ifdef _ISOC99_SOURCE +#define __ISO_C_VISIBLE 1999 +#endif #else /*- * Deal with _ANSI_SOURCE: @@ -378,7 +381,7 @@ #define __XSI_VISIBLE 0 #define __BSD_VISIBLE 0 #define __ISO_C_VISIBLE 1990 -#elif defined(_C99_SOURCE) /* Localism to specify strict C99 env. */ +#elif defined(_ISOC99_SOURCE) /* Strict C99 env. */ #define __POSIX_VISIBLE 0 #define __XSI_VISIBLE 0 #define __BSD_VISIBLE 0 -- 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 Mar 9 22: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 8C3A537B401; Sun, 9 Mar 2003 22:30:14 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C3B343FBD; Sun, 9 Mar 2003 22:30: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.8/8.12.3) with ESMTP id h2A6U4A7064499; Sun, 9 Mar 2003 23:30:05 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 09 Mar 2003 23:29:36 -0700 (MST) Message-Id: <20030309.232936.112719962.imp@bsdimp.com> To: drosih@rpi.edu Cc: saper@sgh.waw.pl, freebsd-current@FreeBSD.ORG, freebsd-emulation@FreeBSD.ORG, vsilyaev@mindspring.com, saper@system.pl, phk@FreeBSD.ORG Subject: Re: Fix for rtc, vmware modules and post-500104 -current From: "M. Warner Losh" In-Reply-To: References: 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: Garance A Drosihn writes: : driver "vmmon" used unreserved major device number 200 Actually, major numbers 200-253 are 'reserved for local use' and shouldn't be assigned autmatically. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Mar 9 23: 9: 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 0B8F037B407; Sun, 9 Mar 2003 23:09:06 -0800 (PST) Received: from mail.cruzio.com (mail.cruzio.com [63.249.95.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C46643F93; Sun, 9 Mar 2003 23:09:05 -0800 (PST) (envelope-from brucem@cruzio.com) Received: from cruzio.com (dsl3-63-249-85-132.cruzio.com [63.249.85.132]) by mail.cruzio.com with ESMTP id h2A79Tt0075273; Sun, 9 Mar 2003 23:09:29 -0800 (PST) Received: (from brucem@localhost) by cruzio.com (8.11.3/8.11.3) id h2A7c3V01599; Sun, 9 Mar 2003 23:38:03 -0800 (PST) (envelope-from brucem) Date: Sun, 9 Mar 2003 23:38:03 -0800 (PST) From: "Bruce R. Montague" Message-Id: <200303100738.h2A7c3V01599@cruzio.com> To: freebsd-current@FreeBSD.ORG Subject: Re: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) Cc: sos@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 Soeren Schmidt wrote: > the following patch should solve that: Yes, it does, Thanks! All's well that... ends. - bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 1:28: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 3720A37B401 for ; Mon, 10 Mar 2003 01:28: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 7EA7243FCB for ; Mon, 10 Mar 2003 01:28:35 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 3087E5308; Mon, 10 Mar 2003 10:28: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: Jun Su Cc: freebsd-current@freebsd.org Subject: Re: GDB kernel debug new command From: Dag-Erling Smorgrav Date: Mon, 10 Mar 2003 10:28:31 +0100 In-Reply-To: <200303081224.53273.JunSu@gmx.net> (Jun Su's message of "Sat, 8 Mar 2003 12:24:53 +0800") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <200303081224.53273.JunSu@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 Jun Su writes: > To help myself more easily check the kernel dump, I added two new command. One > is ps, the other is kldstat. I know we can print the kernel data manually to > get the same information. I still think this is useful. This can help the > newbies to get the information without many knowledge about the kernel. This > also can help the experienced user to get the data more quickly. > > Here is the new file. Just put it in /usr/src/gnu/usr.bin/binutils/gdb. And > add the file to Makefile. Please give me some comments if this is garbage. :) This is pointless as it won't work unless gdb is in synch with the kernel (since it depends on knowing the layout of struct proc and struct linker_file). Both of these commands can be implemented as macros, which will not depend on gdb being in synch with the kernel. Greg Lehey wrote this ps macro: define ps set $nproc = nprocs set $aproc = allproc.lh_first set $proc = allproc.lh_first printf " pid proc addr uid ppid pgrp flag stat comm wchan\n" while (--$nproc >= 0) set $pptr = $proc.p_pptr if ($pptr == 0) set $pptr = $proc end if ($proc.p_stat) printf "%5d %08x %08x %4d %5d %5d %06x %d %-10s ", \ $proc.p_pid, $aproc, \ $proc.p_addr, $proc.p_cred->p_ruid, $pptr->p_pid, \ $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_stat, \ &$proc.p_comm[0] if ($proc.p_wchan) if ($proc.p_wmesg) printf "%s ", $proc.p_wmesg end printf "%x", $proc.p_wchan end printf "\n" end set $aproc = $proc.p_list.le_next if ($aproc == 0 && $nproc > 0) set $aproc = zombproc end set $proc = $aproc end end document ps "ps" -- when kernel debugging, type out a ps-like listing of active processes. end and I've written two variants of kldstat myself, plus a kldload: end document kldstat Lists the modules that were loaded when the kernel crashed. end define kldstat-v set $kld = linker_files.tqh_first printf "Id Refs Address Size Name\n" while ($kld != 0) printf "%2d %4d 0x%08x %-8x %s\n", \ $kld->id, $kld->refs, $kld->address, $kld->size, $kld->filename printf " Contains modules:\n" printf " Id Name\n" set $module = $kld->modules.tqh_first while ($module != 0) printf " %2d %s\n", $module->id, $module->name set $module = $module->link.tqe_next end set $kld = $kld->link.tqe_next end end document kldstat-v Lists modules with full information. end define kldload set $kld = linker_files.tqh_first set $done = 0 while ($kld != 0 && $done == 0) if ($kld->filename == $arg0) set $done = 1 else set $kld = $kld->link.tqe_next end end if ($done == 1) shell /usr/bin/objdump -h $arg0 | \ awk '/ .text/ { print "set \$offset = 0x" $6 }' > .kgdb.temp source .kgdb.temp add-symbol-file $arg0 $kld->address + $offset end end document kldload Loads a module. Arguments are module name and offset of text section. end Note that for kldload to work, you need to know the offset of the text section for the module you wish to load (objdump -h will tell you) Note also that I haven't used any of these macros in a long time, so there may be some issues related to KSE or whatnot. 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 Mar 10 1:35: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 B369137B404 for ; Mon, 10 Mar 2003 01:35:55 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBE7043FCB for ; Mon, 10 Mar 2003 01:35:54 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 649725308; Mon, 10 Mar 2003 10:35:51 +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: msch@snafu.de Cc: Nuno Teixeira , freebsd-current@freebsd.org Subject: Re: softupdates && write cache && ata tags topic From: Dag-Erling Smorgrav Date: Mon, 10 Mar 2003 10:35:51 +0100 In-Reply-To: <200303081713.50636.msch@snafu.de> (Matthias Schuendehuette's message of "Sat, 8 Mar 2003 17:13:50 +0100") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <200303081713.50636.msch@snafu.de> 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 Matthias Schuendehuette writes: > I consider it unnecessary to use WriteCache if TaggedQueuing is enabled > and working. > (The performace gain of WriteCache and TaggedQueuing is more or less the > same, the combination of both adds less than 10% of performance and you > shouldn't use Soft Updates any more) Write cacheing is automatically enabled if tagged queueing is enabled and supported by the disk, so I doubt you're seeing any improvement at all. /* enable write caching if allowed and not default on device */ if (ata_wc || (ata_tags && ad_tagsupported(adp))) { if (ata_command(atadev, ATA_C_SETFEATURES, 0, 0, ATA_C_F_ENAB_WCACHE, ATA_WAIT_INTR)) ata_prtdev(atadev, "enabling write cache failed\n"); } 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 Mar 10 1:49: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 317F337B401; Mon, 10 Mar 2003 01:49:50 -0800 (PST) Received: from tomts9-srv.bellnexxia.net (tomts9.bellnexxia.net [209.226.175.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32A1243FB1; Mon, 10 Mar 2003 01:49:49 -0800 (PST) (envelope-from mike@sparc64.style9.org) Received: from sparc64.style9.org ([65.93.76.196]) by tomts9-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20030310094948.DNGX17704.tomts9-srv.bellnexxia.net@sparc64.style9.org>; Mon, 10 Mar 2003 04:49:48 -0500 Received: (from mike@localhost) by sparc64.style9.org (8.12.6/8.12.6/Submit) id h2A9nxBM070897; Mon, 10 Mar 2003 04:50:00 -0500 (EST) Date: Mon, 10 Mar 2003 04:50:00 -0500 (EST) From: Mike Barcroft Message-Id: <200303100950.h2A9nxBM070897@sparc64.style9.org> To: current@FreeBSD.org, sparc64@FreeBSD.org Subject: sparc64 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 Tinderbox FAQ: http://people.FreeBSD.org/~mike/tinderbox.html -------------------------------------------------------------- >>> 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 /tinderbox/sparc64/obj/tinderbox/sparc64/src/sparc64/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- ===> lib/libpam/modules/pam_opieaccess cc1: warnings being treated as errors /tinderbox/sparc64/src/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c: In function `pam_sm_authenticate': /tinderbox/sparc64/src/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c:70: warning: passing arg 2 of `opielookup' discards qualifiers from pointer target type /tinderbox/sparc64/src/lib/libpam/modules/pam_opieaccess/pam_opieaccess.c:80: warning: passing arg 1 of `opieaccessfile' discards qualifiers from pointer target type *** Error code 1 Stop in /tinderbox/sparc64/src/lib/libpam/modules/pam_opieaccess. *** Error code 1 Stop in /tinderbox/sparc64/src/lib/libpam/modules. *** Error code 1 Stop in /tinderbox/sparc64/src/lib/libpam. *** Error code 1 Stop in /tinderbox/sparc64/src. *** Error code 1 Stop in /tinderbox/sparc64/src. *** Error code 1 Stop in /tinderbox/sparc64/src. *** Error code 1 Stop in /tinderbox/sparc64/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 2: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 1835537B401 for ; Mon, 10 Mar 2003 02:30:47 -0800 (PST) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 9D45143FD7 for ; Mon, 10 Mar 2003 02:30:45 -0800 (PST) (envelope-from bra@fsn.hu) Received: (qmail 20524 invoked by uid 1000); 10 Mar 2003 10:30:44 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Mar 2003 10:30:44 -0000 Date: Mon, 10 Mar 2003 11:30:44 +0100 (CET) From: Attila Nagy To: =?iso-8859-1?q?Mica=20Telodico?= Cc: freebsd-current@freebsd.org Subject: Re: FreeBSD 5.0R panic: bwrite: buffer is not busy??? In-Reply-To: <20030308121202.38978.qmail@web13309.mail.yahoo.com> Message-ID: References: <20030308121202.38978.qmail@web13309.mail.yahoo.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, > Here the messages that appears in console: The panic appears randomly > after the boot , it can be an hour as can be 3 or more hours . Could you please try to upgrade to -CURRENT? ----------[ 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 Mar 10 6: 4: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 54F4037B401 for ; Mon, 10 Mar 2003 06:04:48 -0800 (PST) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id CE2B943FAF for ; Mon, 10 Mar 2003 06:04:46 -0800 (PST) (envelope-from JunSu@gmx.net) Received: (qmail 23895 invoked by uid 0); 10 Mar 2003 14:04:14 -0000 Received: from unknown (HELO 211.161.222.216) (211.161.222.216) by mail.gmx.net (mp017-rz3) with SMTP; 10 Mar 2003 14:04:14 -0000 From: Jun Su To: Dag-Erling Smorgrav Subject: Re: GDB kernel debug new command Date: Mon, 10 Mar 2003 22:03:28 +0800 User-Agent: KMail/1.5 Cc: freebsd-current@freebsd.org References: <200303081224.53273.JunSu@gmx.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303102203.28668.JunSu@gmx.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 Monday 10 March 2003 17:28, Dag-Erling Smorgrav wrote: > Jun Su writes: > > To help myself more easily check the kernel dump, I added two new > > command. One is ps, the other is kldstat. I know we can print the kernel > > data manually to get the same information. I still think this is useful. > > This can help the newbies to get the information without many knowledge > > about the kernel. This also can help the experienced user to get the data > > more quickly. > > > > Here is the new file. Just put it in /usr/src/gnu/usr.bin/binutils/gdb. > > And add the file to Makefile. Please give me some comments if this is > > garbage. :) > > This is pointless as it won't work unless gdb is in synch with the > kernel (since it depends on knowing the layout of struct proc and > struct linker_file). Both of these commands can be implemented as > macros, which will not depend on gdb being in synch with the kernel. > > Greg Lehey wrote this ps macro: > > define ps > set $nproc = nprocs > set $aproc = allproc.lh_first > set $proc = allproc.lh_first > printf " pid proc addr uid ppid pgrp flag stat comm > wchan\n" while (--$nproc >= 0) > set $pptr = $proc.p_pptr > if ($pptr == 0) > set $pptr = $proc > end > if ($proc.p_stat) > printf "%5d %08x %08x %4d %5d %5d %06x %d %-10s ", \ > $proc.p_pid, $aproc, \ > $proc.p_addr, $proc.p_cred->p_ruid, $pptr->p_pid, \ > $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_stat, \ > &$proc.p_comm[0] > if ($proc.p_wchan) > if ($proc.p_wmesg) > printf "%s ", $proc.p_wmesg > end > printf "%x", $proc.p_wchan > end > printf "\n" > end > set $aproc = $proc.p_list.le_next > if ($aproc == 0 && $nproc > 0) > set $aproc = zombproc > end > set $proc = $aproc > end > end > > document ps > "ps" -- when kernel debugging, type out a ps-like listing of active > processes. end > > and I've written two variants of kldstat myself, plus a kldload: > > end > > document kldstat > Lists the modules that were loaded when the kernel crashed. > end > > define kldstat-v > set $kld = linker_files.tqh_first > printf "Id Refs Address Size Name\n" > while ($kld != 0) > printf "%2d %4d 0x%08x %-8x %s\n", \ > $kld->id, $kld->refs, $kld->address, $kld->size, $kld->filename > printf " Contains modules:\n" > printf " Id Name\n" > set $module = $kld->modules.tqh_first > while ($module != 0) > printf " %2d %s\n", $module->id, $module->name > set $module = $module->link.tqe_next > end > set $kld = $kld->link.tqe_next > end > end > > document kldstat-v > Lists modules with full information. > end > > define kldload > set $kld = linker_files.tqh_first > set $done = 0 > while ($kld != 0 && $done == 0) > if ($kld->filename == $arg0) > set $done = 1 > else > set $kld = $kld->link.tqe_next > end > end > if ($done == 1) > shell /usr/bin/objdump -h $arg0 | \ > awk '/ .text/ { print "set \$offset = 0x" $6 }' > .kgdb.temp > source .kgdb.temp > add-symbol-file $arg0 $kld->address + $offset > end > end > > document kldload > Loads a module. Arguments are module name and offset of text section. > end > > Note that for kldload to work, you need to know the offset of the text > section for the module you wish to load (objdump -h will tell you) > > Note also that I haven't used any of these macros in a long time, so > there may be some issues related to KSE or whatnot. > > DES You are so cool. Your macro is better than my code. Thanks. I think the kernel structure is not changed often. These type of macro can help most newbies such as me to enter the freebsd debug easily. It is worth to maintain a copy somewhere. (In source tree, it may be great.) I used windbg for a long time. it provides many commands to help developer debug. This is a good pratice I think. :) Jun Su To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 7:29: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 25BC737B404 for ; Mon, 10 Mar 2003 07:29:10 -0800 (PST) Received: from staff-svr1.eu.inctech.com (staff-svr1.eu.inctech.com [213.219.2.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id E546B43F3F for ; Mon, 10 Mar 2003 07:29:08 -0800 (PST) (envelope-from suneel@inctech.com) content-class: urn:content-classes:message MIME-Version: 1.0 Importance: normal Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Headless Server X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Date: Mon, 10 Mar 2003 15:29:06 -0000 Message-ID: <2D49E83A43A2104F872DF4E90AE2BF49120AC7@staff-svr1.eu.inctech.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Headless Server Thread-Index: AcLnGcmXP3LhtrGkSYaUaPcts/SdCg== From: "Suneel Jhangiani" To: Sender: owner-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 have a 2U Rackmount system that I have inherited. This box has a standard Intel RC440BX Desktop Motherboard in it. The actual chassis covers the whole board so that none off the expansion slots or on board connectors are visible. There is a network connector on the back off the chassis that has been rigged internally to a network. The front panel has three LED's (Power, HDD, and Network) and two buttons (Power and Function). On investigating the Function button is connected to two pins on the Serial Com 2 connector. I was wondering if there is anything in FreeBSD Current or older that will allow me to use this function button to shutdown the system as the power button results in instant off. I'd also like to know what others might use this for bearing in mind that the only connector exposed is the network connector and hence if the system loses its network connection then the only way to diagnose issues is to open the case. Regards, Suneel. *************************************************************************= ***** A disclaimer applies to all email sent from Inter-Computer Technology = Limited. For the full text, see = http://home.inctech.com/Content/Legal/EmailDisclaimer.htm *************************************************************************= ***** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 7:32: 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 2929A37B401; Mon, 10 Mar 2003 07:32:00 -0800 (PST) Received: from klima.physik.uni-mainz.de (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1243D43FAF; Mon, 10 Mar 2003 07:31:59 -0800 (PST) (envelope-from ohartman@klima.physik.uni-mainz.de) Received: from edda.physik.uni-mainz.de (edda.Physik.Uni-Mainz.DE [134.93.180.218]) by klima.physik.uni-mainz.de (8.12.6/8.12.5) with ESMTP id h2AFVvUb006492; Mon, 10 Mar 2003 16:31:57 +0100 (CET) (envelope-from ohartman@klima.physik.uni-mainz.de) Date: Mon, 10 Mar 2003 16:31:57 +0100 (CET) From: "Hartmann, O." X-X-Sender: ohartman@edda.physik.uni-mainz.de To: freebsd-questions@freebsd.org Cc: freebsd-current@freebsd.org Subject: FBSD 5.0 diskless environment does not work! Message-ID: <20030310163117.K23333@edda.physik.uni-mainz.de> 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. For a long time with FreeBSD 4.X we ran and still run a bunch of diskless stations, X11 Terminals, some special workstations and now a growing system with several nodes for usage as PVM. Now I want to switch to FreeBSD 5.0 and run into massive problems. I searched for similar problems in the archive and groups.google, but I did not find any appropriate. Hope someone can help. The environment is really simple. All diskless machines uses PXE to bootstrap. In FreeBSD 4.7 this environment works perfect (and ist is still working), but in FreeBSD 5.0 I get into trouble. I want first to describe the environment. Each class of machines has its own full FreeBSD-4/5 installation. Within ist root-path, there is a populated /etc and a populated /conf. /conf has three main entries: /conf/base, /conf/default and /conf/IP.SPECIFIC.ENTRY. As I understand the diskless boot process in FreeBSD 4.X, at first a memory disc is created, then the stuff in /etc/ is copied to that RAM disc, executed and then the process does a kind of hierarchy overlay by unifying /etc with /conf/base with /conf/default and at last with /conf/IP.SPECIFIC.ENTRY and executes then the on top remaining config files (sorry about my English). That means: the most specific system configs are in /conf/IP.SPECIFIC.ENTRY and get executed. This seems to have changed in 5.0 as there is only the /conf/default and /conf/IP.SPECIFIC.ENTRY left. /conf/base has gone. But nevertheless, this should work, but does not! When booting a FBSD 5.0 client without a populated /etc directory but with a well populated /conf/defaults/etc directory, it fails. It also fails when populating /etc and delete those files which are in /conf/default/etc. Putting all the stuff in /etc forces the client to do things it should do, but this is not the way it should be and its not the way as it is decribed (rarely) in the docs I found and as I expect this in FreeBSD 4.7 (where this scheme works like a charme). This seems to be the first problem I can not figure out. What is the hierarchy of /etc and /conf/defaults/etc in FBSD 5.0 now? How can I keep my config files in sync without copying all the stuff again from /conf/default/etc to /etc (which breaks the config scheme, I think)? When the kernel has been bootstraped and started , the first thing is it moans about a non writeable root partition. This also does not change when exporting the root partition as read/writeable on the server (doing a killall -HUP mountd ...). I also use the rc_ng="YES"-scheme. The kernel has options NFS_ROOT and MD_ROOT and also options md for the memory disc compiled in. The only problem is that in the clients /dev directory is no appropriate md0* node, I can not create it via MAKEDEV all in this directory and I wonder whether this is needed. Can anyone help? Has someone a runnng diskless FBSD 5.0-R/5-CURRENT environment? Thanks in advance, Oliver -- MfG O. Hartmann ohartman@mail.physik.uni-mainz.de ------------------------------------------------------------------ Systemadministration des Institutes fuer Physik der Atmosphaere (IPA) ------------------------------------------------------------------ Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinenraum) Tel: +496131/3924144 (Buero) FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 7:52: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 BEE4C37B401 for ; Mon, 10 Mar 2003 07:52:18 -0800 (PST) Received: from geri.cc.fer.hr (geri.cc.fer.hr [161.53.72.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DED943FA3 for ; Mon, 10 Mar 2003 07:52:17 -0800 (PST) (envelope-from ivoras@geri.cc.fer.hr) Received: from geri.cc.fer.hr (localhost [127.0.0.1]) by geri.cc.fer.hr (8.12.8/8.12.8) with ESMTP id h2AFpvCJ036696 for ; Mon, 10 Mar 2003 16:51:57 +0100 (CET) (envelope-from ivoras@geri.cc.fer.hr) Received: from localhost (ivoras@localhost) by geri.cc.fer.hr (8.12.8/8.12.8/Submit) with ESMTP id h2AFputZ036693 for ; Mon, 10 Mar 2003 16:51:57 +0100 (CET) Date: Mon, 10 Mar 2003 16:51:56 +0100 (CET) From: Ivan Voras To: freebsd-current@freebsd.org Subject: KSE test code? Message-ID: <20030310164958.U36670@geri.cc.fer.hr> 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 any example code available that just tests (a "proof of concept"-like) the KSE system on FreeBSD 5-current? -- Ashes to ashes, DOS to DOS ivoras @ fer.hr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 7:56: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 3E49837B401 for ; Mon, 10 Mar 2003 07:56:23 -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 AD6DB43FA3 for ; Mon, 10 Mar 2003 07:56:22 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from dialup-209.244.104.52.dial1.sanjose1.level3.net ([209.244.104.52] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18sPdQ-00000X-00; Mon, 10 Mar 2003 07:56:16 -0800 Message-ID: <3E6CB54D.A8A7F7F0@mindspring.com> Date: Mon, 10 Mar 2003 07:54:53 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Nuno Teixeira Cc: freebsd-current@freebsd.org Subject: Re: softupdates && write cache && ata tags topic References: <20030308151549.GA622@gw.tex.bogus> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a468fe5fd3472aef0fcd046b2a633b9fb6350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nuno Teixeira wrote: > I understand the basic concept of the folowing techs: softupdates, disk > write cache and ata tags. > > My question is: > > It is safe to use softupdates + write cache + ata tags (IBM disk)? > > I read someware that it not safe to use softupdate + write cache > (without ata tags) and if it is not safe why FreeBSD 5.0 ships with them > enabled? See the discussion of 3 weeks ago with one of the engineers from Maxtor, on this list. The short answer is that the drive does not honor tags on a commit to stable storage, before returning the request as satisfied, and that's because on a write, ATA doesn't support disconnect with tagged commands. As to why write caching is on be default, there's a lot of going back and forth on that, and it's flipped state maybe 4-5 times, so far. The short answer is that ATA drives are pig-slow with write caching disabled, and users find that unacceptable. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 7:57: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 04B6A37B401; Mon, 10 Mar 2003 07:57:40 -0800 (PST) Received: from espresso.bsdmike.org (espresso.bsdmike.org [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BAD743FDF; Mon, 10 Mar 2003 07:57:39 -0800 (PST) (envelope-from mike@espresso.bsdmike.org) Received: by espresso.bsdmike.org (Postfix, from userid 1002) id D12289C62; Mon, 10 Mar 2003 10:44:34 -0500 (EST) Date: Mon, 10 Mar 2003 10:44:34 -0500 From: Mike Barcroft To: "Andrey A. Chernov" Cc: standards@freebsd.org, current@freebsd.org Subject: Re: CFR: add widely accepted _ISOC99_SOURCE Message-ID: <20030310104434.P70629@espresso.bsdmike.org> References: <20030310061548.GA85361@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030310061548.GA85361@nagual.pp.ru>; from ache@nagual.pp.ru on Mon, Mar 10, 2003 at 09:15:48AM +0300 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 Andrey A. Chernov writes: > Many programs (from ports too) defines _ISOC99_SOURCE to get C99 > functions, but we don't sense this define currently. Here is the fix for > review: Cool. I didn't realize there was an existing precedence, or I would have used it. > --- cdefs.h.bak Wed Oct 23 05:04:06 2002 > +++ cdefs.h Mon Mar 10 09:11:01 2003 > @@ -360,6 +360,9 @@ > #define __POSIX_VISIBLE 198808 > #define __ISO_C_VISIBLE 0 > #endif /* _POSIX_C_SOURCE */ > +#ifdef _ISOC99_SOURCE > +#define __ISO_C_VISIBLE 1999 > +#endif This part isn't needed... > #else > /*- > * Deal with _ANSI_SOURCE: > @@ -378,7 +381,7 @@ > #define __XSI_VISIBLE 0 > #define __BSD_VISIBLE 0 > #define __ISO_C_VISIBLE 1990 > -#elif defined(_C99_SOURCE) /* Localism to specify strict C99 env. */ > +#elif defined(_ISOC99_SOURCE) /* Strict C99 env. */ > #define __POSIX_VISIBLE 0 > #define __XSI_VISIBLE 0 > #define __BSD_VISIBLE 0 ...since the next line here is: #define __ISO_C_VISIBLE 1999 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 Mon Mar 10 7:58: 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 0B1A937B401 for ; Mon, 10 Mar 2003 07:58:06 -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 9100E43F85 for ; Mon, 10 Mar 2003 07:58:05 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from dialup-209.244.104.52.dial1.sanjose1.level3.net ([209.244.104.52] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18sPf8-0000ID-00; Mon, 10 Mar 2003 07:58:03 -0800 Message-ID: <3E6CB5B7.C7C6322E@mindspring.com> Date: Mon, 10 Mar 2003 07:56:39 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Nuno Teixeira Cc: freebsd-current@freebsd.org Subject: Re: sendmail_enable="NONE" doesn't appear in rc.conf References: <20030308151930.GB622@gw.tex.bogus> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a468fe5fd3472aef0fefb40c1c04333add350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nuno Teixeira wrote: > sendmail_enable="NONE" doesn't appear in /etc/defaults/rc.conf. Can > anyone update this file to include "NONE" option? Do you mean you want it to default to "NONE", or do you mean that you want the option documented in this file? If the former, then it's not going to happen; by default, there has to be an MSA for /bin/mail to work, for things like daily, weekly, and mothly security scripts to email their results to root. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 8: 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 1244E37B401 for ; Mon, 10 Mar 2003 08:01:30 -0800 (PST) Received: from www.outpostsentinel.com (66-23-198-138.clients.speedfactory.net [66.23.198.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83D3743F3F for ; Mon, 10 Mar 2003 08:01:28 -0800 (PST) (envelope-from cfowler@outpostsentinel.com) Received: from [192.168.2.8] ([192.168.2.8]) by www.outpostsentinel.com (8.11.6/8.11.6) with ESMTP id h2AG0o820360 for ; Mon, 10 Mar 2003 11:00:50 -0500 Subject: Sendmail and backups From: Christopher Fowler To: freebsd-current@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 10 Mar 2003 11:05:50 -0500 Message-Id: <1047312351.23680.51.camel@cfowler.outpostsentinel.com> Mime-Version: 1.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 Hello, Is there a way to configure sendmail on my 4.7 system to keep a backup of all mail going out? Thanks, Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 8: 3: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 6920737B401; Mon, 10 Mar 2003 08:03: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 DFB0443F3F; Mon, 10 Mar 2003 08:03:42 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from dialup-209.244.104.52.dial1.sanjose1.level3.net ([209.244.104.52] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18sPkV-0001Os-00; Mon, 10 Mar 2003 08:03:36 -0800 Message-ID: <3E6CB703.98FD0A2E@mindspring.com> Date: Mon, 10 Mar 2003 08:02:11 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Craig Rodrigues Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: #warning must be protected by #if __GNUC__ in headers? References: <20030308161943.GA54921@attbi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a41313399b37b9e09ee7a6b564a7512eed350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Craig Rodrigues wrote: > In , I see: > > #if __GNUC__ > #warning "No user-serviceable parts inside." > #endif > > Does the use of #warning need to be protected by > #if __GNUC__ in FreeBSD header files? Yes. It is a preprocessor directive specific the GCC preprocessor. This was discussed in great detail about a month ago, when the people trying to get TenDRA to compile FreeBSD discovered to their horror that TenDRA's preprocessor incorrectly assigns meaning to code that's #if'ed out, and blew chunks on the #warning, when it should have ignored it. > Some other header files check for __GNUC__ before using #warning, > such as , but does not. is wrong. Please see the original discussion for more details. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 8:18: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 A196237B401 for ; Mon, 10 Mar 2003 08:18:45 -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 0B43543F3F for ; Mon, 10 Mar 2003 08:18:45 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from dialup-209.244.104.52.dial1.sanjose1.level3.net ([209.244.104.52] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18sPqe-0002dR-00; Mon, 10 Mar 2003 08:09:57 -0800 Message-ID: <3E6CB87F.B28DEE17@mindspring.com> Date: Mon, 10 Mar 2003 08:08:31 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Garrett Wollman Cc: Craig Rodrigues , freebsd-current@FreeBSD.ORG Subject: Re: #warning must be protected by #if __GNUC__ in headers? References: <20030308161943.GA54921@attbi.com> <200303081728.h28HSDWM039984@khavrinen.lcs.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4a341f263064def0369b54100120672a8548b785378294e88350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Garrett Wollman wrote: > `#if __GNUC__' wouldn't help matters; every preprocessor has to read > and interpret every preprocessor directive (so that `#else' and > `#endif' can be recognized). I thought that the other discussion had concluded that: #if 0 ... #else Or: #if 0 ... #endif Should ignore everything *except* "#else" or "#elif" or "#endif"? I remember when GCC used to start "nethack" any time you used a "#pragma" in an unprotected block, but not otherwise... ;^). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 9: 2: 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 652EC37B401 for ; Mon, 10 Mar 2003 09:01:59 -0800 (PST) Received: from horsey.gshapiro.net (horsey.gshapiro.net [64.105.95.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA34043FBD for ; Mon, 10 Mar 2003 09:01:56 -0800 (PST) (envelope-from gshapiro@gshapiro.net) Received: from horsey.gshapiro.net (localhost [127.0.0.1]) by horsey.gshapiro.net (8.13.0.PreAlpha1/8.13.0.PreAlpha1) with ESMTP id h2AH1ue3015118 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Mar 2003 09:01:56 -0800 (PST) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.13.0.PreAlpha1/8.12.7/Submit) id h2AH1ukP015115; Mon, 10 Mar 2003 09:01:56 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15980.50435.903395.363625@horsey.gshapiro.net> Date: Mon, 10 Mar 2003 09:01:55 -0800 From: Gregory Neil Shapiro To: Christopher Fowler Cc: freebsd-current@FreeBSD.ORG Subject: Re: Sendmail and backups In-Reply-To: <1047312351.23680.51.camel@cfowler.outpostsentinel.com> References: <1047312351.23680.51.camel@cfowler.outpostsentinel.com> 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 cfowler> Is there a way to configure sendmail on my 4.7 system to keep a backup cfowler> of all mail going out? http://www.sendmail.org/faq/section4.html#4.20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 10: 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 C8D0737B401 for ; Mon, 10 Mar 2003 10:00:05 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76F1943FAF for ; Mon, 10 Mar 2003 10:00:03 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 14543 invoked from network); 10 Mar 2003 18:00:07 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 Mar 2003 18:00:07 -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 h2AHuShT065529; Mon, 10 Mar 2003 12:56:28 -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: <05e901c2e63c$0e440440$471b3dd4@digiware.nl> Date: Mon, 10 Mar 2003 13:00:19 -0500 (EST) From: John Baldwin To: Willem Jan Withagen Subject: RE: /usr/src5/sys/kern/kern_lock.c:243: could sleep with "buf qu 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 09-Mar-2003 Willem Jan Withagen wrote: > I'n not shure if this is still the place to drop these??? > I haven't seen may off these lately on the list... > > Found in my dmesg of yesterday, system is now 5 days up: > > /usr/src5/sys/kern/kern_lock.c:243: could sleep with "buf queue lock" locked from > /usr/src5/sys/kern/vfs_bio.c:2104 > > freebee# uname -a > FreeBSD freebee.digiware.nl 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Sat Mar 1 17:50:16 CET 2003 > root@freebee.digiware.nl:/mnt2/obj/usr/src5/sys/GENERIC i386 > > I'll install yesterdays kernel and run that to see if it reoccurs. This was fixed Friday. -- 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 Mar 10 10: 0: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 C464037B404 for ; Mon, 10 Mar 2003 10:00:06 -0800 (PST) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id D927B43F85 for ; Mon, 10 Mar 2003 10:00:01 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 31209 invoked from network); 10 Mar 2003 18:00:04 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 Mar 2003 18:00:04 -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 h2AHuOhT065526; Mon, 10 Mar 2003 12:56:25 -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: <20030308213535.GE56020@rot13.obsecurity.org> Date: Mon, 10 Mar 2003 13:00:15 -0500 (EST) From: John Baldwin To: Kris Kennaway Subject: Re: NULL pointer problem in pid selection ? Cc: alfred@FreeBSD.org, current@FreeBSD.ORG, Poul-Henning Kamp Sender: owner-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-Mar-2003 Kris Kennaway wrote: > On Sat, Mar 08, 2003 at 11:46:34AM +0100, Poul-Henning Kamp wrote: >> >> Just got this crash on -current, and I belive I have seen similar >> before. addr2line(1) reports the faulting address to be >> ../../../kern/kern_fork.c:395 >> which is in the inner loop of pid collision avoidance. > > I've been running this patch from Alfred for the past month or so on > bento, which has fixed a similar panic I was seeing regularly. Using just a shared lock instead of an xlock should be ok there. You aren't modifying the process tree, just looking at it. OTOH, the proc lock is supposed to protect p_grp and p_session, so they shouldn't be NULL. :( > Kris > > Index: kern/kern_fork.c > =================================================================== > RCS file: /home/ncvs/src/sys/kern/kern_fork.c,v > retrieving revision 1.186 > diff -u -r1.186 kern_fork.c > --- kern/kern_fork.c 27 Feb 2003 02:05:17 -0000 1.186 > +++ kern/kern_fork.c 4 Mar 2003 00:28:09 -0000 > @@ -325,6 +325,7 @@ > * exceed the limit. The variable nprocs is the current number of > * processes, maxproc is the limit. > */ > + sx_xlock(&proctree_lock); > sx_xlock(&allproc_lock); > uid = td->td_ucred->cr_ruid; > if ((nprocs >= maxproc - 10 && uid != 0) || nprocs >= maxproc) { > @@ -432,6 +433,7 @@ > LIST_INSERT_HEAD(&allproc, p2, p_list); > LIST_INSERT_HEAD(PIDHASH(p2->p_pid), p2, p_hash); > sx_xunlock(&allproc_lock); > + sx_xunlock(&proctree_lock); > > /* > * Malloc things while we don't hold any locks. > @@ -757,6 +759,7 @@ > return (0); > fail: > sx_xunlock(&allproc_lock); > + sx_xunlock(&proctree_lock); > uma_zfree(proc_zone, newproc); > if (p1->p_flag & P_THREADED) { > PROC_LOCK(p1); > > >> >> Poul-Henning >> >> Fatal trap 12: page fault while in kernel mode >> cpuid = 0; lapic.id = 00000000 >> fault virtual address = 0x14 >> fault code = supervisor read, page not present >> instruction pointer = 0x8:0xc01c3eec >> stack pointer = 0x10:0xe74e3c74 >> frame pointer = 0x10:0xe74e3cbc >> 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 = 99777 (sh) >> trap number = 12 >> panic: page fault >> cpuid = 0; lapic.id = 00000000 >> Stack backtrace: >> backtrace(c032ff8e,0,c03394ce,e74e3b68,1) at 0xc01d86a7 = backtrace+0x17 >> panic(c03394ce,c0342131,cfe5496c,1,1) at 0xc01d87ba = panic+0x10a >> trap_fatal(e74e3c34,14,c03422ba,2e3,cfe4fa50) at 0xc02fa672 = trap_fatal+0x322 >> trap_pfault(e74e3c34,0,14,c035a038,14) at 0xc02fa322 = trap_pfault+0x1c2 >> trap(18,10,10,cf19c3f8,cf76b9ec) at 0xc02f9e9d = trap+0x3cd >> calltrap() at 0xc02e2cd8 = calltrap+0x5 >> --- trap 0xc, eip = 0xc01c3eec, esp = 0xe74e3c74, ebp = 0xe74e3cbc --- >> fork1(cfe4fa50,14,0,e74e3cd4,cfe54858) at 0xc01c3eec = fork1+0x3fc >> fork(cfe4fa50,e74e3d10,c03422ba,404,0) at 0xc01c3852 = fork+0x52 >> syscall(2f,2f,2f,0,80ff000) at 0xc02fa98e = syscall+0x26e >> Xint0x80_syscall() at 0xc02e2d2d = Xint0x80_syscall+0x1d >> --- syscall (2), eip = 0x807ba9f, esp = 0xbfbff6bc, ebp = 0xbfbff6e8 --- >> boot() called on cpu#0 >> >> -- >> 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 -- 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 Mar 10 11: 3: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 C89D737B401; Mon, 10 Mar 2003 11:03:24 -0800 (PST) Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26A6043FF7; Mon, 10 Mar 2003 11:03:04 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd10.sul.t-online.de by mailout09.sul.t-online.com with smtp id 18sSY9-0006m0-0E; Mon, 10 Mar 2003 20:03:01 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[80.131.111.136]) by fmrl10.sul.t-online.com with esmtp id 18sSXt-0SrrKyC; Mon, 10 Mar 2003 20:02:45 +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 h2AJ2hOq001226; Mon, 10 Mar 2003 20:02:43 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.7/8.12.7) with SMTP id h2AJ2hJF004150; Mon, 10 Mar 2003 20:02:43 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Mon, 10 Mar 2003 20:02:43 +0100 From: Alexander Leidinger To: Gregory Neil Shapiro Cc: current@freebsd.org Subject: Re: Sendmail and backups Message-Id: <20030310200243.17158930.Alexander@Leidinger.net> In-Reply-To: <15980.50435.903395.363625@horsey.gshapiro.net> References: <1047312351.23680.51.camel@cfowler.outpostsentinel.com> <15980.50435.903395.363625@horsey.gshapiro.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, 10 Mar 2003 09:01:55 -0800 Gregory Neil Shapiro wrote: > cfowler> Is there a way to configure sendmail on my 4.7 system to keep a backup > cfowler> of all mail going out? > > http://www.sendmail.org/faq/section4.html#4.20 What about http://www.geocities.com/sbmilbur/sendmail/ (overlooking the fact that there's one character which has to get deleted and one character to get added to have a working sendmail 8.1[12].x)? I used it on request of a client (yes, he consulted a lawyer first and did all the necessary legal work) just last week, and it seems to work just fine. Bye, Alexander. -- The computer revolution is over. The computers won. 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 Mar 10 11:23: 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 7009137B407 for ; Mon, 10 Mar 2003 11:23:07 -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 E040043FBD for ; Mon, 10 Mar 2003 11:22:45 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h2AJMiIX002725; Mon, 10 Mar 2003 11:22:44 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h2AJMdBF002724; Mon, 10 Mar 2003 11:22:39 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Mon, 10 Mar 2003 11:22:39 -0800 From: David Schultz To: Ivan Voras Cc: freebsd-current@FreeBSD.ORG Subject: Re: KSE test code? Message-ID: <20030310192239.GA2516@HAL9000.homeunix.com> Mail-Followup-To: Ivan Voras , freebsd-current@FreeBSD.ORG References: <20030310164958.U36670@geri.cc.fer.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030310164958.U36670@geri.cc.fer.hr> Sender: owner-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 Ivan Voras : > Is there any example code available that just tests (a "proof of > concept"-like) the KSE system on FreeBSD 5-current? See src/tools/KSE/ksetest. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 11:53: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 E8AF437B401; Mon, 10 Mar 2003 11:53:44 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB22243FBD; Mon, 10 Mar 2003 11:53:43 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003031019534200100j9o1te>; Mon, 10 Mar 2003 19:53:42 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA06831; Mon, 10 Mar 2003 11:53:41 -0800 (PST) Date: Mon, 10 Mar 2003 11:53:40 -0800 (PST) From: Julian Elischer To: David Schultz Cc: Ivan Voras , freebsd-current@FreeBSD.ORG Subject: Re: KSE test code? In-Reply-To: <20030310192239.GA2516@HAL9000.homeunix.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 Mon, 10 Mar 2003, David Schultz wrote: > Thus spake Ivan Voras : > > Is there any example code available that just tests (a "proof of > > concept"-like) the KSE system on FreeBSD 5-current? > > See src/tools/KSE/ksetest. also the library is mostly working so: cd /usr/lib/libpthreads make make install This installs a libkse which, when we are happy with it will become libpthreads, but until then it has this special name.. get some test threads programs and link with -lkse remember to disable -pthreads see what happens. There is a fix for ^Z being committed in the next day or so.. > > 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 Mar 10 12:30: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 9AE0B37B401 for ; Mon, 10 Mar 2003 12:30:33 -0800 (PST) Received: from hydro.skol.ch (hydro.skol.ch [62.220.128.61]) by mx1.FreeBSD.org (Postfix) with SMTP id 0C65C43FA3 for ; Mon, 10 Mar 2003 12:30:32 -0800 (PST) (envelope-from subs@saneward.net) Received: (qmail 4671 invoked from network); 10 Mar 2003 20:30:37 -0000 Received: from unknown (HELO roo) (62.220.129.65) by hydro.skol.ch with SMTP; 10 Mar 2003 20:30:37 -0000 Reply-To: From: "Subs" To: Subject: RE: current-digest V5 #848 Date: Mon, 10 Mar 2003 21:33:10 +0100 Message-ID: <000c01c2e744$443c2560$01000001@roo> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG unsubscribe freebsd-current-digest To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 13: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 B972137B404; Mon, 10 Mar 2003 13:43:57 -0800 (PST) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26E2343F93; Mon, 10 Mar 2003 13:43:56 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au ([210.50.86.1]) by smtp01.syd.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Tue, 11 Mar 2003 08:43:53 +1100 Received: from dilbert.robbins.dropbear.id.au (f79xte1z8vsoefr2@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id h2ALhmJK064008; Tue, 11 Mar 2003 08:43:48 +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 h2ALhkHc064007; Tue, 11 Mar 2003 08:43:46 +1100 (EST) (envelope-from tim) Date: Tue, 11 Mar 2003 08:43:46 +1100 From: Tim Robbins To: John Baldwin Cc: Kris Kennaway , alfred@FreeBSD.org, current@FreeBSD.org, Poul-Henning Kamp Subject: Re: NULL pointer problem in pid selection ? Message-ID: <20030311084346.A63542@dilbert.robbins.dropbear.id.au> References: <20030308213535.GE56020@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: ; from jhb@FreeBSD.org on Mon, Mar 10, 2003 at 01:00:15PM -0500 X-OriginalArrivalTime: 10 Mar 2003 21:43:54.0136 (UTC) FILETIME=[25700980:01C2E74E] Sender: owner-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, Mar 10, 2003 at 01:00:15PM -0500, John Baldwin wrote: > On 08-Mar-2003 Kris Kennaway wrote: > > On Sat, Mar 08, 2003 at 11:46:34AM +0100, Poul-Henning Kamp wrote: > >> > >> Just got this crash on -current, and I belive I have seen similar > >> before. addr2line(1) reports the faulting address to be > >> ../../../kern/kern_fork.c:395 > >> which is in the inner loop of pid collision avoidance. > > > > I've been running this patch from Alfred for the past month or so on > > bento, which has fixed a similar panic I was seeing regularly. > > Using just a shared lock instead of an xlock should be ok there. You > aren't modifying the process tree, just looking at it. OTOH, the > proc lock is supposed to protect p_grp and p_session, so they shouldn't > be NULL. :( I have a suspiscion that the bug is actually in wait1(): sx_xlock(&proctree_lock); [...] /* * Remove other references to this process to ensure * we have an exclusive reference. */ leavepgrp(p); sx_xlock(&allproc_lock); LIST_REMOVE(p, p_list); /* off zombproc */ sx_xunlock(&allproc_lock); LIST_REMOVE(p, p_sibling); sx_xunlock(&proctree_lock); Shouldn't we be removing the process from zombproc before setting p_pgrp to NULL via leavepgrp()? Does this even matter at all when both fork1() and wait1() are still protected by Giant? Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 13:46: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 3F17537B401; Mon, 10 Mar 2003 13:46:26 -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 0E69943F3F; Mon, 10 Mar 2003 13:46:25 -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.8/8.12.8) with ESMTP id h2ALoGkL090214; Mon, 10 Mar 2003 15:50:16 -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.8/8.12.8/Submit) id h2ALoBko090211; Mon, 10 Mar 2003 15:50:11 -0600 (CST) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Mon, 10 Mar 2003 15:50:11 -0600 (CST) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: Conrad Sabatier To: freebsd-current@FreeBSD.ORG Subject: bash2 or devfs problem? Cc: freebsd-ports@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 I've noticed that bash's process substitution fails under -CURRENT. For (an admittedly stupid, trivial) example: diff <(cat file1) <(cat file2) errors out with: diff: /dev/fd/63: No such file or directory diff: /dev/fd/62: No such file or directory Apparently, the nodes for the named pipes are not being created as they should. Is this a bash problem, or something in devfs not working as expected? -- 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 Mon Mar 10 14:11: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 9FC9F37B401 for ; Mon, 10 Mar 2003 14:11:41 -0800 (PST) Received: from smart.eusc.inter.net (smart.eusc.inter.net [213.73.101.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDF3243FA3 for ; Mon, 10 Mar 2003 14:11:40 -0800 (PST) (envelope-from msch@snafu.de) Received: from mail.snafu.de ([10.12.0.4] helo=service.snafu.de) by smart.eusc.inter.net with smtp (Exim 3.36 #4) id 18sVUh-00060N-00; Mon, 10 Mar 2003 23:11:39 +0100 To: Dag-Erling Smorgrav , msch@snafu.de, Nuno Teixeira , freebsd-current@freebsd.org From: msch@snafu.de X-Sender: msch@snafu.de Subject: Re: softupdates && write cache && ata tags topic Date: Mon, 10 Mar 2003 22:11:39 GMT X-Mailer: Endymion MailMan Standard Edition v3.0.35 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 Hi, > > Write cacheing is automatically enabled if tagged queueing is enabled > and supported by the disk, so I doubt you're seeing any improvement at > all. I must admit: My statements are based on experience with SCSI Tagged Queuing and SCSI Write Cache. I hope I'm correct if I assume that the ATA features have not only the same name but the same functionality. I wasn't aware, that they are coupled by the driver code... Thanks for your commment/correction - Matthias To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 14:46: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 8193537B407 for ; Mon, 10 Mar 2003 14:46:31 -0800 (PST) Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id E614143F93 for ; Mon, 10 Mar 2003 14:46:29 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 20247 invoked from network); 10 Mar 2003 22:46:38 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail17.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 Mar 2003 22:46:38 -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 h2AMgmhT066848; Mon, 10 Mar 2003 17:42:50 -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: <20030311084346.A63542@dilbert.robbins.dropbear.id.au> Date: Mon, 10 Mar 2003 17:46:40 -0500 (EST) From: John Baldwin To: Tim Robbins Subject: Re: NULL pointer problem in pid selection ? Cc: Poul-Henning Kamp , current@FreeBSD.org, alfred@FreeBSD.org, Kris Kennaway Sender: owner-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 10-Mar-2003 Tim Robbins wrote: > On Mon, Mar 10, 2003 at 01:00:15PM -0500, John Baldwin wrote: > >> On 08-Mar-2003 Kris Kennaway wrote: >> > On Sat, Mar 08, 2003 at 11:46:34AM +0100, Poul-Henning Kamp wrote: >> >> >> >> Just got this crash on -current, and I belive I have seen similar >> >> before. addr2line(1) reports the faulting address to be >> >> ../../../kern/kern_fork.c:395 >> >> which is in the inner loop of pid collision avoidance. >> > >> > I've been running this patch from Alfred for the past month or so on >> > bento, which has fixed a similar panic I was seeing regularly. >> >> Using just a shared lock instead of an xlock should be ok there. You >> aren't modifying the process tree, just looking at it. OTOH, the >> proc lock is supposed to protect p_grp and p_session, so they shouldn't >> be NULL. :( > > I have a suspiscion that the bug is actually in wait1(): > > sx_xlock(&proctree_lock); > [...] > /* > * Remove other references to this process to ensure > * we have an exclusive reference. > */ > leavepgrp(p); > > sx_xlock(&allproc_lock); > LIST_REMOVE(p, p_list); /* off zombproc */ > sx_xunlock(&allproc_lock); > > LIST_REMOVE(p, p_sibling); > sx_xunlock(&proctree_lock); > > > Shouldn't we be removing the process from zombproc before setting > p_pgrp to NULL via leavepgrp()? Does this even matter at all when both > fork1() and wait1() are still protected by Giant? Giant doesn't help you with sleeps. However, removing the process from zombproc before destroying it's other linkages might be more correct, yes. > Tim -- 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 Mar 10 14:51: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 2E27D37B405 for ; Mon, 10 Mar 2003 14:51:34 -0800 (PST) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id EF56843FB1 for ; Mon, 10 Mar 2003 14:51:30 -0800 (PST) (envelope-from tmoestl@gmx.net) Received: (qmail 28445 invoked by uid 0); 10 Mar 2003 22:51:29 -0000 Received: from p508E4D4F.dip.t-dialin.net (HELO galatea.local) (80.142.77.79) by mail.gmx.net (mp023-rz3) with SMTP; 10 Mar 2003 22:51:29 -0000 Received: from tmm by galatea.local with local (Exim 4.12 #1) id 18sW7c-0000s1-00; Mon, 10 Mar 2003 23:51:52 +0100 Date: Mon, 10 Mar 2003 23:51:52 +0100 From: Thomas Moestl To: Tim Robbins Cc: John Baldwin , Kris Kennaway , alfred@FreeBSD.org, current@FreeBSD.org, Poul-Henning Kamp Subject: Re: NULL pointer problem in pid selection ? Message-ID: <20030310225151.GA2803@crow.dom2ip.de> Mail-Followup-To: Tim Robbins , John Baldwin , Kris Kennaway , alfred@FreeBSD.org, current@FreeBSD.org, Poul-Henning Kamp References: <20030308213535.GE56020@rot13.obsecurity.org> <20030311084346.A63542@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030311084346.A63542@dilbert.robbins.dropbear.id.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, 2003/03/11 at 08:43:46 +1100, Tim Robbins wrote: > On Mon, Mar 10, 2003 at 01:00:15PM -0500, John Baldwin wrote: > > > On 08-Mar-2003 Kris Kennaway wrote: > > > On Sat, Mar 08, 2003 at 11:46:34AM +0100, Poul-Henning Kamp wrote: > > >> > > >> Just got this crash on -current, and I belive I have seen similar > > >> before. addr2line(1) reports the faulting address to be > > >> ../../../kern/kern_fork.c:395 > > >> which is in the inner loop of pid collision avoidance. > > > > > > I've been running this patch from Alfred for the past month or so on > > > bento, which has fixed a similar panic I was seeing regularly. > > > > Using just a shared lock instead of an xlock should be ok there. You > > aren't modifying the process tree, just looking at it. OTOH, the > > proc lock is supposed to protect p_grp and p_session, so they shouldn't > > be NULL. :( > > I have a suspiscion that the bug is actually in wait1(): > > sx_xlock(&proctree_lock); > [...] > /* > * Remove other references to this process to ensure > * we have an exclusive reference. > */ > leavepgrp(p); > > sx_xlock(&allproc_lock); > LIST_REMOVE(p, p_list); /* off zombproc */ > sx_xunlock(&allproc_lock); > > LIST_REMOVE(p, p_sibling); > sx_xunlock(&proctree_lock); > > > Shouldn't we be removing the process from zombproc before setting > p_pgrp to NULL via leavepgrp()? Does this even matter at all when both > fork1() and wait1() are still protected by Giant? Hmmm, I think you're right; if allproc_lock happens to be contested in fork1() (which can happen because it it is locked without Giant held in some places, and because sleeping with an sx lock is allowed), we'll go to sleep there, dropping Giant. This opens up a race, since wait1() can now proceed until after the leavepgrp() before blocking; when allproc_lock is released, fork1() will be the first to pick it up, and this panic will happen. Seems that I relied on Giant too much when I first took a look into that code :) - 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 Mon Mar 10 15:38: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 CAC9237B401; Mon, 10 Mar 2003 15:38:17 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB3B843FDF; Mon, 10 Mar 2003 15:38:15 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2ANc8uP005258; Tue, 11 Mar 2003 00:38:08 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Conrad Sabatier Cc: freebsd-current@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: bash2 or devfs problem? From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 10 Mar 2003 15:50:11 CST." Date: Tue, 11 Mar 2003 00:38:08 +0100 Message-ID: <5257.1047339488@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 , Conrad Sabatier writes: >I've noticed that bash's process substitution fails under -CURRENT. > >For (an admittedly stupid, trivial) example: > >diff <(cat file1) <(cat file2) > >errors out with: > >diff: /dev/fd/63: No such file or directory >diff: /dev/fd/62: No such file or directory > >Apparently, the nodes for the named pipes are not being created as they should. > >Is this a bash problem, or something in devfs not working as expected? That's a good question... Has anybody found out what the standards conformant thing is for /dev/fd ? presently we do only 0,1 & 2, with the std{in,out,err} symlinks. If we are required to do all filedescriptors, we should do so with fdescfs by default. -- 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 Mar 10 15:47: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 22F2C37B401 for ; Mon, 10 Mar 2003 15:47:18 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC4343F85 for ; Mon, 10 Mar 2003 15:47:17 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost.ipv6.lcs.mit.edu [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.8/8.12.8) with ESMTP id h2ANlFCd056375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Mar 2003 18:47:16 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.8/8.12.8/Submit) id h2ANlFMc056372; Mon, 10 Mar 2003 18:47:15 -0500 (EST) (envelope-from wollman) Date: Mon, 10 Mar 2003 18:47:15 -0500 (EST) From: Garrett Wollman Message-Id: <200303102347.h2ANlFMc056372@khavrinen.lcs.mit.edu> To: "Poul-Henning Kamp" Cc: freebsd-current@FreeBSD.ORG Subject: Re: bash2 or devfs problem? In-Reply-To: <5257.1047339488@critter.freebsd.dk> References: <5257.1047339488@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 < said: > Has anybody found out what the standards conformant thing is for /dev/fd ? There is no standard, other than Tenth Edition and Plan 9. Most programs which use it expect it to behave like one or the other. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 15: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 5EC0D37B404 for ; Mon, 10 Mar 2003 15:49:19 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A2F043FD7 for ; Mon, 10 Mar 2003 15:49:18 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost.ipv6.lcs.mit.edu [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.8/8.12.8) with ESMTP id h2ANnHCd056389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Mar 2003 18:49:18 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.8/8.12.8/Submit) id h2ANnHsQ056386; Mon, 10 Mar 2003 18:49:17 -0500 (EST) (envelope-from wollman) Date: Mon, 10 Mar 2003 18:49:17 -0500 (EST) From: Garrett Wollman Message-Id: <200303102349.h2ANnHsQ056386@khavrinen.lcs.mit.edu> To: "Poul-Henning Kamp" Cc: freebsd-current@FreeBSD.ORG Subject: Re: bash2 or devfs problem? In-Reply-To: <200303102347.h2ANlFMc056372@khavrinen.lcs.mit.edu> References: <5257.1047339488@critter.freebsd.dk> <200303102347.h2ANlFMc056372@khavrinen.lcs.mit.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 < There is no standard, other than Tenth Edition and Plan 9. Most > programs which use it expect it to behave like one or the other. s/one or the other/that/ -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 16:20: 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 12E8A37B404; Mon, 10 Mar 2003 16:20:06 -0800 (PST) Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1D0543F3F; Mon, 10 Mar 2003 16:20:04 -0800 (PST) (envelope-from ler@lerctr.org) Received: from pppth08-259.ght.iadfw.net (pppth08-259.ght.iadfw.net [207.136.52.133]) (authenticated bits=0) by lerami.lerctr.org (8.12.8/8.12.8/20030225) with ESMTP id h2B0JufS027974; Mon, 10 Mar 2003 18:19:58 -0600 (CST) Date: Mon, 10 Mar 2003 18:19:54 -0600 From: Larry Rosenman To: Poul-Henning Kamp , Conrad Sabatier Cc: freebsd-current@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: bash2 or devfs problem? Message-ID: <13630000.1047341994@lerlaptop.iadfw.net> In-Reply-To: <5257.1047339488@critter.freebsd.dk> References: <5257.1047339488@critter.freebsd.dk> X-Mailer: Mulberry/3.0.2 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-milter (http://amavis.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 Tuesday, March 11, 2003 00:38:08 +0100 Poul-Henning Kamp wrote: > In message , Conrad Sabatier > writes: >> I've noticed that bash's process substitution fails under -CURRENT. >> >> For (an admittedly stupid, trivial) example: >> >> diff <(cat file1) <(cat file2) >> >> errors out with: >> >> diff: /dev/fd/63: No such file or directory >> diff: /dev/fd/62: No such file or directory >> >> Apparently, the nodes for the named pipes are not being created as they >> should. >> >> Is this a bash problem, or something in devfs not working as expected? > > That's a good question... > > Has anybody found out what the standards conformant thing is for /dev/fd ? > > presently we do only 0,1 & 2, with the std{in,out,err} symlinks. > > If we are required to do all filedescriptors, we should do so with > fdescfs by default. It is supposed to (based on MY reading of the fd(4) man page on a UnixWare (SysVr5) system) be ALL filedescriptors. this paragraph seems to be the cogent part: These files, conventionally called /dev/fd/0, /dev/fd/1, /dev/fd/2, and so on, refer to files accessible through file descriptors. If file descriptor n is open, these two system calls have the same effect: fd = open("/dev/fd/n",mode); fd = dup(n); The full manpage is visible at: http://www.lerctr.org:8458/en/man/html.4/fd.4.html LER > > -- > 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-ports" in the body of the message > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 17:24: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 B987F37B401; Mon, 10 Mar 2003 17:24:35 -0800 (PST) Received: from trafo.fsei.e-technik.tu-muenchen.de (trafo.fsei.e-technik.tu-muenchen.de [129.187.54.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3875D43FBD; Mon, 10 Mar 2003 17:24:34 -0800 (PST) (envelope-from corecode@fs.ei.tum.de) Received: from hydra (hydra.fsei.e-technik.tu-muenchen.de [192.168.113.23]) by trafo.fsei.e-technik.tu-muenchen.de (Postfix) with ESMTP id 362F566DC; Tue, 11 Mar 2003 02:24:28 +0100 (CET) Received: from corecode by hydra with local (Exim 3.35 #1 (Debian)) id 18sYVI-0000lU-00; Tue, 11 Mar 2003 02:24:28 +0100 Date: Tue, 11 Mar 2003 02:24:23 +0100 From: Simon 'portlint' Schubert To: Larry Rosenman Cc: Poul-Henning Kamp , Conrad Sabatier , freebsd-current@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: bash2 or devfs problem? Message-Id: <20030311022423.53b77f6d.corecode@corecode.ath.cx> In-Reply-To: <13630000.1047341994@lerlaptop.iadfw.net> References: <5257.1047339488@critter.freebsd.dk> <13630000.1047341994@lerlaptop.iadfw.net> X-Mailer: Sylpheed version 0.8.10claws105 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Portlint: corecode Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.M_NnSk,zI1BVX." Sender: owner-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_NnSk,zI1BVX. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Lately Larry Rosenman told: > --On Tuesday, March 11, 2003 00:38:08 +0100 Poul-Henning Kamp > wrote: > > In message , Conrad Sabatier > > writes: > >> Apparently, the nodes for the named pipes are not being created as they > >> should. > >> > >> Is this a bash problem, or something in devfs not working as expected? > > That's a good question... > > > > Has anybody found out what the standards conformant thing is for /dev/fd ? > > > > presently we do only 0,1 & 2, with the std{in,out,err} symlinks. > > > > If we are required to do all filedescriptors, we should do so with > > fdescfs by default. > It is supposed to (based on MY reading of the fd(4) man page on a UnixWare > (SysVr5) system) > be ALL filedescriptors. > > this paragraph seems to be the cogent part: > > These files, conventionally called /dev/fd/0, /dev/fd/1, /dev/fd/2, > and so on, refer to files accessible through file descriptors. If file > descriptor n is open, these two system calls have the same effect: > fd = open("/dev/fd/n",mode); > fd = dup(n); i read that only concerning *open* fds. (you can't dup a closed [non-existant] fd). furthermore i think there was a patch floating around addressing exactly this issue. perhaps it was even committed (i'm too lazy to search for it). solution was to test in configure for additional fds accessible from /dev/fd/* and build without that feature if not. cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.M_NnSk,zI1BVX. Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+bTrKr5S+dk6z85oRArK3AKCfcXbjf7jzWe5ps+/nFvs922eqLwCgzDJQ s/J2YrboK9YXFDanh3IPcqw= =Jd3G -----END PGP SIGNATURE----- --=.M_NnSk,zI1BVX.-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 17:36: 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 EE5C937B401 for ; Mon, 10 Mar 2003 17:36:00 -0800 (PST) Received: from mail.isbank.net.tr (mail01.isbank.net.tr [212.98.2.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1431E43F3F for ; Mon, 10 Mar 2003 17:35:59 -0800 (PST) (envelope-from sitenews@anatolia.ws) Received: from vexira1.isnet.net.tr ([212.98.2.214]) by mail.isbank.net.tr (Netscape Messaging Server 4.15) with SMTP id HBK9PO01.C3W; Tue, 11 Mar 2003 03:34:36 +0200 Received: from Sender (mstr195175-42246.dial-in.ttnet.net.tr [195.175.245.7]) (authenticated bits=0) by vexira1.isnet.net.tr (8.12.8/8.12.6) with ESMTP id h2B1ZJNX023953; Tue, 11 Mar 2003 03:35:20 +0200 Message-Id: <200303110135.h2B1ZJNX023953@vexira1.isnet.net.tr> From: "7 Wonders of Anatolia" Subject: Anadolu' nun 7 harikasý seçiliyor ... HLZXGPGRVU Reply-To: info@anatolia.ws 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: 7 Wonders of Anatolia Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1047346531-14926-163" Date: Tue, 11 Mar 2003 03:34:38 +0200 X-AntiVirus: checked by Vexira Milter 1.0.0.9; VAE 6.18.0.2; VDF 6.18.0.13 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 This is a multi-part message in MIME format... ------------=_1047346531-14926-163 Content-Type: text/plain; charset="iso-8859-9" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by vexira1.isnet.net.tr id h2B1ZJNX023953 Sizi anadolunun 7 harikas=FD se=E7imine kat=FDlmaya =E7a=F0=FDr=FDyoruz. 7 harika se=E7iminde halen aday belirleme s=FCrecindeyiz.=20 Se=E7ime kat=FDlmas=FDn=FD istedi=F0iniz adaylar=FDn=FDz=FD=20 http://www.7woa.com adresinden bizlere iletebilirsiniz. Sayg=FDlar=FDm=FDzla www.7woa.com Not : Bu mail size tek bir defal=FDk 7 wonders of Anatolia Projesini bild= irmek i=E7in g=F6nderilmi=FEtir. D=FCzenli olarak haber b=FCltenimizin =FEahs=FDn=FDza= ula=FEmas=FDn=FD isterseniz. http://www.7woa.com adresinden mail listemize kay=FDt olman=FDz gerekmekt= edir. =DDstenmeyen sebepler ile mail mesaj=FD birden fazla taraf=FDn=FDza ula=FE= t=FD ise =F6z=FCr dileriz. =20 HLZXGPGRVUONRJGDYCYDPOJJEPWISVXRGRZTUU ------------------------------------------------------------------ Virus taramasi Vexira AV programi kullanilarak Is Net tarafindan yapilmis= tir. This e-mail is checked by Is Net against all known types of viruses using= Vexira AV. Is Net'in en ucuz saatlik kullanim paketi Teneffus.Net'i ve en ucuz sinir= siz erisim paketi Taksitli Ekonet'i duymus muydunuz? http://www.isnet.net.tr/teneffusnet/ http://www.isnet.net.tr/taksitliekonet/ ------------=_1047346531-14926-163-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 17:48: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 25D4337B404 for ; Mon, 10 Mar 2003 17:48:31 -0800 (PST) Received: from MAILSERVER.ofw.fi (ns.ofw.fi [194.111.144.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7021443F93 for ; Mon, 10 Mar 2003 17:48:29 -0800 (PST) (envelope-from dan.naumov@ofw.fi) Received: from [172.16.161.81] by MAILSERVER.ofw.fi (NTMail 7.00.0022/NT1439.00.90501b21) with ESMTP id kqoyiaaa for freebsd-current@freebsd.org; Tue, 11 Mar 2003 03:47:58 +0200 Subject: -O2 breaks GCC 3.2.1-compiled code (seems OS specific) From: Dan Naumov To: freebsd-current@freebsd.org Content-Type: text/plain Organization: Message-Id: <1047347538.9634.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 11 Mar 2003 03:52:18 +0200 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 list. Since my issues are related to 5.0, I though I'd rather ask here. I've noticed an interesting problem: I am using FreeBSD 5.0-p4 and GCC 3.2.1 and if I use "CPUTYPE=athlon-tbird" and "CFLAGS= -O2 -mmmx -m3dnow -fomit-frame-pointer -pipe", ezm3 refuses to compile AT ALL and even though AbiWord 1.0.4 does compile, it will always coredump on exit, preventing saving of any changes done to the Preferences. However, going down from -O2 to -O solved both problems. This makes me wonder what exactly is wrong, since I've used exactly the same CPUTYPE and CFLAGS under Gentoo Linux with GCC 3.2.1 for a long time and everything compiled absolutely fine. This leads me to believe that there are not only arch-specific, but also OS-specific GCC issues. Can anyone else confirm this ? Sincerely, -- Dan Naumov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 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 B22A037B401 for ; Mon, 10 Mar 2003 18:08:09 -0800 (PST) Received: from seed.net.tw (sn12.seed.net.tw [139.175.54.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 662A143FB1 for ; Mon, 10 Mar 2003 18:08:08 -0800 (PST) (envelope-from leafy@leafy.idv.tw) Received: from [211.74.133.130] (port=49376 helo=leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.10:3) id 18sZBX-000AXU-00 for freebsd-current@FreeBSD.ORG; Tue, 11 Mar 2003 10:08:07 +0800 Received: from leafy.idv.tw (nobody@localhost [127.0.0.1]) by leafy.idv.tw (8.12.8/8.12.8) with ESMTP id h2B286Kh044579 for ; Tue, 11 Mar 2003 10:08:07 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.8/8.12.8/Submit) id h2B286nQ044578 for freebsd-current@FreeBSD.ORG; Tue, 11 Mar 2003 10:08:06 +0800 (CST) Date: Tue, 11 Mar 2003 10:08:06 +0800 From: leafy To: freebsd-current@FreeBSD.ORG Subject: Re: KSE test code? Message-ID: <20030311020806.GA44563@leafy.idv.tw> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <20030310192239.GA2516@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 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 Mon, Mar 10, 2003 at 11:53:40AM -0800, Julian Elischer wrote: > cd /usr/lib/libpthreads > make > make install > This installs a libkse which, when we are happy with it will become > libpthreads, but until then it has this special name.. > > get some test threads programs and link with -lkse > remember to disable -pthreads > > see what happens. > There is a fix for ^Z being committed in the next day or so.. > Hi, I tried to compile the test under libpthread but ended up waiting for it to finish with : Test static library: -------------------------------------------------------------------------- Test c_user c_system c_total chng passed/FAILED h_user h_system h_total % chng -------------------------------------------------------------------------- hello_d 0.00 0.00 0.00 passed -------------------------------------------------------------------------- hello_s 0.00 0.01 0.01 passed -------------------------------------------------------------------------- join_leak_d 0.15 0.09 0.24 *** FAILED *** -------------------------------------------------------------------------- mutex_d Anything I've missed? Jiawei -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 18:24: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 C276937B404 for ; Mon, 10 Mar 2003 18:24:39 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CB9B43FBF for ; Mon, 10 Mar 2003 18:24:39 -0800 (PST) (envelope-from fearow@attbi.com) Received: from god.woofcat.com (12-251-110-17.client.attbi.com[12.251.110.17]) by sccrmhc02.attbi.com (sccrmhc02) with SMTP id <2003031102243800200lbe4de>; Tue, 11 Mar 2003 02:24:38 +0000 Date: Mon, 10 Mar 2003 20:24:25 -0600 From: Anti To: Dan Naumov Cc: freebsd-current@freebsd.org Subject: Re: -O2 breaks GCC 3.2.1-compiled code (seems OS specific) Message-Id: <20030310202425.2125d97f.fearow@attbi.com> In-Reply-To: <1047347538.9634.8.camel@localhost.localdomain> References: <1047347538.9634.8.camel@localhost.localdomain> Organization: Woofcat 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 On 11 Mar 2003 03:52:18 +0200 Dan Naumov wrote: > Hello list. > > Since my issues are related to 5.0, I though I'd rather ask here. I've > noticed an interesting problem: I am using FreeBSD 5.0-p4 and GCC 3.2.1 > and if I use "CPUTYPE=athlon-tbird" and "CFLAGS= -O2 -mmmx -m3dnow > -fomit-frame-pointer -pipe", ezm3 refuses to compile AT ALL and even > though AbiWord 1.0.4 does compile, it will always coredump on exit, > preventing saving of any changes done to the Preferences. However, going > down from -O2 to -O solved both problems. > > This makes me wonder what exactly is wrong, since I've used exactly the > same CPUTYPE and CFLAGS under Gentoo Linux with GCC 3.2.1 for a long > time and everything compiled absolutely fine. This leads me to believe > that there are not only arch-specific, but also OS-specific GCC issues. > Can anyone else confirm this ? need to add -fno-schedule-insns2 to your CFLAGS to get ezm3 to compile with -O2... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Mar 10 22:20: 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 B8C3937B401 for ; Mon, 10 Mar 2003 22:20:02 -0800 (PST) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 642FB43F75 for ; Mon, 10 Mar 2003 22:19:59 -0800 (PST) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h2B6JvE1150254 for ; Tue, 11 Mar 2003 09:19:57 +0300 (MSK) Date: Tue, 11 Mar 2003 09:19:57 +0300 (MSK) From: Maxim Konovalov To: current@freebsd.org Subject: panic at soreceive()? Message-ID: <20030311091643.O92650@news1.macomnet.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 Hello, Starting pppd(8) on yesterday -current produces a panic: miss# gdb kernel.84 -k vmcore.84 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"... panic: KSE not on run queue panic messages: --- panic: receive: m == 0 so->so_rcv.sb_cc == 192 ^^^^^^^^^^^^ sys/kern/uipc_socket.c, line 856 syncing disks, buffers remaining... 902 902 900 900 900 900 900 panic: KSE not on run queue Uptime: 21m58s Dumping 63 MB ata0: resetting devices .. done [CTRL-C to abort] 16 32 48 --- #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:239 239 dumping++; (kgdb) bt #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:239 #1 0xc01b19bf in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:371 #2 0xc01b1bb4 in poweroff_wait (junk=0xc02dd2bb, howto=-1054260288) at /usr/src/sys/kern/kern_shutdown.c:542 #3 0xc01bf118 in sched_rem (ke=0xc02dd2bb) at /usr/src/sys/kern/sched_4bsd.c:593 #4 0xc01b5288 in adjustrunqueue (td=0xc12943c0, newpri=180) at /usr/src/sys/kern/kern_switch.c:305 #5 0xc01bef90 in sched_prio (td=0x0, prio=0 '\0') at /usr/src/sys/kern/sched_4bsd.c:505 #6 0xc01becb4 in schedcpu (arg=0x0) at /usr/src/sys/kern/sched_4bsd.c:337 #7 0xc01bc579 in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:195 #8 0xc01a3200 in ithread_loop (arg=0xc0a01200) at /usr/src/sys/kern/kern_intr.c:536 #9 0xc01a2694 in fork_exit (callout=0xc01a30e0 , arg=0xc0a01200, frame=0xc5ecad48) at /usr/src/sys/kern/kern_fork.c:871 (kgdb) quit -- Maxim Konovalov, maxim@macomnet.ru, maxim@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 Mar 10 22:25: 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 2BDA637B401; Mon, 10 Mar 2003 22:25:04 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id C01BF43F75; Mon, 10 Mar 2003 22:25:02 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2B6Oksf002502; Tue, 11 Mar 2003 07:24:52 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: "Simon 'portlint' Schubert" Cc: Larry Rosenman , Conrad Sabatier , freebsd-current@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: bash2 or devfs problem? From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 11 Mar 2003 02:24:23 +0100." <20030311022423.53b77f6d.corecode@corecode.ath.cx> Date: Tue, 11 Mar 2003 07:24:46 +0100 Message-ID: <2501.1047363886@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 <20030311022423.53b77f6d.corecode@corecode.ath.cx>, "Simon 'portlint ' Schubert" writes: >> These files, conventionally called /dev/fd/0, /dev/fd/1, /dev/fd/2, >> and so on, refer to files accessible through file descriptors. If file >> descriptor n is open, these two system calls have the same effect: >> fd = open("/dev/fd/n",mode); >> fd = dup(n); > >i read that only concerning *open* fds. (you can't dup a closed >[non-existant] fd). > >furthermore i think there was a patch floating around addressing exactly >this issue. perhaps it was even committed (i'm too lazy to search for >it). solution was to test in configure for additional fds accessible >from /dev/fd/* and build without that feature if not. Well, as far as I know we don't need a patch, we just need to mount fdescfs 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 Tue Mar 11 3:25: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 2FFAB37B401 for ; Tue, 11 Mar 2003 03:25:27 -0800 (PST) Received: from seed.net.tw (sn15.seed.net.tw [139.175.54.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 595DA43F85 for ; Tue, 11 Mar 2003 03:25:26 -0800 (PST) (envelope-from leafy@leafy.idv.tw) Received: from [211.74.134.130] (port=49154 helo=leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.10:3) id 18shsr-0000x7-00 for freebsd-current@freebsd.org; Tue, 11 Mar 2003 19:25:25 +0800 Received: from leafy.idv.tw (nobody@localhost [127.0.0.1]) by leafy.idv.tw (8.12.8/8.12.8) with ESMTP id h2BBPOTO000646 for ; Tue, 11 Mar 2003 19:25:24 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.8/8.12.8/Submit) id h2BBPNqD000645 for freebsd-current@freebsd.org; Tue, 11 Mar 2003 19:25:23 +0800 (CST) Date: Tue, 11 Mar 2003 19:25:23 +0800 From: leafy To: freebsd-current@freebsd.org Subject: kernel panic in tcp_input.c:2324 Message-ID: <20030311112523.GA631@leafy.idv.tw> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=big5 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 Fatal trap 12: page fault while in kernel mode fault virtual address = 0x20 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01c5a96 stack pointer = 0x10:0xcd316a98 frame pointer = 0x10:0xcd316abc 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 = 14 (swi1: net) trap number = 12 panic: page fault syncing disks, buffers remaining... 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 2233 giving up on 1851 buffers Uptime: 3h50m55s Dumping 255 MB ata0: resetting devices .. done 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 --- #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:239 239 dumping++; (kgdb) where #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:239 #1 0xc01cff9a in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:371 #2 0xc01d0203 in panic () at /usr/src/sys/kern/kern_shutdown.c:542 #3 0xc02ee2f2 in trap_fatal (frame=0xcd316a58, eva=0) at /usr/src/sys/i386/i386/trap.c:843 #4 0xc02edfd2 in trap_pfault (frame=0xcd316a58, usermode=0, eva=32) at /usr/src/sys/i386/i386/trap.c:757 #5 0xc02edac0 in trap (frame= {tf_fs = -1058209768, tf_es = -852426736, tf_ds = -1071251440, tf_edi = -1 058255824, tf_esi = 0, tf_ebp = -852399428, tf_isp = -852399484, tf_ebx = -10702 78932, tf_edx = -1058255824, tf_ecx = 1, tf_eax = 1, tf_trapno = 12, tf_err = 0, tf_eip = -1071883626, tf_cs = 8, tf_eflags = 66050, tf_esp = 16, tf_ss = 1}) at /usr/src/sys/i386/i386/trap.c:444 #6 0xc02ddc58 in calltrap () at {standard input}:96 #7 0xc0266729 in tcp_input (m=0xc0ec4c30, off0=20) at /usr/src/sys/netinet/tcp_input.c:2324 #8 0xc025fcff in ip_input (m=0xc0ee4400) at /usr/src/sys/netinet/ip_input.c:944 #9 0xc024143e in swi_net (dummy=0x0) at /usr/src/sys/net/netisr.c:236 #10 0xc01bbdc1 in ithread_loop (arg=0xc0ec2100) at /usr/src/sys/kern/kern_intr.c:536 #11 0xc01bacb3 in fork_exit (callout=0xc01bbbf0 , arg=0x0, frame=0x0) at /usr/src/sys/kern/kern_fork.c:871 (kgdb) up 7 #7 0xc0266729 in tcp_input (m=0xc0ec4c30, off0=20) at /usr/src/sys/netinet/tcp_input.c:2324 2324 INP_INFO_WUNLOCK(&tcbinfo); -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 5:15: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 106A937B401 for ; Tue, 11 Mar 2003 05:15:50 -0800 (PST) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 8343243FAF for ; Tue, 11 Mar 2003 05:15:46 -0800 (PST) (envelope-from bra@fsn.hu) Received: (qmail 1800 invoked by uid 1000); 11 Mar 2003 13:15:41 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 11 Mar 2003 13:15:41 -0000 Date: Tue, 11 Mar 2003 14:15:41 +0100 (CET) From: Attila Nagy To: current@freebsd.org Subject: devstat_end_transaction: HELP!! busy_count for da1 is < 0 (-1)! 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 Hello, I updated from an older CURRENT to a newer one and I am now getting a dozen kernel: devstat_end_transaction: HELP!! busy_count for da1 is < 0(-1)! messages every seconds during disk activity. Any ideas about what happening? da1 is on a sym adapter: sym0: <1010-66> port 0x2000-0x20ff mem 0xfa400000-0xfa401fff,0xfa402000-0xfa4023ff irq 11 at device 10.0 on pci2 sym0: Symbios NVRAM, ID 7, Fast-80, LVD, parity checking sym0: open drain IRQ line driver, using on-chip SRAM sym0: using LOAD/STORE-based firmware. sym0: handling phase mismatch from SCRIPTS. Thanks, ----------[ 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 Mar 11 6: 2: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 4943B37B401 for ; Tue, 11 Mar 2003 06:02:46 -0800 (PST) Received: from law3.usr.dsi.unimi.it (law3.usr.dsi.unimi.it [159.149.152.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDA5743FDD for ; Tue, 11 Mar 2003 06:02:44 -0800 (PST) (envelope-from flag@libero.it) Received: by southcross.skynet.org (Postfix, from userid 1001) id E94C97200; Tue, 11 Mar 2003 14:07:04 +0100 (CET) Date: Tue, 11 Mar 2003 14:07:04 +0100 From: Paolo Pisati To: FreeBSD_Current Subject: What's happened to bpf? Message-ID: <20030311130704.GA1626@law3.usr.dsi.unimi.it> 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 Added device bpf to my kernel config file, make a buildkenel&installkernel, rebooted but there's not bpf in /dev: [flag@southcross flag]$ grep bpf /usr/src/sys/i386/conf/SOUTHCROSS device bpf # Berkeley packet filter [flag@southcross flag]$ uname -a FreeBSD southcross.skynet.org 5.0-CURRENT FreeBSD 5.0-CURRENT #25: Tue Mar 11 12:49:54 CET 2003 flag@southcross.skynet.org:/usr/obj/usr/src/sys/SOUTHCROSS i386 [flag@southcross flag]$ ls /dev/bpf* ls: /dev/bpf*: No such file or directory [flag@southcross flag]$ I need it for tcpdump, any idea how to fix it? Thanks. -- Paolo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 6: 2: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 4DF6337B404 for ; Tue, 11 Mar 2003 06:02:46 -0800 (PST) Received: from law3.usr.dsi.unimi.it (law3.usr.dsi.unimi.it [159.149.152.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDC3B43FE1 for ; Tue, 11 Mar 2003 06:02:44 -0800 (PST) (envelope-from flag@libero.it) Received: by southcross.skynet.org (Postfix, from userid 1001) id 4E46B720F; Tue, 11 Mar 2003 13:48:49 +0100 (CET) Date: Tue, 11 Mar 2003 13:48:49 +0100 From: Paolo Pisati To: FreeBSD_Current Subject: What's happened to bpf? Message-ID: <20030311124849.GA1272@law3.usr.dsi.unimi.it> 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 Added device bpf to my kernel config file, make a buildkenel&installkernel, rebooted but there's not bpf in /dev: [flag@southcross flag]$ grep bpf /usr/src/sys/i386/conf/SOUTHCROSS device bpf # Berkeley packet filter [flag@southcross flag]$ uname -a FreeBSD southcross.skynet.org 5.0-CURRENT FreeBSD 5.0-CURRENT #25: Tue Mar 11 12:49:54 CET 2003 flag@southcross.skynet.org:/usr/obj/usr/src/sys/SOUTHCROSS i386 [flag@southcross flag]$ ls /dev/bpf* ls: /dev/bpf*: No such file or directory [flag@southcross flag]$ I need it for tcpdump, any idea how to fix it? Thanks. -- Paolo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 6: 2: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 5A1CD37B405 for ; Tue, 11 Mar 2003 06:02:46 -0800 (PST) Received: from law3.usr.dsi.unimi.it (law3.usr.dsi.unimi.it [159.149.152.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED89843FAF for ; Tue, 11 Mar 2003 06:02:44 -0800 (PST) (envelope-from flag@libero.it) Received: by southcross.skynet.org (Postfix, from userid 1001) id E002471FF; Tue, 11 Mar 2003 13:31:48 +0100 (CET) Date: Tue, 11 Mar 2003 13:31:48 +0100 From: Paolo Pisati To: FreeBSD_Current Subject: What's happened to bpf? Message-ID: <20030311123148.GA1069@southcross.skynet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Useless-Header: Look ma, it's a # sign! X-Operating-System: FreeBSD southcross.skynet.org 5.0-CURRENT FreeBSD 5.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Added device bpf to my kernel config file, make a buildkenel&installkernel, rebooted but there's not bpf in /dev: [flag@southcross flag]$ grep bpf /usr/src/sys/i386/conf/SOUTHCROSS device bpf # Berkeley packet filter [flag@southcross flag]$ uname -a FreeBSD southcross.skynet.org 5.0-CURRENT FreeBSD 5.0-CURRENT #25: Tue Mar 11 12:49:54 CET 2003 flag@southcross.skynet.org:/usr/obj/usr/src/sys/SOUTHCROSS i386 [flag@southcross flag]$ ls /dev/bpf* ls: /dev/bpf*: No such file or directory [flag@southcross flag]$ I need it for tcpdump, any idea how to fix it? Thanks. -- Paolo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 6: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 5861937B401 for ; Tue, 11 Mar 2003 06:14:24 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10FBE43FDF for ; Tue, 11 Mar 2003 06:14:19 -0800 (PST) (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.8/8.12.8/Sunbay) with ESMTP id h2BEE95G039479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Mar 2003 16:14:09 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.8/8.12.8/Submit) id h2BEE9aD039470; Tue, 11 Mar 2003 16:14:09 +0200 (EET) (envelope-from ru) Date: Tue, 11 Mar 2003 16:14:08 +0200 From: Ruslan Ermilov To: Paolo Pisati Cc: FreeBSD_Current Subject: Re: What's happened to bpf? Message-ID: <20030311141408.GB38848@sunbay.com> References: <20030311130704.GA1626@law3.usr.dsi.unimi.it> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline In-Reply-To: <20030311130704.GA1626@law3.usr.dsi.unimi.it> 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 --V0207lvV8h4k8FAm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 11, 2003 at 02:07:04PM +0100, Paolo Pisati wrote: >=20 > Added device bpf to my kernel config file, make a buildkenel&installkerne= l, > rebooted but there's not bpf in /dev: >=20 > [flag@southcross flag]$ grep bpf /usr/src/sys/i386/conf/SOUTHCROSS > device bpf # Berkeley packet filter > [flag@southcross flag]$ uname -a > FreeBSD southcross.skynet.org 5.0-CURRENT FreeBSD 5.0-CURRENT #25: Tue Ma= r 11 12:49:54 CET 2003 flag@southcross.skynet.org:/usr/obj/usr/src/sys/= SOUTHCROSS i386 > [flag@southcross flag]$ ls /dev/bpf* > ls: /dev/bpf*: No such file or directory > [flag@southcross flag]$ >=20 > I need it for tcpdump,=20 > any idea how to fix it? >=20 Try "ls -l /dev/bpf0" instead, etc. Beware of DEVFS surprises. :-) 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 --V0207lvV8h4k8FAm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+be8wUkv4P6juNwoRAtK+AJ9sGXkNzQ0d6hCl9XjHnOckzbQ/MQCdEfOt Cn8FVPQovB0J5DSd4q1CZu0= =JNnf -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 6: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 3CD1837B401 for ; Tue, 11 Mar 2003 06:15:01 -0800 (PST) Received: from klima.physik.uni-mainz.de (klima.Physik.Uni-Mainz.DE [134.93.180.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C61043FCB for ; Tue, 11 Mar 2003 06:15:00 -0800 (PST) (envelope-from ohartman@klima.physik.uni-mainz.de) Received: from edda.physik.uni-mainz.de (edda.Physik.Uni-Mainz.DE [134.93.180.218]) by klima.physik.uni-mainz.de (8.12.6/8.12.5) with ESMTP id h2BEExUb033406 for ; Tue, 11 Mar 2003 15:14:59 +0100 (CET) (envelope-from ohartman@klima.physik.uni-mainz.de) Date: Tue, 11 Mar 2003 15:14:58 +0100 (CET) From: "Hartmann, O." X-X-Sender: ohartman@edda.physik.uni-mainz.de To: freebsd-current@freebsd.org Subject: 5.0-CURRENT diskless boot recognition Message-ID: <20030311150056.K12960@edda.physik.uni-mainz.de> 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. As I posted prior to this question, I have problems in getting diskless started with 5.0-Current as cvsupdated today. The problem is still the same and after a night of hairloosing work I think I got closer to the problem. We use PXE as bootstrap environment, isc-dhcp and a read-only disk partition /usr/diskless conatining for each architecture we boot diskless its appropriate directory. The diskless kernels are compiled with individual 'ident Marker', have options NFS_ROOT, MD_ROOT, UNIONFS, PSEUDOFS and device md. The whole setup is as described in /etc/rc.d/initdiskless with special /conf-dir entries and this scheme works perfect under FreeBSD 4.7. FreeBSD 5.0-CURRENT seems to have problems within its bootstrap process to recognize that it is a diskless system. After the diskless station got its IP, loaded and booted the kernel I see this on screen: Mounting root from nfs: NF ROOT: MY.IP : /usr/diskless/xterm Loading configuration files. Starting file system checks: mount: / : unknown special file or filesystem Mounting NFS file system:. eval: /etc/rc.d/cleanvar: Permission denied. . . . After the last message a lot of deny error occur. I modified all the diskless-scripts in rc.d with my own echo commands to check which one gets involved, but none of them get touched! The above process looks identical of what a normal standalone machine does when booting. No wonder when diskless does not work when the init process does not recognize that it is booting diskless. We do not use BOOTP and I do not know whether FBSD 5.X does only support this scheme. We would like to stay with the NFS process. But I think technically this can not be the problem, because after the station has already booted the kernel it doesnt care what mechanism it booted from. NFS is the dominating facility and I could see, the root partition got mounted as expected. Can anyone help? Do I mark each kernel with 'ident DISKLESS' to give the init process any idea what it should do? If you need more informations about my configuration, please contact me. If someone could provide me with further informations how a init process or init scripts figures out whether it configures a diskless kernel or not, please let me know it. thanks in advance, Oliver -- MfG O. Hartmann ohartman@mail.physik.uni-mainz.de ------------------------------------------------------------------ Systemadministration des Institutes fuer Physik der Atmosphaere (IPA) ------------------------------------------------------------------ Johannes Gutenberg Universitaet Mainz Becherweg 21 55099 Mainz Tel: +496131/3924662 (Maschinenraum) Tel: +496131/3924144 (Buero) FAX: +496131/3923532 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 6:20: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 F2E8E37B401 for ; Tue, 11 Mar 2003 06:20:36 -0800 (PST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FEEC43FAF for ; Tue, 11 Mar 2003 06:20:36 -0800 (PST) (envelope-from wa1ter@myrealbox.com) Received: from myrealbox.com wa1ter@smtp-send.myrealbox.com [66.126.109.202] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.32 $ on Novell NetWare via secured & encrypted transport (TLS); Tue, 11 Mar 2003 07:20:40 -0700 Message-ID: <3E6DF0C1.20508@myrealbox.com> Date: Tue, 11 Mar 2003 06:20:49 -0800 From: walt Organization: none User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3b) Gecko/20030213 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Panic on bootup this morning 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 cvsup/rebuild today at about 14:00GMT I now get a 'page fault while in kernel mode' just after the system tries to mount the rootfs. Yesterday's kernel still works fine, and the filesystem came up clean, so I guess the new kernel didn't get far enough to write anything to disk. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 6:45: 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 673B437B404; Tue, 11 Mar 2003 06:45:06 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0F5B43F85; Tue, 11 Mar 2003 06:45: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.8/8.12.8) with ESMTP id h2BEj3jx000941; Tue, 11 Mar 2003 17:45:03 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.8/8.12.6/Submit) id h2BEj3BY000940; Tue, 11 Mar 2003 17:45:03 +0300 (MSK) (envelope-from ache) Date: Tue, 11 Mar 2003 17:45:02 +0300 From: "Andrey A. Chernov" To: Mike Barcroft Cc: standards@FreeBSD.org, current@FreeBSD.org Subject: Re: CFR: add widely accepted _ISOC99_SOURCE Message-ID: <20030311144501.GA364@nagual.pp.ru> References: <20030310061548.GA85361@nagual.pp.ru> <20030310104434.P70629@espresso.bsdmike.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030310104434.P70629@espresso.bsdmike.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, Mar 10, 2003 at 10:44:34 -0500, Mike Barcroft wrote: > Andrey A. Chernov writes: > > Many programs (from ports too) defines _ISOC99_SOURCE to get C99 > > functions, but we don't sense this define currently. Here is the fix for > > review: > > Cool. I didn't realize there was an existing precedence, or I would > have used it. Just search Google about _ISOC99_SOURCE and see :-) > This part isn't needed... > > > #else > > /*- > > * Deal with _ANSI_SOURCE: > > @@ -378,7 +381,7 @@ > > #define __XSI_VISIBLE 0 > > #define __BSD_VISIBLE 0 > > #define __ISO_C_VISIBLE 1990 > > -#elif defined(_C99_SOURCE) /* Localism to specify strict C99 env. */ > > +#elif defined(_ISOC99_SOURCE) /* Strict C99 env. */ > > #define __POSIX_VISIBLE 0 > > #define __XSI_VISIBLE 0 > > #define __BSD_VISIBLE 0 > > ...since the next line here is: > > #define __ISO_C_VISIBLE 1999 Hm, I don't quite understand, which one part you mean? My patch handles 2 following cases: 1) Any _POSIX_C_SOURCE with _ISOC99_SOURCE. It is from real life example (ImageMagick). It wants lower POSIX level, *but* wants _ISOC99_SOURCE in the same time. 2) _ISOC99_SOURCE without any _POSIX_C_SOURCE. In that case it overrides _ANSI_SOURCE like old _C99_SOURCE 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 Mar 11 7:34: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 7B6A737B401; Tue, 11 Mar 2003 07:34:11 -0800 (PST) Received: from law3.usr.dsi.unimi.it (law3.usr.dsi.unimi.it [159.149.152.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA3A043F85; Tue, 11 Mar 2003 07:34:10 -0800 (PST) (envelope-from flag@libero.it) Received: by law3.usr.dsi.unimi.it (Postfix, from userid 1001) id 58F5271FF; Tue, 11 Mar 2003 16:41:54 +0100 (CET) Date: Tue, 11 Mar 2003 16:41:54 +0100 From: Flag_reda To: Ruslan Ermilov Cc: FreeBSD_Current Subject: Re: What's happened to bpf? Message-ID: <20030311154154.GA2438@law3.usr.dsi.unimi.it> References: <20030311130704.GA1626@law3.usr.dsi.unimi.it> <20030311141408.GB38848@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030311141408.GB38848@sunbay.com> User-Agent: Mutt/1.4i X-Useless-Header: Look ma, it's a # sign! X-Operating-System: FreeBSD law3.usr.dsi.unimi.it 5.0-CURRENT FreeBSD 5.0-CURRENT Sender: owner-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, Mar 11, 2003 at 04:14:08PM +0200, Ruslan Ermilov wrote: > Try "ls -l /dev/bpf0" instead, etc. Beware of DEVFS surprises. :-) It works!!!! But, why it works like this?!?!? /me confused.... =P -- Paolo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 7:56: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 AF69B37B401 for ; Tue, 11 Mar 2003 07:56:37 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CB2043FBD for ; Tue, 11 Mar 2003 07:56:36 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2BFuXsf070316; Tue, 11 Mar 2003 16:56:34 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Attila Nagy Cc: current@FreeBSD.ORG Subject: Re: devstat_end_transaction: HELP!! busy_count for da1 is < 0 (-1)! From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 11 Mar 2003 14:15:41 +0100." Date: Tue, 11 Mar 2003 16:56:33 +0100 Message-ID: <70315.1047398193@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 , Attila Nagy wri tes: >Hello, > >I updated from an older CURRENT to a newer one and I am now getting a >dozen >kernel: devstat_end_transaction: HELP!! busy_count for da1 is < 0(-1)! >messages every seconds during disk activity. Yes, I just got this myself today. I overlooked that devstat is not locked when I moved the devstat to geom_disk. Expect a patch tonight. -- 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 Mar 11 7:57: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 7FC5E37B404 for ; Tue, 11 Mar 2003 07:57:17 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8052543FCB for ; Tue, 11 Mar 2003 07:56:58 -0800 (PST) (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.8/8.12.8/Sunbay) with ESMTP id h2BFuX5G049788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Mar 2003 17:56:42 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.8/8.12.8/Submit) id h2BFuUkE049783; Tue, 11 Mar 2003 17:56:30 +0200 (EET) (envelope-from ru) Date: Tue, 11 Mar 2003 17:56:30 +0200 From: Ruslan Ermilov To: Flag_reda Cc: FreeBSD_Current Subject: Re: What's happened to bpf? Message-ID: <20030311155630.GA49417@sunbay.com> References: <20030311130704.GA1626@law3.usr.dsi.unimi.it> <20030311141408.GB38848@sunbay.com> <20030311154154.GA2438@law3.usr.dsi.unimi.it> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <20030311154154.GA2438@law3.usr.dsi.unimi.it> 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 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 11, 2003 at 04:41:54PM +0100, Flag_reda wrote: > On Tue, Mar 11, 2003 at 04:14:08PM +0200, Ruslan Ermilov wrote: > > Try "ls -l /dev/bpf0" instead, etc. Beware of DEVFS surprises. :-) >=20 > It works!!!! >=20 > But, why it works like this?!?!? > =20 > /me confused.... =3DP >=20 Because of "device cloning"; devices are created on demand. 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 --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+bgcuUkv4P6juNwoRAhnNAJ4xreMoYAs0PgsqnbVEQOgslqmB0gCfcIiC BO8ngc8nGwcc/Y/Sakvbo8c= =HGZi -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue Mar 11 8: 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 E285D37B401; Tue, 11 Mar 2003 08:02:50 -0800 (PST) Received: from espresso.bsdmike.org (espresso.bsdmike.org [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 507DE43FAF; Tue, 11 Mar 2003 08:02:50 -0800 (PST) (envelope-from mike@espresso.bsdmike.org) Received: by espresso.bsdmike.org (Postfix, from userid 1002) id 790E89C5F; Tue, 11 Mar 2003 10:49:43 -0500 (EST) Date: Tue, 11 Mar 2003 10:49:43 -0500 From: Mike Barcroft To: "Andrey A. Chernov" Cc: standards@FreeBSD.org, current@FreeBSD.org Subject: Re: CFR: add widely accepted _ISOC99_SOURCE Message-ID: <20030311104943.A88290@espresso.bsdmike.org> References: <20030310061548.GA85361@nagual.pp.ru> <20030310104434.P70629@espresso.bsdmike.org> <20030311144501.GA364@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030311144501.GA364@nagual.pp.ru>; from ache@nagual.pp.ru on Tue, Mar 11, 2003 at 05:45:02PM +0300 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 Andrey A. Chernov writes: > Hm, I don't quite understand, which one part you mean? My patch handles > 2 following cases: > > 1) Any _POSIX_C_SOURCE with _ISOC99_SOURCE. It is from real life example > (ImageMagick). It wants lower POSIX level, *but* wants _ISOC99_SOURCE in > the same time. I don't like this at all. The meaning of _ANSI_SOURCE is that the source is exclusively written in C89 with no BSD, POSIX, or XSI extentions. Similarly, I was intending _C99_SOURCE to be used without any POSIX. Programs looking for C99+POSIX functions should specify POSIX.1-2001, which incorporates both of these. > 2) _ISOC99_SOURCE without any _POSIX_C_SOURCE. In that case it overrides > _ANSI_SOURCE like old _C99_SOURCE does. Yes, _ANSI_SOURCE and any other standard constant are mutually exclusive. Defining _C99_SOURCE or _ANSI_SOURCE with some other standard constant results in unspecified behaviour. I'd like to keep things this way if you're going to rename _C99_SOURCE. 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 Mar 11 8: 6: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 38EDA37B401; Tue, 11 Mar 2003 08:06:21 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E2B743FB1; Tue, 11 Mar 2003 08:06:20 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2BG6Isf072041; Tue, 11 Mar 2003 17:06:18 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Ruslan Ermilov Cc: Flag_reda , FreeBSD_Current Subject: Re: What's happened to bpf? From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 11 Mar 2003 17:56:30 +0200." <20030311155630.GA49417@sunbay.com> Date: Tue, 11 Mar 2003 17:06:18 +0100 Message-ID: <72040.1047398778@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 <20030311155630.GA49417@sunbay.com>, Ruslan Ermilov writes: >Because of "device cloning"; devices are created on demand. "device cloning" is really a wrong name for this, and I regret that I every used that term. "On demand device creation" is closer, but it doesn't have any sort of ring to it. -- 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 Mar 11 8:10: 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 A1E6137B401 for ; Tue, 11 Mar 2003 08:09:56 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE4143FB1 for ; Tue, 11 Mar 2003 08:09:56 -0800 (PST) (envelope-from ryan@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1079) id 0192F2ED3F1; Tue, 11 Mar 2003 08:09:55 -0800 (PST) Date: Tue, 11 Mar 2003 08:09:55 -0800 From: Ryan Dooley To: current@freebsd.org Subject: isp(4) issue lead to a panic with no dump Message-ID: <20030311160955.GA80617@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 Hey All, I've a -CURRENT box that was cvsup'd yesterday. It's a backup file server with a RAID array attached. This was a -STABLE machine at one point that I updated. The last few messages in /var/log/messages before the panic looked like this: Mar 10 15:44:34 alvin kernel: isp0: bad underrun for 124.0 (count 65536, resid 2147427327, status not marked) Mar 10 15:44:35 alvin kernel: isp0: bad underrun for 124.0 (count 49152, resid 2147451903, status not marked) Mar 10 15:44:35 alvin kernel: isp0: bad underrun for 124.0 (count 65536, resid 2147439615, status not marked) Mar 10 15:44:36 alvin kernel: isp0: bad underrun for 124.0 (count 65536, resid 2147431423, status not marked) Mar 10 15:44:38 alvin kernel: isp0: bad underrun for 124.0 (count 65536, resid 2147439615, status not marked) Mar 10 15:44:44 alvin kernel: isp0: LIP destroyed 8 active commands Mar 10 15:44:44 alvin kernel: isp0: Mbox Command Async (0x4000) with no waiters The system was busy rsync'ing data from the production file server (this system is a semi-warm mirror of the main... it pulls data twice a day). The file system is formatted as UFS1 and has soft-updates enabled. If I can get a serial dump of the next time (this is the first time I've seen it just panic and stop). The isn't the first time I've seen the isp messages. Just passing it along. Cheers, Ryan The /var/run/dmesg.boot looks like: 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 #0: Mon Mar 10 09:07:05 CST 2003 root@alvin:/usr/src/sys/i386/compile/ALVIN Preloaded elf kernel "/boot/kernel/kernel" at 0xc06d4000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc06d40a8. Timecounter "i8254" frequency 1193182 Hz CPU: Intel Pentium III Xeon (699.29-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6a1 Stepping = 1 Features=0x383fbff real memory = 1073733632 (1023 MB) avail memory = 1035710464 (987 MB) Changing APIC ID for IO APIC #0 from 0 to 2 on chip Changing APIC ID for IO APIC #1 from 0 to 3 on chip Progr