From owner-freebsd-current Sun May 20 2:33: 6 2001 Delivered-To: freebsd-current@freebsd.org Received: from sol.serv.u-szeged.hu (sol.serv.u-szeged.hu [160.114.51.3]) by hub.freebsd.org (Postfix) with ESMTP id 27CE437B424 for ; Sun, 20 May 2001 02:33:01 -0700 (PDT) (envelope-from sziszi@petra.hos.u-szeged.hu) Received: from petra.hos.u-szeged.hu by sol.serv.u-szeged.hu (8.9.3+Sun/SMI-SVR4) id LAA08247; Sun, 20 May 2001 11:32:41 +0200 (MEST) Received: from sziszi by petra.hos.u-szeged.hu with local (Exim 3.12 #1 (Debian)) id 151PZo-0000pu-00; Sun, 20 May 2001 11:32:40 +0200 Date: Sun, 20 May 2001 11:32:40 +0200 From: Szilveszter Adam To: Alfred Perlstein Cc: current@FreeBSD.ORG Subject: Re: panic: mutex vm not owned... Message-ID: <20010520113240.A2706@petra.hos.u-szeged.hu> Mail-Followup-To: Szilveszter Adam , Alfred Perlstein , current@FreeBSD.ORG References: <20010519225319.A10701@petra.hos.u-szeged.hu> <20010519215626.W7118@superconductor.rush.net> <20010519220825.X7118@superconductor.rush.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010519220825.X7118@superconductor.rush.net>; from bright@rush.net on Sat, May 19, 2001 at 10:08:25PM -0400 Sender: owner-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 Alfred, hello everybody, On Sat, May 19, 2001 at 10:08:25PM -0400, Alfred Perlstein wrote: > * Alfred Perlstein [010519 21:57] wrote: > > * Szilveszter Adam [010519 16:53] wrote: > > > Hello everybody, > > > > > > I guess I was just being too happy so it had to get me this time:-) I was > > > building Mozilla when it struck. Today's -CURRENT, kernel & world in sync, > > > no softupdates. > > > > > > panic: mutex vm not owned at ../../vm/vm_page.h:328 > > > Debugger("panic") > ... > > > > Thanks for the traceback, can you apply this patch then try > > to get your machine to swap? > > Oh, yeah, thanks for being brave, I've got a lot of other developers > telling me they're not upgrading past the vm mutex patch point which > is pretty stupid as it's doing to more harm then good without a > thorough workout. :( I'm afraid I don' understand this one exactly. Did other developers oppose that you give this patch to me? Why? If they have not yet upgraded, that's fine. I was not asking to solve this problem here and now (although a solution is great:-) I was trying to help narrow it down since appearently I am the one with this problem right now. There is no hurry, this machine is play-box, which normally does nothing important, just a surf terminal. Being able to use X would be nice however, but more on that later:-) So, anyways, thanks for trying to help, I applied the patch nevertheless. I have since discovered a sure-fire method to cause a freeze and reboot, however, and maybe this may shed some light. Unfortunately, the method involves starting X, which makes debugging difficult. As soon as I attempt to start it, the screen enters SVGA mode and turns dark but the X server is never actually started it seems or at least never comes but the whole machine hangs for a couple of secs and then reboots itself. Unfortunately, while in this wedged state, it doesn't seem to be interested in me:-( Note that this effect is not dependent on the patch, but only appeared with yesterday's build, earlier X always worked fine. What effect, if any, the patch will have will show hopefully during the course of the day. Another interesting nit: - It seems that if I power-cycle the machine and start up clean, it can do approx 1-1,5 hours of compiling at which point it will panic like posted. This time the trace was: Debugger panic _mtx_assert swp_pager_async_iodone _iodone bufdone bufdonebio ad_interrupt ata_intr ithread_loop fork_exit fork_trampoline and it did not even attempt to dump, just froze at "synching disks" I had to reset it. - However, if after this I bring it up in single-user, do a manual fsck, and continue in multi-user, than it could do compiles and more (eg I restarted the Mozilla build after my initial report and hit the hay, and by morning the machine was still up, the compile finished successfully and even the periodic script runs caused apperently no problem.) So this seems rather interesting of a locking issue... however, some other info I did not give: this is an UP system, which may be important. As usual, I am more than happy to provide info, test, etc. BTW this appears to be recent and possibly related to the problem: ---------.----------- cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstri ct-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fform at-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../dev -I../../../include -I../../contrib/dev/acpica/Subsystem/Include -D_KERNEL -include opt_global.h - elf -mpreferred-stack-boundary=2 ../../ddb/db_watch.c In file included from ../../ddb/db_watch.c:41: ../../vm/vm_map.h: In function `_vm_map_lock_upgrade': ../../vm/vm_map.h:265: warning: implicit declaration of function `mtx_lock' and cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstri ct-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fform at-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../dev -I../../../include -I../../contrib/dev/acpica/Subsystem/Include -D_KERNEL -include opt_global.h - elf -mpreferred-stack-boundary=2 ../../kern/link_elf.c In file included from ../../kern/link_elf.c:52: ../../vm/vm_map.h: In function `_vm_map_lock_upgrade': ../../vm/vm_map.h:265: warning: implicit declaration of function `mtx_lock' ------------------------- it also happens in the ibcs2 and fpu modules. Of course this may be pure BS, I am not a kernel hacker, just speculate. -- Regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 3:58:28 2001 Delivered-To: freebsd-current@freebsd.org Received: from sol.serv.u-szeged.hu (sol.serv.u-szeged.hu [160.114.51.3]) by hub.freebsd.org (Postfix) with ESMTP id 267D837B424 for ; Sun, 20 May 2001 03:58:11 -0700 (PDT) (envelope-from sziszi@petra.hos.u-szeged.hu) Received: from petra.hos.u-szeged.hu by sol.serv.u-szeged.hu (8.9.3+Sun/SMI-SVR4) id MAA18677; Sun, 20 May 2001 12:58:07 +0200 (MEST) Received: from sziszi by petra.hos.u-szeged.hu with local (Exim 3.12 #1 (Debian)) id 151QuT-0001En-00; Sun, 20 May 2001 12:58:05 +0200 Date: Sun, 20 May 2001 12:58:05 +0200 From: Szilveszter Adam To: Alfred Perlstein Cc: current@FreeBSD.ORG Subject: Re: panic: mutex vm not owned... Message-ID: <20010520125805.A4590@petra.hos.u-szeged.hu> Mail-Followup-To: Szilveszter Adam , Alfred Perlstein , current@FreeBSD.ORG References: <20010519225319.A10701@petra.hos.u-szeged.hu> <20010519215626.W7118@superconductor.rush.net> <20010519220825.X7118@superconductor.rush.net> <20010520113240.A2706@petra.hos.u-szeged.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010520113240.A2706@petra.hos.u-szeged.hu>; from sziszi@petra.hos.u-szeged.hu on Sun, May 20, 2001 at 11:32:40AM +0200 Sender: owner-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 am back with more information. The machine had been up mostly idle for about 1 1/2 hours again. I am starting to suspect that it is being idle that may also trip the wire here... maybe, given my 128megs of RAM and 300 megs of swap, that's when my computer decides that it's time to swap some stuff and boom. Alfred's patch indeed seems to have changed things a bit: It paniced after 1h37m uptime during a CVS checkout, with the following: panic: sleeping with vm_mtx held trace: Debugger panic msleep swap_pager_getpages vm_fault1 vm_fault trap_pfault trap calltrap ---trap 0xc, eip= 0x2824dc2e, esp=0xbfbfe16c, ebp=0xbfbfe160 then after 'c': syncing disks... panic: mutex vm owned at ../../kern/vfs_bio:2998 nice long trace: Debugger panic _mtx_assert vfs_busy_pages bwrite vfs_bio_awrite spec_fsync spec_vnoperate ffs_sync sync boot panic msleep swap_pager_getpages vm_fault1 vm_fault trap_pfault trap calltrap and again the same trap message like above. After hitting 'c', it freezes at the dumping: resetting devices part. This starts to become interesting... will follow up with more when found. -- Regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 6:17: 9 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id 1907337B422 for ; Sun, 20 May 2001 06:17:04 -0700 (PDT) (envelope-from mdharnois@home.com) Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001) id 687B714A11; Sun, 20 May 2001 08:17:53 -0500 (CDT) To: Alfred Perlstein Cc: freebsd-current@FreeBSD.ORG Subject: Re: kernel trap 12 with interrupts disabled References: <86n188kacy.fsf@mharnois.workgroup.net> <20010519224851.Y7118@superconductor.rush.net> From: Michael Harnois Date: 20 May 2001 08:17:53 -0500 In-Reply-To: <20010519224851.Y7118@superconductor.rush.net> (Alfred Perlstein's message of "Sat, 19 May 2001 22:48:51 -0400") Message-ID: <86pud488hq.fsf@mharnois.workgroup.net> Lines: 16 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 19 May 2001 22:48:51 -0400, Alfred Perlstein said: > You'll have to provide more info before anyone can help you. Well, that would require the kernel offering me more information. > Can you at least get a DDB traceback? I have never succeeded in getting that to work, but I'll try once again ... -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa No man knows how bad he is till he has tried very hard to be good. -- C.S. Lewis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 8:40: 0 2001 Delivered-To: freebsd-current@freebsd.org Received: from EnContacto.Net (adsl-63-205-16-205.dsl.mtry01.pacbell.net [63.205.16.205]) by hub.freebsd.org (Postfix) with ESMTP id 84AA837B422 for ; Sun, 20 May 2001 08:39:57 -0700 (PDT) (envelope-from eculp@encontacto.net) Received: (from root@localhost) by EnContacto.Net (8.11.3/8.11.3) id f4KFdrI96032; Sun, 20 May 2001 08:39:54 -0700 (PDT) (envelope-from eculp@encontacto.net) From: Edwin Culp Received: from 63.205.16.205 ( [63.205.16.205]) as user eculp@encontacto.net by Mail.PasionLatina.Org with HTTP; Sun, 20 May 2001 07:39:52 -0800 Message-ID: <990373192.3b07e548e687f@Mail.PasionLatina.Org> Date: Sun, 20 May 2001 07:39:52 -0800 To: Michael Harnois Cc: Alfred Perlstein , freebsd-current@FreeBSD.ORG Subject: Re: kernel trap 12 with interrupts disabled References: <86n188kacy.fsf@mharnois.workgroup.net> <20010519224851.Y7118@superconductor.rush.net> <86pud488hq.fsf@mharnois.workgroup.net> In-Reply-To: <86pud488hq.fsf@mharnois.workgroup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs X-Originating-IP: 63.205.16.205 Sender: owner-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 may not help much unless there is some common ground to be found. I have been having problems with my old K6-2 300Mhz laptop hanging in X with linux-communicator. From there I have not been able to get any debugging info. Last night I did a power off/on reset and went to bed. This morning I had a login with a nice bold "kernel trap 12 with interrupts disabled" that happened a couple of hours later after cvsuping and initiating a make world. I'm going to see if I can get it to do it again although I was able to do a make world and kernel yesterday with no problem. The only problem that I was able to see before was with X and netscape. ed Quoting Michael Harnois : > On Sat, 19 May 2001 22:48:51 -0400, Alfred Perlstein > said: > > > You'll have to provide more info before anyone can help you. > > Well, that would require the kernel offering me more information. > > > Can you at least get a DDB traceback? > > I have never succeeded in getting that to work, but I'll try once > again ... > > -- > Michael D. Harnois mdharnois@home.com > Redeemer Lutheran Church Washburn, Iowa > No man knows how bad he is > till he has tried very hard to be good. -- C.S. Lewis > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > ----------------------------------------------------------------------- The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn and relearn. --Alvin Toffler To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 8:46:47 2001 Delivered-To: freebsd-current@freebsd.org Received: from EnContacto.Net (adsl-63-205-16-205.dsl.mtry01.pacbell.net [63.205.16.205]) by hub.freebsd.org (Postfix) with ESMTP id 4DD7F37B422 for ; Sun, 20 May 2001 08:46:43 -0700 (PDT) (envelope-from eculp@encontacto.net) Received: (from root@localhost) by EnContacto.Net (8.11.3/8.11.3) id f4KFkhE96237 for freebsd-current@FreeBSD.ORG; Sun, 20 May 2001 08:46:43 -0700 (PDT) (envelope-from eculp@encontacto.net) From: Edwin Culp Received: from 63.205.16.205 ( [63.205.16.205]) as user eculp@encontacto.net by Mail.PasionLatina.Org with HTTP; Sun, 20 May 2001 07:46:42 -0800 Message-ID: <990373602.3b07e6e21c542@Mail.PasionLatina.Org> Date: Sun, 20 May 2001 07:46:42 -0800 To: freebsd-current@FreeBSD.ORG Subject: Re: kernel trap 12 with interrupts disabled MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs X-Originating-IP: 63.205.16.205 Sender: owner-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 forgot to add that I'm not seeing any of this with the PIII's that I have running current and usually updated daily. This may not help much unless there is some common ground to be found. I have been having problems with my old K6-2 300Mhz laptop hanging in X with linux-communicator. From there I have not been able to get any debugging info. Last night I did a power off/on reset and went to bed. This morning I had a login with a nice bold "kernel trap 12 with interrupts disabled" that happened a couple of hours later after cvsuping and initiating a make world. I'm going to see if I can get it to do it again although I was able to do a make world and kernel yesterday with no problem. The only problem that I was able to see before was with X and netscape. ed Quoting Michael Harnois : > On Sat, 19 May 2001 22:48:51 -0400, Alfred Perlstein > said: > > > You'll have to provide more info before anyone can help you. > > Well, that would require the kernel offering me more information. > > > Can you at least get a DDB traceback? > > I have never succeeded in getting that to work, but I'll try once > again ... > > -- > Michael D. Harnois mdharnois@home.com > Redeemer Lutheran Church Washburn, Iowa > No man knows how bad he is > till he has tried very hard to be good. -- C.S. Lewis > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > ----------------------------------------------------------------------- The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn and relearn. --Alvin Toffler To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message ----------------------------------------------------------------------- The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn and relearn. --Alvin Toffler To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 10: 0:25 2001 Delivered-To: freebsd-current@freebsd.org Received: from cowpie.acm.vt.edu (cowpie.acm.vt.edu [128.173.42.253]) by hub.freebsd.org (Postfix) with ESMTP id 4BBCF37B422 for ; Sun, 20 May 2001 10:00:22 -0700 (PDT) (envelope-from mheffner@cowpie.acm.vt.edu) Received: (from mheffner@localhost) by cowpie.acm.vt.edu (8.11.3/8.11.3) id f4KGxps42495 for freebsd-current@freebsd.org; Sun, 20 May 2001 12:59:51 -0400 (EDT) (envelope-from mheffner) Date: Sun, 20 May 2001 12:59:51 -0400 From: Mike Heffner To: freebsd-current@freebsd.org Subject: panic: mutex vm not owned Message-ID: <20010520125951.A42449@cowpie.acm.vt.edu> Reply-To: mheffner@vt.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The machine is up for about one minute and then I ran `startx' and the screen turned black and it appeared to lockup, after about 30 seconds plus some banging on the keyboard it rebooted. I have 256mb ram, so it shouldn't be swapping at this point. The kernel and world are cvsupd to about 12am May 20 EDT, the following is the panic message: panic: mutex vm not owned at /usr/src/sys/vm/vm_object.c:330 This was the first time I've tried getting a crashdump and analyzing it, however when I follow the directions in the handbook, gdb seg. faults (could this be because it panic'd in the vm system ??) : enterprise# pwd /usr/obj/usr/src/sys/BUTTER enterprise# gdb -k GNU gdb 4.18 Copyright 1998 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-unknown-freebsd". (kgdb) symbol-file kernel.debug Reading symbols from kernel.debug...done. (kgdb) exec-file /var/crash/kernel.0 (kgdb) core-file /var/crash/vmcore.0 Segmentation fault (core dumped) I also have DDB in my kernel config, but it didn't drop into DDB. Is there anything else I can test? I'm willig to test any patches or whatever. Thanks, Mike -- Mike Heffner Fredericksburg, VA http://filebox.vt.edu/users/mheffner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 12:10:33 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 413A837B422; Sun, 20 May 2001 12:10:29 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id FAA21357; Mon, 21 May 2001 05:10:26 +1000 Date: Mon, 21 May 2001 05:09:00 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: current@freebsd.org Cc: alfred@freebsd.org Subject: another new vm/swap panic 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 The follow fatal trap seems to be caused by the vm locking changes: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x3a fault code = supervisor write, page not present instruction pointer = 0x8:0xc027a13e stack pointer = 0x10:0xc35f0db8 frame pointer = 0x10:0xc35f0e58 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 = 3 (vmdaemon) kernel: type 12 trap, code=0 Stopped at vm_fault1+0x122: incw 0x3a(%eax) db> t vm_fault1(c033bd0c,c38a5000,1,0,c325adc0) at vm_fault1+0x122 vm_fault(c033bd0c,c38a5000,1,0,c325adc0) at vm_fault+0x8e trap_pfault(c35f0ee4,0,c38a5bfc,0,bfc00000) at trap_pfault+0x1ce trap(18,10,10,0,bfc00000) at trap+0x430 calltrap() at calltrap+0x5 --- trap 0xc, eip = 0xc02ac284, esp = 0xc35f0f24, ebp = 0xc35f0f24 --- get_ptbase(c325faac,c325fa40,c325fa40,0,0) at get_ptbase+0x8 pmap_remove(c325faac,0,bfc00000) at pmap_remove+0x5c vm_pageout_map_deactivate_pages(c325fa40,0) at vm_pageout_map_deactivate_pages+0xb0 vm_daemon(0,c35f0fa8) at vm_daemon+0x230 fork_exit(c0287834,0,c35f0fa8) at fork_exit+0x50 fork_trampoline() at fork_trampoline+0x8 db> sh r cs 0x8 ds 0x10 es 0x10 fs 0x18 ss 0x10 eax 0 ecx 0xc35f0e04 edx 0x7 ebx 0 esp 0xc35f0db8 ebp 0xc35f0e58 esi 0x1 edi 0xc38a5000 eip 0xc027a13e vm_fault1+0x122 efl 0x10286 vm_fault1+0x122: incw 0x3a(%eax) db> This is with some missing locks added to swap_pager.c. To duplicate this, try "dd if=/dev/zero of=/dev/null bs=N", where N is about 12MB less than the memory size (just enough to use a few MB of swap). vm_fault() gets called with map == kernel_map for a pagefault in get_ptbase(). This shouldn't happen and is soon fatal. (The final fault address of 0x3a is irrelevant. It is just for the incw instruction. %eax is fs.first_object which is null. vm_map_lookup() refuses to create a non-null object because the map is a system map.) I once got a panic a little earlier in vm_pageout_map_deactivate_pages() for attempting to access a vm_map_entry of ZENTRY_FREE. atadump() always locked up attempting to dump from here. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 12:52:15 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id B532B37B424; Sun, 20 May 2001 12:52:12 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 20 May 2001 20:52:12 +0100 (BST) Date: Sun, 20 May 2001 20:52:11 +0100 From: David Malone To: mheffner@vt.edu Cc: freebsd-current@freebsd.org, alfred@freebsd.org Subject: Re: panic: mutex vm not owned Message-ID: <20010520205211.A88802@walton.maths.tcd.ie> References: <20010520125951.A42449@cowpie.acm.vt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010520125951.A42449@cowpie.acm.vt.edu>; from mheffner@cowpie.acm.vt.edu on Sun, May 20, 2001 at 12:59:51PM -0400 Sender: owner-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, May 20, 2001 at 12:59:51PM -0400, Mike Heffner wrote: > The machine is up for about one minute and then I ran `startx' and the > screen turned black and it appeared to lockup, after about 30 seconds > plus some banging on the keyboard it rebooted. I have 256mb ram, so it > shouldn't be swapping at this point. The kernel and world are cvsupd > to about 12am May 20 EDT, the following is the panic message: I'm getting a panic whenever I start X too (with a kernel from earlier today). I managed to get a DDB trace from a serial console. David. panic: mutex vm not owned at ../../vm/vm_object.c:330 Debugger("panic") Stopped at Debugger+0x44: pushl %ebx db> t Debugger(c02fdbbb) at Debugger+0x44 panic(c02fcc07,c0313f10,c0315234,14a,c038fe40) at panic+0x70 _mtx_assert(c03bfb80,1,c0315234,14a) at _mtx_assert+0x49 vm_object_deallocate(c038fe40,c0de4030,c863d300,c8692f38,c01e59f3) at vm_object_ deallocate+0x1e shm_deallocate_segment(c0de4030,c8692f80,c863d300,4,c863d300) at shm_deallocate_ segment+0x12 shmctl(c863d300,c8692f84,c863d300,0,c8692fa0) at shmctl+0x117 shmsys(c863d300,c8692f80,2838d9f4,1,bfbffc80) at shmsys+0x43 syscall(2f,2f,2f,bfbffc80,1) at syscall+0x7f9 syscall_with_err_pushed() at syscall_with_err_pushed+0x1b To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 13:29:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id B3E1F37B424; Sun, 20 May 2001 13:29:34 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 847EB3E0B; Sun, 20 May 2001 13:29:33 -0700 (PDT) To: David Malone Cc: mheffner@vt.edu, freebsd-current@freebsd.org, alfred@freebsd.org Subject: Re: panic: mutex vm not owned In-Reply-To: <20010520205211.A88802@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on "Sun, 20 May 2001 20:52:11 +0100" Date: Sun, 20 May 2001 13:29:22 -0700 From: Dima Dorfman Message-Id: <20010520202933.847EB3E0B@bazooka.unixfreak.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 David Malone writes: > On Sun, May 20, 2001 at 12:59:51PM -0400, Mike Heffner wrote: > > The machine is up for about one minute and then I ran `startx' and the > > screen turned black and it appeared to lockup, after about 30 seconds > > plus some banging on the keyboard it rebooted. I have 256mb ram, so it > > shouldn't be swapping at this point. The kernel and world are cvsupd > > to about 12am May 20 EDT, the following is the panic message: > > I'm getting a panic whenever I start X too (with a kernel from > earlier today). I managed to get a DDB trace from a serial console. Please try the attached patch. I make no claims of its correctness, but this e-mail is coming to you via X on -current updated a few hours ago so it works here :-). I had to manually edit out some unrelated local changes, so if you have trouble applying it fetch the full one from http://www.unixfreak.org/~dima/home/shm-full.diff. That one has local changes (new sysctls), but they (probably) won't hurt you. Thanks, Dima Dorfman dima@unixfreak.org Index: sysv_shm.c =================================================================== RCS file: /stl/src/FreeBSD/src/sys/kern/sysv_shm.c,v retrieving revision 1.56 diff -u -r1.56 sysv_shm.c --- sysv_shm.c 2001/05/19 01:28:03 1.56 +++ sysv_shm.c 2001/05/20 20:26:28 @@ -182,7 +186,9 @@ size_t size; shm_handle = shmseg->shm_internal; + mtx_lock(&vm_mtx); vm_object_deallocate(shm_handle->shm_object); + mtx_unlock(&vm_mtx); free((caddr_t)shm_handle, M_SHM); shmseg->shm_internal = NULL; size = round_page(shmseg->shm_segsz); @@ -203,7 +209,9 @@ segnum = IPCID_TO_IX(shmmap_s->shmid); shmseg = &shmsegs[segnum]; size = round_page(shmseg->shm_segsz); + mtx_lock(&vm_mtx); result = vm_map_remove(&p->p_vmspace->vm_map, shmmap_s->va, shmmap_s->va + size); + mtx_unlock(&vm_mtx); if (result != KERN_SUCCESS) return EINVAL; shmmap_s->shmid = -1; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 13:46:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id 422F137B424 for ; Sun, 20 May 2001 13:46:09 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f4KKk7J19722 for current@freebsd.org; Sun, 20 May 2001 16:46:07 -0400 (EDT) Date: Sun, 20 May 2001 16:46:04 -0400 From: Alfred Perlstein To: current@freebsd.org Subject: HEADS UP: I broke swapping Message-ID: <20010520164603.B17514@superconductor.rush.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us X-all-your-base: are belong to us. Sender: owner-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 broke swapping with the vm mutex. Hopefully I should have this fixed up within a couple of days tops. No, I'm not heading off to Aruba or someplace after this intrusive change, I am working on it. Your kernel may panic, but I hope you all keep a level head about this and don't follow suit. :) Patches, suggestions and crashdumps would be helpful. Bruce has been giving me some helpful tracebacks that I'm planning to use to stabilize the system. thanks, -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 14: 7:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from sol.serv.u-szeged.hu (sol.serv.u-szeged.hu [160.114.51.3]) by hub.freebsd.org (Postfix) with ESMTP id 0B0F337B424 for ; Sun, 20 May 2001 14:07:07 -0700 (PDT) (envelope-from sziszi@petra.hos.u-szeged.hu) Received: from petra.hos.u-szeged.hu by sol.serv.u-szeged.hu (8.9.3+Sun/SMI-SVR4) id XAA09627; Sun, 20 May 2001 23:07:05 +0200 (MEST) Received: from sziszi by petra.hos.u-szeged.hu with local (Exim 3.12 #1 (Debian)) id 151aPn-00029r-00 for ; Sun, 20 May 2001 23:07:03 +0200 Date: Sun, 20 May 2001 23:07:03 +0200 From: Szilveszter Adam To: freebsd-current@freebsd.org Subject: Re: panic: mutex vm not owned Message-ID: <20010520230703.A7647@petra.hos.u-szeged.hu> Mail-Followup-To: Szilveszter Adam , freebsd-current@freebsd.org References: <20010520205211.A88802@walton.maths.tcd.ie> <20010520202933.847EB3E0B@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010520202933.847EB3E0B@bazooka.unixfreak.org>; from dima@unixfreak.org on Sun, May 20, 2001 at 01:29:22PM -0700 Sender: owner-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, May 20, 2001 at 01:29:22PM -0700, Dima Dorfman wrote: > David Malone writes: > > On Sun, May 20, 2001 at 12:59:51PM -0400, Mike Heffner wrote: > > > The machine is up for about one minute and then I ran `startx' and the > > > screen turned black and it appeared to lockup, after about 30 seconds > > > plus some banging on the keyboard it rebooted. I have 256mb ram, so it > > > shouldn't be swapping at this point. The kernel and world are cvsupd > > > to about 12am May 20 EDT, the following is the panic message: > > > > I'm getting a panic whenever I start X too (with a kernel from > > earlier today). I managed to get a DDB trace from a serial console. > > Please try the attached patch. I make no claims of its correctness, > but this e-mail is coming to you via X on -current updated a few hours > ago so it works here :-). OK, I've just tried this and would like to report that it works. Of course, using X without swapping is not practically possible:-) but as a demonstration it's all right. Now I hope the other problems with swapping can also be sorted out. I have sent Alfred some traces, unfortunately this is about all, dumping is not possible... let's hope for the best. Luckily, console based CD players also exist. -- Regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 14:26:14 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailtmp1.registeredsite.com (mailtmp1.registeredsite.com [216.247.127.11]) by hub.freebsd.org (Postfix) with ESMTP id E700637B43C; Sun, 20 May 2001 14:26:10 -0700 (PDT) (envelope-from spock@techfour.net) Received: from mail5.registeredsite.com (mail5.registeredsite.com [64.224.9.14]) by mailtmp1.registeredsite.com (8.11.1/8.11.1) with ESMTP id f4KLQSe10337; Sun, 20 May 2001 17:26:28 -0400 Received: from mail.techfour.net ([209.35.6.184]) by mail5.registeredsite.com (8.11.1/8.11.1) with ESMTP id f4KLPpf32555; Sun, 20 May 2001 17:25:51 -0400 Received: from enterprise.muriel.penguinpowered.com [208.138.198.178] by mail.techfour.net with ESMTP (SMTPD32-6.04) id A69118800E2; Sun, 20 May 2001 17:26:41 -0400 Message-ID: X-Mailer: XFMail 1.4.7 on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="_=XFMail.1.4.7.FreeBSD:20010520172311:455=_"; micalg=pgp-md5; protocol="application/pgp-signature" In-Reply-To: <20010520202933.847EB3E0B@bazooka.unixfreak.org> Date: Sun, 20 May 2001 17:23:11 -0400 (EDT) Reply-To: Mike Heffner From: Mike Heffner To: Dima Dorfman Subject: Re: panic: mutex vm not owned Cc: alfred@freebsd.org, freebsd-current@freebsd.org, mheffner@vt.edu, David Malone Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.4.7.FreeBSD:20010520172311:455=_ Content-Type: text/plain; charset=us-ascii On 20-May-2001 Dima Dorfman wrote: | Please try the attached patch. I make no claims of its correctness, | but this e-mail is coming to you via X on -current updated a few hours | ago so it works here :-). Thanks, it works so far (I'm running X). I'll see where it breaks next. Mike -- Mike Heffner Fredericksburg, VA http://filebox.vt.edu/users/mheffner --_=XFMail.1.4.7.FreeBSD:20010520172311:455=_ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7CDW/FokZQs3sv5kRArklAKCB/H8nXs6Y+ShBJDIhkgvVk6gkxgCePNtH Q7o8VACysKyNs23GyN/YF9w= =xb1f -----END PGP SIGNATURE----- --_=XFMail.1.4.7.FreeBSD:20010520172311:455=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 15: 0:49 2001 Delivered-To: freebsd-current@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id 3B43B37B42C for ; Sun, 20 May 2001 15:00:46 -0700 (PDT) (envelope-from mwlucas@blackhelicopters.org) Received: (from mwlucas@localhost) by blackhelicopters.org (8.9.3/8.9.3) id SAA27673 for freebsd-current@FreeBSD.ORG; Sun, 20 May 2001 18:00:45 -0400 (EDT) (envelope-from mwlucas) Date: Sun, 20 May 2001 18:00:45 -0400 From: Michael Lucas To: freebsd-current@FreeBSD.ORG Subject: Re: panic: mutex vm not owned Message-ID: <20010520180045.A27651@blackhelicopters.org> References: <20010520202933.847EB3E0B@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from spock@techfour.net on Sun, May 20, 2001 at 05:23:11PM -0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [cc's trimmed] Same problem, this fixed me too. On Sun, May 20, 2001 at 05:23:11PM -0400, Mike Heffner wrote: > > On 20-May-2001 Dima Dorfman wrote: > | Please try the attached patch. I make no claims of its correctness, > | but this e-mail is coming to you via X on -current updated a few hours > | ago so it works here :-). > > Thanks, it works so far (I'm running X). I'll see where it breaks next. > > > Mike > > -- > Mike Heffner > Fredericksburg, VA > http://filebox.vt.edu/users/mheffner > -- Michael Lucas mwlucas@blackhelicopters.org http://www.blackhelicopters.org/~mwlucas/ Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 15:24:25 2001 Delivered-To: freebsd-current@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id DD70537B422 for ; Sun, 20 May 2001 15:24:21 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f4KMOIS31575; Sun, 20 May 2001 18:24:18 -0400 (EDT) Date: Sun, 20 May 2001 18:24:18 -0400 From: Alfred Perlstein To: Szilveszter Adam Cc: freebsd-current@FreeBSD.ORG Subject: Re: panic: mutex vm not owned Message-ID: <20010520182418.E17514@superconductor.rush.net> References: <20010520205211.A88802@walton.maths.tcd.ie> <20010520202933.847EB3E0B@bazooka.unixfreak.org> <20010520230703.A7647@petra.hos.u-szeged.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <20010520230703.A7647@petra.hos.u-szeged.hu>; from sziszi@petra.hos.u-szeged.hu on Sun, May 20, 2001 at 11:07:03PM +0200 X-all-your-base: are belong to us. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Szilveszter Adam [010520 17:07] wrote: > On Sun, May 20, 2001 at 01:29:22PM -0700, Dima Dorfman wrote: > > > > Please try the attached patch. I make no claims of its correctness, > > but this e-mail is coming to you via X on -current updated a few hours > > ago so it works here :-). > > OK, I've just tried this and would like to report that it works. Of course, > using X without swapping is not practically possible:-) but as a demonstration > it's all right. > > Now I hope the other problems with swapping can also be sorted out. I have > sent Alfred some traces, unfortunately this is about all, dumping is not > possible... let's hope for the best. > > Luckily, console based CD players also exist. That patch was committed to -current several hours ago. you should have version 1.57 of sys/kern/sysv_shm.c. Of course this only fixes sysv shm, not swapping. -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 16:54:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from gate.lustig.com (lustig.ne.mediaone.net [24.91.125.166]) by hub.freebsd.org (Postfix) with SMTP id 72BAC37B61E for ; Sun, 20 May 2001 16:54:25 -0700 (PDT) (envelope-from barry@lustig.com) Received: (qmail 89530 invoked from network); 20 May 2001 23:53:29 -0000 Received: from gate.lustig.com (HELO lustig.com) (barry@205.246.2.242) by gate.lustig.com with SMTP; 20 May 2001 23:53:29 -0000 Message-ID: <3B0858F9.1E483EEE@lustig.com> Date: Sun, 20 May 2001 19:53:29 -0400 From: Barry Lustig Organization: Barry Lustig & Associates, Inc. X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: current@freebsd.org, hackers@freebsd.org Subject: Boot time memory issue Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I was curious whether the memory limitation on the Sony VAIO Z505 machines was an actual hardware limitation or a marketing issue. I just tried adding a 256MB module to my machine. The BIOS seemed to mostly recognize it. It did see 320MB of RAM, but had problems when testing all of it. Current (from a couple of weeks ago) boots, but gives me: Too many holes in the physical address space, giving up and comes up showing 64MB of RAM. Is this something that can be worked around, or have I run up against an actual hardware limit on the machine? barry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 18:25:25 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.noos.fr (racine.noos.net [212.198.2.71]) by hub.freebsd.org (Postfix) with ESMTP id 445D237B424 for ; Sun, 20 May 2001 18:25:19 -0700 (PDT) (envelope-from clefevre@poboxes.com) Received: (qmail 24728188 invoked by uid 0); 21 May 2001 01:25:17 -0000 Received: from d165.dhcp212-198-231.noos.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by racine.noos.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 21 May 2001 01:25:17 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.3/8.11.3) id f4L1PCt11158; Mon, 21 May 2001 03:25:12 +0200 (CEST) (envelope-from clefevre@poboxes.com) To: Bruce Evans Cc: Szilveszter Adam , cvs-all@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: cvs commit: src Makefile.inc1 References: X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C Reply-To: Cyrille Lefevre In-Reply-To: Mail-Copies-To: never From: Cyrille Lefevre Date: 21 May 2001 03:25:11 +0200 Message-ID: Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) 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 Bruce Evans writes: > > Debian CDs on FreeBSD with linux emulation way better than you can build > > say a -STABLE release on a -CURRENT box... ) > > I just tried a Linux fdisk binary built in 1997 under FreeBSD-current. > It seemed to run perfectly except it couldn't determine the disk geometry > automatically. some times ago, I've ported linux fdisk to native freebsd. if you really need it, I could make it a port ? Cyrille. -- home: mailto:clefevre@poboxes.com UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 18:25:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.noos.fr (claudel.noos.net [212.198.2.83]) by hub.freebsd.org (Postfix) with ESMTP id 813CD37B43C for ; Sun, 20 May 2001 18:25:35 -0700 (PDT) (envelope-from clefevre@poboxes.com) Received: (qmail 7241376 invoked by uid 0); 21 May 2001 01:25:34 -0000 Received: from d165.dhcp212-198-231.noos.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by claudel.noos.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 21 May 2001 01:25:34 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.3/8.11.3) id f4L1PXw11161; Mon, 21 May 2001 03:25:33 +0200 (CEST) (envelope-from clefevre@poboxes.com) To: Bruce Evans Cc: Szilveszter Adam , cvs-all@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: cvs commit: src Makefile.inc1 References: X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C Reply-To: Cyrille Lefevre In-Reply-To: Mail-Copies-To: never From: Cyrille Lefevre User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) Date: 21 May 2001 03:25:32 +0200 Message-ID: Lines: 16 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 Bruce Evans writes: > > Debian CDs on FreeBSD with linux emulation way better than you can build > > say a -STABLE release on a -CURRENT box... ) > > I just tried a Linux fdisk binary built in 1997 under FreeBSD-current. > It seemed to run perfectly except it couldn't determine the disk geometry > automatically. some times ago, I've ported linux fdisk to native freebsd. if you really need it, I could make it a port ? Cyrille. -- home: mailto:clefevre@poboxes.com UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 19:53:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from po4.glue.umd.edu (po4.glue.umd.edu [128.8.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 129E437B422 for ; Sun, 20 May 2001 19:53:07 -0700 (PDT) (envelope-from howardjp@well.com) Received: from z.glue.umd.edu (IDENT:root@z.glue.umd.edu [128.8.10.71]) by po4.glue.umd.edu (8.10.1/8.10.1) with ESMTP id f4L2r2418516; Sun, 20 May 2001 22:53:02 -0400 (EDT) Received: from z.glue.umd.edu (IDENT:sendmail@localhost [127.0.0.1]) by z.glue.umd.edu (8.9.3/8.9.3) with SMTP id WAA07778; Sun, 20 May 2001 22:53:01 -0400 (EDT) Received: from localhost (howardjp@localhost) by z.glue.umd.edu (8.9.3/8.9.3) with ESMTP id WAA07774; Sun, 20 May 2001 22:53:01 -0400 (EDT) X-Authentication-Warning: z.glue.umd.edu: howardjp owned process doing -bs Date: Sun, 20 May 2001 22:53:01 -0400 (EDT) From: James Howard X-Sender: howardjp@z.glue.umd.edu To: Terry Lambert Cc: current@FreeBSD.ORG Subject: Re: PATCH: /usr/src/usr.bin/login In-Reply-To: <200105162355.QAA27838@usr01.primenet.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 Wed, 16 May 2001, Terry Lambert wrote: > This patch adds the "prompt" and "passwd_prompt" fields to the > /etc/login.conf, which makes lgoin more like getty in its ability > to be configured. Cool, I used to hack mine by hand to look like OpenVMS... Jamie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun May 20 21:46:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id BBA1B37B422 for ; Sun, 20 May 2001 21:46:04 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.3/8.11.3) with SMTP id f4L4jvf74829; Mon, 21 May 2001 00:45:58 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Mon, 21 May 2001 00:45:56 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Bob Bishop Cc: current@freebsd.org Subject: Re: panic: workitem_free: still on list In-Reply-To: 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 I sent a similar crash trace to Kirk recently, and he claimed to have fixed it (look for a commit crediting me as a source of information sometime in the last few days). However, given the currently VM problems, you'll want to pull in those FFS patches carefully :-). Since I'm 500 miles from the box that crashed and haven't had a chance to reset it yet, I can't confirm if Kirk's fix works. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On Sat, 19 May 2001, Bob Bishop wrote: > Hi, > > This happened during a buildworld with a kernel built from: > cvsup Fri May 18 04:06:02 BST 2001 > > On reboot, I got the manual fsck jive with the "bad superblock: values > disagree ,,with,, first alternate", and had to re-enable softupdates on / > > Config is basically GENERIC + SMP. dmesg is appended. > > Abridged backtrace: > > panic() > workitem_free() > free_newdirblk() > handle_written_inodeblock() > softdep_disk_write_complete() > bufdone() > bufdonebio() > dadone() > camisr() > ithread_loop() > fork_exit() > fork_trampoline() > > dmesg: > > FreeBSD 5.0-CURRENT #20: Wed May 16 00:24:36 BST 2001 > rb@bludnok.gid.co.uk:/source/cleansrc/sys/compile/BLUDNOK_MP > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium II/Pentium II Xeon/Celeron (349.07-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x651 Stepping = 1 > > Features=0x183fbff V,PAT,PSE36,MMX,FXSR> > real memory = 134152192 (131008K bytes) > config> enable ed0 > config> port ed0 0x300 > config> irq ed0 10 > config> iomem ed0 0xd8000 > config> flags ed0 0 > config> disable cs0 > config> disable fe0 > config> disable ie0 > config> disable lnc0 > config> disable sn0 > config> quit > avail memory = 124653568 (121732K bytes) > Programming 24 pins in IOAPIC #0 > IOAPIC #0 intpin 2 -> irq 0 > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 > cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 > io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 > Preloaded elf kernel "kernel" at 0xc05bb000. > Preloaded userconfig_script "/boot/kernel.conf" at 0xc05bb09c. > Pentium Pro MTRR support enabled > WARNING: Driver mistake: destroy_dev on 154/0 > Using $PIR table, 7 entries at 0xc00fda90 > npx0: on motherboard > npx0: INT 16 interface > pcib0: at pcibus 0 on motherboard > IOAPIC #0 intpin 16 -> irq 2 > IOAPIC #0 intpin 19 -> irq 16 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > isab0: at device 7.0 on pci0 > isa0: on isab0 > atapci0: port 0xf000-0xf00f at device 7.1 on > pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > uhci0: port 0xe000-0xe01f irq 11 > at de > vice 7.2 on pci0 > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > Timecounter "PIIX" frequency 3579545 Hz > pci0: at 7.3 (no driver attached) > ahc0: port 0xe400-0xe4ff mem > 0xea000000-0xea00 > 0fff irq 2 at device 8.0 on pci0 > aic7880: Wide Channel A, SCSI Id=7, 16/255 SCBs > pci0: at 11.0 (no driver attached) > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: flags 0x1 irq 1 on atkbdc0 > kbd0 at atkbd0 > ed0 at port 0x300-0x31f iomem 0xd8000 irq 10 drq 0 on isa0 > ed0: address 00:20:18:72:97:67, type NE2000 (16 bit) > fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 > fdc0: FIFO enabled, 8 bytes threshold > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > pmtimer0 on isa0 > ppc0: at port 0x378-0x37f irq 7 on isa0 > ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 16550A > sio1 at port 0x2f8-0x2ff irq 3 on isa0 > sio1: type 16550A > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > unknown: can't assign resources > unknown: can't assign resources > unknown: can't assign resources > unknown: can't assign resources > unknown: can't assign resources > APIC_IO: Testing 8254 interrupt delivery > APIC_IO: routing 8254 via IOAPIC #0 intpin 2 > ad0: 1222MB [2484/16/63] at ata0-master WDMA2 > Waiting 15 seconds for SCSI devices to settle > Mounting root from ufs:/dev/ad0s2a > cd0 at ahc0 bus 0 target 6 lun 0 > cd0: Removable CD-ROM SCSI-2 device > cd0: 10.000MB/s transfers (10.000MHz, offset 8) > cd0: Attempt to query device size failed: NOT READY, Medium not present > da1 at ahc0 bus 0 target 5 lun 0 > da1: Removable Direct Access SCSI-2 device > da1: 3.300MB/s transfers > da1: Attempt to query device size failed: NOT READY, Medium not present > da0 at ahc0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-3 device > da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled > da0: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) > SMP: AP CPU #1 Launched! > > > -- > Bob Bishop (0118) 977 4017 international code +44 118 > rb@gid.co.uk fax (0118) 989 4254 > > > > 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 May 21 1:20:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id F21E537B422; Mon, 21 May 2001 01:20:34 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 21 May 2001 09:20:33 +0100 (BST) To: Dima Dorfman Cc: mheffner@vt.edu, freebsd-current@freebsd.org, alfred@freebsd.org Subject: Re: panic: mutex vm not owned In-reply-to: Your message of "Sun, 20 May 2001 13:29:22 PDT." <20010520202933.847EB3E0B@bazooka.unixfreak.org> X-Request-Do: Date: Mon, 21 May 2001 09:20:31 +0100 From: David Malone Message-ID: <200105210920.aa71413@salmon.maths.tcd.ie> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Please try the attached patch. I make no claims of its correctness, > but this e-mail is coming to you via X on -current updated a few hours > ago so it works here :-). I tried Dima's patch (the one which Alfred has committed) and I get an earlier mutex recursion panic, probably when a local progam that uses shm forks and exits. I scribbled down this trace from it: panic+0x70 _mtx_assert+0x67 lockmgr+0xdc vm_map_remove+0x42 shm_delete_mapping+0xe1 shmexit_myhook+0x29 exit1+0x9eb exit1 So it looks like those routines are sometime called with the mutex already held. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 1:44:25 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 3675A37B424; Mon, 21 May 2001 01:44:17 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 6E9763E28; Mon, 21 May 2001 01:44:16 -0700 (PDT) To: David Malone Cc: mheffner@vt.edu, freebsd-current@freebsd.org, alfred@freebsd.org Subject: Re: panic: mutex vm not owned In-Reply-To: <200105210920.aa71413@salmon.maths.tcd.ie>; from dwmalone@maths.tcd.ie on "Mon, 21 May 2001 09:20:31 +0100" Date: Mon, 21 May 2001 01:44:16 -0700 From: Dima Dorfman Message-Id: <20010521084416.6E9763E28@bazooka.unixfreak.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 David Malone writes: > > Please try the attached patch. I make no claims of its correctness, > > but this e-mail is coming to you via X on -current updated a few hours > > ago so it works here :-). > > I tried Dima's patch (the one which Alfred has committed) and I > get an earlier mutex recursion panic, probably when a local progam > that uses shm forks and exits. I scribbled down this trace from > it: Is there such a program in the base system? > panic+0x70 > _mtx_assert+0x67 > lockmgr+0xdc > vm_map_remove+0x42 > shm_delete_mapping+0xe1 > shmexit_myhook+0x29 > exit1+0x9eb > exit1 > > So it looks like those routines are sometime called with the mutex > already held. exit1 calls shmexit with vm_mtx held on line 228 of kern_exit.c (rev. 1.127). Actually, shmexit_myhook should always be called with vm_mtx held, so shm_delete_mapping can't assume it isn't held. Attached is an untested patch to try to fix this. It's almost 02:00 here and I have to head to bed, but it may work for you. At least it may be a starting point for someone. Hope this helps, Dima Dorfman dima@unixfreak.org Index: sysv_shm.c =================================================================== RCS file: /stl/src/FreeBSD/src/sys/kern/sysv_shm.c,v retrieving revision 1.56 diff -u -r1.56 sysv_shm.c --- sysv_shm.c 2001/05/19 01:28:03 1.56 +++ sysv_shm.c 2001/05/21 08:41:29 @@ -200,6 +206,8 @@ int segnum, result; size_t size; + /* for vm_map_remove */ + mtx_assert(&vm_mtx, MA_OWNED); segnum = IPCID_TO_IX(shmmap_s->shmid); shmseg = &shmsegs[segnum]; size = round_page(shmseg->shm_segsz); @@ -229,6 +237,7 @@ { struct shmmap_state *shmmap_s; int i; + int error; if (!jail_sysvipc_allowed && jailed(p->p_ucred)) return (ENOSYS); @@ -242,7 +251,10 @@ break; if (i == shminfo.shmseg) return EINVAL; - return shm_delete_mapping(p, shmmap_s); + mtx_lock(&vm_mtx); + error = shm_delete_mapping(p, shmmap_s); + mtx_unlock(&vm_mtx); + return error; } #ifndef _SYS_SYSPROTO_H_ @@ -659,6 +671,8 @@ struct shmmap_state *shmmap_s; int i; + /* shm_delete_mappings requires this */ + mtx_assert(&vm_mtx, MA_OWNED); shmmap_s = (struct shmmap_state *)p->p_vmspace->vm_shm; for (i = 0; i < shminfo.shmseg; i++, shmmap_s++) if (shmmap_s->shmid != -1) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 1:53:28 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 762B637B422; Mon, 21 May 2001 01:53:24 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 21 May 2001 09:53:23 +0100 (BST) To: Dima Dorfman Cc: mheffner@vt.edu, freebsd-current@freebsd.org, alfred@freebsd.org Subject: Re: panic: mutex vm not owned In-reply-to: Your message of "Mon, 21 May 2001 01:44:16 PDT." <20010521084416.6E9763E28@bazooka.unixfreak.org> X-Request-Do: Date: Mon, 21 May 2001 09:53:23 +0100 From: David Malone Message-ID: <200105210953.aa74722@salmon.maths.tcd.ie> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I tried Dima's patch (the one which Alfred has committed) and I > > get an earlier mutex recursion panic, probably when a local progam > > that uses shm forks and exits. I scribbled down this trace from > > it: > Is there such a program in the base system? Nope - it's part of a radio refclock for NTP. It doesn't do anything magic though - just shares a shm segement with ntpd and gets times from the serial port. > Attached is an untested patch to try to fix this. It's almost 02:00 > here and I have to head to bed, but it may work for you. At least it > may be a starting point for someone. I won't be able to apply the patch until I get home from work. Should I apply it on top of the other patch? David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 4:24:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from henny.webweaving.org (gate.qubesoft.com [212.113.16.243]) by hub.freebsd.org (Postfix) with ESMTP id C9B3237B43C; Mon, 21 May 2001 04:24:54 -0700 (PDT) (envelope-from n_hibma@qubesoft.com) Received: from localhost (localhost [127.0.0.1]) by henny.webweaving.org (8.11.3/8.11.3) with ESMTP id f4LBOqu94489; Mon, 21 May 2001 12:24:53 +0100 (BST) (envelope-from n_hibma@qubesoft.com) Date: Mon, 21 May 2001 12:24:52 +0100 (BST) From: Nick Hibma X-X-Sender: To: Mike Smith Cc: John Polstra , Subject: Re: GENERIC kernel hangs at boot (uhci-related) In-Reply-To: <200105191902.f4JJ2tK01471@mass.dis.org> Message-ID: <20010521122024.O94091-100000@henny.webweaving.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 > > Could be, and I certainly don't know much about this code. But > > it seems like the driver is being given reason to assume it has a > > working device when it doesn't really have one. I assume the device > > is unusable without its interrupt, so shouldn't it fail at probe or > > attach time? > > Yes, it should. It's not bright enough to do that yet. 'It' in the second case refers to the PCI irq allocation code I presume? An irq that is 0 or 255 is invalid and should not be allocated to a PCI device. But speaking about rev1.32, how would you assign an interrupt as is stated in the log message for rev1.32? Nick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 7: 1:35 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id C2B7837B424; Mon, 21 May 2001 07:01:28 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f4LE1Jk99393; Mon, 21 May 2001 07:01:19 -0700 (PDT) Date: Mon, 21 May 2001 07:01:19 -0700 (PDT) From: David Wolfskill Message-Id: <200105211401.f4LE1Jk99393@bunrab.catwhisker.org> To: bp@freebsd.org, current@freebsd.org, imp@harmony.village.org Subject: -STABLE kernel build broken? Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Seems that perhaps the MFC of some changes to mbuf.h also needed some corresponding changes elsewhere (such as netncp/ncp_rq.c). This is on a system running: FreeBSD dhcp-133.catwhisker.org 4.3-STABLE FreeBSD 4.3-STABLE #20: Sun May 20 06:23:46 PDT 2001 root@dhcp-133.catwhisker.org:/common/S2/obj/usr/src/sys/LAPTOP_30W i386 Tail end of the log: >>> Kernel build for LAPTOP_30W started on Mon May 21 06:25:33 PDT 2001 ... ===> msdos ... ===> ncp ... cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../include -mpreferred-stack-boundary=2 -c /usr/src/sys/modules/ncp/../../netncp/ncp_rq.c /usr/src/sys/modules/ncp/../../netncp/ncp_rq.c:49: conflicting types for `m_getm' @/sys/mbuf.h:572: previous declaration of `m_getm' /usr/src/sys/modules/ncp/../../netncp/ncp_rq.c:49: warning: redundant redeclaration of `m_getm' in same scope @/sys/mbuf.h:572: warning: previous declaration of `m_getm' *** Error code 1 Stop in /usr/src/sys/modules/ncp. *** Error code 1 Stop in /usr/src/sys/modules. *** Error code 1 Stop in /common/S2/obj/usr/src/sys/LAPTOP_30W. *** Error code 1 /usr/src/sys/sys/mbuf.h is: * $FreeBSD: src/sys/sys/mbuf.h,v 1.44.2.9 2001/05/21 07:01:44 bp Exp $ and /usr/src/sys/netncp/ncp_rq.c is: * $FreeBSD: src/sys/netncp/ncp_rq.c,v 1.1 1999/10/02 04:06:17 bp Exp $ (The latter is up to 1.7 in -CURRENT.) Cheers, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 7:15:59 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 5A8E037B422; Mon, 21 May 2001 07:15:49 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4LEFXD09924; Mon, 21 May 2001 17:15:33 +0300 (EEST) (envelope-from ru) Date: Mon, 21 May 2001 17:15:32 +0300 From: Ruslan Ermilov To: David Wolfskill Cc: bp@FreeBSD.ORG, current@FreeBSD.ORG, imp@harmony.village.org Subject: Re: -STABLE kernel build broken? Message-ID: <20010521171532.A8510@sunbay.com> Mail-Followup-To: David Wolfskill , bp@FreeBSD.ORG, current@FreeBSD.ORG, imp@harmony.village.org References: <200105211401.f4LE1Jk99393@bunrab.catwhisker.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105211401.f4LE1Jk99393@bunrab.catwhisker.org>; from david@catwhisker.org on Mon, May 21, 2001 at 07:01:19AM -0700 Sender: owner-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, May 21, 2001 at 07:01:19AM -0700, David Wolfskill wrote: > Seems that perhaps the MFC of some changes to mbuf.h also needed some > corresponding changes elsewhere (such as netncp/ncp_rq.c). > > This is on a system running: > FreeBSD dhcp-133.catwhisker.org 4.3-STABLE FreeBSD 4.3-STABLE #20: Sun May 20 06:23:46 PDT 2001 root@dhcp-133.catwhisker.org:/common/S2/obj/usr/src/sys/LAPTOP_30W i386 > > Tail end of the log: > > >>> Kernel build for LAPTOP_30W started on Mon May 21 06:25:33 PDT 2001 > ... > ===> msdos > ... > ===> ncp > ... > cc -O -pipe -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../include -mpreferred-stack-boundary=2 -c /usr/src/sys/modules/ncp/../../netncp/ncp_rq.c > /usr/src/sys/modules/ncp/../../netncp/ncp_rq.c:49: conflicting types for `m_getm' > @/sys/mbuf.h:572: previous declaration of `m_getm' > /usr/src/sys/modules/ncp/../../netncp/ncp_rq.c:49: warning: redundant redeclaration of `m_getm' in same scope > @/sys/mbuf.h:572: warning: previous declaration of `m_getm' > *** Error code 1 > > Stop in /usr/src/sys/modules/ncp. > *** Error code 1 > > Stop in /usr/src/sys/modules. > *** Error code 1 > > Stop in /common/S2/obj/usr/src/sys/LAPTOP_30W. > *** Error code 1 > > > /usr/src/sys/sys/mbuf.h is: > * $FreeBSD: src/sys/sys/mbuf.h,v 1.44.2.9 2001/05/21 07:01:44 bp Exp $ > > and /usr/src/sys/netncp/ncp_rq.c is: > * $FreeBSD: src/sys/netncp/ncp_rq.c,v 1.1 1999/10/02 04:06:17 bp Exp $ > > (The latter is up to 1.7 in -CURRENT.) > 1.3 without M_WAIT -> M_TRYWAIT should work. -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 7:50:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id 7A5EF37B422; Mon, 21 May 2001 07:50:18 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f4LEo9u99496; Mon, 21 May 2001 07:50:09 -0700 (PDT) Date: Mon, 21 May 2001 07:50:09 -0700 (PDT) From: David Wolfskill Message-Id: <200105211450.f4LEo9u99496@bunrab.catwhisker.org> To: ru@FreeBSD.ORG Subject: Re: -STABLE kernel build broken? Cc: bp@FreeBSD.ORG, current@FreeBSD.ORG, imp@harmony.village.org In-Reply-To: <20010521171532.A8510@sunbay.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Date: Mon, 21 May 2001 17:15:32 +0300 >From: Ruslan Ermilov [I note that I included -current by mistake; I had intended to include -stable. But since the thread has started.... dhw] >On Mon, May 21, 2001 at 07:01:19AM -0700, David Wolfskill wrote: >> Seems that perhaps the MFC of some changes to mbuf.h also needed some >> corresponding changes elsewhere (such as netncp/ncp_rq.c). >> /usr/src/sys/sys/mbuf.h is: >> * $FreeBSD: src/sys/sys/mbuf.h,v 1.44.2.9 2001/05/21 07:01:44 bp Exp $ >> and /usr/src/sys/netncp/ncp_rq.c is: >> * $FreeBSD: src/sys/netncp/ncp_rq.c,v 1.1 1999/10/02 04:06:17 bp Exp $ >> (The latter is up to 1.7 in -CURRENT.) >1.3 without M_WAIT -> M_TRYWAIT should work. OK; I extracted 1.3 & tried it, when that broke, I figured out what you meant by "without M_WAIT -> M_TRYWAIT", and did a global change ("%s/M_TRYWAIT/M_WAIT/g", for other vi-speakers). And that worked; kernel built & installed, and I'm installing the world at the moment. Thanks, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 8:26:48 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id F363E37B42C for ; Mon, 21 May 2001 08:26:42 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4LFQeP18394 for current@FreeBSD.org; Mon, 21 May 2001 18:26:40 +0300 (EEST) (envelope-from ru) Date: Mon, 21 May 2001 18:26:40 +0300 From: Ruslan Ermilov To: current@FreeBSD.org Subject: __FreeBSD_version and -CURRENT Message-ID: <20010521182640.A18207@sunbay.com> Mail-Followup-To: current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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! Is there any sense at all in bumping __FreeBSD_version in -CURRENT? (I would have liked to see FreeBSD 5.0-RELEASE go with 500000.) Cheers, -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 8:42: 1 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 1385437B424; Mon, 21 May 2001 08:41:42 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4LFfck20097; Mon, 21 May 2001 18:41:38 +0300 (EEST) (envelope-from ru) Date: Mon, 21 May 2001 18:41:38 +0300 From: Ruslan Ermilov To: arch@FreeBSD.org, fs@FreeBSD.org Cc: Boris Popov Subject: [CFR] /sys/miscfs/* -> /sys/fs/ Message-ID: <20010521184138.A19159@sunbay.com> Mail-Followup-To: arch@FreeBSD.org, fs@FreeBSD.org, Boris Popov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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 below patch moves /sys/miscfs/* to /sys/fs. Also, it installs missing headers to /usr/include and removes explicit -I${.CURDIR}/../../sys lines from various Makefiles. For testers: the patch assumes that the repo-copy of /sys/miscfs/* to /sys/fs has already been made, so you will also need to (cd /sys; mv miscfs/* fs) before applying the patch. The patch is available from here: http://www.FreeBSD.org/~ru/miscfs2fs.patch Cheers, -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 10:59:26 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id A79A637B43F; Mon, 21 May 2001 10:59:08 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4LHwiG45078; Mon, 21 May 2001 10:58:45 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3B05E8BE.8AE0CD29@camtech.net.au> Date: Mon, 21 May 2001 10:58:50 -0700 (PDT) From: John Baldwin To: Matthew Thyer Subject: Re: background fsck Cc: chris@aims.com.au, mckusick@FreeBSD.org, current@FreeBSD.org, Jason Evans Sender: owner-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 19-May-01 Matthew Thyer wrote: > Is it possible that background fsck is not the culprit here ? I think > this may be fallout from the dirpref changes as Chris Knight recently > emailed in <018b01c0c496$07ed13d0$020aa8c0@aims.private>. The solution > is to unmount all your filesystems, fsck them and then use tunefs with > -A to change something so that all superblock backups will be updated. > > Does this sound likely ? > > Jason Evans wrote: >> >> I had exactly the same thing happen to /var on an SMP test box using >> -current as of 16 May. It happened once out of about a half dozen panics. >> >> Jason My instances at least are not the result of dirpref, as my laptop tracks -current very closely and I navigated the dirpref waters a while back. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 May 21 12:29: 4 2001 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 821) id DB54337B43C; Mon, 21 May 2001 12:29:01 -0700 (PDT) Date: Mon, 21 May 2001 12:29:01 -0700 From: "John W. De Boskey" To: Current List Subject: Minor read.2 (readv) doc update w/patch Message-ID: <20010521122901.A42742@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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 ran into a minor error in the doc for readv. I double checked the kernel code and it checks against UIO_MAXIOV. writev.2 is correct. -john Index: read.2 =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/read.2,v retrieving revision 1.11 diff -u -r1.11 read.2 --- read.2 2000/06/23 05:05:44 1.11 +++ read.2 2001/05/21 19:18:38 @@ -207,7 +207,8 @@ .Bl -tag -width Er .It Bq Er EINVAL .Fa Iovcnt -was less than or equal to 0, or greater than 16. +was less than or equal to 0, or greater than +.Dv UIO_MAXIOV . .It Bq Er EINVAL One of the .Fa iov_len To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 12:54:31 2001 Delivered-To: freebsd-current@freebsd.org Received: from casimir.physics.purdue.edu (casimir.physics.purdue.edu [128.210.146.111]) by hub.freebsd.org (Postfix) with ESMTP id 5537237B42C; Mon, 21 May 2001 12:54:21 -0700 (PDT) (envelope-from will@physics.purdue.edu) Received: by casimir.physics.purdue.edu (Postfix, from userid 1000) id EADD318A50; Mon, 21 May 2001 14:48:53 -0500 (EST) Date: Mon, 21 May 2001 14:48:53 -0500 From: Will Andrews To: The Unicorn Cc: cvs-committers@FreeBSD.org, ports@FreeBSD.org Subject: Re: cvsup trouble Message-ID: <20010521144853.E19376@casimir.physics.purdue.edu> Reply-To: Will Andrews Mail-Followup-To: Will Andrews , The Unicorn , cvs-committers@FreeBSD.org, ports@FreeBSD.org References: <20010521214919.A31941@unicorn.blackhats.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <20010521214919.A31941@unicorn.blackhats.org>; from unicorn@blackhats.org on Mon, May 21, 2001 at 09:49:19PM +0200 X-Operating-System: Linux 2.2.18 sparc64 Sender: owner-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, May 21, 2001 at 09:49:19PM +0200, The Unicorn wrote: > Delete ports/www/jakarta-tomcat/files > Updater failed: Cannot delete "/usr/ports/www/jakarta-tomcat/files": Directory not empty As posted before: rm -rf /usr/ports/www/jakarta-tomcat re-cvsup -- wca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 13: 4:43 2001 Delivered-To: freebsd-current@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id B1DC437B422; Mon, 21 May 2001 13:04:38 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.3/8.11.3) with ESMTP id f4LKCL901459; Mon, 21 May 2001 13:12:21 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200105212012.f4LKCL901459@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Nick Hibma Cc: Mike Smith , John Polstra , current@FreeBSD.ORG Subject: Re: GENERIC kernel hangs at boot (uhci-related) In-reply-to: Your message of "Mon, 21 May 2001 12:24:52 BST." <20010521122024.O94091-100000@henny.webweaving.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 21 May 2001 13:12:21 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > > Could be, and I certainly don't know much about this code. But > > > it seems like the driver is being given reason to assume it has a > > > working device when it doesn't really have one. I assume the device > > > is unusable without its interrupt, so shouldn't it fail at probe or > > > attach time? > > > > Yes, it should. It's not bright enough to do that yet. > > 'It' in the second case refers to the PCI irq allocation code I presume? No, the UHCI driver. It makes a number of assumptions about the state of the controller, and fails (messily) when these aren't met. > An irq that is 0 or 255 is invalid and should not be allocated to a PCI > device. But speaking about rev1.32, how would you assign an interrupt as > is stated in the log message for rev1.32? That's platform-specific; in the PC case, we ask the BIOS for interrupt routing information. On the Alpha, we know what the interrupt routing strategy is ourselves. The bottom line is this; in your driver, ask for the resources that you need. If you don't get them, you fail. The PCI bus infrastructure is being worked on to improve your chances of getting these resources; it's not something that a driver writer should be worrying about per se. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 13:17: 5 2001 Delivered-To: freebsd-current@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 41D3537B422; Mon, 21 May 2001 13:17:03 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.3/8.11.3) with ESMTP id f4LKOn901633; Mon, 21 May 2001 13:24:49 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200105212024.f4LKOn901633@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Mike Smith Cc: current@freebsd.org Subject: Re: GENERIC kernel hangs at boot (uhci-related) In-reply-to: Your message of "Mon, 21 May 2001 13:12:21 PDT." <200105212012.f4LKCL901459@mass.dis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 21 May 2001 13:24:49 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > The bottom line is this; in your driver, ask for the resources that you > need. If you don't get them, you fail. The PCI bus infrastructure is > being worked on to improve your chances of getting these resources; it's > not something that a driver writer should be worrying about per se. And I should probably have added; the assumptions you can make about the state of your device are very few. There is a *very* good chance that your device will *just* have been powered up, and had the BARs set to something sane. That's it. You should not make any assumptions about setup done by the BIOS, firmware, etc. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 13:37:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 7C8AD37B422; Mon, 21 May 2001 13:37:16 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 21 May 2001 21:37:15 +0100 (BST) Date: Mon, 21 May 2001 21:37:14 +0100 From: David Malone To: Dima Dorfman Cc: mheffner@vt.edu, freebsd-current@freebsd.org, alfred@freebsd.org Subject: Re: panic: mutex vm not owned Message-ID: <20010521213714.A54189@walton.maths.tcd.ie> References: <200105210920.aa71413@salmon.maths.tcd.ie> <20010521084416.6E9763E28@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010521084416.6E9763E28@bazooka.unixfreak.org>; from dima@unixfreak.org on Mon, May 21, 2001 at 01:44:16AM -0700 Sender: owner-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, May 21, 2001 at 01:44:16AM -0700, Dima Dorfman wrote: > exit1 calls shmexit with vm_mtx held on line 228 of kern_exit.c > (rev. 1.127). Actually, shmexit_myhook should always be called with > vm_mtx held, so shm_delete_mapping can't assume it isn't held. The following seems to work. It's basically your patch, but it removes the patch which was originally committed, adds an extra assert, expands on one comment and grabs a mutex in one place it seemed to be needed after removing the others. David. Index: sysv_shm.c =================================================================== RCS file: /cvs/FreeBSD-CVS/src/sys/kern/sysv_shm.c,v retrieving revision 1.58 diff -u -r1.58 sysv_shm.c --- sysv_shm.c 2001/05/21 18:52:02 1.58 +++ sysv_shm.c 2001/05/21 20:24:03 @@ -181,10 +181,10 @@ struct shm_handle *shm_handle; size_t size; + /* for vm_object_deallocate */ + mtx_assert(&vm_mtx, MA_OWNED); shm_handle = shmseg->shm_internal; - mtx_lock(&vm_mtx); vm_object_deallocate(shm_handle->shm_object); - mtx_unlock(&vm_mtx); free((caddr_t)shm_handle, M_SHM); shmseg->shm_internal = NULL; size = round_page(shmseg->shm_segsz); @@ -202,12 +202,12 @@ int segnum, result; size_t size; + /* for vm_map_remove and shm_deallocate_segment */ + mtx_assert(&vm_mtx, MA_OWNED); segnum = IPCID_TO_IX(shmmap_s->shmid); shmseg = &shmsegs[segnum]; size = round_page(shmseg->shm_segsz); - mtx_lock(&vm_mtx); result = vm_map_remove(&p->p_vmspace->vm_map, shmmap_s->va, shmmap_s->va + size); - mtx_unlock(&vm_mtx); if (result != KERN_SUCCESS) return EINVAL; shmmap_s->shmid = -1; @@ -233,6 +233,7 @@ { struct shmmap_state *shmmap_s; int i; + int error; if (!jail_sysvipc_allowed && jailed(p->p_ucred)) return (ENOSYS); @@ -246,7 +247,10 @@ break; if (i == shminfo.shmseg) return EINVAL; - return shm_delete_mapping(p, shmmap_s); + mtx_lock(&vm_mtx); + error = shm_delete_mapping(p, shmmap_s); + mtx_unlock(&vm_mtx); + return error; } #ifndef _SYS_SYSPROTO_H_ @@ -455,7 +459,9 @@ shmseg->shm_perm.key = IPC_PRIVATE; shmseg->shm_perm.mode |= SHMSEG_REMOVED; if (shmseg->shm_nattch <= 0) { + mtx_lock(&vm_mtx); shm_deallocate_segment(shmseg); + mtx_unlock(&vm_mtx); shm_last_free = IPCID_TO_IX(uap->shmid); } break; @@ -663,6 +669,8 @@ struct shmmap_state *shmmap_s; int i; + /* shm_delete_mappings requires this */ + mtx_assert(&vm_mtx, MA_OWNED); shmmap_s = (struct shmmap_state *)p->p_vmspace->vm_shm; for (i = 0; i < shminfo.shmseg; i++, shmmap_s++) if (shmmap_s->shmid != -1) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 13:43:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from henny.webweaving.org (gate.qubesoft.com [212.113.16.243]) by hub.freebsd.org (Postfix) with ESMTP id 6B88C37B424; Mon, 21 May 2001 13:43:11 -0700 (PDT) (envelope-from n_hibma@FreeBSD.ORG) Received: from localhost (localhost [127.0.0.1]) by henny.webweaving.org (8.11.3/8.11.3) with ESMTP id f4LKh5u00811; Mon, 21 May 2001 21:43:06 +0100 (BST) (envelope-from n_hibma@FreeBSD.ORG) Date: Mon, 21 May 2001 21:43:05 +0100 (BST) From: X-X-Sender: To: Mike Smith Cc: Subject: Re: GENERIC kernel hangs at boot (uhci-related) In-Reply-To: <200105212024.f4LKOn901633@mass.dis.org> Message-ID: <20010521213701.H665-100000@henny.webweaving.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 The reason it is failing is that the assigned IRQ is 0 or 255. If I can't assume that that setup is done, I might as well start implementing PCI resource allocation, because that is what is missing here. The problem is not that the PCI device is not initialised, but that the device is assigned a bogus irq (0/255) by the BIOS. It is allocated and setup correctly as far as I can see from other PCI drivers. But then it never fires, which is correct, because there is no such thing as irq 0 or 255. And that's were the driver freezes, waiting for an interrupt that never comes and never times out or at least times out very slowly. What John Polstra is suggesting is to check for these bogus values and reject the device such that the boot will complete. Or am I misunderstanding you completely, Mike? Nick > > The bottom line is this; in your driver, ask for the resources that you > > need. If you don't get them, you fail. The PCI bus infrastructure is > > being worked on to improve your chances of getting these resources; it's > > not something that a driver writer should be worrying about per se. > > And I should probably have added; the assumptions you can make about the > state of your device are very few. There is a *very* good chance that > your device will *just* have been powered up, and had the BARs set to > something sane. That's it. You should not make any assumptions about > setup done by the BIOS, firmware, etc. > > -- > ... every activity meets with opposition, everyone who acts has his > rivals and unfortunately opponents also. But not because people want > to be opponents, rather because the tasks and relationships force > people to take different points of view. [Dr. Fritz Todt] > V I C T O R Y N O T V E N G E A N C E > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > -- The USB for FreeBSD project. n_hibma@FreeBSD.ORG http://www.etla.net/~n_hibma/usb/usb.pl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 15:33: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-9.dsl.lsan03.pacbell.net [63.207.60.9]) by hub.freebsd.org (Postfix) with ESMTP id 9439237B422; Mon, 21 May 2001 15:33:01 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 97F3A66E2F; Mon, 21 May 2001 15:32:57 -0700 (PDT) Date: Mon, 21 May 2001 15:32:57 -0700 From: Kris Kennaway To: Ruslan Ermilov Cc: current@FreeBSD.ORG Subject: Re: __FreeBSD_version and -CURRENT Message-ID: <20010521153257.D4731@xor.obsecurity.org> References: <20010521182640.A18207@sunbay.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="9UV9rz0O2dU/yYYn" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010521182640.A18207@sunbay.com>; from ru@FreeBSD.ORG on Mon, May 21, 2001 at 06:26:40PM +0300 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --9UV9rz0O2dU/yYYn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 21, 2001 at 06:26:40PM +0300, Ruslan Ermilov wrote: > Hi! >=20 > Is there any sense at all in bumping __FreeBSD_version in -CURRENT? > (I would have liked to see FreeBSD 5.0-RELEASE go with 500000.) I think so :-) We need the ability to feature test. Kris --9UV9rz0O2dU/yYYn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7CZeYWry0BWjoQKURAgtfAKCMP5UQhpvZai2XrSDLaPd2licwLgCg2JTo WXyv3ir7i24+beiKE+xBx/I= =FCni -----END PGP SIGNATURE----- --9UV9rz0O2dU/yYYn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 17: 1:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 88A6C37B43E; Mon, 21 May 2001 17:01:39 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 35B763E0B; Mon, 21 May 2001 17:01:39 -0700 (PDT) To: David Malone Cc: freebsd-current@freebsd.org, alfred@freebsd.org Subject: Re: panic: mutex vm not owned In-Reply-To: <20010521213714.A54189@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on "Mon, 21 May 2001 21:37:14 +0100" Date: Mon, 21 May 2001 17:01:39 -0700 From: Dima Dorfman Message-Id: <20010522000139.35B763E0B@bazooka.unixfreak.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 David Malone writes: > On Mon, May 21, 2001 at 01:44:16AM -0700, Dima Dorfman wrote: > > > exit1 calls shmexit with vm_mtx held on line 228 of kern_exit.c > > (rev. 1.127). Actually, shmexit_myhook should always be called with > > vm_mtx held, so shm_delete_mapping can't assume it isn't held. > > The following seems to work. It's basically your patch, but it > removes the patch which was originally committed, adds an extra > assert, expands on one comment and grabs a mutex in one place > it seemed to be needed after removing the others. Great! I can confirm that this works for me. Alfred, any objections to me or David committing this? > + /* shm_delete_mappings requires this */ > + mtx_assert(&vm_mtx, MA_OWNED); That should be 'shm_delete_mapping'; no 's'. That's my fault. Thanks, Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 18: 4:34 2001 Delivered-To: freebsd-current@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id CFC4537B422 for ; Mon, 21 May 2001 18:04:31 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f4M14Go05204; Mon, 21 May 2001 21:04:16 -0400 (EDT) Date: Mon, 21 May 2001 21:04:15 -0400 From: Alfred Perlstein To: Dima Dorfman Cc: David Malone , freebsd-current@freebsd.org Subject: Re: panic: mutex vm not owned Message-ID: <20010521210415.K17514@superconductor.rush.net> References: <20010521213714.A54189@walton.maths.tcd.ie> <20010522000139.35B763E0B@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <20010522000139.35B763E0B@bazooka.unixfreak.org>; from dima@unixfreak.org on Mon, May 21, 2001 at 05:01:39PM -0700 X-all-your-base: are belong to us. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Dima Dorfman [010521 20:02] wrote: > David Malone writes: > > On Mon, May 21, 2001 at 01:44:16AM -0700, Dima Dorfman wrote: > > > > > exit1 calls shmexit with vm_mtx held on line 228 of kern_exit.c > > > (rev. 1.127). Actually, shmexit_myhook should always be called with > > > vm_mtx held, so shm_delete_mapping can't assume it isn't held. > > > > The following seems to work. It's basically your patch, but it > > removes the patch which was originally committed, adds an extra > > assert, expands on one comment and grabs a mutex in one place > > it seemed to be needed after removing the others. > > Great! I can confirm that this works for me. Alfred, any objections > to me or David committing this? I'd like to see the issues cleared up asap, if you have a delta please go ahead and commit it, just make sure you toss me a headsup about it either pre- or post- patch. Thanks for taking the time to do this. -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 19:58: 0 2001 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 81B4C37B446 for ; Mon, 21 May 2001 19:57:57 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.1) with ESMTP id f4M2vr042119; Mon, 21 May 2001 19:57:53 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.3/8.11.0) id f4M2vqK03484; Mon, 21 May 2001 19:57:52 -0700 (PDT) (envelope-from jdp) Date: Mon, 21 May 2001 19:57:52 -0700 (PDT) Message-Id: <200105220257.f4M2vqK03484@vashon.polstra.com> To: current@freebsd.org From: John Polstra Cc: kris@obsecurity.org Subject: Re: __FreeBSD_version and -CURRENT In-Reply-To: <20010521153257.D4731@xor.obsecurity.org> References: <20010521182640.A18207@sunbay.com> <20010521153257.D4731@xor.obsecurity.org> Organization: Polstra & Co., Seattle, WA Sender: owner-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 <20010521153257.D4731@xor.obsecurity.org>, Kris Kennaway wrote: > On Mon, May 21, 2001 at 06:26:40PM +0300, Ruslan Ermilov wrote: > > Is there any sense at all in bumping __FreeBSD_version in -CURRENT? > > (I would have liked to see FreeBSD 5.0-RELEASE go with 500000.) > > I think so :-) We need the ability to feature test. I think so too. It makes it possible to create ports that work with between-release versions of -current. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 22: 7:40 2001 Delivered-To: freebsd-current@freebsd.org Received: from isbalham.ist.co.uk (isbalham.ist.co.uk [192.31.26.1]) by hub.freebsd.org (Postfix) with ESMTP id 7EFC237B422; Mon, 21 May 2001 22:07:36 -0700 (PDT) (envelope-from rb@gid.co.uk) Received: (from uucp@localhost) by isbalham.ist.co.uk (8.11.1/8.11.1) with UUCP id f4M57QX54757; Tue, 22 May 2001 06:07:26 +0100 (BST) (envelope-from rb@gid.co.uk) Received: from [194.32.164.2] (eccles [194.32.164.2]) by seagoon.gid.co.uk (8.9.3/8.9.3) with ESMTP id FAA18443; Tue, 22 May 2001 05:54:31 +0100 (BST) (envelope-from rb@gid.co.uk) X-Sender: rb@194.32.164.1 Message-Id: In-Reply-To: <20010521213714.A54189@walton.maths.tcd.ie> References: <20010521084416.6E9763E28@bazooka.unixfreak.org>; from dima@unixfreak.org on Mon, May 21, 2001 at 01:44:16AM -0700 <200105210920.aa71413@salmon.maths.tcd.ie> <20010521084416.6E9763E28@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 22 May 2001 05:54:31 +0100 To: freebsd-current@FreeBSD.ORG From: Bob Bishop Subject: Re: panic: mutex vm not owned Cc: Dima Dorfman , mheffner@vt.edu, David Malone , alfred@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, I've seem to have the swap-related variety of this one: panic: mutex vm not owned at ../../vm/vm_page.h:328 ...from a kernel cvsup approx 0300 GMT on Sunday. But I'm surprised. This box has 128MB and will rarely swap building world (which is what it was doing). The only other oddity is that it had just had a brief "not responding...alive again" episode with the NFS server dishing up sources. Anyway, here's the abridged backtrace from DDB: panic() _mtx_assert() swp_pager_async_iodone() bufdone() bufdonebio() ad_interrupt() ata_intr() ithread_loop() fork_exit() fork_trampoline() I'll keep the box in DDB for a bit in case anyone wants more info, so dmesg not available right now but it's a pretty unremarkable configuration running GENERIC. -- Bob Bishop (0118) 977 4017 international code +44 118 rb@gid.co.uk fax (0118) 989 4254 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 22:35:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from isbalham.ist.co.uk (isbalham.ist.co.uk [192.31.26.1]) by hub.freebsd.org (Postfix) with ESMTP id E7A7437B422; Mon, 21 May 2001 22:35:12 -0700 (PDT) (envelope-from rb@gid.co.uk) Received: (from uucp@localhost) by isbalham.ist.co.uk (8.11.1/8.11.1) with UUCP id f4M5ZBk54911; Tue, 22 May 2001 06:35:11 +0100 (BST) (envelope-from rb@gid.co.uk) Received: from [194.32.164.2] (eccles [194.32.164.2]) by seagoon.gid.co.uk (8.9.3/8.9.3) with ESMTP id GAA18677; Tue, 22 May 2001 06:10:03 +0100 (BST) (envelope-from rb@gid.co.uk) X-Sender: rb@194.32.164.1 Message-Id: In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 22 May 2001 06:10:03 +0100 To: current@FreeBSD.org From: Bob Bishop Subject: trap 12: page fault in kernel mode (was: panic: workitem_free: still on list) Cc: Robert Watson Sender: owner-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, This is the same box which had the "panic: workitem_free: still on list" and this looks related, except this time it went down with a kernel trap type 12 in worklist_remove() kernel cvsup approx 0300 GMT on Sunday. DDB says: worklist_remove(deadc0de) free_diradd(deadc0de) <---------- NB free_newdirblk() handle_written_inodeblock() softdep_disk_write_complete() bufdone() bufdonebio() dadone() camisr() ithread_loop() fork_exit() fork_trampoline() I'll keep her in DDB for a bit in case anyone wants more info. -- Bob Bishop (0118) 977 4017 international code +44 118 rb@gid.co.uk fax (0118) 989 4254 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon May 21 22:38:49 2001 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 4790537B424; Mon, 21 May 2001 22:38:44 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f4M5cZL67529; Tue, 22 May 2001 07:38:35 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: current@freebsd.org, audit@freebsd.org Subject: devfs patch for deleted devices handling From: Poul-Henning Kamp Date: Tue, 22 May 2001 07:38:35 +0200 Message-ID: <67527.990509915@critter> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://phk.freebsd.dk/patch/devfs.patch 20010522 devfs.patch This patch changes the way deletes are managed in DEVFS. This fixes a number of warnings relating to removed cloned devices. It also makes it possible to recreate deleted devices with mknod(2). The major/minor arguments are ignored. -- 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 May 21 23:37:33 2001 Delivered-To: freebsd-current@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (cvsup2.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id 22C1337B43C; Mon, 21 May 2001 23:37:28 -0700 (PDT) (envelope-from tanimura@r.dl.itc.u-tokyo.ac.jp) Received: from rina.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by rina.r.dl.itc.u-tokyo.ac.jp (8.11.3+3.4W/3.7W-rina.r-20010412) with ESMTP id f4M6bDD40713 ; Tue, 22 May 2001 15:37:14 +0900 (JST) Message-Id: <200105220637.f4M6bDD40713@rina.r.dl.itc.u-tokyo.ac.jp> Date: Tue, 22 May 2001 15:37:13 +0900 From: Seigo Tanimura To: jhb@FreeBSD.org Subject: New strategy of locking a process group Cc: current@FreeBSD.org, Seigo Tanimura User-Agent: Wanderlust/1.1.1 (Purple Rain) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Digital Library Research Division, Information Techinology Centre, The University of Tokyo MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") 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 For now, p_mtx protects p_pgrp in struct proc. This is quite troublesome for the following reason: In some cases, we grab a p_pgrp via struct proc in order to, say, access the session information of the process group. In other cases, we traverse the members of a process group in order to, say, send a signal to the process group. Those cases imply that it is likely to end up with lock order reversal if we adopt p_mtx to protect a process group. The lock of process groups should hence not in a certain struct but global. Although proc.h suggests locking by proctree_lock, it is actually not a good candidate of the process group lock because the hierarchy of processes does not affect the process group membership of a process provided that security constraints satisfy. I have thus introduced a new sx lock, pgrpsess_lock to protect data regarding process groups, namely the following ones: global: pgrphashtbl struct proc: p_pglist, p_pgrp struct pgrp: pg_hash, pg_members, pg_session pg_session is here for the case where we attempt to confirm whether two processes or process groups belong to an identical session, eg: if (p->p_session == curproc->p_session) {...} The lock order of pgrpsess_lock is between proctree_lock and p_mtx for now. The major impact of pgrpsess_lock is that you must slock pgrpsess_lock to call psignal() and issignal() (not only pgsignal()!) because both of them may read the data of a process group. We may also have to introduce something like pfind_lockpgrp(), which locks pgrpsess_lock upon returning. This eliminates a sequence of PROC_UNLOCK() - sx_slock(&pgrpsess_lock) - PROC_LOCK() to avoid unlocking a process. Implementation of pgrpsess_lock is almost finished. The rest of the work includes protection of the members in struct pgrp and session not covered by pgrpsess_lock. -- Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 0:39:43 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 403F137B424; Tue, 22 May 2001 00:39:40 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4M7cnG55699; Tue, 22 May 2001 00:38:49 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 22 May 2001 00:39:02 -0700 (PDT) From: John Baldwin To: Bob Bishop Subject: Re: panic: mutex vm not owned Cc: alfred@FreeBSD.org, David Malone , mheffner@vt.edu, Dima Dorfman , freebsd-current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 22-May-01 Bob Bishop wrote: > Hi, > > I've seem to have the swap-related variety of this one: > > panic: mutex vm not owned at ../../vm/vm_page.h:328 > > ...from a kernel cvsup approx 0300 GMT on Sunday. > > But I'm surprised. This box has 128MB and will rarely swap building world > (which is what it was doing). The only other oddity is that it had just had > a brief "not responding...alive again" episode with the NFS server dishing > up sources. > > Anyway, here's the abridged backtrace from DDB: > > panic() > _mtx_assert() > swp_pager_async_iodone() > bufdone() > bufdonebio() > ad_interrupt() > ata_intr() > ithread_loop() > fork_exit() > fork_trampoline() > > I'll keep the box in DDB for a bit in case anyone wants more info, so dmesg > not available right now but it's a pretty unremarkable configuration > running GENERIC. The problem here is that swp_pager_*_iodone don't need to assume that the vm_mtx is held when they are called, but need to get it themselves since they are used as bio_done methods in struct bio. I've got this fixed in some untested patches on my laptop. I need to finish my first pass over the original commit and start testing things before I commit too much though. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Tue May 22 1:43:22 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.webjockey.net (mail.webjockey.net [208.141.46.3]) by hub.freebsd.org (Postfix) with ESMTP id 3428A37B422 for ; Tue, 22 May 2001 01:43:20 -0700 (PDT) (envelope-from ancient@outloud.org) Received: from Dragon.outloud.org (Goal@House.Of.Pain.Com [24.14.88.149]) by mail.webjockey.net (8.11.3/8.11.3) with ESMTP id f4M8hJB81810 for ; Tue, 22 May 2001 03:43:19 -0500 (EST) (envelope-from ancient@outloud.org) Message-Id: <5.1.0.14.2.20010522034101.00a71678@208.141.46.12> X-Sender: ancient@208.141.46.12 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 22 May 2001 03:42:08 -0500 To: current@freebsd.org From: Storms of Perfection Subject: world broken Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Latest CVS (about 30 minutes ago) In file included from /usr/src/sbin/vinum/v.c:57: /usr/src/sbin/vinum/vext.h:77: dev/vinum/vinumutil.h: No such file or directory In file included from /usr/src/sbin/vinum/list.c:59: /usr/src/sbin/vinum/vext.h:77: dev/vinum/vinumutil.h: No such file or directory In file included from /usr/src/sbin/vinum/../../sys/dev/vinum/vinumutil.c:44: /usr/src/sbin/vinum/../../sys/dev/vinum/vinumhdr.h:78: dev/vinum/vinumutil.h: No such file or directory In file included from /usr/src/sbin/vinum/commands.c:56: /usr/src/sbin/vinum/vext.h:77: dev/vinum/vinumutil.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/src/sbin/vinum. *** Error code 1 Stop in /usr/src/sbin. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 2: 2:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 2A93437B422 for ; Tue, 22 May 2001 02:02:19 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id D31B86ACBC; Tue, 22 May 2001 18:32:16 +0930 (CST) Date: Tue, 22 May 2001 18:32:16 +0930 From: Greg Lehey To: Storms of Perfection Cc: current@freebsd.org Subject: Re: world broken Message-ID: <20010522183216.L9282@wantadilla.lemis.com> References: <5.1.0.14.2.20010522034101.00a71678@208.141.46.12> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.2.20010522034101.00a71678@208.141.46.12>; from ancient@outloud.org on Tue, May 22, 2001 at 03:42:08AM -0500 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-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, 22 May 2001 at 3:42:08 -0500, Storms of Perfection wrote: > Latest CVS (about 30 minutes ago) > > In file included from /usr/src/sbin/vinum/commands.c:56: > /usr/src/sbin/vinum/vext.h:77: dev/vinum/vinumutil.h: No such file or directory > mkdep: compile failed > *** Error code 1 Did you update that part of the tree? I haven't changed that file, and the repo on freefall shows that it's there. What happens if you try building in sys/modules/vinum? Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 2:44:33 2001 Delivered-To: freebsd-current@freebsd.org Received: from shutdown.com (adsl-151-202-29-28.nyc.adsl.bellatlantic.net [151.202.29.28]) by hub.freebsd.org (Postfix) with SMTP id EAE9D37B422 for ; Tue, 22 May 2001 02:44:25 -0700 (PDT) (envelope-from j@shutdown.com) From: "John" To: Subject: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 22 May 2001 04:23:51 -0700 Reply-To: "John" Content-Transfer-Encoding: 8bit Message-Id: <20010522094426.EAE9D37B422@hub.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 Hey there, I found a great retail site with all kinds of products. Home decor, office decor, travel, outdoors, kitchen, etc... Take a look around at http://www.merchandisewholesale.com just click on the images of the product to enlarge it for a better view. Sincerely, John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 4:48:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 5450237B43C for ; Tue, 22 May 2001 04:48:50 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4MBmdG58569; Tue, 22 May 2001 04:48:39 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200105220637.f4M6bDD40713@rina.r.dl.itc.u-tokyo.ac.jp> Date: Tue, 22 May 2001 04:48:38 -0700 (PDT) From: John Baldwin To: Seigo Tanimura Subject: RE: New strategy of locking a process group 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 22-May-01 Seigo Tanimura wrote: > For now, p_mtx protects p_pgrp in struct proc. This is quite > troublesome for the following reason: Err, it doesn't really. It's mostly undecided at this point. Also, have you looked at the BSD/OS code on builder? They have process groups and sessions already locked not using global locks but using per-data structure locks. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Tue May 22 5:58:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (cvsup2.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id 7759137B42C; Tue, 22 May 2001 05:58:12 -0700 (PDT) (envelope-from tanimura@r.dl.itc.u-tokyo.ac.jp) Received: from rina.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by rina.r.dl.itc.u-tokyo.ac.jp (8.11.3+3.4W/3.7W-rina.r-20010412) with ESMTP id f4MCwAD85296 ; Tue, 22 May 2001 21:58:10 +0900 (JST) Message-Id: <200105221258.f4MCwAD85296@rina.r.dl.itc.u-tokyo.ac.jp> Date: Tue, 22 May 2001 21:58:10 +0900 From: Seigo Tanimura To: jhb@FreeBSD.org Cc: tanimura@r.dl.itc.u-tokyo.ac.jp, current@FreeBSD.org Subject: RE: New strategy of locking a process group In-Reply-To: In your message of "Tue, 22 May 2001 04:48:38 -0700 (PDT)" References: <200105220637.f4M6bDD40713@rina.r.dl.itc.u-tokyo.ac.jp> User-Agent: Wanderlust/1.1.1 (Purple Rain) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Digital Library Research Division, Information Techinology Centre, The University of Tokyo MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 22 May 2001 04:48:38 -0700 (PDT), John Baldwin said: John> On 22-May-01 Seigo Tanimura wrote: >> For now, p_mtx protects p_pgrp in struct proc. This is quite >> troublesome for the following reason: John> Err, it doesn't really. It's mostly undecided at this point. Also, have you John> looked at the BSD/OS code on builder? They have process groups and sessions John> already locked not using global locks but using per-data structure locks. If you do not protect both p_pgrp and p_pglist in struct proc by an identical lock, you end up with breaking either setpgid(2) or kill(2) for a process group. The following scenario depicts an example of the breakage: There is a process p that belongs to a process group G. A process q issues setpgid(2) to move p into a process group H, when the process p sends a signal to the process group to which p belongs by kill(2) with pid of zero. In this case, if p takes its new p_pgrp (which points to H) during which q attempts to remove p from G (this is possible if we lock p and G individually), p might fail to send the signal to p itself and the processes in H might receive a spurious signal. You might state that locking p_pgrp of p by p_mtx first and pg_members in G by pg_mtx (process group mutex) next should solve that problem. This method actually breaks kill(2) for a process group because our start point is now not a process but a process group. In this case, we should lock a process group first, followed by a process. The result is a lock order reversal and potential deadlock between setpgid(2) and kill(2). Of course, not all members of struct pgrp needs to be locked by a global lock. A lock per a process group is enough to protect pg_sigiolst and pg_jobc. Implementation of per-data structure locks is done for pgrp and in progress for session. Finally, a fact missing in my last mail. psignal() actually checks for the parent of a process, possibly sending SIGCHLD to it. This implies that we have to slock proctree_lock so that the process hierarchy does not change. Now that psignal() calls for both pgrpsess_lock and proctree_lock, it should be cheaper to have only proctree_lock than both of them. -- Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 6:46:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (cvsup2.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id EE3DC37B422; Tue, 22 May 2001 06:46:40 -0700 (PDT) (envelope-from tanimura@r.dl.itc.u-tokyo.ac.jp) Received: from rina.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by rina.r.dl.itc.u-tokyo.ac.jp (8.11.3+3.4W/3.7W-rina.r-20010412) with ESMTP id f4MDkcD91792 ; Tue, 22 May 2001 22:46:39 +0900 (JST) Message-Id: <200105221346.f4MDkcD91792@rina.r.dl.itc.u-tokyo.ac.jp> Date: Tue, 22 May 2001 22:46:38 +0900 From: Seigo Tanimura To: jhb@FreeBSD.org Cc: tanimura@r.dl.itc.u-tokyo.ac.jp, current@FreeBSD.org Subject: RE: New strategy of locking a process group In-Reply-To: In your message of "Tue, 22 May 2001 21:58:10 +0900" <200105221258.f4MCwAD85296@rina.r.dl.itc.u-tokyo.ac.jp> References: <200105220637.f4M6bDD40713@rina.r.dl.itc.u-tokyo.ac.jp> <200105221258.f4MCwAD85296@rina.r.dl.itc.u-tokyo.ac.jp> User-Agent: Wanderlust/1.1.1 (Purple Rain) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Digital Library Research Division, Information Techinology Centre, The University of Tokyo MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 22 May 2001 21:58:10 +0900, Seigo Tanimura said: Seigo> On Tue, 22 May 2001 04:48:38 -0700 (PDT), Seigo> John Baldwin said: John> On 22-May-01 Seigo Tanimura wrote: >>> For now, p_mtx protects p_pgrp in struct proc. This is quite >>> troublesome for the following reason: John> Err, it doesn't really. It's mostly undecided at this point. Also, have you John> looked at the BSD/OS code on builder? They have process groups and sessions John> already locked not using global locks but using per-data structure locks. Seigo> If you do not protect both p_pgrp and p_pglist in struct proc by an Seigo> identical lock, you end up with breaking either setpgid(2) or kill(2) Seigo> for a process group. The following scenario depicts an example of the Seigo> breakage: BSD/OS seems to solve that problem by having p_session in struct proc, and protecting p_pgrp by the mutex of both a process and a session. Then you have to lock a session as well as a process prior to reading p_pgrp, as I locked proctree_lock. I chose proctree_lock because deleting a process group may call funsetown(), which calls free(9). Maybe we can reconsider protecting by a session lock when free(9) becomes not to lock lockmgr. -- Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 7:14:42 2001 Delivered-To: freebsd-current@freebsd.org Received: from solaris.matti.ee (solaris.matti.ee [194.126.98.135]) by hub.freebsd.org (Postfix) with ESMTP id 3013537B422 for ; Tue, 22 May 2001 07:14:38 -0700 (PDT) (envelope-from vallo@myhakas.matti.ee) Received: from myhakas.matti.ee (myhakas.matti.ee [194.126.114.87]) by solaris.matti.ee (Postfix) with ESMTP id 005722CFF5 for ; Tue, 22 May 2001 16:14:23 +0200 (EET) Received: (from vallo@localhost) by myhakas.matti.ee (8.11.3/8.11.3) id f4MEDli54544 for freebsd-current@freebsd.org; Tue, 22 May 2001 16:13:47 +0200 (EET) (envelope-from vallo) Date: Tue, 22 May 2001 16:13:47 +0200 From: Vallo Kallaste To: freebsd-current@freebsd.org Subject: What's causing troubles with pcm? Message-ID: <20010522161347.A54429@myhakas.matti.ee> Reply-To: vallo@matti.ee Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i-ja0 Sender: owner-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 Playing mp3's with mpg123 has been quite satistfactory until now. Today I've discovered that every execution of sync(8) distorts music by means of "stretching" musical phrase. In example what normally sounds like "How do" sounds now "Hhhooowww dddoooo" with a bit of added noise or something similar. Hard to describe. Happens even with textmode only, no X. Log into two virtual terminals, fire up mpg123 "yourfavoritesong" and execute sync in a row in other. In case hardware matters it's dual PIII with SCSI and IDE disks, mp3 in question was on SCSI. AudioPCI ES1373-B. No shared IRQ's between devices. I know that -current is very fragile to say at least, but what's specifically causing it? -- Vallo Kallaste vallo@matti.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 7:28:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from solaris.matti.ee (solaris.matti.ee [194.126.98.135]) by hub.freebsd.org (Postfix) with ESMTP id 80EBA37B424 for ; Tue, 22 May 2001 07:28:29 -0700 (PDT) (envelope-from vallo@myhakas.matti.ee) Received: from myhakas.matti.ee (myhakas.matti.ee [194.126.114.87]) by solaris.matti.ee (Postfix) with ESMTP id 4C3A22D036 for ; Tue, 22 May 2001 16:28:20 +0200 (EET) Received: (from vallo@localhost) by myhakas.matti.ee (8.11.3/8.11.3) id f4MERhF56310 for freebsd-current@FreeBSD.ORG; Tue, 22 May 2001 16:27:43 +0200 (EET) (envelope-from vallo) Date: Tue, 22 May 2001 16:27:43 +0200 From: Vallo Kallaste To: freebsd-current@FreeBSD.ORG Subject: Re: What's causing troubles with pcm? Message-ID: <20010522162743.A56286@myhakas.matti.ee> Reply-To: vallo@matti.ee References: <20010522161347.A54429@myhakas.matti.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i-ja0 In-Reply-To: <20010522161347.A54429@myhakas.matti.ee>; from vallo@matti.ee on Tue, May 22, 2001 at 04:13:47PM +0200 Sender: owner-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, May 22, 2001 at 04:13:47PM +0200, Vallo Kallaste wrote: > I know that -current is very fragile to say at least, but what's > specifically causing it? Using simple for ((i=1;i<=300;i++)); do sync; done does the trick, my system spends more than 50% in system, according to top. Vmstat shows ~300 page faults per second and about same for freed pages. -- Vallo Kallaste vallo@matti.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 7:32:27 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 1D0D537B422; Tue, 22 May 2001 07:32:15 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id AAA28837; Wed, 23 May 2001 00:28:51 +1000 Date: Wed, 23 May 2001 00:27:24 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Cyrille Lefevre Cc: Szilveszter Adam , cvs-all@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: cvs commit: src Makefile.inc1 In-Reply-To: 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 21 May 2001, Cyrille Lefevre wrote: > Bruce Evans writes: > > > > Debian CDs on FreeBSD with linux emulation way better than you can build > > > say a -STABLE release on a -CURRENT box... ) > > > > I just tried a Linux fdisk binary built in 1997 under FreeBSD-current. > > It seemed to run perfectly except it couldn't determine the disk geometry > > automatically. > > some times ago, I've ported linux fdisk to native freebsd. if you > really need it, I could make it a port ? I don't need it myself (I only ran it to see if it supported Linux extended partitions (it didn't, at least in it's list of known partition types)). This is for the old Linux fdisk with a dumb terminal interface which hadn't changed much (in 1997) since it was first implemented in 1991 or 1992. It doesn't have a good interface, but I rather like it since most of it was apparently copied from the one I implemented in Minix fdisk in 1988 or 1989 :-). Others might prefer a more graphical interface. Which version did you port? Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 7:57: 7 2001 Delivered-To: freebsd-current@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 6050837B424 for ; Tue, 22 May 2001 07:56:59 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f4MEurK45955; Tue, 22 May 2001 07:56:53 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.1) id f4MEuqh41897; Tue, 22 May 2001 07:56:52 -0700 (PDT) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200105221258.f4MCwAD85296@rina.r.dl.itc.u-tokyo.ac.jp> Date: Tue, 22 May 2001 07:56:52 -0700 (PDT) From: John Baldwin To: Seigo Tanimura Subject: RE: New strategy of locking a process group 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 22-May-01 Seigo Tanimura wrote: > On Tue, 22 May 2001 04:48:38 -0700 (PDT), > John Baldwin said: > > John> On 22-May-01 Seigo Tanimura wrote: >>> For now, p_mtx protects p_pgrp in struct proc. This is quite >>> troublesome for the following reason: > > John> Err, it doesn't really. It's mostly undecided at this point. Also, > have you > John> looked at the BSD/OS code on builder? They have process groups and > sessions > John> already locked not using global locks but using per-data structure > locks. > > If you do not protect both p_pgrp and p_pglist in struct proc by an > identical lock, you end up with breaking either setpgid(2) or kill(2) > for a process group. The following scenario depicts an example of the > breakage: I'll have to look over the code in more detail, but I would encourage you to check the BSD/OS code. > Finally, a fact missing in my last mail. psignal() actually checks for > the parent of a process, possibly sending SIGCHLD to it. This implies > that we have to slock proctree_lock so that the process hierarchy does > not change. Now that psignal() calls for both pgrpsess_lock and > proctree_lock, it should be cheaper to have only proctree_lock than > both of them. Actually, psignal does _not_ use proctree_lock. p_pptr is locked by both p_mtx and the proctree lock (writes to it require both locks) so either lock is sufficient to read the value. As a result, psignal() simply acquires p_mtx and doesn't go near proctree. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "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 Tue May 22 8:22:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from sol.serv.u-szeged.hu (sol.serv.u-szeged.hu [160.114.51.3]) by hub.freebsd.org (Postfix) with ESMTP id F41E237B422 for ; Tue, 22 May 2001 08:22:28 -0700 (PDT) (envelope-from sziszi@petra.hos.u-szeged.hu) Received: from petra.hos.u-szeged.hu by sol.serv.u-szeged.hu (8.9.3+Sun/SMI-SVR4) id RAA02886; Tue, 22 May 2001 17:22:14 +0200 (MEST) Received: from sziszi by petra.hos.u-szeged.hu with local (Exim 3.12 #1 (Debian)) id 152DzA-0000BU-00; Tue, 22 May 2001 17:22:12 +0200 Date: Tue, 22 May 2001 17:22:12 +0200 From: Szilveszter Adam To: grog@lemis.com Cc: freebsd-current@freebsd.org Subject: Re: world broken (vinum) Message-ID: <20010522172212.F27527@petra.hos.u-szeged.hu> Mail-Followup-To: Szilveszter Adam , grog@lemis.com, freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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 Greg and others, Well I cannot find that file (/usr/src/sys/dev/vinum/vinumutil.h) there, it is not there in the cvsweb interface either. However, I can confirm that /usr/src/sys/dev/vinum/vinumhdr.h contains a reference to it. So? -- regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 8:29:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id A8BC337B424 for ; Tue, 22 May 2001 08:29:35 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f4MFTP302589; Tue, 22 May 2001 08:29:25 -0700 (PDT) Date: Tue, 22 May 2001 08:29:25 -0700 (PDT) From: David Wolfskill Message-Id: <200105221529.f4MFTP302589@bunrab.catwhisker.org> To: grog@lemis.com, sziszi@petra.hos.u-szeged.hu Subject: Re: world broken (vinum) Cc: freebsd-current@FreeBSD.ORG In-Reply-To: <20010522172212.F27527@petra.hos.u-szeged.hu> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Date: Tue, 22 May 2001 17:22:12 +0200 >From: Szilveszter Adam >Well I cannot find that file (/usr/src/sys/dev/vinum/vinumutil.h) there, it >is not there in the cvsweb interface either. However, I can confirm that >/usr/src/sys/dev/vinum/vinumhdr.h >contains a reference to it. Confirmed over here, as well. Recent CVSup history: CVSup begin from cvsup14.freebsd.org at Sun May 20 03:47:00 PDT 2001 CVSup ended from cvsup14.freebsd.org at Sun May 20 03:53:25 PDT 2001 CVSup begin from cvsup14.freebsd.org at Mon May 21 03:47:01 PDT 2001 CVSup ended from cvsup14.freebsd.org at Mon May 21 03:52:21 PDT 2001 CVSup begin from cvsup14.freebsd.org at Tue May 22 03:47:01 PDT 2001 CVSup ended from cvsup14.freebsd.org at Tue May 22 03:52:32 PDT 2001 Thanks, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 8:31: 9 2001 Delivered-To: freebsd-current@freebsd.org Received: from sol.serv.u-szeged.hu (sol.serv.u-szeged.hu [160.114.51.3]) by hub.freebsd.org (Postfix) with ESMTP id 27EAD37B424 for ; Tue, 22 May 2001 08:31:05 -0700 (PDT) (envelope-from sziszi@petra.hos.u-szeged.hu) Received: from petra.hos.u-szeged.hu by sol.serv.u-szeged.hu (8.9.3+Sun/SMI-SVR4) id RAA03597; Tue, 22 May 2001 17:30:58 +0200 (MEST) Received: from sziszi by petra.hos.u-szeged.hu with local (Exim 3.12 #1 (Debian)) id 152E7d-0000I3-00; Tue, 22 May 2001 17:30:57 +0200 Date: Tue, 22 May 2001 17:30:57 +0200 From: Szilveszter Adam To: grog@lemis.com Cc: freebsd-current@freebsd.org Subject: Re: world broken (vinum) Message-ID: <20010522173057.G27527@petra.hos.u-szeged.hu> Mail-Followup-To: Szilveszter Adam , grog@lemis.com, freebsd-current@freebsd.org References: <20010522172212.F27527@petra.hos.u-szeged.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010522172212.F27527@petra.hos.u-szeged.hu>; from sziszi@petra.hos.u-szeged.hu on Tue, May 22, 2001 at 05:22:12PM +0200 Sender: owner-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, May 22, 2001 at 05:22:12PM +0200, Szilveszter Adam wrote: > Hello Greg and others, > > Well I cannot find that file (/usr/src/sys/dev/vinum/vinumutil.h) there, it > is not there in the cvsweb interface either. However, I can confirm that > > /usr/src/sys/dev/vinum/vinumhdr.h > > contains a reference to it. > > So? More than that, according to cvsweb annotate, that particular line #include was only added in the latest revision. Maybe a private tree mixup? -- Regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 10:10:54 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.noos.fr (descartes.noos.net [212.198.2.74]) by hub.freebsd.org (Postfix) with ESMTP id 0A2D237B42C for ; Tue, 22 May 2001 10:10:52 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 5279280 invoked by uid 0); 22 May 2001 17:10:50 -0000 Received: from d165.dhcp212-198-231.noos.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by descartes.noos.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 22 May 2001 17:10:50 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.3/8.11.3) id f4MHAmv95401; Tue, 22 May 2001 19:10:48 +0200 (CEST) (envelope-from root) Message-Id: <200105221710.f4MHAmv95401@gits.dyndns.org> Subject: Re: cvs commit: src Makefile.inc1 In-Reply-To: To: Bruce Evans Date: Tue, 22 May 2001 19:10:47 +0200 (CEST) Cc: current@FreeBSD.ORG Reply-To: clefevre@redirect.to From: Cyrille Lefevre Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C X-Mailer: ELM [version 2.4ME+ PL92 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Bruce Evans wrote: > On 21 May 2001, Cyrille Lefevre wrote: [snip] > I don't need it myself (I only ran it to see if it supported Linux > extended partitions (it didn't, at least in it's list of known partition > types)). This is for the old Linux fdisk with a dumb terminal interface > which hadn't changed much (in 1997) since it was first implemented in > 1991 or 1992. It doesn't have a good interface, but I rather like it > since most of it was apparently copied from the one I implemented in > Minix fdisk in 1988 or 1989 :-). Others might prefer a more graphical > interface. Which version did you port? the ones from util-linux-2.10s.tar.gz (or .src.rpm?) cfdisk and fdisk seems to work good. for instance, sfdisk make a core! I did need it in the past, but in fact, I've done what I want w/ the bsd one. it was when I upgrade MaxBlast which is a software BIOS to see large drives. it changed the IDs of all (DOS?) primary and partitions to 0x55 and FreeBSD didn't like it at all. the problem is that ID didn't make a difference between primary (0xC) and extended (0xF) partitions... CC shortened. Cyrille. -- home: mailto:clefevre@redirect.to UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 10:57:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id 5FC4637B424 for ; Tue, 22 May 2001 10:57:55 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f4MHvng02868; Tue, 22 May 2001 10:57:49 -0700 (PDT) Date: Tue, 22 May 2001 10:57:49 -0700 (PDT) From: David Wolfskill Message-Id: <200105221757.f4MHvng02868@bunrab.catwhisker.org> To: current@FreeBSD.ORG, grog@lemis.com Subject: Re: world broken In-Reply-To: <5.1.0.14.2.20010522034101.00a71678@208.141.46.12> Sender: owner-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 answer to Greg's query "What happens if you try building in sys/modules/vinum?": dhcp-133[3] pushd sys/modules/vinum/ /usr/src/sys/modules/vinum /usr/src dhcp-133[4] make Warning: Object directory not changed from original /usr/src/sys/modules/vinum @ -> /usr/src/sys machine -> /usr/src/sys/i386/include touch opt_vinum.h perl @/kern/vnode_if.pl -h @/kern/vnode_if.src cc -O -pipe -DVINUMDEBUG -g -O -D_KERNEL -Wall -Wredundant-decls -Wnested-exte rns -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qu al -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/dev -I@/. ./include -I/usr/include -mpreferred-stack-boundary=2 -Wall -Wredundant-decls - Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winli ne -Wcast-qual -fformat-extensions -ansi -c /usr/src/sys/modules/vinum/../../de v/vinum/vinum.c In file included from /usr/src/sys/modules/vinum/../../dev/vinum/vinum.c:44: @/dev/vinum/vinumhdr.h:78: dev/vinum/vinumutil.h: No such file or directory *** Error code 1 Stop in /usr/src/sys/modules/vinum. dhcp-133[5] [The good news is that, although I wasn't yet willing to try building -CURRENT under X, I was able to get through the buildworld in multi- user mode OK.] Cheers, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 11:12:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from logger.gamma.ru (logger.gamma.ru [194.186.254.23]) by hub.freebsd.org (Postfix) with ESMTP id DF82537B422 for ; Tue, 22 May 2001 11:12:17 -0700 (PDT) (envelope-from ivt@logger.gamma.ru) Received: (from ivt@localhost) by logger.gamma.ru (8.9.3/8.9.3) id WAA97895; Tue, 22 May 2001 22:12:07 +0400 (MSD) From: Igor Timkin Message-Id: <200105221812.WAA97895@logger.gamma.ru> Subject: Re: new function for libdevstat In-Reply-To: <20010514173124.A69920@freebsd.org.ru> "from Sergey A. Osokin at May 14, 2001 05:31:24 pm" To: "Sergey A. Osokin" Date: Tue, 22 May 2001 22:12:07 +0400 (MSD) Cc: Poul-Henning Kamp , freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 Sergey A. Osokin writes: > I have rewritten devstat_compute_statistics(). > Please see the attachment. Add ``break'' in each ``case''. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 15:30:52 2001 Delivered-To: freebsd-current@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 9DA8837B42C for ; Tue, 22 May 2001 15:30:48 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id AF9FC6ACBC; Wed, 23 May 2001 08:00:46 +0930 (CST) Date: Wed, 23 May 2001 08:00:46 +0930 From: Greg Lehey To: Szilveszter Adam , freebsd-current@freebsd.org Subject: Re: world broken (vinum) Message-ID: <20010523080046.B41189@wantadilla.lemis.com> References: <20010522172212.F27527@petra.hos.u-szeged.hu> <20010522173057.G27527@petra.hos.u-szeged.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010522173057.G27527@petra.hos.u-szeged.hu>; from sziszi@petra.hos.u-szeged.hu on Tue, May 22, 2001 at 05:30:57PM +0200 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-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, 22 May 2001 at 17:30:57 +0200, Szilveszter Adam wrote: > On Tue, May 22, 2001 at 05:22:12PM +0200, Szilveszter Adam wrote: >> Hello Greg and others, >> >> Well I cannot find that file (/usr/src/sys/dev/vinum/vinumutil.h) there, it >> is not there in the cvsweb interface either. However, I can confirm that >> >> /usr/src/sys/dev/vinum/vinumhdr.h >> >> contains a reference to it. >> >> So? > > More than that, according to cvsweb annotate, that particular line > > #include > > was only added in the latest revision. Maybe a private tree mixup? Aargh, no, only blindness. But not only mine: what I found (and documented) there was vinumutil.c, which has been there for a long time. vinumutil.h is new, and it wasn't there. I've committed it now. /me adds to his pile of pointy hats. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 16:29:51 2001 Delivered-To: freebsd-current@freebsd.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by hub.freebsd.org (Postfix) with ESMTP id 90E6837B424 for ; Tue, 22 May 2001 16:29:49 -0700 (PDT) (envelope-from jazepeda@pacbell.net) Received: from zippy.mybox.zip ([207.214.149.243]) by mta6.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0GDR00MREFXH1S@mta6.snfc21.pbi.net> for current@freebsd.org; Tue, 22 May 2001 16:29:43 -0700 (PDT) Received: by zippy.mybox.zip (Postfix, from userid 1000) id 8FE811896; Tue, 22 May 2001 16:29:39 -0700 (PDT) Date: Tue, 22 May 2001 16:29:39 -0700 From: Alex Zepeda Subject: Re: What's causing troubles with pcm? In-reply-to: <20010522161347.A54429@myhakas.matti.ee>; from vallo@matti.ee on Tue, May 22, 2001 at 04:13:47PM +0200 To: Vallo Kallaste Cc: current@freebsd.org Message-id: <20010522162938.A43750@zippy.mybox.zip> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20010522161347.A54429@myhakas.matti.ee> Sender: owner-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, May 22, 2001 at 04:13:47PM +0200, Vallo Kallaste wrote: > Playing mp3's with mpg123 has been quite satistfactory until now. > Today I've discovered that every execution of sync(8) distorts > music by means of "stretching" musical phrase. The obvious answer would be to not run sync(8) :^) Likely, what you're seeing is the combo of the pcm driver being pretty sensitive to other interrupt activity and the ata driver turning off write caching by default. - alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 16:33:15 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id E8ACE37B422 for ; Tue, 22 May 2001 16:33:11 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4MNWnG67792; Tue, 22 May 2001 16:32:56 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010520164603.B17514@superconductor.rush.net> Date: Tue, 22 May 2001 16:33:07 -0700 (PDT) From: John Baldwin To: Alfred Perlstein Subject: RE: HEADS UP: I broke swapping 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 20-May-01 Alfred Perlstein wrote: > I broke swapping with the vm mutex. > > Hopefully I should have this fixed up within a couple of days tops. > > No, I'm not heading off to Aruba or someplace after this intrusive > change, I am working on it. Your kernel may panic, but I hope you > all keep a level head about this and don't follow suit. :) > > Patches, suggestions and crashdumps would be helpful. > > Bruce has been giving me some helpful tracebacks that I'm planning > to use to stabilize the system. I am currently running X on my laptop with a current kernel with the patch http://www.FreeBSD.org/~jhb/patches/vm.patch. It is swapping, and I've tested out exhausting all the swap and mem at least which worked. > swapinfo Device 1K-blocks Used Avail Capacity Type /dev/ad0s2b 266112 16 266096 0% Interleaved > vmstat -s 659683 cpu context switches 547856 device interrupts 5289 software interrupts 269300 traps 1492219 system calls 26 kernel threads created 710 fork() calls 59 vfork() calls 0 rfork() calls 15 swap pager pageins 17 swap pager pages paged in 524 swap pager pageouts 7923 swap pager pages paged out 803 vnode pager pageins 6173 vnode pager pages paged in 0 vnode pager pageouts 0 vnode pager pages paged out 253 page daemon wakeups ... vm.vm_faults_no_vm_mtx: 209859 vm.vm_faults_no_giant: 0 vm.stats.vm.v_vm_faults: 227165 The patch still needs some cleanups, and there are some lock order reversals I still need to work on, but it might be worth testing. :) -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Tue May 22 16:52:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 8B04B37B424; Tue, 22 May 2001 16:52:27 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4MNqIG68145; Tue, 22 May 2001 16:52:18 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 22 May 2001 16:54:03 -0700 (PDT) From: John Baldwin To: John Baldwin Subject: RE: HEADS UP: I broke swapping Cc: current@FreeBSD.org, Alfred Perlstein Sender: owner-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 22-May-01 John Baldwin wrote: > > On 20-May-01 Alfred Perlstein wrote: >> I broke swapping with the vm mutex. >> >> Hopefully I should have this fixed up within a couple of days tops. >> >> No, I'm not heading off to Aruba or someplace after this intrusive >> change, I am working on it. Your kernel may panic, but I hope you >> all keep a level head about this and don't follow suit. :) >> >> Patches, suggestions and crashdumps would be helpful. >> >> Bruce has been giving me some helpful tracebacks that I'm planning >> to use to stabilize the system. > > I am currently running X on my laptop with a current kernel with the patch > http://www.FreeBSD.org/~jhb/patches/vm.patch. It is swapping, and I've > tested > out exhausting all the swap and mem at least which worked. Also, to clarify a point here and vindicate Alfred some since some people are calling for his head: Alfred didn't entirely break swapping, I helped. Revision 1.112 #if 0'd out code to lock the vm_map of a process when we were swapping it out. At the time I thought that we locked the map and immediately released the lock. However, we also bumped the refcount on the vmspace, but didn't call vmspace_free() until later after swapout(). I #if 0'd out the bump of the refcount, but not the vmspace_free(), thus when swapping out processes, we would release a vmspace out from under a process giving vmdaemon a heart attack later on. I think we still leak a vmspace refcount if we fail the swap_idle_threadhold2 test in swapout_procs(), and I'm going to test out a fix for that as well. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Tue May 22 18: 4:46 2001 Delivered-To: freebsd-current@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id D366037B43C; Tue, 22 May 2001 18:04:42 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f4N14PK53252; Tue, 22 May 2001 18:04:25 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.1) id f4N14O742671; Tue, 22 May 2001 18:04:24 -0700 (PDT) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 22 May 2001 18:04:24 -0700 (PDT) From: John Baldwin To: John Baldwin Subject: RE: HEADS UP: I broke swapping Cc: current@FreeBSD.ORG, Alfred Perlstein Sender: owner-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 22-May-01 John Baldwin wrote: > > On 20-May-01 Alfred Perlstein wrote: >> I broke swapping with the vm mutex. >> >> Hopefully I should have this fixed up within a couple of days tops. >> >> No, I'm not heading off to Aruba or someplace after this intrusive >> change, I am working on it. Your kernel may panic, but I hope you >> all keep a level head about this and don't follow suit. :) >> >> Patches, suggestions and crashdumps would be helpful. >> >> Bruce has been giving me some helpful tracebacks that I'm planning >> to use to stabilize the system. > > I am currently running X on my laptop with a current kernel with the patch > http://www.FreeBSD.org/~jhb/patches/vm.patch. It is swapping, and I've > tested > out exhausting all the swap and mem at least which worked. Well, I've cleaned out all but one lock order reversal (the race between faultin() and swapout() needs to be fixed in a more proper fashion) and tried to push Giant back down some by re-enabling all the MPSAFE syscalls in Alfred's commit, but now I can deadlock (well, livelock actually) my laptop in single user via a simple memkill program that basically does this: for (;;) *(char *)malloc(1) = 1; If I have swap (i.e. I've run swapon on a swap partition) the program is killed by the system fine. If I don't have swap, then both the memkill process adn the swapper process (proc0) are stuck in the "vmwait" wait channel used by VM_WAIT. Any ideas? -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "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 Tue May 22 18:48:17 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 74E6037B424; Tue, 22 May 2001 18:48:14 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f4N1mEM85088; Tue, 22 May 2001 18:48:14 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 4A2E2380A; Tue, 22 May 2001 18:48:14 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: John Baldwin Cc: current@FreeBSD.ORG, Alfred Perlstein Subject: Re: HEADS UP: I broke swapping In-Reply-To: Date: Tue, 22 May 2001 18:48:14 -0700 From: Peter Wemm Message-Id: <20010523014814.4A2E2380A@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Baldwin wrote: > If I have swap (i.e. I've run swapon on a swap partition) the program is kill ed > by the system fine. If I don't have swap, then both the memkill process adn > the swapper process (proc0) are stuck in the "vmwait" wait channel used by > VM_WAIT. Any ideas? This may not be a new problem. I have seen a lot of machines hit this sort of thing at work. It can end up in the majority of processes on the system in this state. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Tue May 22 19:19:26 2001 Delivered-To: freebsd-current@freebsd.org Received: from mobile.hub.org (SHW39-29.accesscable.net [24.138.39.29]) by hub.freebsd.org (Postfix) with ESMTP id C670B37B424 for ; Tue, 22 May 2001 19:19:22 -0700 (PDT) (envelope-from scrappy@hub.org) Received: from localhost (scrappy@localhost) by mobile.hub.org (8.11.3/8.11.1) with ESMTP id f4N2JBX16644 for ; Tue, 22 May 2001 23:19:11 -0300 (ADT) (envelope-from scrappy@hub.org) X-Authentication-Warning: mobile.hub.org: scrappy owned process doing -bs Date: Tue, 22 May 2001 23:19:11 -0300 (ADT) From: The Hermit Hacker To: Subject: panic: merge_inode_lists+0x86: movl %eax,0x10(%edx) 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 Just upgraded to latest sources, doesn't look like the swap issue ... was performing a 'make -j16 buildworld' when it panic'd ... Fataltrap 12: page fault while in kernel mode cpuid = 0; lapic.id = 00000000 fault virtual address = 0x11 fault code = supervisor write, page not present instruction pointer = 0x8:0xc020d646 stack pointer = 0x10:0xcce9ac04 frame pointer = 0x10:0xcce9ac0c code segmnt = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 62131 (sh) kernel: type 12 trap, code=0 Stopped at merge_inode_lists+0x86: movl %eax,0x10(%edx) db> trace merge_inode_lists+0x86 softdep_setup_freeblocks+0x21c ffs_truncate+0x1d0 ufs_inactive+0x9a ufs_vnoperate+0x15 vrele+0x16e ufs_close+0x198 ufs_vnoperate+0x15 vn_close+0x40 vn_closefile+0x23 fdrop+0xb9 closef+0x9b fdfree+0x44 exit1+0x5eb sys_exit+0x15 syscall+0x645 syscall_with_err_pushed+0x1b Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 1:10:35 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 78E9637B61A; Wed, 23 May 2001 01:10:29 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA01535; Wed, 23 May 2001 18:10:19 +1000 Date: Wed, 23 May 2001 18:08:51 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Peter Wemm Cc: John Baldwin , current@FreeBSD.ORG, Alfred Perlstein Subject: Re: HEADS UP: I broke swapping In-Reply-To: <20010523014814.4A2E2380A@overcee.netplex.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 22 May 2001, Peter Wemm wrote: > John Baldwin wrote: > > > If I have swap (i.e. I've run swapon on a swap partition) the program is kill > ed > > by the system fine. If I don't have swap, then both the memkill process adn > > the swapper process (proc0) are stuck in the "vmwait" wait channel used by > > VM_WAIT. Any ideas? > > This may not be a new problem. I have seen a lot of machines hit this > sort of thing at work. It can end up in the majority of processes on > the system in this state. des's adsp.c test program caused this here on a machine with 64MB RAM and 132MB swap. No progress was made killing `bigproc' because everything gets stuck on "vmwait". It is hard to see where the get stuck because the "vmwait" label is far from unique. It is used in both the vm_wait() and the vm_await() functions which are called from all over. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 1:28:40 2001 Delivered-To: freebsd-current@freebsd.org Received: from solaris.matti.ee (solaris.matti.ee [194.126.98.135]) by hub.freebsd.org (Postfix) with ESMTP id ECB7537B424 for ; Wed, 23 May 2001 01:28:37 -0700 (PDT) (envelope-from vallo@myhakas.matti.ee) Received: from myhakas.matti.ee (myhakas.matti.ee [194.126.114.87]) by solaris.matti.ee (Postfix) with ESMTP id 30FD22CFE9; Wed, 23 May 2001 10:28:31 +0200 (EET) Received: (from vallo@localhost) by myhakas.matti.ee (8.11.3/8.11.3) id f4N8RiM78548; Wed, 23 May 2001 10:27:44 +0200 (EET) (envelope-from vallo) Date: Wed, 23 May 2001 10:27:44 +0200 From: Vallo Kallaste To: Alex Zepeda Cc: Vallo Kallaste , current@FreeBSD.ORG Subject: Re: What's causing troubles with pcm? Message-ID: <20010523102744.A78465@myhakas.matti.ee> Reply-To: vallo@matti.ee References: <20010522161347.A54429@myhakas.matti.ee> <20010522162938.A43750@zippy.mybox.zip> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i-ja0 In-Reply-To: <20010522162938.A43750@zippy.mybox.zip>; from jazepeda@pacbell.net on Tue, May 22, 2001 at 04:29:39PM -0700 Sender: owner-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, May 22, 2001 at 04:29:39PM -0700, Alex Zepeda wrote: > > Playing mp3's with mpg123 has been quite satistfactory until now. > > Today I've discovered that every execution of sync(8) distorts > > music by means of "stretching" musical phrase. > > The obvious answer would be to not run sync(8) :^) > > Likely, what you're seeing is the combo of the pcm driver being pretty > sensitive to other interrupt activity and the ata driver turning off write > caching by default. Probably not, because the sound file was on SCSI disk and I have WC turned on for both ATA disks I have. Sync(8) was only for demonstration purposes. -- Vallo Kallaste vallo@matti.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 2:53:25 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 7345137B424 for ; Wed, 23 May 2001 02:53:19 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4N9rDT94217 for current@FreeBSD.org; Wed, 23 May 2001 12:53:13 +0300 (EEST) (envelope-from ru) Date: Wed, 23 May 2001 12:53:13 +0300 From: Ruslan Ermilov To: current@FreeBSD.org Subject: ** HEADS UP **: sys/miscfs file systems moved Message-ID: <20010523125313.A91487@sunbay.com> Mail-Followup-To: current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear -CURRENT users, Please note that: - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file systems were repo-copied from sys/miscfs to sys/fs. - Renamed the following file systems and their modules: fdesc -> fdescfs, portal -> portalfs, union -> unionfs. - Renamed corresponding kernel options: FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS. - Install header files for the above file systems. Warner, could you please add this to UPDATING? Cheers, -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 3:52:56 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.webjockey.net (mail.webjockey.net [208.141.46.3]) by hub.freebsd.org (Postfix) with ESMTP id 3A57237B43F for ; Wed, 23 May 2001 03:52:53 -0700 (PDT) (envelope-from ancient@outloud.org) Received: from Dragon.outloud.org (Goal@House.Of.Pain.Com [24.14.88.149]) by mail.webjockey.net (8.11.3/8.11.3) with ESMTP id f4NAqqB08643 for ; Wed, 23 May 2001 05:52:53 -0500 (EST) (envelope-from ancient@outloud.org) Message-Id: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12> X-Sender: ancient@208.141.46.12 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 23 May 2001 05:51:40 -0500 To: current@freebsd.org From: Storms of Perfection Subject: rm -rf question Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/ Display all 2275 possibilities? (y or n) gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/* bash: /bin/rm: Argument list too long Is this a bug with rm? I've never come accross this on -CURRENT or -STABLE for that matter.. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 4: 5:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 6CBBF37B424 for ; Wed, 23 May 2001 04:05:36 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 23 May 2001 12:05:35 +0100 (BST) Date: Wed, 23 May 2001 12:05:35 +0100 From: David Malone To: Storms of Perfection Cc: current@freebsd.org Subject: Re: rm -rf question Message-ID: <20010523120535.A51664@walton.maths.tcd.ie> References: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12>; from ancient@outloud.org on Wed, May 23, 2001 at 05:51:40AM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 23, 2001 at 05:51:40AM -0500, Storms of Perfection wrote: > gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/ > Display all 2275 possibilities? (y or n) > gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/* > bash: /bin/rm: Argument list too long > > Is this a bug with rm? I've never come accross this on -CURRENT or -STABLE > for that matter.. Nope - you've limited to 64Kb worth of arguments by default ("sysctl kern.argmax" should show this). I guess you have some long filenames? David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 4: 5:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from casimir.physics.purdue.edu (casimir.physics.purdue.edu [128.210.146.111]) by hub.freebsd.org (Postfix) with ESMTP id 8AE6F37B424 for ; Wed, 23 May 2001 04:05:55 -0700 (PDT) (envelope-from will@physics.purdue.edu) Received: by casimir.physics.purdue.edu (Postfix, from userid 1000) id 9D7EB18A4F; Wed, 23 May 2001 06:05:49 -0500 (EST) Date: Wed, 23 May 2001 06:05:49 -0500 From: Will Andrews To: Storms of Perfection Cc: current@FreeBSD.ORG Subject: Re: rm -rf question Message-ID: <20010523060549.Z19376@casimir.physics.purdue.edu> Reply-To: Will Andrews Mail-Followup-To: Will Andrews , Storms of Perfection , current@FreeBSD.ORG References: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12>; from ancient@outloud.org on Wed, May 23, 2001 at 05:51:40AM -0500 X-Operating-System: Linux 2.2.18 sparc64 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 23, 2001 at 05:51:40AM -0500, Storms of Perfection wrote: > gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/ > Display all 2275 possibilities? (y or n) > gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/* > bash: /bin/rm: Argument list too long > > Is this a bug with rm? I've never come accross this on -CURRENT or -STABLE > for that matter.. No. It's a safety feature to prevent your shell from using too much memory to do the globbing you asked for (the "*"). This has nothing whatsoever to do with rm(1). -- wca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 4: 8:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from kawoserv.kawo2.rwth-aachen.de (kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by hub.freebsd.org (Postfix) with ESMTP id 438D637B424 for ; Wed, 23 May 2001 04:08:08 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.6.9) with ESMTP id NAA30274; Wed, 23 May 2001 13:08:07 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id CCD1314CDC; Wed, 23 May 2001 13:08:07 +0200 (CEST) Date: Wed, 23 May 2001 13:08:07 +0200 From: Alexander Langer To: Will Andrews Cc: Storms of Perfection , current@FreeBSD.ORG Subject: Re: rm -rf question Message-ID: <20010523130807.A19223@zerogravity.kawo2.rwth-aachen.d> Mail-Followup-To: Alexander Langer , Will Andrews , Storms of Perfection , current@FreeBSD.ORG References: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12> <20010523060549.Z19376@casimir.physics.purdue.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010523060549.Z19376@casimir.physics.purdue.edu>; from will@physics.purdue.edu on Wed, May 23, 2001 at 06:05:49AM -0500 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-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 Will Andrews (will@physics.purdue.edu): > No. It's a safety feature to prevent your shell from using too much > memory to do the globbing you asked for (the "*"). This has nothing > whatsoever to do with rm(1). It's xargs job to workaround that: ls | xargs rm -rf Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 4:23:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (rina.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id 098C137B424; Wed, 23 May 2001 04:23:34 -0700 (PDT) (envelope-from tanimura@r.dl.itc.u-tokyo.ac.jp) Received: from rina.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by rina.r.dl.itc.u-tokyo.ac.jp (8.11.3+3.4W/3.7W-rina.r-20010412) with ESMTP id f4NBNUD33639 ; Wed, 23 May 2001 20:23:31 +0900 (JST) Message-Id: <200105231123.f4NBNUD33639@rina.r.dl.itc.u-tokyo.ac.jp> Date: Wed, 23 May 2001 20:23:30 +0900 From: Seigo Tanimura To: jhb@FreeBSD.org Cc: tanimura@r.dl.itc.u-tokyo.ac.jp, current@FreeBSD.org Subject: RE: New strategy of locking a process group In-Reply-To: In your message of "Tue, 22 May 2001 07:56:52 -0700 (PDT)" References: <200105221258.f4MCwAD85296@rina.r.dl.itc.u-tokyo.ac.jp> User-Agent: Wanderlust/1.1.1 (Purple Rain) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Digital Library Research Division, Information Techinology Centre, The University of Tokyo MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 22 May 2001 07:56:52 -0700 (PDT), John Baldwin said: John> On 22-May-01 Seigo Tanimura wrote: >> On Tue, 22 May 2001 04:48:38 -0700 (PDT), >> John Baldwin said: >> John> On 22-May-01 Seigo Tanimura wrote: >>>> For now, p_mtx protects p_pgrp in struct proc. This is quite >>>> troublesome for the following reason: >> John> Err, it doesn't really. It's mostly undecided at this point. Also, have you John> looked at the BSD/OS code on builder? They have process groups and sessions John> already locked not using global locks but using per-data structure locks. >> >> If you do not protect both p_pgrp and p_pglist in struct proc by an >> identical lock, you end up with breaking either setpgid(2) or kill(2) >> for a process group. The following scenario depicts an example of the >> breakage: John> I'll have to look over the code in more detail, but I would encourage you John> to check the BSD/OS code. I did that last night, and figured out that there are two problems in FreeBSD under the scenario shown below: 1. Lock a process and obtain a process group via p_pgrp. 2. Lock the process list of the process group and traverse the list via p_pglist, locking each process in the list. 3. Lock each process in the list. That scenario induces the following problems: A. We have to lock two processes at once in order to traverse the list, namely p and LIST_NEXT(p, p_pglist) where p is a process in the list. B. We have to lock a process in 1 and 3 while locking a process group in 2, resulting in lock order reversal. BSD/OS solves the problem A by locking not a process but a process group to traverse the list. It should be worth implementing that solution in FreeBSD. In order to solve the problem B, a lock other than the process lock should protect p_pgrp. BSD/OS adopts the lock of a session accessible via p_session embedded in struct proc, while I attempt to apply a global lock. In any case, the aim of the p_pgrp lock is essentially for protecting *only* p_pgrp. Once we lock p_pgrp, we can compare pg_session (which requires no locks), lock a process group, a session or etc. until unlocking p_pgrp. The issue of both of the solutions briefed above is that the p_pgrp lock protects *excess* data. It might be another solution to introduce a new mutex (p_pgrpmtx) into struct proc to lock p_pgrp. Although memory size costs per process, contention for p_pgrp lock should occur much less than to adopt a session lock or a global lock. As psignal() and some other functions also read p_pgrp, p_mtx should also lock p_pgrp. You lock either p_pgrpmtx or p_mtx to read p_pgrp, and both of the locks to modify p_pgrp. -- Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 4:52:51 2001 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id E4A4037B424; Wed, 23 May 2001 04:52:44 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4NBqhY09596; Wed, 23 May 2001 12:52:43 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4NBqeF01876; Wed, 23 May 2001 12:52:40 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Ruslan Ermilov Cc: current@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: ** HEADS UP **: sys/miscfs file systems moved In-Reply-To: Message from Ruslan Ermilov of "Wed, 23 May 2001 12:53:13 +0300." <20010523125313.A91487@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 May 2001 12:52:40 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Dear -CURRENT users, > > Please note that: > > - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file > systems were repo-copied from sys/miscfs to sys/fs. > > - Renamed the following file systems and their modules: > fdesc -> fdescfs, portal -> portalfs, union -> unionfs. > > - Renamed corresponding kernel options: > FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS. > > - Install header files for the above file systems. > > > Warner, could you please add this to UPDATING? It may also be worth mentioning that people should move /usr/include to (say) /usr/include.not before their next installworld and nuke /usr/include.not after it completes. > Cheers, > -- > Ruslan Ermilov Oracle Developer/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 -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 4:56:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id D9C9037B424 for ; Wed, 23 May 2001 04:56:36 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4NBu8q06751; Wed, 23 May 2001 14:56:08 +0300 (EEST) (envelope-from ru) Date: Wed, 23 May 2001 14:56:08 +0300 From: Ruslan Ermilov To: Brian Somers Cc: current@FreeBSD.ORG Subject: Re: ** HEADS UP **: sys/miscfs file systems moved Message-ID: <20010523145608.A6626@sunbay.com> Mail-Followup-To: Brian Somers , current@FreeBSD.ORG References: <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Wed, May 23, 2001 at 12:52:40PM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 23, 2001 at 12:52:40PM +0100, Brian Somers wrote: > > Dear -CURRENT users, > > > > Please note that: > > > > - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file > > systems were repo-copied from sys/miscfs to sys/fs. > > > > - Renamed the following file systems and their modules: > > fdesc -> fdescfs, portal -> portalfs, union -> unionfs. > > > > - Renamed corresponding kernel options: > > FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS. > > > > - Install header files for the above file systems. > > > > > > Warner, could you please add this to UPDATING? > > It may also be worth mentioning that people should move /usr/include > to (say) /usr/include.not before their next installworld and nuke > /usr/include.not after it completes. > Why? Only new headers get installed, no old headers were withdrawn. Cheers, -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 5: 8:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 6DB5737B42C; Wed, 23 May 2001 05:08:07 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4NC85Y09702; Wed, 23 May 2001 13:08:06 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4NC83F02165; Wed, 23 May 2001 13:08:03 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105231208.f4NC83F02165@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Ruslan Ermilov Cc: Brian Somers , current@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: ** HEADS UP **: sys/miscfs file systems moved In-Reply-To: Message from Ruslan Ermilov of "Wed, 23 May 2001 14:56:08 +0300." <20010523145608.A6626@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 May 2001 13:08:03 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Wed, May 23, 2001 at 12:52:40PM +0100, Brian Somers wrote: > > > Dear -CURRENT users, > > > > > > Please note that: > > > > > > - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file > > > systems were repo-copied from sys/miscfs to sys/fs. > > > > > > - Renamed the following file systems and their modules: > > > fdesc -> fdescfs, portal -> portalfs, union -> unionfs. > > > > > > - Renamed corresponding kernel options: > > > FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS. > > > > > > - Install header files for the above file systems. > > > > > > > > > Warner, could you please add this to UPDATING? > > > > It may also be worth mentioning that people should move /usr/include > > to (say) /usr/include.not before their next installworld and nuke > > /usr/include.not after it completes. > > > Why? Only new headers get installed, no old headers were withdrawn. Mea Culpa, I thought you had moved the installed /usr/include/?*fs files to /usr/include/fs/ > Cheers, > -- > Ruslan Ermilov Oracle Developer/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 -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 6:37:56 2001 Delivered-To: freebsd-current@freebsd.org Received: from enigma.whacky.net (enigma.whacky.net [194.109.204.120]) by hub.freebsd.org (Postfix) with ESMTP id 2777137B424 for ; Wed, 23 May 2001 06:37:45 -0700 (PDT) (envelope-from stephanb@whacky.net) Received: (from root@localhost) by enigma.whacky.net (8.11.3/8.11.3) id f4NDbqT01315 for current@freebsd.org; Wed, 23 May 2001 15:37:52 +0200 (CEST) (envelope-from stephanb) Received: (from stephanb@localhost) by enigma.whacky.net (8.11.3/8.11.3) id f4NDbnD01307 for current@freebsd.org; Wed, 23 May 2001 15:37:49 +0200 (CEST) (envelope-from stephanb) Date: Wed, 23 May 2001 15:37:49 +0200 From: Stephan van Beerschoten To: current@freebsd.org Subject: harddisk faillure or kernel problem ? Message-ID: <20010523153749.A1257@enigma.whacky.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Virus-Scanned: by enigma.whacky.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 For a while now I keep having the following logentries in my messages file: May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 1704031 of 720912-720913 (ad0s1 bn 17040 31; cn 1803 tn 3 sn 7) retrying May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 2857979 of 1297886-1297887 (ad0s1 bn 285 7979; cn 3024 tn 4 sn 47) retrying May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 3689535 of 1713664-1713677 (ad0s1 bn 368 9535; cn 3904 tn 4 sn 3) retrying May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 4198463 of 1968128-1968129 (ad0s1 bn 419 8463; cn 4442 tn 12 sn 17) retrying May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 4607039 of 2172416-2172419 (ad0s1 bn 460 7039; cn 4875 tn 2 sn 38) retrying Is this because of some UDMA option in my kernel that I have or may have missed, or is this really hardware ? I've had this for months now and never actually bothered because it never gave me any problems, at least not noticable ones. I use the machine remotely mainly, so harddisk speeds that may have dropped because of this are hardly noticable if you're just doing commandline work. Diagnoses: Do I need to replace hardware here, or not ? FreeBSD xxxx.xx.xxx.xx.xx 4.3-STABLE FreeBSD 4.3-STABLE #3: Tue May 15 20:23:48 CEST 2001 root@xxxx.xx.xxx.xx.xx:/usr/obj/usr/src/sys/ENIGMA i386 Thanks, Stephan -- Stephan van Beerschoten [SVB21-RIPE] stephanb@whacky.net PGP fingerprint: 4557 9761 B212 FB4C 778D 3529 C42A 2D27 "To err is human, to forgive is Not Company Policy" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 6:43:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from lamia.lf.net (lamia.LF.net [212.9.160.192]) by hub.freebsd.org (Postfix) with ESMTP id D20A237B424 for ; Wed, 23 May 2001 06:43:51 -0700 (PDT) (envelope-from nk@lamia.lf.net) Received: by lamia.lf.net (Smail3.2.0.111/lamia.lf.net) via LF.net GmbH Internet Services for hub.freebsd.org id m152YvW-001Sq4C; Wed, 23 May 2001 15:43:50 +0200 (CEST) To: current@freebsd.org Subject: downgrade Organization: LF.net GmbH X-Attribution: viteno X-NCC-RegID: de.lfnet X-URL: http://www.LF.net/ X-Face: iq-"D}ZS'It[NXourO#`D+JoJC>bZPU\xvX4Um\sR}_zUI?R: lt{Y/s1g[=5L/BHY@]NxB(D?&:tCwX@Vp:YJURe}$MDZ1&/v<`C+^AVc"s/&m`Mu#s| From: Norbert Koch Date: 23 May 2001 15:43:50 +0200 Message-ID: Lines: 7 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) 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! Is it possible to downgrade a machine from -current to -stable? Thanks, norbert. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 6:56:49 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 5CDA837B42C; Wed, 23 May 2001 06:56:42 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4NDud919683; Wed, 23 May 2001 16:56:39 +0300 (EEST) (envelope-from ru) Date: Wed, 23 May 2001 16:56:39 +0300 From: Ruslan Ermilov To: current@FreeBSD.org Cc: Greg Lehey Subject: sbin/vinum broken Message-ID: <20010523165638.A17292@sunbay.com> Mail-Followup-To: current@FreeBSD.org, Greg Lehey Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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! src/sbin/vinum is broken at the moment. It doesn't build without -DVINUMDEBUG. A quick workaround: Index: Makefile =================================================================== RCS file: /home/ncvs/src/sbin/vinum/Makefile,v retrieving revision 1.20 diff -u -r1.20 Makefile --- Makefile 2001/05/23 05:24:53 1.20 +++ Makefile 2001/05/23 13:55:24 @@ -5,6 +5,7 @@ MAN= vinum.8 CFLAGS+= -I${.CURDIR}/../../sys -Wall +CFLAGS+= -DVINUMDEBUG # Print __FILE__ and __LINE__ when doing perror() #CFLAGS+= -DDEVBUG Cheers, -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 9: 8:49 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id 63E8037B423 for ; Wed, 23 May 2001 09:08:45 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f4NG8Vt05998 for current@FreeBSD.ORG; Wed, 23 May 2001 09:08:31 -0700 (PDT) Date: Wed, 23 May 2001 09:08:31 -0700 (PDT) From: David Wolfskill Message-Id: <200105231608.f4NG8Vt05998@bunrab.catwhisker.org> To: current@FreeBSD.ORG Subject: Re: sbin/vinum broken In-Reply-To: <20010523165638.A17292@sunbay.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Date: Wed, 23 May 2001 16:56:39 +0300 >From: Ruslan Ermilov >src/sbin/vinum is broken at the moment. >It doesn't build without -DVINUMDEBUG. >A quick workaround: [Workaround -- adding "CFLAGS+= -DVINUMDEBUG" to src/sbin/vinum/Makefile -- elided] OK; I verified that I experienced this, as well. After applying the workaround, I continued with "make everything && make kernel KERNCONF=LAPTOP_30W && make installworld && mergemaster". The "make installworld" dies, however: cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 dev/usb/*.h /usr/include/dev/usb cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 dev/wi/*.h /usr/include/dev/wi cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 fs/fdesc/*.h /usr/include/fs/fdesc install: fs/fdesc/*.h: No such file or directory *** Error code 71 Stop in /usr/src/include. *** Error code 1 Stop in /usr/src. *** Error code 1 I suspect that the reference to fs/fdesc/*.h should read "fs/fdescfs/*.h", per the earlier "HEADS UP" note. This system is: FreeBSD dhcp-133.catwhisker.org 5.0-CURRENT FreeBSD 5.0-CURRENT #7: Tue May 22 19:29:45 PDT 2001 root@dhcp-133.catwhisker.org:/common/C/obj/usr/src/sys/LAPTOP_30W i386 However, not only was I able to get this far in multi-user mode, but I was able to do it while doing the "make buildworld" & friends in an X environment. Cheers, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 9:13: 0 2001 Delivered-To: freebsd-current@freebsd.org Received: from moran.grauel.com (usr1-6.mintel.net [63.81.123.21]) by hub.freebsd.org (Postfix) with ESMTP id 7F7D237B422 for ; Wed, 23 May 2001 09:12:56 -0700 (PDT) (envelope-from rjk@moran.grauel.com) Received: (from rjk@localhost) by moran.grauel.com (8.11.3/8.11.3) id f4NFOWn03889; Wed, 23 May 2001 10:24:32 -0500 (EST) (envelope-from rjk) From: Richard J Kuhns MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15115.54831.611743.749503@moran.grauel.com> Date: Wed, 23 May 2001 10:24:31 -0500 To: Norbert Koch Cc: current@FreeBSD.ORG Subject: Re: downgrade In-Reply-To: References: X-Mailer: VM 6.92 under 21.4 (patch 1) "Copyleft" 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 Norbert Koch writes: > > Hi! > > Is it possible to downgrade a machine from -current to -stable? > Yes, it's possible, but if you've got much on your system I don't think it's worth it. I (almost) did it a couple of months ago. It's not for the faint of heart. One thing that you've got to keep in mind is the bump in shared library versions; you'll probably have to reinstall anything you built yourself or via the ports system, and make sure you've removed the -current libraries (with the higher version numbers) first. After I'd spent most of a day deinstalling and reinstalling various ports, I decided it would be a lot safer and easier to just do a binary-only install from the CD, check out the latest -stable sources, and upgrade that way. If you were tracking -current before, you've got a local copy of the repository, right :-)? That's a good argument for multiple partitions, by the way. Since I have a partition for projects, one for src (both FreeBSD and /usr/ports/distfiles), and one for my mp3s I just told sysinstall to newfs /, /usr and /var but leave /home and all the rest alone. -- Richard Kuhns rjk@grauel.com PO Box 6249 Tel: (765)477-6000 \ 100 Sawmill Road x319 Lafayette, IN 47903 (800)489-4891 / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 9:22:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id 30BCB37B619 for ; Wed, 23 May 2001 09:22:05 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f4NGLob06057 for current@FreeBSD.ORG; Wed, 23 May 2001 09:21:50 -0700 (PDT) Date: Wed, 23 May 2001 09:21:50 -0700 (PDT) From: David Wolfskill Message-Id: <200105231621.f4NGLob06057@bunrab.catwhisker.org> To: current@FreeBSD.ORG Subject: installworld broken (includes fix) [was: Re: sbin/vinum broken] In-Reply-To: <200105231608.f4NG8Vt05998@bunrab.catwhisker.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 >Date: Wed, 23 May 2001 09:08:31 -0700 (PDT) >From: David Wolfskill >The "make installworld" dies, however: >cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 dev/usb/*.h /usr/include/dev/usb >cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 dev/wi/*.h /usr/include/dev/wi >cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 fs/fdesc/*.h /usr/include/fs/fdesc >install: fs/fdesc/*.h: No such file or directory >*** Error code 71 >Stop in /usr/src/include. >*** Error code 1 >Stop in /usr/src. >*** Error code 1 >I suspect that the reference to fs/fdesc/*.h should read "fs/fdescfs/*.h", >per the earlier "HEADS UP" note. OK; that was necessary, but insufficient. Here's a patch: cvs diff -u include/Makefile Index: include/Makefile =================================================================== RCS file: /cvs/freebsd/src/include/Makefile,v retrieving revision 1.138 diff -u -u -r1.138 Makefile --- include/Makefile 2001/05/23 09:41:59 1.138 +++ include/Makefile 2001/05/23 16:18:24 @@ -46,8 +46,8 @@ LNOHEADERDIRS= fs isofs ufs dev LSUBDIRS= cam/scsi dev/ppbus dev/usb dev/wi \ - fs/fdesc fs/fifofs fs/nullfs fs/portal fs/procfs fs/smbfs \ - fs/umapfs fs/union isofs/cd9660 ufs/ffs ufs/mfs ufs/ufs + fs/fdescfs fs/fifofs fs/nullfs fs/portalfs fs/procfs fs/smbfs \ + fs/umapfs fs/unionfs isofs/cd9660 ufs/ffs ufs/mfs ufs/ufs # Define SHARED to indicate whether you want symbolic links to the system # source (``symlinks''), or a separate copy (``copies''). ``symlinks'' is dhcp-133[18] Cheers, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 9:51:54 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id BEC4937B422 for ; Wed, 23 May 2001 09:51:47 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4NGpSD36677; Wed, 23 May 2001 19:51:28 +0300 (EEST) (envelope-from ru) Date: Wed, 23 May 2001 19:51:28 +0300 From: Ruslan Ermilov To: David Wolfskill Cc: current@FreeBSD.ORG Subject: Re: sbin/vinum broken Message-ID: <20010523195128.B34877@sunbay.com> Mail-Followup-To: David Wolfskill , current@FreeBSD.ORG References: <20010523165638.A17292@sunbay.com> <200105231608.f4NG8Vt05998@bunrab.catwhisker.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105231608.f4NG8Vt05998@bunrab.catwhisker.org>; from david@catwhisker.org on Wed, May 23, 2001 at 09:08:31AM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 23, 2001 at 09:08:31AM -0700, David Wolfskill wrote: > >Date: Wed, 23 May 2001 16:56:39 +0300 > >From: Ruslan Ermilov > > >src/sbin/vinum is broken at the moment. > >It doesn't build without -DVINUMDEBUG. > > >A quick workaround: > > [Workaround -- adding "CFLAGS+= -DVINUMDEBUG" to > src/sbin/vinum/Makefile -- elided] > > OK; I verified that I experienced this, as well. After applying the > workaround, I continued with "make everything && make kernel > KERNCONF=LAPTOP_30W && make installworld && mergemaster". > > The "make installworld" dies, however: > > cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 dev/usb/*.h /usr/include/dev/usb > cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 dev/wi/*.h /usr/include/dev/wi > cd /usr/src/include/../sys; install -C -C -o root -g wheel -m 444 fs/fdesc/*.h /usr/include/fs/fdesc > install: fs/fdesc/*.h: No such file or directory > *** Error code 71 > > Stop in /usr/src/include. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > Already fixed in src/include/Makefile,v 1.139, sorry for that! Cheers, -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 10:21: 5 2001 Delivered-To: freebsd-current@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id E389D37B422 for ; Wed, 23 May 2001 10:21:03 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f4NHL2K59995; Wed, 23 May 2001 10:21:02 -0700 (PDT) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.1) id f4NHL1B44567; Wed, 23 May 2001 10:21:01 -0700 (PDT) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200105231123.f4NBNUD33639@rina.r.dl.itc.u-tokyo.ac.jp> Date: Wed, 23 May 2001 10:21:01 -0700 (PDT) From: John Baldwin To: Seigo Tanimura Subject: RE: New strategy of locking a process group 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 23-May-01 Seigo Tanimura wrote: > The issue of both of the solutions briefed above is that the p_pgrp > lock protects *excess* data. It might be another solution to introduce > a new mutex (p_pgrpmtx) into struct proc to lock p_pgrp. Although > memory size costs per process, contention for p_pgrp lock should occur > much less than to adopt a session lock or a global lock. > > As psignal() and some other functions also read p_pgrp, p_mtx should > also lock p_pgrp. You lock either p_pgrpmtx or p_mtx to read p_pgrp, > and both of the locks to modify p_pgrp. Sounds good. I would just use a global p_grp lock for now. It can always be changed to be more fine-grained later if desired. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "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 Wed May 23 13:32:28 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.dada.it (mail4.dada.it [195.110.96.56]) by hub.freebsd.org (Postfix) with SMTP id A0B4437B424 for ; Wed, 23 May 2001 13:32:18 -0700 (PDT) (envelope-from riccardo@torrini.org) Received: (qmail 13092 invoked from network); 23 May 2001 20:32:10 -0000 Received: from unknown (HELO torrini.org) (195.110.114.101) by mail.dada.it with SMTP; 23 May 2001 20:32:10 -0000 Received: (from riccardo@localhost) by torrini.org (8.11.3/8.11.3) id f4NKVYf65134 for current@FreeBSD.ORG; Wed, 23 May 2001 22:31:34 +0200 (CEST) (envelope-from riccardo) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010523125313.A91487@sunbay.com> Date: Wed, 23 May 2001 22:31:33 +0200 (CEST) From: Riccardo Torrini To: current@FreeBSD.ORG Subject: RE: ** HEADS UP **: sys/miscfs file systems moved Sender: owner-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 23-May-01 (09:53:13/GMT) Ruslan Ermilov wrote: > - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file > systems were repo-copied from sys/miscfs to sys/fs. > - Renamed the following file systems and their modules: > fdesc -> fdescfs, portal -> portalfs, union -> unionfs. > - Renamed corresponding kernel options: > FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS. Maybe this is a good moment to ask for rename modules from *_saver.ko to saver_*.ko to follow other layouts as for if_ for interfaces, ng_ for netgraph, splash_ for splash screen and snd_ for sound (as i asked into PR kern/21154)? I know it is _ONLY_ a cosmetic change, but I think may be one of the simple ;) BTW: Apart from sources, the only reference to *saved.ko modules on a running system is into /etc/rc.i386: kldstat -v | grep -q _saver || kldload ${saver}_saver and must be changed to kldstat -v | grep -q saver_ || kldload saver_${saver} Thanks for your time, Riccardo. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 14:10:55 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id C547337B423 for ; Wed, 23 May 2001 14:10:53 -0700 (PDT) (envelope-from mdharnois@home.com) Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001) id AAF0A14A23; Wed, 23 May 2001 16:11:54 -0500 (CDT) To: freebsd-current@freebsd.org Subject: kernel broken in two places Keywords: tty,snoop,kern,usr,sys,src,snp,net From: Michael Harnois Date: 23 May 2001 16:11:53 -0500 Message-ID: <86y9rnlqhy.fsf@mharnois.workgroup.net> Lines: 20 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) 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 Unless I missed a heads-up somewhere ... mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I@ -I@/dev -I@/../include /usr/src/sys/modules/if_sl/../../net/if_sl.c /usr/src/sys/modules/if_sl/../../net/slcompress.c /usr/src/sys/modules/if_sl/../../net/if_sl.c:96: #error "Huh? Slip without inet?" and then, if I overcome that breakage by brute force ... cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../dev -I../../../include -I../../contrib/dev/acpica/Subsystem/Include -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ../../kern/tty_snoop.c ../../kern/tty_snoop.c: In function `snp_detach': ../../kern/tty_snoop.c:394: structure has no member named `snp_olddisc' ../../kern/tty_snoop.c: In function `snpioctl': ../../kern/tty_snoop.c:477: structure has no member named `snp_olddisc' *** Error code 1 -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa Some folks you don't have to satirize, you just quote 'em. --Tom Paxton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 16: 9:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id E272237B423 for ; Wed, 23 May 2001 16:09:54 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4NN9kG90654 for ; Wed, 23 May 2001 16:09:46 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200105232209.f4NM9Jm44975@freefall.freebsd.org> Date: Wed, 23 May 2001 16:09:53 -0700 (PDT) From: John Baldwin To: current@FreeBSD.org Subject: RE: cvs commit: src/sys/vm vm_fault.c Sender: owner-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 23-May-01 John Baldwin wrote: > jhb 2001/05/23 15:09:18 PDT > > Modified files: > sys/vm vm_fault.c > Log: > Take a more conservative approach and still lock Giant around VM faults > for now. Hopefully swapping is working now. The changes I made are perhaps overly conservative, so there may still be some more changes coming down the pipeline to push down Giant a bit farther. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Wed May 23 16:12:55 2001 Delivered-To: freebsd-current@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id 05F8D37B422; Wed, 23 May 2001 16:12:53 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f4NNCqN00184; Wed, 23 May 2001 19:12:52 -0400 (EDT) Date: Wed, 23 May 2001 19:12:51 -0400 From: Alfred Perlstein To: John Baldwin Cc: current@FreeBSD.ORG Subject: Re: cvs commit: src/sys/vm vm_fault.c Message-ID: <20010523191251.U17514@superconductor.rush.net> References: <200105232209.f4NM9Jm44975@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: ; from jhb@FreeBSD.ORG on Wed, May 23, 2001 at 04:09:53PM -0700 X-all-your-base: are belong to us. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * John Baldwin [010523 19:10] wrote: > > On 23-May-01 John Baldwin wrote: > > jhb 2001/05/23 15:09:18 PDT > > > > Modified files: > > sys/vm vm_fault.c > > Log: > > Take a more conservative approach and still lock Giant around VM faults > > for now. > > Hopefully swapping is working now. The changes I made are perhaps overly > conservative, so there may still be some more changes coming down the pipeline > to push down Giant a bit farther. >;) -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 16:55: 3 2001 Delivered-To: freebsd-current@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 37DE237B423 for ; Wed, 23 May 2001 16:54:58 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 583616ACBC; Thu, 24 May 2001 09:24:56 +0930 (CST) Date: Thu, 24 May 2001 09:24:56 +0930 From: Greg Lehey To: current@FreeBSD.org Subject: Re: sbin/vinum broken Message-ID: <20010524092456.R76823@wantadilla.lemis.com> References: <20010523165638.A17292@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010523165638.A17292@sunbay.com>; from ru@FreeBSD.org on Wed, May 23, 2001 at 04:56:39PM +0300 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-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 Wednesday, 23 May 2001 at 16:56:39 +0300, Ruslan Ermilov wrote: > Hi! > > src/sbin/vinum is broken at the moment. > It doesn't build without -DVINUMDEBUG. *sigh*. I could have sworn I tested this, but it seems I did it in a parallel universe. It's fixed now, I think. me->pointyhat++; > > A quick workaround: > > Index: Makefile > =================================================================== > RCS file: /home/ncvs/src/sbin/vinum/Makefile,v > retrieving revision 1.20 > diff -u -r1.20 Makefile > --- Makefile 2001/05/23 05:24:53 1.20 > +++ Makefile 2001/05/23 13:55:24 > @@ -5,6 +5,7 @@ > MAN= vinum.8 > > CFLAGS+= -I${.CURDIR}/../../sys -Wall > +CFLAGS+= -DVINUMDEBUG This didn't work for me: === root@zaphod (/dev/ttyp1) /src/FreeBSD/5.0-CURRENT/src/sbin/vinum 4 -> make Warning: Using /wantadilla/home/obj/src/FreeBSD/5.0-CURRENT/src/sbin/vinum as object directory instead of canonical /usr/obj/src/FreeBSD/5.0-CURRENT/src/sbin/vinum cc -O -pipe -c /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/v.c In file included from /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/v.c:57: /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:75: dev/vinum/vinumvar.h: No such file or directory /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:76: dev/vinum/vinumio.h: No such file or directory /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:77: dev/vinum/vinumkw.h: No such file or directory /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:78: dev/vinum/vinumutil.h: No such file or directory Am I missing something? Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 17:30:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from mobile.hub.org (SHW39-29.accesscable.net [24.138.39.29]) by hub.freebsd.org (Postfix) with ESMTP id 7FB0437B422 for ; Wed, 23 May 2001 17:30:36 -0700 (PDT) (envelope-from scrappy@hub.org) Received: from localhost (scrappy@localhost) by mobile.hub.org (8.11.3/8.11.1) with ESMTP id f4O0UUr38526 for ; Wed, 23 May 2001 21:30:30 -0300 (ADT) (envelope-from scrappy@hub.org) X-Authentication-Warning: mobile.hub.org: scrappy owned process doing -bs Date: Wed, 23 May 2001 21:30:30 -0300 (ADT) From: The Hermit Hacker To: Subject: Tonights panic: free_newdirblk+0x73: movl %eax,0x10(%edx) 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 Just upgraded to latest sources, doesn't look like the swap issue ... was performing a 'make -j16 buildworld' when it panic'd ... Fataltrap 12: page fault while in kernel mode cpuid = 0; lapic.id = 00000000 fault virtual address = 0x12 fault code = supervisor write, page not present instruction pointer = 0x8:0xc020abff stack pointer = 0x10:0xcb75dbbc frame pointer = 0x10:0xcb75dbc4 code segmnt = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 17 (swi3: cambio) kernel: type 12 trap, code=0 Stopped at free_newdirblk+0x73: movl %eax,0x10(%edx) db> trace free_newdirblk+0x73 handle_written_inodeblock+0x29e softdep_disk_write_complete+0x6a bufdone+0xbc bufdonebio+0xf dadone+0x214 camisr+0x1d7 ithread_lopp+0x330 fork_exit+0xbc fork_trampoline+0x8 Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 17:47: 9 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 7367E37B423 for ; Wed, 23 May 2001 17:47:01 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from sparrow.unixfreak.org (sparrow [192.168.2.2]) by bazooka.unixfreak.org (Postfix) with ESMTP id D17F53E48; Wed, 23 May 2001 17:47:00 -0700 (PDT) To: Michael Harnois Cc: freebsd-current@freebsd.org Subject: Re: kernel broken in two places In-Reply-To: <86y9rnlqhy.fsf@mharnois.workgroup.net>; from mdharnois@home.com on "23 May 2001 16:11:53 -0500" Date: Thu, 26 Apr 2001 18:46:56 -0700 From: Dima Dorfman Message-Id: <20010524004700.D17F53E48@bazooka.unixfreak.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 Michael Harnois writes: > Unless I missed a heads-up somewhere ... > > mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I@ -I@/dev -I > @/../include /usr/src/sys/modules/if_sl/../../net/if_sl.c /usr/src/sys/modul > es/if_sl/../../net/slcompress.c > /usr/src/sys/modules/if_sl/../../net/if_sl.c:96: #error "Huh? Slip without in et?" Are you compiling without "options INET"? > > and then, if I overcome that breakage by brute force ... > > cc -c -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Ws > trict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../dev -I../../../ > include -I../../contrib/dev/acpica/Subsystem/Include -D_KERNEL -include opt_ > global.h -elf -mpreferred-stack-boundary=2 ../../kern/tty_snoop.c > ../../kern/tty_snoop.c: In function `snp_detach': > ../../kern/tty_snoop.c:394: structure has no member named `snp_olddisc' > ../../kern/tty_snoop.c: In function `snpioctl': > ../../kern/tty_snoop.c:477: structure has no member named `snp_olddisc' > *** Error code 1 This is my fault. I've fixed it. Sorry, everybody :-/ Dima Dorfman dima@unixfreak.org > > > -- > Michael D. Harnois mdharnois@home.com > Redeemer Lutheran Church Washburn, Iowa > Some folks you don't have to satirize, > you just quote 'em. --Tom Paxton > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 17:47:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id DC36937B424 for ; Wed, 23 May 2001 17:47:04 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4O0koG91939; Wed, 23 May 2001 17:46:51 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 23 May 2001 17:46:57 -0700 (PDT) From: John Baldwin To: The Hermit Hacker Subject: RE: Tonights panic: free_newdirblk+0x73: movl %eax,0x10(%e Cc: freebsd-current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 24-May-01 The Hermit Hacker wrote: > > Just upgraded to latest sources, doesn't look like the swap issue ... was > performing a 'make -j16 buildworld' when it panic'd ... > > > Fataltrap 12: page fault while in kernel mode > cpuid = 0; lapic.id = 00000000 > fault virtual address = 0x12 > fault code = supervisor write, page not present > instruction pointer = 0x8:0xc020abff > stack pointer = 0x10:0xcb75dbbc > frame pointer = 0x10:0xcb75dbc4 > code segmnt = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 17 (swi3: cambio) > kernel: type 12 trap, code=0 > Stopped at free_newdirblk+0x73: movl %eax,0x10(%edx) Looks like %edx is 0x2 then. In other post, the faulting va was 0x11 with the same instruction, meaning that %edx is 0x1. So it looks like it isn't a NULL pointer dereference. It may be related to the VM stuff in that it may be that a buffer is being manipulated somewhere without Giant being held while being manipulated with Giant being held somewhere else? Or it could be a softupdates bug. :-P Is this an SMP machine? Ah, yes it is. Next time you see this, can you display 'show pcpu' for each CPU (show pcpu does the current cpu, show cpu displays the info on CPU ). Also, can you get a backtrace of each process that is running? trace on x86 can take the pid of a process to get a backtrace of as a parameter, and the show pcpu commands should show you what process was executing on the other CPU (including its pid). > db> trace > free_newdirblk+0x73 > handle_written_inodeblock+0x29e > softdep_disk_write_complete+0x6a > bufdone+0xbc > bufdonebio+0xf > dadone+0x214 > camisr+0x1d7 > ithread_lopp+0x330 > fork_exit+0xbc > fork_trampoline+0x8 -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Wed May 23 17:59:54 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id C08F037B43C for ; Wed, 23 May 2001 17:59:50 -0700 (PDT) (envelope-from mdharnois@home.com) Received: from home.com (localhost [127.0.0.1]) by c1030098-a.wtrlo1.ia.home.com (Postfix) with SMTP id AA88014A23; Wed, 23 May 2001 20:00:50 -0500 (CDT) Date: Thu, 24 May 2001 01:00:50 -0000 To: "Dima Dorfman" , "Michael Harnois" Subject: Re: kernel broken in two places From: "Michael Harnois" X-Mailer: TWIG 2.6.2.cvs In-Reply-To: <20010524004700.D17F53E48@bazooka.unixfreak.org> Cc: Message-Id: <20010524010050.AA88014A23@c1030098-a.wtrlo1.ia.home.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dima Dorfman said: > Are you compiling without "options INET"? No, that I could have figured out. -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa CYNIC, n. A blackguard whose faulty vision sees things as they are, not as they ought to be. -- Ambrose Bierce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 18:10:13 2001 Delivered-To: freebsd-current@freebsd.org Received: from mobile.hub.org (SHW39-29.accesscable.net [24.138.39.29]) by hub.freebsd.org (Postfix) with ESMTP id 90D1537B423; Wed, 23 May 2001 18:10:10 -0700 (PDT) (envelope-from scrappy@hub.org) Received: from localhost (scrappy@localhost) by mobile.hub.org (8.11.3/8.11.1) with ESMTP id f4O1A9738862; Wed, 23 May 2001 22:10:09 -0300 (ADT) (envelope-from scrappy@hub.org) X-Authentication-Warning: mobile.hub.org: scrappy owned process doing -bs Date: Wed, 23 May 2001 22:10:09 -0300 (ADT) From: The Hermit Hacker To: John Baldwin Cc: Subject: RE: Tonights panic: free_newdirblk+0x73: movl %eax,0x10(%e In-Reply-To: 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 Okay, running a new buildworld right now ... give it a half hour or so :) On Wed, 23 May 2001, John Baldwin wrote: > Looks like %edx is 0x2 then. In other post, the faulting va was 0x11 > with the same instruction, meaning that %edx is 0x1. So it looks like > it isn't a NULL pointer dereference. It may be related to the VM > stuff in that it may be that a buffer is being manipulated somewhere > without Giant being held while being manipulated with Giant being held > somewhere else? Or it could be a softupdates bug. :-P Is this an SMP > machine? Ah, yes it is. Next time you see this, can you display > 'show pcpu' for each CPU (show pcpu does the current cpu, show cpu > displays the info on CPU ). Okay, this is no problem ... > Also, can you get a backtrace of each process that is running? trace > on x86 can take the pid of a process to get a backtrace of as a > parameter, and the show pcpu commands should show you what process was > executing on the other CPU (including its pid). Oops ... neat, now it just locked up solid and ctl-alt-esc doesn't even get me to debugger :( ah well, will try and recreate the error and report back ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 18:21:43 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id DD99637B422 for ; Wed, 23 May 2001 18:21:39 -0700 (PDT) (envelope-from mdharnois@home.com) Received: from home.com (localhost [127.0.0.1]) by c1030098-a.wtrlo1.ia.home.com (Postfix) with SMTP id D1C6E14A23; Wed, 23 May 2001 20:22:42 -0500 (CDT) Date: Thu, 24 May 2001 01:22:42 -0000 To: "Dima Dorfman" Subject: Re: kernel broken in two places From: "Michael Harnois" X-Mailer: TWIG 2.6.2.cvs In-Reply-To: <20010524004700.D17F53E48@bazooka.unixfreak.org> Cc: Message-Id: <20010524012242.D1C6E14A23@c1030098-a.wtrlo1.ia.home.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, I deleted /usr/src/sys/, cvsup'd again, and now make depend works. Who knows ... -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa Be radical, be as radical as you can ... because radicals empower liberals. --John Preston To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Wed May 23 21:26:39 2001 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 729) id 09B2537B422; Wed, 23 May 2001 21:26:37 -0700 (PDT) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0 To: freebsd-current@freebsd.org Cc: Subject: Date for a working -current? Mime-Version: 1.0 Content-Type: text/plain Message-Id: <20010524042637.09B2537B422@hub.freebsd.org> Date: Wed, 23 May 2001 21:26:37 -0700 (PDT) From: jkoshy@FreeBSD.ORG (Joseph Koshy) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm in the processing of bring a 5-current system of Oct 2000 vintage more upto-date. The kernel built around May 23rd 2001, has been quite unstable, with numerous warning on lock order reversals, and alas, frequent panics, mostly on account of processes sleeping while holding mutexes. Its been a while since -current was like this :). My priority is to build a reasonably upto-date userland. So, my question is: what is a known good date that I can upgrade the machine to? Regards, Koshy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 1:50:13 2001 Delivered-To: freebsd-current@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id 1D0DE37B423 for ; Thu, 24 May 2001 01:50:03 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id KAA03915 for freebsd-current@freebsd.org; Thu, 24 May 2001 10:50:02 +0200 (CEST) Received: (from j@localhost) by uriah.heep.sax.de (8.11.3/8.11.3) id f4O8ekT07049; Thu, 24 May 2001 10:40:46 +0200 (MET DST) (envelope-from j) Date: Thu, 24 May 2001 10:40:46 +0200 (MET DST) Message-Id: <200105240840.f4O8ekT07049@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12> <20010523060549.Z19376@casimir.physics.purdue.edu> <20010523130807.A19223@zerogravity.kawo2.rwth-aachen.d> From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: rm -rf question X-Original-Newsgroups: local.freebsd.current To: freebsd-current@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alexander Langer wrote: > It's xargs job to workaround that: > > ls | xargs rm -rf rm -rf /home/gary/public_html/mrtg/david should have worked as well. It also removes the directory itself, yes, but since it's then rm(1) that does the directory handling, there's no longer a limitation in the arg list that applies. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 2:43:24 2001 Delivered-To: freebsd-current@freebsd.org Received: from cartman.techsupport.co.uk (cabletel1.cableol.net [194.168.3.4]) by hub.freebsd.org (Postfix) with ESMTP id 3D16037B423 for ; Thu, 24 May 2001 02:43:22 -0700 (PDT) (envelope-from ceri@techsupport.co.uk) Received: from ceri by cartman.techsupport.co.uk with local (Exim 3.22 #2) id 152rgP-00037L-00; Thu, 24 May 2001 10:45:29 +0100 Date: Thu, 24 May 2001 10:45:29 +0100 From: Ceri To: Joerg Wunsch Cc: freebsd-current@freebsd.org Subject: Re: rm -rf question Message-ID: <20010524104529.B2716@cartman.techsupport.co.uk> References: <5.1.0.14.2.20010523054956.00a98f90@208.141.46.12> <20010523060549.Z19376@casimir.physics.purdue.edu> <20010523130807.A19223@zerogravity.kawo2.rwth-aachen.d> <200105240840.f4O8ekT07049@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105240840.f4O8ekT07049@uriah.heep.sax.de>; from j@uriah.heep.sax.de on Thu, May 24, 2001 at 10:40:46AM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 24, 2001 at 10:40:46AM +0200, J Wunsch said: > Alexander Langer wrote: > > > ls | xargs rm -rf > > rm -rf /home/gary/public_html/mrtg/david If you're running as root, neither of those do the same thing as rm -rf /home/gary/public_html/mrtg/david/* What if that directory also has a few file called .dont_delete in it ? You both just deleted it (note disclaimer about running as root for the first one - the ls -A alias being the reason). Ceri -- Your local RFC Nazi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 5:21:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from enigma.whacky.net (enigma.whacky.net [194.109.204.120]) by hub.freebsd.org (Postfix) with ESMTP id 02F0B37B424 for ; Thu, 24 May 2001 05:21:20 -0700 (PDT) (envelope-from stephanb@whacky.net) Received: (from root@localhost) by enigma.whacky.net (8.11.3/8.11.3) id f4OCLS123625 for current@freebsd.org; Thu, 24 May 2001 14:21:28 +0200 (CEST) (envelope-from stephanb) Received: (from stephanb@localhost) by enigma.whacky.net (8.11.3/8.11.3) id f4OCLPo23617 for current@FreeBSD.ORG; Thu, 24 May 2001 14:21:25 +0200 (CEST) (envelope-from stephanb) Date: Thu, 24 May 2001 14:21:25 +0200 From: Stephan van Beerschoten To: current@freebsd.org Subject: Re: harddisk faillure or kernel problem ? Message-ID: <20010524142125.B23460@enigma.whacky.net> References: <20010523153749.A1257@enigma.whacky.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010523153749.A1257@enigma.whacky.net>; from stephanb@whacky.net on Wed, May 23, 2001 at 03:37:49PM +0200 X-Virus-Scanned: by enigma.whacky.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 Oops, I accidently mailed this to -CURRENT. Sorry folks. I bounced it to -STABLE On Wed, 23 May 2001, Stephan van Beerschoten wrote: > For a while now I keep having the following logentries in my messages file: > > May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 1704031 of 720912-720913 (ad0s1 bn 17040 > 31; cn 1803 tn 3 sn 7) retrying > May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 2857979 of 1297886-1297887 (ad0s1 bn 285 > 7979; cn 3024 tn 4 sn 47) retrying > May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 3689535 of 1713664-1713677 (ad0s1 bn 368 > 9535; cn 3904 tn 4 sn 3) retrying > May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 4198463 of 1968128-1968129 (ad0s1 bn 419 > 8463; cn 4442 tn 12 sn 17) retrying > May 23 13:59:40 enigma /kernel: ad0s1a: UDMA ICRC error reading fsbn 4607039 of 2172416-2172419 (ad0s1 bn 460 > 7039; cn 4875 tn 2 sn 38) retrying > > Is this because of some UDMA option in my kernel that I have or may have missed, or is this really hardware ? > I've had this for months now and never actually bothered because it never gave me any problems, > at least not noticable ones. I use the machine remotely mainly, so harddisk speeds that may > have dropped because of this are hardly noticable if you're just doing commandline work. > > Diagnoses: Do I need to replace hardware here, or not ? > > FreeBSD xxxx.xx.xxx.xx.xx 4.3-STABLE FreeBSD 4.3-STABLE #3: Tue May 15 20:23:48 CEST 2001 root@xxxx.xx.xxx.xx.xx:/usr/obj/usr/src/sys/ENIGMA i386 > > > Thanks, > Stephan > > -- > Stephan van Beerschoten [SVB21-RIPE] stephanb@whacky.net > PGP fingerprint: 4557 9761 B212 FB4C 778D 3529 C42A 2D27 > "To err is human, to forgive is Not Company Policy" > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- Stephan van Beerschoten [SVB21-RIPE] stephanb@whacky.net PGP fingerprint: 4557 9761 B212 FB4C 778D 3529 C42A 2D27 "To err is human, to forgive is Not Company Policy" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 7:47:26 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id AB0E337B42C for ; Thu, 24 May 2001 07:47:22 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f4OElMM92523 for ; Thu, 24 May 2001 07:47:22 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 35AE2380C; Thu, 24 May 2001 07:47:22 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: freebsd-current@FreeBSD.ORG Subject: Re: rm -rf question In-Reply-To: <200105240840.f4O8ekT07049@uriah.heep.sax.de> Date: Thu, 24 May 2001 07:47:22 -0700 From: Peter Wemm Message-Id: <20010524144722.35AE2380C@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG J Wunsch wrote: > Alexander Langer wrote: > > > It's xargs job to workaround that: > > > > ls | xargs rm -rf > > rm -rf /home/gary/public_html/mrtg/david > > should have worked as well. It also removes the directory itself, > yes, but since it's then rm(1) that does the directory handling, > there's no longer a limitation in the arg list that applies. Incidently, "find /home/gary/public_html/mrtg/david -delete" would have worked as well, and would not have deleted the top directory. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 7:59:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id 54E4E37B422; Thu, 24 May 2001 07:59:35 -0700 (PDT) (envelope-from mdharnois@home.com) Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001) id 3844014A1F; Thu, 24 May 2001 10:00:36 -0500 (CDT) To: The Hermit Hacker Cc: John Baldwin , Subject: Re: Tonights panic: free_newdirblk+0x73: movl %eax,0x10(%e References: From: Michael Harnois Date: 24 May 2001 10:00:36 -0500 In-Reply-To: (The Hermit Hacker's message of "Wed, 23 May 2001 22:10:09 -0300 (ADT)") Message-ID: <86vgmqvlkb.fsf@mharnois.workgroup.net> Lines: 14 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) 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 Wed, 23 May 2001 22:10:09 -0300 (ADT), The Hermit Hacker said: > Oops ... neat, now it just locked up solid and ctl-alt-esc > doesn't even get me to debugger :( This has been my experience for about a week on the -current kernel ... I held out high hopes that these changes by John and Alfred over the past 24 hours or so would fix it, but no go ... -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa "It's not what we don't know that hurts us, it's what we know for certain that just ain't so." -- Mark Twain To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 8:21:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from EnContacto.Net (adsl-63-205-16-205.dsl.mtry01.pacbell.net [63.205.16.205]) by hub.freebsd.org (Postfix) with ESMTP id A783537B422 for ; Thu, 24 May 2001 08:21:35 -0700 (PDT) (envelope-from eculp@encontacto.net) Received: (from root@localhost) by EnContacto.Net (8.11.3/8.11.3) id f4OFLTw12922 for freebsd-current@FreeBSD.ORG; Thu, 24 May 2001 08:21:29 -0700 (PDT) (envelope-from eculp@encontacto.net) From: Edwin Culp Received: from 63.205.16.202 ( [63.205.16.202]) as user eculp@encontacto.net by Mail.CafeMania.Net with HTTP; Thu, 24 May 2001 08:21:28 -0700 Message-ID: <990717688.3b0d26f848473@Mail.CafeMania.Net> Date: Thu, 24 May 2001 08:21:28 -0700 To: freebsd-current@FreeBSD.ORG Subject: Re: Tonights panic: free_newdirblk+0x73: movl %eax,0x10(%e References: <86vgmqvlkb.fsf@mharnois.workgroup.net> In-Reply-To: <86vgmqvlkb.fsf@mharnois.workgroup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs X-Originating-IP: 63.205.16.202 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Quoting Michael Harnois : > On Wed, 23 May 2001 22:10:09 -0300 (ADT), The Hermit Hacker > said: > > > Oops ... neat, now it just locked up solid and ctl-alt-esc > > doesn't even get me to debugger :( > > This has been my experience for about a week on the -current kernel > ... I held out high hopes that these changes by John and Alfred over > the past 24 hours or so would fix it, but no go ... Actually, I cvsuped after John's changes yesterday and built a new kernel on my memory poor k-6 300 that had been sideline for 3 or 4 days and I have been using it for 12 hours with no lockups, although I am still holding my breath:-) I haven't been able to make a world after two tries in these 12 hours, but maybe it's better:-). Thanks to John, Alfred and everyone who contributed to the patch, ed ----------------------------------------------------------------------- The illiterate of the 21st century will not be those who cannot read and write, but those who cannot learn, unlearn and relearn. --Alvin Toffler To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 8:28:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 1DDEF37B422 for ; Thu, 24 May 2001 08:28:38 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4OFSJm35358; Thu, 24 May 2001 18:28:19 +0300 (EEST) (envelope-from ru) Date: Thu, 24 May 2001 18:28:19 +0300 From: Ruslan Ermilov To: Greg Lehey Cc: current@FreeBSD.ORG Subject: Re: sbin/vinum broken Message-ID: <20010524182819.B18141@sunbay.com> Mail-Followup-To: Greg Lehey , current@FreeBSD.ORG References: <20010523165638.A17292@sunbay.com> <20010524092456.R76823@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010524092456.R76823@wantadilla.lemis.com>; from grog@lemis.com on Thu, May 24, 2001 at 09:24:56AM +0930 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 24, 2001 at 09:24:56AM +0930, Greg Lehey wrote: > On Wednesday, 23 May 2001 at 16:56:39 +0300, Ruslan Ermilov wrote: > > Hi! > > > > src/sbin/vinum is broken at the moment. > > It doesn't build without -DVINUMDEBUG. > > *sigh*. I could have sworn I tested this, but it seems I did it in a > parallel universe. It's fixed now, I think. me->pointyhat++; > > > > > A quick workaround: > > > > Index: Makefile > > =================================================================== > > RCS file: /home/ncvs/src/sbin/vinum/Makefile,v > > retrieving revision 1.20 > > diff -u -r1.20 Makefile > > --- Makefile 2001/05/23 05:24:53 1.20 > > +++ Makefile 2001/05/23 13:55:24 > > @@ -5,6 +5,7 @@ > > MAN= vinum.8 > > > > CFLAGS+= -I${.CURDIR}/../../sys -Wall > > +CFLAGS+= -DVINUMDEBUG > > This didn't work for me: > > === root@zaphod (/dev/ttyp1) /src/FreeBSD/5.0-CURRENT/src/sbin/vinum 4 -> make > Warning: Using /wantadilla/home/obj/src/FreeBSD/5.0-CURRENT/src/sbin/vinum as object directory instead of canonical /usr/obj/src/FreeBSD/5.0-CURRENT/src/sbin/vinum > cc -O -pipe -c /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/v.c > In file included from /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/v.c:57: > /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:75: dev/vinum/vinumvar.h: No such file or directory > /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:76: dev/vinum/vinumio.h: No such file or directory > /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:77: dev/vinum/vinumkw.h: No such file or directory > /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:78: dev/vinum/vinumutil.h: No such file or directory > > Am I missing something? > I bet you specified CFLAGS on a command line, and that clobbered CFLAGS+=-I${.CURDIR}/../../sys from Makefile. Otherwise, I fail to see why there's no -I... in the above output. Missing /usr/include/dev/vinum headers, yeah? :-) Cheers, -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 9:37:19 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 4673837B422 for ; Thu, 24 May 2001 09:37:17 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4OGbCG01638; Thu, 24 May 2001 09:37:12 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <86vgmqvlkb.fsf@mharnois.workgroup.net> Date: Thu, 24 May 2001 09:37:15 -0700 (PDT) From: John Baldwin To: Michael Harnois Subject: Re: Tonights panic: free_newdirblk+0x73: movl %eax,0x10(%e Cc: freebsd-current@FreeBSD.org, The Hermit Hacker Sender: owner-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 24-May-01 Michael Harnois wrote: > On Wed, 23 May 2001 22:10:09 -0300 (ADT), The Hermit Hacker > said: > > > Oops ... neat, now it just locked up solid and ctl-alt-esc > > doesn't even get me to debugger :( > > This has been my experience for about a week on the -current kernel > ... I held out high hopes that these changes by John and Alfred over > the past 24 hours or so would fix it, but no go ... I had a epiphany this morning, and will be committing a bandaid to get current workign again on SMP systems. The problem occurs when we take a fault while hold the vm lock already. In that case, the VM was in an inconsistent state when we faulted. That's why we were holding the lock when we faulted. Well, there are places in the fault handler where we release the vm lock to sleep or acquire Giant or some such. When we do so, we allow another thread to try and dink with the VM, which can lead to threads trying to use free'd pages, etc. on SMP systems. The bandaid is to stick all the VM related syscalls that were marked MPSAFE back under Giant for the time being, which I will do shortly. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Thu May 24 15:43:58 2001 Delivered-To: freebsd-current@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 8A77337B422; Thu, 24 May 2001 15:43:55 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f4OMhoE58366; Thu, 24 May 2001 16:43:51 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200105242243.f4OMhoE58366@harmony.village.org> To: Nick Hibma Subject: Re: GENERIC kernel hangs at boot (uhci-related) Cc: Mike Smith , John Polstra , current@FreeBSD.ORG In-reply-to: Your message of "Mon, 21 May 2001 12:24:52 BST." <20010521122024.O94091-100000@henny.webweaving.org> References: <20010521122024.O94091-100000@henny.webweaving.org> Date: Thu, 24 May 2001 16:43:50 -0600 From: Warner Losh Sender: owner-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 <20010521122024.O94091-100000@henny.webweaving.org> Nick Hibma writes: : 'It' in the second case refers to the PCI irq allocation code I presume? : An irq that is 0 or 255 is invalid and should not be allocated to a PCI : device. But speaking about rev1.32, how would you assign an interrupt as : is stated in the log message for rev1.32? 255 means "none assigned". The INTPIN register determines if you should allocate a irq to the device or not. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 15:46:34 2001 Delivered-To: freebsd-current@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 56CD037B423; Thu, 24 May 2001 15:46:32 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f4OMkVE58395; Thu, 24 May 2001 16:46:31 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200105242246.f4OMkVE58395@harmony.village.org> To: n_hibma@FreeBSD.ORG Subject: Re: GENERIC kernel hangs at boot (uhci-related) Cc: Mike Smith , current@FreeBSD.ORG In-reply-to: Your message of "Mon, 21 May 2001 21:43:05 BST." <20010521213701.H665-100000@henny.webweaving.org> References: <20010521213701.H665-100000@henny.webweaving.org> Date: Thu, 24 May 2001 16:46:31 -0600 From: Warner Losh Sender: owner-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 <20010521213701.H665-100000@henny.webweaving.org> n_hibma@FreeBSD.ORG writes: : The problem is not that the PCI device is not initialised, but that the : device is assigned a bogus irq (0/255) by the BIOS. That's not true. They are the default values by the chip. The BIOS likely isn't initializing the chip at all. The PCI infrastructure should do the right thing, and mike's new code does do the right thing. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 15:49:12 2001 Delivered-To: freebsd-current@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id C1BAF37B423; Thu, 24 May 2001 15:49:09 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f4OMn8E58433; Thu, 24 May 2001 16:49:09 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200105242249.f4OMn8E58433@harmony.village.org> To: Brian Somers Subject: Re: ** HEADS UP **: sys/miscfs file systems moved Cc: Ruslan Ermilov , current@FreeBSD.ORG In-reply-to: Your message of "Wed, 23 May 2001 12:52:40 BST." <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> References: <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> Date: Thu, 24 May 2001 16:49:08 -0600 From: Warner Losh Sender: owner-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 <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> Brian Somers writes: : It may also be worth mentioning that people should move /usr/include : to (say) /usr/include.not before their next installworld and nuke : /usr/include.not after it completes. Eh? that's a bug in the installation proceedure then. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 15:55: 6 2001 Delivered-To: freebsd-current@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id D254F37B423 for ; Thu, 24 May 2001 15:55:04 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f4OMt0E58481; Thu, 24 May 2001 16:55:01 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200105242255.f4OMt0E58481@harmony.village.org> To: Norbert Koch Subject: Re: downgrade Cc: current@FreeBSD.ORG In-reply-to: Your message of "23 May 2001 15:43:50 +0200." References: Date: Thu, 24 May 2001 16:55:00 -0600 From: Warner Losh Sender: owner-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 Norbert Koch writes: : Is it possible to downgrade a machine from -current to -stable? make installworld Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 15:56:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 4823337B423; Thu, 24 May 2001 15:56:42 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f4OMufE58506; Thu, 24 May 2001 16:56:41 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200105242256.f4OMufE58506@harmony.village.org> To: jkoshy@FreeBSD.ORG (Joseph Koshy) Subject: Re: Date for a working -current? Cc: freebsd-current@FreeBSD.ORG In-reply-to: Your message of "Wed, 23 May 2001 21:26:37 PDT." <20010524042637.09B2537B422@hub.freebsd.org> References: <20010524042637.09B2537B422@hub.freebsd.org> Date: Thu, 24 May 2001 16:56:41 -0600 From: Warner Losh Sender: owner-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 <20010524042637.09B2537B422@hub.freebsd.org> Joseph Koshy writes: : I'm in the processing of bring a 5-current system of Oct 2000 vintage : more upto-date. May 18th, 2001 12:00:00 is what I've been using. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 16:24: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id AAABD37B42C; Thu, 24 May 2001 16:24:05 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f4ONO5M94304; Thu, 24 May 2001 16:24:05 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 4A386380C; Thu, 24 May 2001 16:24:05 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Warner Losh Cc: jkoshy@FreeBSD.ORG (Joseph Koshy), freebsd-current@FreeBSD.ORG Subject: Re: Date for a working -current? In-Reply-To: <200105242256.f4OMufE58506@harmony.village.org> Date: Thu, 24 May 2001 16:24:05 -0700 From: Peter Wemm Message-Id: <20010524232405.4A386380C@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Warner Losh wrote: > In message <20010524042637.09B2537B422@hub.freebsd.org> Joseph Koshy writes: > : I'm in the processing of bring a 5-current system of Oct 2000 vintage > : more upto-date. > > May 18th, 2001 12:00:00 is what I've been using. > > Warner But you may want to "cd sys/ufs/ffs; cvs update -A *softdep*" straight afterwards. I dont know if your date comes before the soft updates problems, but updating those files to HEAD solves the problems that are in softdep immediately before the VM problems. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 17:50:29 2001 Delivered-To: freebsd-current@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 15A0937B424 for ; Thu, 24 May 2001 17:50:25 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 07EF86ACBC; Fri, 25 May 2001 10:20:23 +0930 (CST) Date: Fri, 25 May 2001 10:20:23 +0930 From: Greg Lehey To: current@FreeBSD.ORG Subject: Re: sbin/vinum broken Message-ID: <20010525102022.F26315@wantadilla.lemis.com> References: <20010523165638.A17292@sunbay.com> <20010524092456.R76823@wantadilla.lemis.com> <20010524182819.B18141@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010524182819.B18141@sunbay.com>; from ru@FreeBSD.ORG on Thu, May 24, 2001 at 06:28:19PM +0300 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday, 24 May 2001 at 18:28:19 +0300, Ruslan Ermilov wrote: > On Thu, May 24, 2001 at 09:24:56AM +0930, Greg Lehey wrote: >> On Wednesday, 23 May 2001 at 16:56:39 +0300, Ruslan Ermilov wrote: >>> Hi! >>> >>> src/sbin/vinum is broken at the moment. >>> It doesn't build without -DVINUMDEBUG. >> >> *sigh*. I could have sworn I tested this, but it seems I did it in a >> parallel universe. It's fixed now, I think. me->pointyhat++; >> >>> >>> A quick workaround: >>> >>> Index: Makefile >>> =================================================================== >>> RCS file: /home/ncvs/src/sbin/vinum/Makefile,v >>> retrieving revision 1.20 >>> diff -u -r1.20 Makefile >>> --- Makefile 2001/05/23 05:24:53 1.20 >>> +++ Makefile 2001/05/23 13:55:24 >>> @@ -5,6 +5,7 @@ >>> MAN= vinum.8 >>> >>> CFLAGS+= -I${.CURDIR}/../../sys -Wall >>> +CFLAGS+= -DVINUMDEBUG >> >> This didn't work for me: >> >> === root@zaphod (/dev/ttyp1) /src/FreeBSD/5.0-CURRENT/src/sbin/vinum 4 -> make >> Warning: Using /wantadilla/home/obj/src/FreeBSD/5.0-CURRENT/src/sbin/vinum as object directory instead of canonical /usr/obj/src/FreeBSD/5.0-CURRENT/src/sbin/vinum >> cc -O -pipe -c /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/v.c >> In file included from /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/v.c:57: >> /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:75: dev/vinum/vinumvar.h: No such file or directory >> /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:76: dev/vinum/vinumio.h: No such file or directory >> /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:77: dev/vinum/vinumkw.h: No such file or directory >> /src/FreeBSD/5.0-CURRENT/src/sbin/vinum/vext.h:78: dev/vinum/vinumutil.h: No such file or directory >> >> Am I missing something? >> > I bet you specified CFLAGS on a command line, and that clobbered > CFLAGS+=-I${.CURDIR}/../../sys from Makefile. No, that wasn't it. > Otherwise, I fail to see why there's no -I... in the above output. So do I. It works now. But I don't understand what has changed. > Missing /usr/include/dev/vinum headers, yeah? :-) No, of course not. With the -I it worked fine. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 19:56:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-39.dsl.lsan03.pacbell.net [63.207.60.39]) by hub.freebsd.org (Postfix) with ESMTP id 3A34237B422; Thu, 24 May 2001 19:56:34 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 47C3666B5F; Thu, 24 May 2001 19:56:33 -0700 (PDT) Date: Thu, 24 May 2001 19:56:33 -0700 From: Kris Kennaway To: Mikhail Teterin Cc: kris@obsecurity.org, gordont@bluemtn.net, bp@FreeBSD.org, current@FreeBSD.org Subject: Re: mount_mfs (Re: smbfs) Message-ID: <20010524195633.A39799@xor.obsecurity.org> References: <20010524182109.A38228@xor.obsecurity.org> <200105250235.f4P2ZjG35815@aldan.algebra.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105250235.f4P2ZjG35815@aldan.algebra.com>; from mi@aldan.algebra.com on Thu, May 24, 2001 at 10:35:43PM -0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 24, 2001 at 10:35:43PM -0400, Mikhail Teterin wrote: > On 24 May, Kris Kennaway wrote: > > On Thu, May 24, 2001 at 06:13:21PM -0700, Gordon Tetlow wrote: > >> Should there be a mount_smbfs to go with this? How does one mount smb > >> shares otherwise? > >=20 > > It's in the smbfs port. >=20 > Shouldn't it move to the base system now? >=20 > BTW, what happened to mount_mfs in current? It still gives this nasty > warning about migrating to mdconfig, waits 15 seconds and then panics > my machine. Mine too. It also appears there's no canonical (i.e. rc.conf) knob for configuring /tmp as a MD (there are however instructions in the manpage which I hacked in manually on my system) Kris --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7DcngWry0BWjoQKURAn1LAJ0WdzT+wyx+0N/Jl+GR4hJdVMDrjgCgzuz+ CgcWLEJIDm0zFknjeGWMpRo= =kFpl -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 20:11:31 2001 Delivered-To: freebsd-current@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id 0499937B422; Thu, 24 May 2001 20:11:25 -0700 (PDT) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.3/8.11.3) with ESMTP id f4P3CHB36151; Thu, 24 May 2001 23:12:18 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200105250312.f4P3CHB36151@aldan.algebra.com> Date: Thu, 24 May 2001 23:12:14 -0400 (EDT) From: Mikhail Teterin Subject: Re: mount_mfs (Re: smbfs) To: kris@obsecurity.org Cc: current@FreeBSD.org, bp@FreeBSD.org, gordont@bluemtn.net In-Reply-To: <20010524195633.A39799@xor.obsecurity.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 24 May, Kris Kennaway wrote: > On Thu, May 24, 2001 at 10:35:43PM -0400, Mikhail Teterin wrote: >> On 24 May, Kris Kennaway wrote: >> > On Thu, May 24, 2001 at 06:13:21PM -0700, Gordon Tetlow wrote: >> >> Should there be a mount_smbfs to go with this? How does one mount smb >> >> shares otherwise? >> > >> > It's in the smbfs port. >> >> Shouldn't it move to the base system now? What about this? >> BTW, what happened to mount_mfs in current? It still gives this nasty >> warning about migrating to mdconfig, waits 15 seconds and then panics >> my machine. > > Mine too. It also appears there's no canonical (i.e. rc.conf) knob > for configuring /tmp as a MD (there are however instructions in the > manpage which I hacked in manually on my system) /tmp is not the only one. IMO, mount_mfs should DTRT. -- |\__-----__/| _____/ ::::: :::\_____ '__--( ::::::::..::)--__` -mi If you have a / _- \/ :::::::\/ -_ serious knowledge / / :. .::::\ \ about computers -- | ::::::::::::| Ok, let's say you broke keep it in a secret! _|/ ::::____::\|_ the wall with your head "Rules of dating", / /:::::/:_::\::\:.\ What are you going to 'Playboy', ? 1994 | :| ..:(_/ \::|::|::| do in the next cell? | :|:::::. ::|: |::|.:| Stanislaw J. Lec \ |:: :::_/::/: :|:/ ((___\____\____/___/___)) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 20:20:12 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-39.dsl.lsan03.pacbell.net [63.207.60.39]) by hub.freebsd.org (Postfix) with ESMTP id 1617137B42C; Thu, 24 May 2001 20:20:10 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 11AF766B5F; Thu, 24 May 2001 20:20:09 -0700 (PDT) Date: Thu, 24 May 2001 20:20:08 -0700 From: Kris Kennaway To: Mikhail Teterin Cc: kris@obsecurity.org, current@FreeBSD.org, bp@FreeBSD.org, gordont@bluemtn.net Subject: Re: mount_mfs (Re: smbfs) Message-ID: <20010524202008.A40141@xor.obsecurity.org> References: <20010524195633.A39799@xor.obsecurity.org> <200105250312.f4P3CHB36151@aldan.algebra.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105250312.f4P3CHB36151@aldan.algebra.com>; from mi@aldan.algebra.com on Thu, May 24, 2001 at 11:12:14PM -0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 24, 2001 at 11:12:14PM -0400, Mikhail Teterin wrote: > On 24 May, Kris Kennaway wrote: > > On Thu, May 24, 2001 at 10:35:43PM -0400, Mikhail Teterin wrote: > >> On 24 May, Kris Kennaway wrote: > >> > On Thu, May 24, 2001 at 06:13:21PM -0700, Gordon Tetlow wrote: > >> >> Should there be a mount_smbfs to go with this? How does one mount s= mb > >> >> shares otherwise? > >> >=20 > >> > It's in the smbfs port. > >>=20 > >> Shouldn't it move to the base system now? >=20 > What about this? Up to Boris, I guess. Kris --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7Dc9oWry0BWjoQKURAgg+AKD9yCEpwK8ThsnZXw/+b0MsvmZY9gCfU6rE tVH50H+Kl9+TBsXOpIstlLI= =GdH8 -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 20:36:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id DDA4F37B424 for ; Thu, 24 May 2001 20:36:42 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 726F73E2F; Thu, 24 May 2001 20:36:42 -0700 (PDT) To: Kris Kennaway Cc: Mikhail Teterin , current@FreeBSD.org Subject: Re: mount_mfs (Re: smbfs) In-Reply-To: <20010524195633.A39799@xor.obsecurity.org>; from kris@obsecurity.org on "Thu, 24 May 2001 19:56:33 -0700" Date: Thu, 24 May 2001 20:36:42 -0700 From: Dima Dorfman Message-Id: <20010525033642.726F73E2F@bazooka.unixfreak.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 Kris Kennaway writes: > > --3MwIy2ne0vdjdPXF > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Thu, May 24, 2001 at 10:35:43PM -0400, Mikhail Teterin wrote: > > On 24 May, Kris Kennaway wrote: > > > On Thu, May 24, 2001 at 06:13:21PM -0700, Gordon Tetlow wrote: > > >> Should there be a mount_smbfs to go with this? How does one mount smb > > >> shares otherwise? > > > > > > It's in the smbfs port. > > > > Shouldn't it move to the base system now? > > > > BTW, what happened to mount_mfs in current? It still gives this nasty > > warning about migrating to mdconfig, waits 15 seconds and then panics > > my machine. > > Mine too. It also appears there's no canonical (i.e. rc.conf) knob > for configuring /tmp as a MD (there are however instructions in the > manpage which I hacked in manually on my system) Sheldon Hearn posted a patch to add such a knob around January when we were having this exact discussion. Personally, I think it only solves half a problem; what if you want /tmp and /tmp2? And why should it be limited to boot-up? Perhaps there's use for a program which emulates mount_mfs using md. I actually wrote a short program that emulates *all* of mount_mfs's umpteen options with md, disklabel, and newfs, but nobody seemed interested. My choice of name (mount_md) wasn't particuarly good, either. Look at the -hackers and cvs-all archives around late January and early February for the discussions. I still have that program, and it works great, so perhaps I should make it a port (comments?). Regards, Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 20:51:33 2001 Delivered-To: freebsd-current@freebsd.org Received: from dt051n37.san.rr.com (dt051n37.san.rr.com [204.210.32.55]) by hub.freebsd.org (Postfix) with ESMTP id 46E9137B422; Thu, 24 May 2001 20:51:30 -0700 (PDT) (envelope-from DougB@DougBarton.net) Received: from DougBarton.net (master [10.0.0.2]) by dt051n37.san.rr.com (8.9.3/8.9.3) with ESMTP id UAA19576; Thu, 24 May 2001 20:51:29 -0700 (PDT) (envelope-from DougB@DougBarton.net) Message-ID: <3B0DD6BD.8E54A5E5@DougBarton.net> Date: Thu, 24 May 2001 20:51:25 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Ben Smithurst Cc: freebsd-current@FreeBSD.org Subject: Re: tail -f over NFS in -stable References: <200009011622.JAA29262@csla.csl.sri.com> <20000902171753.A43451@magnesium.scientia.demon.co.uk> 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 Blast from the past. This patch seemed reasonable to me at the time, but I notice you didn't commit it. Any reason why? The issue has just come up again on -questions. Doug Ben Smithurst wrote: > > Fred Gilham wrote: > > > In 4.1-stable tail -f over NFS polls rather than blocking. > > Yes, this is acknowledged in the kqueue() manual page. Try this patch, > it seems to work for me so I might commit it if no-one objects. > > Index: forward.c > =================================================================== > RCS file: /usr/cvs/src/usr.bin/tail/forward.c,v > retrieving revision 1.15 > diff -u -r1.15 forward.c > --- forward.c 2000/07/18 19:38:38 1.15 > +++ forward.c 2000/09/02 16:16:40 > @@ -40,7 +40,8 @@ > static char sccsid[] = "@(#)forward.c 8.1 (Berkeley) 6/6/93"; > #endif /* not lint */ > > -#include > +#include > +#include > #include > #include > #include > @@ -96,6 +97,7 @@ > int action = USE_SLEEP; > struct kevent ev[2]; > struct stat sb2; > + struct statfs statfsbuf; > > switch(style) { > case FBYTES: > @@ -170,7 +172,10 @@ > break; > } > > - if (fflag) { > + if (statfs(fname, &statfsbuf) != 0) > + err(1, "statfs %s", fname); > + > + if (fflag && strcmp(statfsbuf.f_fstypename, "ufs") == 0) { > kq = kqueue(); > if (kq < 0) > err(1, "kqueue"); > -- > Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D > FreeBSD Documentation Project / > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message -- I need someone really bad. Are you really bad? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 22:48: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from dt051n37.san.rr.com (dt051n37.san.rr.com [204.210.32.55]) by hub.freebsd.org (Postfix) with ESMTP id D827837B422; Thu, 24 May 2001 22:48:03 -0700 (PDT) (envelope-from DougB@DougBarton.net) Received: from DougBarton.net (master [10.0.0.2]) by dt051n37.san.rr.com (8.9.3/8.9.3) with ESMTP id WAA20953; Thu, 24 May 2001 22:47:22 -0700 (PDT) (envelope-from DougB@DougBarton.net) Message-ID: <3B0DF1E9.AE405B7C@DougBarton.net> Date: Thu, 24 May 2001 22:47:21 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Warner Losh Cc: Brian Somers , Ruslan Ermilov , current@FreeBSD.ORG Subject: Re: ** HEADS UP **: sys/miscfs file systems moved References: <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> <200105242249.f4OMn8E58433@harmony.village.org> 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 Warner Losh wrote: > > In message <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> Brian Somers writes: > : It may also be worth mentioning that people should move /usr/include > : to (say) /usr/include.not before their next installworld and nuke > : /usr/include.not after it completes. > > Eh? that's a bug in the installation proceedure then. I just upgraded to the latest -current and didn't have to do this. Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 23:20:26 2001 Delivered-To: freebsd-current@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 96A1837B624; Thu, 24 May 2001 23:20:16 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id JHQ07618; Fri, 25 May 2001 09:19:53 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f4P6JcI01773; Fri, 25 May 2001 09:19:38 +0300 (EEST) (envelope-from netch) Date: Fri, 25 May 2001 09:19:37 +0300 From: Valentin Nechayev To: Barry Lustig Cc: current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Boot time memory issue Message-ID: <20010525091937.B774@iv.nn.kiev.ua> References: <3B0858F9.1E483EEE@lustig.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3B0858F9.1E483EEE@lustig.com>; from barry@lustig.com on Sun, May 20, 2001 at 07:53:29PM -0400 X-42: On Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sun, May 20, 2001 at 19:53:29, barry (Barry Lustig) wrote about "Boot time memory issue": Do verbose boot (`boot -v') with large SC_HISTORY_SIZE (1000 at least, 2000 at most), and after boot check for "SMAP ..." lines at the very beginning of the kernel boot log at /dev/console. (They are not written to log viewable with dmesg.) Another way is to use serial console. With this SMAP lines one can say more concrete diagnosis. > I was curious whether the memory limitation on the Sony VAIO Z505 > machines was an actual hardware limitation or a marketing issue. I just > tried adding a 256MB module to my machine. The BIOS seemed to mostly > recognize it. > It did see 320MB of RAM, but had problems when testing all of it. > Current (from > a couple of weeks ago) boots, but gives me: > Too many holes in the physical address space, giving up > > and comes up showing 64MB of RAM. Is this something that can be worked > around, or have I run up against an actual hardware limit on the > machine? /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 23:41:36 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 3620837B423 for ; Thu, 24 May 2001 23:41:30 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4P6exA31598; Fri, 25 May 2001 09:40:59 +0300 (EEST) (envelope-from ru) Date: Fri, 25 May 2001 09:40:59 +0300 From: Ruslan Ermilov To: Warner Losh Cc: Brian Somers , current@FreeBSD.ORG Subject: Re: ** HEADS UP **: sys/miscfs file systems moved Message-ID: <20010525094059.B31416@sunbay.com> Mail-Followup-To: Warner Losh , Brian Somers , current@FreeBSD.ORG References: <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> <200105242249.f4OMn8E58433@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105242249.f4OMn8E58433@harmony.village.org>; from imp@harmony.village.org on Thu, May 24, 2001 at 04:49:08PM -0600 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 24, 2001 at 04:49:08PM -0600, Warner Losh wrote: > In message <200105231152.f4NBqeF01876@hak.lan.Awfulhak.org> Brian Somers writes: > : It may also be worth mentioning that people should move /usr/include > : to (say) /usr/include.not before their next installworld and nuke > : /usr/include.not after it completes. > > Eh? that's a bug in the installation proceedure then. > Don't I answered this question? Only new subdirs have appeared. -- Ruslan Ermilov Oracle Developer/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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 23:49:15 2001 Delivered-To: freebsd-current@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 2542137B422; Thu, 24 May 2001 23:49:05 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id JSW08602; Fri, 25 May 2001 09:49:01 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f4P6ggX02067; Fri, 25 May 2001 09:42:42 +0300 (EEST) (envelope-from netch) Date: Fri, 25 May 2001 09:42:42 +0300 From: Valentin Nechayev To: Joseph Koshy Cc: freebsd-current@FreeBSD.ORG Subject: Re: Date for a working -current? Message-ID: <20010525094242.A1903@iv.nn.kiev.ua> References: <20010524042637.09B2537B422@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010524042637.09B2537B422@hub.freebsd.org>; from jkoshy@FreeBSD.ORG on Wed, May 23, 2001 at 09:26:37PM -0700 X-42: On Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wed, May 23, 2001 at 21:26:37, jkoshy (Joseph Koshy) wrote about "Date for a working -current?": > I'm in the processing of bring a 5-current system of Oct 2000 vintage > more upto-date. > The kernel built around May 23rd 2001, has been quite unstable, with > numerous warning on lock order reversals, and alas, frequent panics, mostly > on account of processes sleeping while holding mutexes. The simplest way for seeing almost-guaranteed working -current is 1) read -current of 1-2 days ago, 2) find moment where there are no "Who put boot onto Red Button???" cries, 3) set up date= in supfile for good moment, but at least 24 hours ago, 4) cvsup & make world. But with this approach you only can deal with longstanding issues and you are excluded from quick discovering-and-fixing. Let's suppose this is adoptable for you and others. > Its been a while since -current was like this :). My priority is to build > a reasonably upto-date userland. So, my question is: what is a known good > date that I can upgrade the machine to? /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Thu May 24 23:49:27 2001 Delivered-To: freebsd-current@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id 6FE0237B423 for ; Thu, 24 May 2001 23:49:22 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id JSY08603; Fri, 25 May 2001 09:49:13 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f4P6lDS02138; Fri, 25 May 2001 09:47:13 +0300 (EEST) (envelope-from netch) Date: Fri, 25 May 2001 09:47:13 +0300 From: Valentin Nechayev To: Norbert Koch Cc: current@FreeBSD.ORG Subject: Re: downgrade Message-ID: <20010525094713.B1903@iv.nn.kiev.ua> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from nk@LF.net on Wed, May 23, 2001 at 03:43:50PM +0200 X-42: On Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wed, May 23, 2001 at 15:43:50, nk (Norbert Koch) wrote about "downgrade": > Is it possible to downgrade a machine from -current to -stable? A ~month ago I downgraded my home system from -current to -stable (RELENG_4) via buildworld+installworld. But to do it successfully I had to replace /usr/include with the same from working 4.2-STABLE system, because of too many fallings of buildworld with -current headers. Current (not -current;)) but "contemporary") world building procedure does not exclude headers from /usr/include out of compiler view. /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 0:31: 4 2001 Delivered-To: freebsd-current@freebsd.org Received: from lancia.kaluga.ru (lancia.kaluga.ru [62.148.128.2]) by hub.freebsd.org (Postfix) with ESMTP id 9C10537B422 for ; Fri, 25 May 2001 00:31:00 -0700 (PDT) (envelope-from host@nyc.com) Received: from faxnet18.faxnet.kaluga.ru (faxnet18.kaluga.rosmail.com [62.148.128.6] (may be forged)) by lancia.kaluga.ru (8.11.2/8.11.2) with ESMTP id f4P7Twf75230; Fri, 25 May 2001 11:29:58 +0400 (MSD) Received: from yahoo.com (pool-63.53.51.241.irvn.grid.net [63.53.51.241] (may be forged)) by faxnet18.faxnet.kaluga.ru (8.8.6/8.8.6) with SMTP id LAA14289; Fri, 25 May 2001 11:29:16 +0400 (MSD) Date: Fri, 25 May 2001 00:18:56 -0800 From: sallymolly@email.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Subject: A Must Use Online Investigation Program ! Message-Id: <4gp32g4cb66a.2cbq0uvwc47h7a@yahoo.com> To: harry34@email.com Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG

Find Out Virtually Anything You Want

To Find the Truth About Anything and Anyone you need to
use the Most Powerful Detective Tool on the Internet.

Click Here to start your Online Investigation Now


Use what the Professionals use to Find and Locate...

- your enemies, friends, debtors, a new love interest and much more
useful information for your personal or business needs.
Click Here to start your Online Investigation Now





If you would like to be removed from our mailing list, click here

.

To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 1: 2: 7 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 55C3C37B423 for ; Fri, 25 May 2001 01:02:05 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA28671; Fri, 25 May 2001 18:01:28 +1000 Date: Fri, 25 May 2001 17:59:59 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Valentin Nechayev Cc: Norbert Koch , current@FreeBSD.ORG Subject: Re: downgrade In-Reply-To: <20010525094713.B1903@iv.nn.kiev.ua> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 25 May 2001, Valentin Nechayev wrote: > Current (not -current;)) but "contemporary") world building procedure > does not exclude headers from /usr/include out of compiler view. This was broken in src/Makefile.inc1 rev.1.105. /usr/include was still still needed in rev.1.104 for building cross-tools, so unportabilities in the cross-tools might have caused problems. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 1:34:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from csunb0.leeds.ac.uk (csunb0.leeds.ac.uk [129.11.144.2]) by hub.freebsd.org (Postfix) with SMTP id EF41A37B422 for ; Fri, 25 May 2001 01:34:40 -0700 (PDT) (envelope-from csxbcs@comp.leeds.ac.uk) Received: from cslin.leeds.ac.uk (csunc0.leeds.ac.uk [129.11.144.3]) by csunb0.leeds.ac.uk (8.6.12/8.6.12) with ESMTP id JAA24567; Fri, 25 May 2001 09:29:25 +0100 Received: from cslin006.leeds.ac.uk (cslin006 [129.11.146.6]) by cslin.leeds.ac.uk (8.9.3+Sun/) with ESMTP id JAA14832; Fri, 25 May 2001 09:29:23 +0100 (BST) Received: (from csxbcs@localhost) by cslin006.leeds.ac.uk (8.11.0/8.11.2) id f4P8TPX10953; Fri, 25 May 2001 09:29:25 +0100 Date: Fri, 25 May 2001 09:29:24 +0100 From: Ben Smithurst To: Doug Barton Cc: freebsd-current@FreeBSD.org Subject: Re: tail -f over NFS in -stable Message-ID: <20010525092924.A10898@comp.leeds.ac.uk> References: <200009011622.JAA29262@csla.csl.sri.com> <20000902171753.A43451@magnesium.scientia.demon.co.uk> <3B0DD6BD.8E54A5E5@DougBarton.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B0DD6BD.8E54A5E5@DougBarton.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 Doug Barton wrote: > Blast from the past. This patch seemed reasonable to me at the time, but I > notice you didn't commit it. Any reason why? The issue has just come up > again on -questions. I seem to recall finding it had been fixed elsewhere, though unfortunately I can't remember the details. If it's still needed perhaps you could commit it, I have no time at the moment for FreeBSD stuff unfortunately, I might after June 2nd when my exams have finished and I've got nothing much else to do for 4 whole months. :-) -- Ben Smithurst / csxbcs@comp.leeds.ac.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 2:19:55 2001 Delivered-To: freebsd-current@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id 46FF537B423; Fri, 25 May 2001 02:19:49 -0700 (PDT) (envelope-from sheldonh@uunet.co.za) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 153Dl0-0002Ou-00; Fri, 25 May 2001 11:19:42 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id LAA08647; Fri, 25 May 2001 11:19:38 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 8558; Fri May 25 11:19:12 2001 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.22 #1) id 153DkW-000Ku1-00; Fri, 25 May 2001 11:19:12 +0200 To: Kris Kennaway Cc: Mikhail Teterin , gordont@bluemtn.net, bp@freebsd.org, current@freebsd.org Subject: Re: mount_mfs (Re: smbfs) In-reply-to: Your message of "Thu, 24 May 2001 19:56:33 MST." <20010524195633.A39799@xor.obsecurity.org> Date: Fri, 25 May 2001 11:19:12 +0200 Message-ID: <80352.990782352@axl.fw.uunet.co.za> From: Sheldon Hearn Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 24 May 2001 19:56:33 MST, Kris Kennaway wrote: > Mine too. It also appears there's no canonical (i.e. rc.conf) knob > for configuring /tmp as a MD (there are however instructions in the > manpage which I hacked in manually on my system) I sent patches for this when the whole MD thing came up originally, but they were silently ignored (twice). You can find them using the Message-Id search at: http://www.freebsd.org/search/search-mid.html The Message-Id you're looking for is: 625.980785424@axl.fw.uunet.co.za Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 2:24:59 2001 Delivered-To: freebsd-current@freebsd.org Received: from kalaid.f2f.com.ua (kalaid.f2f.com.ua [62.149.0.33]) by hub.freebsd.org (Postfix) with ESMTP id C8E3837B422 for ; Fri, 25 May 2001 02:24:42 -0700 (PDT) (envelope-from sobomax@mail-in.net) Received: from mail.uic-in.net (root@[212.35.189.4]) by kalaid.f2f.com.ua (8.11.3/8.11.1) with ESMTP id f4P9QbK75888; Fri, 25 May 2001 12:26:38 +0300 (EEST) (envelope-from sobomax@mail-in.net) Received: from notebook.vega.com (das0-l110.uic-in.net [212.35.189.237]) by mail.uic-in.net (8.11.3/8.11.3) with ESMTP id f4P8fxS40472; Fri, 25 May 2001 11:42:00 +0300 (EEST) (envelope-from sobomax@mail-in.net) Date: Fri, 25 May 2001 11:42:00 +0300 (EEST) Message-Id: <200105250842.f4P8fxS40472@mail.uic-in.net> To: netch@iv.nn.kiev.ua, nk@LF.net Cc: current@FreeBSD.ORG From: Maxim Sobolev Reply-To: sobomax@FreeBSD.ORG Subject: Re: downgrade X-Mailer: Pygmy (v0.5.8) In-Reply-To: <20010525094713.B1903@iv.nn.kiev.ua> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 25 May 2001 09:47:13 +0300, Valentin Nechayev wrote: > Wed, May 23, 2001 at 15:43:50, nk (Norbert Koch) wrote about "downgrade": > > > Is it possible to downgrade a machine from -current to -stable? > > A ~month ago I downgraded my home system from -current to -stable (RELENG_4) > via buildworld+installworld. But to do it successfully I had to > replace /usr/include with the same from working 4.2-STABLE system, > because of too many fallings of buildworld with -current headers. > Current (not -current;)) but "contemporary") world building procedure > does not exclude headers from /usr/include out of compiler view. The following procedure should work if you don't have access to a 4-STABLE system to copy includes from (assuming that you have 4-STABLE sources in /usr/src): $ cp -r /usr/include /usr/include.5 # could be useful if you will change your mind $ cd /usr/src $ make includes $ make buildworld $ make installworld $ rm -rf /usr/include.5 -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 2:38:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by hub.freebsd.org (Postfix) with ESMTP id 4C8CA37B424 for ; Fri, 25 May 2001 02:38:33 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id 1365517D28; Fri, 25 May 2001 11:34:39 +0200 (CEST) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.11.3/8.11.3) id f4P9Ycg01297 for freebsd-current@freebsd.org; Fri, 25 May 2001 11:34:38 +0200 (CEST) (envelope-from schweikh) Date: Fri, 25 May 2001 11:34:36 +0200 From: Jens Schweikhardt To: freebsd-current@freebsd.org Subject: Strange DNS behavior; I'm stumped Message-ID: <20010525113435.A955@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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, world\n so I thought I knew everything about DNS. Here's something that beats me. I'm running -current as of a week or so ago, which means the resolver is configured with /etc/nsswitch.conf (instead of /etc/host.conf which no longer exists). I want the resolver to look in /etc/hosts and if nothing is found ask a remote nameserver. So I have $ hostname hal9000.schweikhardt.net $ cat /etc/nsswitch.conf hosts: files dns $ cat /etc/resolv.conf nameserver 193.174.247.193 nameserver 129.143.1.1 nameserver 120.69.18.28 $ grep -v '^#' /etc/hosts 194.95.228.253 hal9000 hal9000.schweikhardt.net hal9000.schweikhardt.net. s253.shuttle.de hal9000.s.shuttle.de 127.0.0.1 localhost localhost.schweikhardt.net localhost.schweikhardt.net. Here's the rub: when I start X, my window manager ctwm tries to determine the hostname (to assign to HOSTNAME and then m4-process the .ctwmrc) This causes my machine to dial out. I've used tcpdump on port 53 (dns) by putting this in /etc/start_if.isp1: /usr/sbin/tcpdump -nli isp1 -c 16 port 53 > /tmp/tcpdump.53 & so I capture the very first dns packets. The result is: $ cat /tmp/tcpdump.53 19:19:36.504837 IP 74: 213.7.20.247.1025 > 129.143.1.1.53: 34068+ A? hal9000.schweikhardt.net. (42) 19:19:41.514465 IP 74: 213.7.20.247.1026 > 120.69.18.28.53: 34068+ A? hal9000.schweikhardt.net. (42) 19:19:46.524451 IP 74: 213.7.20.247.1027 > 193.174.247.193.53: 34068+ A? hal9000.schweikhardt.net. (42) 19:19:46.573495 IP 129: 193.174.247.193.53 > 213.7.20.247.1027: 34068 NXDomain* 0/1/0 (97) (DF) 19:19:46.576134 IP 91: 213.7.20.247.1028 > 193.174.247.193.53: 34069+ A? hal9000.schweikhardt.net.schweikhardt.net. (59) 19:19:46.625504 IP 146: 193.174.247.193.53 > 213.7.20.247.1028: 34069 NXDomain* 0/1/0 (114) (DF) ... innd causes something similar lookups, but sendmail does not. What's more, I can use perl's gethostbyname function and ask for hal9000, localhost, hal9000.schweikhardt.net or hal9000.schweikhardt.net. and it does not cause a remote name server query: schweikh@hal9000:~/bin $ cat dns-test #!/usr/bin/perl # gethostbyname should not dial out if the name is found in /etc/hosts my $name = defined $ARGV[0] ? $ARGV[0] : 'hal9000.schweikhardt.net'; print "gethostbyname $name\n"; my ($n, $aliases, $addrtype, $length, @addrs) = gethostbyname $name; print "name: $n\n"; print "aliases: $aliases\n"; print "addrtype: $addrtype\n"; print "length: $length\n"; foreach (@addrs) { print join ('.', unpack ('C4', $_)), "\n"; } $ dns-test localhost gethostbyname localhost name: localhost aliases: localhost.schweikhardt.net localhost.schweikhardt.net. addrtype: 2 length: 4 127.0.0.1 $ dns-test `hostname` gethostbyname hal9000.schweikhardt.net name: hal9000 aliases: hal9000.schweikhardt.net hal9000.schweikhardt.net. s253.shuttle.de hal9000.s.shuttle.de addrtype: 2 length: 4 194.95.228.253 $ dns-test hal9000 gethostbyname hal9000 name: hal9000 aliases: hal9000.schweikhardt.net hal9000.schweikhardt.net. s253.shuttle.de hal9000.s.shuttle.de addrtype: 2 length: 4 194.95.228.253 $ dns-test hal9000.schweikhardt.net gethostbyname hal9000.schweikhardt.net name: hal9000 aliases: hal9000.schweikhardt.net hal9000.schweikhardt.net. s253.shuttle.de hal9000.s.shuttle.de addrtype: 2 length: 4 194.95.228.253 I even made a C program that used gethostbayname(3) and the result is the same as with the perl script, i.e. no remote ns lookups done for hosts in /etc/hosts. I'm stumped. Is it possible for apps to *force* a name server query, bypassing gethostbyname? How can I force apps to obey my nsswitch.conf? In case it matters, my isp1 interface is a dynamically assigned p2p link configured with ... ifconfig isp1 link1 0.0.0.0 0.0.0.1 netmask 255.255.0.0 and later made the default route. The address 194.95.228.253 in /etc/hosts belongs to another statically assigned interface, i.e. isp0: flags=a011 mtu 1500 inet 194.95.228.253 --> 194.95.242.2 netmask 0xffffff00 ether 00:00:00:00:00:00 isp1: flags=a011 mtu 1500 inet 0.0.0.0 --> 0.0.0.1 netmask 0xffff0000 ether 00:00:00:00:00:00 Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 3:50: 7 2001 Delivered-To: freebsd-current@freebsd.org Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by hub.freebsd.org (Postfix) with ESMTP id 5BBCC37B422 for ; Fri, 25 May 2001 03:49:59 -0700 (PDT) (envelope-from Alexander+Home@leidinger.net) Received: from [194.97.50.136] (helo=mx3.freenet.de) by mout0.freenet.de with esmtp (Exim 3.22 #1) id 153FAH-0000VW-00; Fri, 25 May 2001 12:49:53 +0200 Received: from b8027.pppool.de ([213.7.128.39] helo=Magelan.Leidinger.net) by mx3.freenet.de with esmtp (Exim 3.22 #1) id 153FAE-0004m2-00; Fri, 25 May 2001 12:49:51 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.3/8.11.3) with ESMTP id f4P9rnR51457; Fri, 25 May 2001 11:53:51 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200105250953.f4P9rnR51457@Magelan.Leidinger.net> Date: Fri, 25 May 2001 11:53:48 +0200 (CEST) From: Alexander Leidinger Subject: Re: mount_mfs (Re: smbfs) To: kris@obsecurity.org Cc: mi@aldan.algebra.com, current@FreeBSD.ORG In-Reply-To: <20010524195633.A39799@xor.obsecurity.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 24 Mai, Kris Kennaway wrote: >> BTW, what happened to mount_mfs in current? It still gives this nasty >> warning about migrating to mdconfig, waits 15 seconds and then panics >> my machine. > > Mine too. It also appears there's no canonical (i.e. rc.conf) knob MSG-IDs: - <200105031434.f43EYrG00732@Magelan.Leidinger.net> - <200105091448.f49Emmm00972@Magelan.Leidinger.net> in -current (May 3+9). The last message is with a backtrace from ddb (no coredump, but I may try to get one if someone is interested in fixing it). Bye, Alexander. -- Press every key to continue. 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 Fri May 25 4: 6:59 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-25.dsl.lsan03.pacbell.net [63.207.60.25]) by hub.freebsd.org (Postfix) with ESMTP id 6718937B422 for ; Fri, 25 May 2001 04:06:55 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id E01F166C66; Fri, 25 May 2001 04:06:54 -0700 (PDT) Date: Fri, 25 May 2001 04:06:54 -0700 From: Kris Kennaway To: Dima Dorfman Cc: Kris Kennaway , Mikhail Teterin , current@FreeBSD.org Subject: Re: mount_mfs (Re: smbfs) Message-ID: <20010525040654.B1529@xor.obsecurity.org> References: <20010524195633.A39799@xor.obsecurity.org> <20010525033642.726F73E2F@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010525033642.726F73E2F@bazooka.unixfreak.org>; from dima@unixfreak.org on Thu, May 24, 2001 at 08:36:42PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 24, 2001 at 08:36:42PM -0700, Dima Dorfman wrote: > Sheldon Hearn posted a patch to add such a knob around January when we > were having this exact discussion. Personally, I think it only solves > half a problem; what if you want /tmp and /tmp2? And why should it be > limited to boot-up? Perhaps there's use for a program which emulates > mount_mfs using md. >=20 > I actually wrote a short program that emulates *all* of mount_mfs's > umpteen options with md, disklabel, and newfs, but nobody seemed > interested. My choice of name (mount_md) wasn't particuarly good, > either. Look at the -hackers and cvs-all archives around late January > and early February for the discussions. I still have that program, > and it works great, so perhaps I should make it a port (comments?). Just fix it, please :-) Preserving backwards compatibility is rarely a bad thing. Kris --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7DjzNWry0BWjoQKURAsINAKDpb/9a+y5+sdgFDhKYmZJM3Rkb2QCg7lLM fh14jQCIl1YPHXTaQsA4D+4= =+d54 -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 5:58:53 2001 Delivered-To: freebsd-current@freebsd.org Received: from demos.su (mx.demos.su [194.87.0.32]) by hub.freebsd.org (Postfix) with ESMTP id 4FA6937B423 for ; Fri, 25 May 2001 05:58:47 -0700 (PDT) (envelope-from tolyar%mx.ru@geisteskrank.demos.su) Received: from geisteskrank.demos.su ([194.87.5.54] verified) by demos.su (CommuniGate Pro SMTP 3.4.4/D) with ESMTP id 26038498 for current@FreeBSD.ORG; Fri, 25 May 2001 16:58:45 +0400 Received: œby geisteskrank.demos.su with SMTP id QAA02497 from dwarf.demos.su (IDENT:%dwarf.demos.su@geisteskrank.demos.su [194.87.5.54]) ; Fri, 25 May 2001 16:58:28 +0400 (MSD) (envelope-from tolyar@mx.ru) Message-Id: <200105251258.QAA02497@geisteskrank.demos.su> Date: Fri, 25 May 2001 16:58:26 +0400 From: Zherdev Anatoly To: current@FreeBSD.ORG Subject: Some troubles with apache on -current X-Mailer: stuphead ver. 0.5.2 (Roach) (GTK+ 1.2.10; FreeBSD 5.0-CURRENT; i386) Mime-Version: 1.0 Content-Type: text/plain; charset="KOI8-R" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello. Today i try upgrade apache with php (old apache was compiled on -stable before upgrade), but after upgrade apache core dumped. Apache compiled on -stable work fine. It's look like that troubles in libc's tzset() or my locales. LANG=ru_RU.KOI8-R Time Zone - Moscow ---- gdb # httpd not stripped gdb httpd GNU gdb 4.18 Copyright 1998 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-unknown-freebsd"... (gdb) run Starting program: /usr/local/apache/bin/httpd Program received signal SIGSEGV, Segmentation fault. 0x283589cb in tzset () from /usr/lib/libc.so.5 (gdb) ---- truss httpd [Skip...] readlink("/etc/malloc.conf",0xbfbff8b4,63) ERR#2 'No such file or directory' mmap(0x0,4096,0x3,0x1002,-1,0x0) = 675819520 (0x28483000) break(0x8204000) = 0 (0x0) break(0x8207000) = 0 (0x0) break(0x820a000) = 0 (0x0) break(0x820d000) = 0 (0x0) break(0x8210000) = 0 (0x0) break(0x8213000) = 0 (0x0) break(0x8214000) = 0 (0x0) stat("/usr/local/apache/bin/suexec",0xbfbff980) ERR#2 'No such file or directory' break(0x8215000) = 0 (0x0) stat("/etc/nsswitch.conf",0xbfbff874) = 0 (0x0) open("/etc/nsswitch.conf",0,0666) = 3 (0x3) break(0x8216000) = 0 (0x0) break(0x8217000) = 0 (0x0) ioctl(3,TIOCGETA,0xbfbff758) ERR#25 'Inappropriate ioctl for device' access("/etc/localtime",4) = 0 (0x0) open("/etc/localtime",0,00) = 4 (0x4) fstat(4,0xbfbff628) = 0 (0x0) read(0x4,0xbfbfd31c,0x1f08) = 815 (0x32f) close(4) = 0 (0x0) SIGNAL 11 SIGNAL 11 Process stopped because of: 16 process exit, rval = 139 Segmentation fault (core dumped) -- öÅÒÄÅ× áÎÁÔÏÌÉÊ. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 6:33:48 2001 Delivered-To: freebsd-current@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id 3ED7E37B422 for ; Fri, 25 May 2001 06:33:45 -0700 (PDT) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.3/8.11.3) with ESMTP id f4PDYJB40172; Fri, 25 May 2001 09:34:27 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200105251334.f4PDYJB40172@aldan.algebra.com> Date: Fri, 25 May 2001 09:34:16 -0400 (EDT) From: Mikhail Teterin Subject: Re: mount_mfs (Re: smbfs) To: dima@unixfreak.org Cc: kris@obsecurity.org, current@FreeBSD.org In-Reply-To: <20010525033642.726F73E2F@bazooka.unixfreak.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 > I actually wrote a short program that emulates *all* of mount_mfs's > umpteen options with md, disklabel, and newfs, but nobody seemed > interested. My choice of name (mount_md) wasn't particuarly good, > either. Look at the -hackers and cvs-all archives around late January > and early February for the discussions. I still have that program, and > it works great, so perhaps I should make it a port (comments?). Why can't that program _replace_ mount_mfs? And assume the name too? -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 6:51: 5 2001 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.34.253]) by hub.freebsd.org (Postfix) with ESMTP id ADEEC37B422; Fri, 25 May 2001 06:50:58 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f4PDoom86457; Fri, 25 May 2001 15:50:50 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: audit@freebsd.org, current@freebsd.org Subject: http://phk.freebsd.dk/patch/disk.patch From: Poul-Henning Kamp Date: Fri, 25 May 2001 15:50:50 +0200 Message-ID: <86455.990798650@critter> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Edging closer to making major device numbers a pesky compatibility detail and generally bring the new DEVFS based world order closer: 20010525 disk.patch Create a general facility for making dev_t's depend on another dev_t. The dev_depends(dev_t, dev_t) function is for tying them to each other. When destroy_dev() is called on a dev_t, all dev_t's depending on it will also be destroyed (depth first order). Rewrite the make_dev_alias() to use this dependency facility. kern/subr_disk.c Make the disk mini-layer use dependencies to make sure all relevant dev_t's are removed when the disk disappears. Make the disk mini-layer precreate some magic sub devices which the disk/slice/label code expects to be there. kern/subr_disklabel.c Remove some now unneeded variables. kern/subr_diskmbr.c Remove some ancient, commented out code. kern/subr_diskslice.c Minor cleanup. Use name from dev_t instead of dsname() Not for commit yet: Panic if the cdevsw of a non make_dev()'ed dev_t is accessed. Warn about drivers calling cdevsw_add() -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 6:55:50 2001 Delivered-To: freebsd-current@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id C7F3B37B422; Fri, 25 May 2001 06:55:47 -0700 (PDT) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.3/8.11.3) with ESMTP id f4PDujB40310; Fri, 25 May 2001 09:56:46 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200105251356.f4PDujB40310@aldan.algebra.com> Date: Fri, 25 May 2001 09:56:42 -0400 (EDT) From: Mikhail Teterin Subject: amd feature request (Re: AMD config file question.) To: obrien@FreeBSD.org Cc: kris@obsecurity.org, Jim.Pirzyk@disney.com, current@FreeBSD.org In-Reply-To: <20010525023340.B54585@dragon.nuxi.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 Now that smbfs is in, can amd be used to mount smb shares? Of course, it can. But can we have something like "host" type, where all smb-shares available from a host are automaticly accessible? This may be added to the host-type together with NFS, or be made part of a separate smbhost type. I'd vote for the first one, personally... -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 7:27:55 2001 Delivered-To: freebsd-current@freebsd.org Received: from lists01.iafrica.com (lists01.iafrica.com [196.7.0.141]) by hub.freebsd.org (Postfix) with ESMTP id BFAA337B422 for ; Fri, 25 May 2001 07:27:51 -0700 (PDT) (envelope-from sheldonh@uunet.co.za) Received: from nwl.fw.uunet.co.za ([196.31.2.162]) by lists01.iafrica.com with esmtp (Exim 3.12 #2) id 153IYx-0006Ym-00; Fri, 25 May 2001 16:27:35 +0200 Received: (from nobody@localhost) by nwl.fw.uunet.co.za (8.8.8/8.6.9) id QAA25059; Fri, 25 May 2001 16:27:34 +0200 (SAST) Received: by nwl.fw.uunet.co.za via recvmail id 24780; Fri May 25 16:26:49 2001 Received: from sheldonh (helo=axl.fw.uunet.co.za) by axl.fw.uunet.co.za with local-esmtp (Exim 3.22 #1) id 153IYC-000Njw-00; Fri, 25 May 2001 16:26:48 +0200 To: Mikhail Teterin Cc: dima@unixfreak.org, kris@obsecurity.org, current@freebsd.org Subject: Re: mount_mfs (Re: smbfs) In-reply-to: Your message of "Fri, 25 May 2001 09:34:16 -0400." <200105251334.f4PDYJB40172@aldan.algebra.com> Date: Fri, 25 May 2001 16:26:48 +0200 Message-ID: <91259.990800808@axl.fw.uunet.co.za> From: Sheldon Hearn Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 25 May 2001 09:34:16 -0400, Mikhail Teterin wrote: > Why can't that program _replace_ mount_mfs? And assume the name too? The objection that impressed me the last time this was suggested is that it's totally counter-intuitive to have a binary called mount_mfs that doesn't mount an MFS filesystem. Rather, it does all sorts of icky extra stuff to achieve a rather specific goal. I still don't see why an rc.conf knob specifically for /tmp isn't sufficient. That's what people want this for. Others can read the excellent documentation supplied in mdconfig(8), which is appropriately cross-referenced from md(4), which is the manual page for the device concerned. Logical, orthogonal and pretty damn easy, when you look at the EXAMPLES section. :-) Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 8:26:30 2001 Delivered-To: freebsd-current@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id B6CDF37B42C for ; Fri, 25 May 2001 08:26:26 -0700 (PDT) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.3/8.11.3) with ESMTP id f4PFREB40977; Fri, 25 May 2001 11:27:15 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200105251527.f4PFREB40977@aldan.algebra.com> Date: Fri, 25 May 2001 11:27:11 -0400 (EDT) From: Mikhail Teterin Subject: Re: mount_mfs (Re: smbfs) To: sheldonh@uunet.co.za Cc: dima@unixfreak.org, kris@obsecurity.org, current@freebsd.org In-Reply-To: <91259.990800808@axl.fw.uunet.co.za> 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 25 May, Sheldon Hearn wrote: > > > On Fri, 25 May 2001 09:34:16 -0400, Mikhail Teterin wrote: > >> Why can't that program _replace_ mount_mfs? And assume the name too? > > The objection that impressed me the last time this was suggested is > that it's totally counter-intuitive to have a binary called mount_mfs > that doesn't mount an MFS filesystem. Well, for all intents and purposes, it does. It creates the device backed by swap and newfs-es it. > Rather, it does all sorts of icky extra stuff to achieve a rather > specific goal. The goal of creating a virtual file-system in memory. What's MFS? > I still don't see why an rc.conf knob specifically for /tmp isn't > sufficient. That's what people want this for. As said before, /tmp is too specific. What if I want /tmp2 or /usr/obj to be there for whatever crazy reason? Also, this will require me to modify the /etc/fstab that served me for years. > Others can read the excellent documentation supplied in mdconfig(8), > which is appropriately cross-referenced from md(4), which is the > manual page for the device concerned. And code their own /usr/local/etc/rc.d/mount_memory.sh? Why? Is not /etc/fstab a better place for file-system tables? > Logical, orthogonal and pretty damn easy, when you look at the > EXAMPLES section. :-) -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 9: 0:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from lobster.baynetworks.com (ns3.BayNetworks.COM [192.32.253.3]) by hub.freebsd.org (Postfix) with ESMTP id 6660F37B422 for ; Fri, 25 May 2001 09:00:13 -0700 (PDT) (envelope-from thomma@BayNetworks.COM) Received: from mailhost.BayNetworks.COM (ns4.baynetworks.com [132.245.135.84]) by lobster.baynetworks.com (8.9.1/8.9.1) with ESMTP id MAA21032 for ; Fri, 25 May 2001 12:06:27 -0400 (EDT) Received: from fedex.engwest.baynetworks.com (fedex.engwest.baynetworks.com [134.177.110.46]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id MAA27177 for ; Fri, 25 May 2001 12:00:10 -0400 (EDT) Received: from carrera.engwest (carrera [134.177.160.237]) by fedex.engwest.baynetworks.com (8.8.8+Sun/8.8.8) with SMTP id IAA03846 for ; Fri, 25 May 2001 08:59:22 -0700 (PDT) Received: from localhost by carrera.engwest (SMI-8.6/SMI-SVR4) id IAA04025; Fri, 25 May 2001 08:54:26 -0700 To: freebsd-current@freebsd.org Subject: Panic vm_page_alloc(sendfile) X-Mailer: Mew version 1.92 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010525085426C.thomma@baynetworks.com> Date: Fri, 25 May 2001 08:54:26 -0700 From: Tamiji Homma X-Dispatcher: imput version 971024 Lines: 29 Sender: owner-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 noticed this panic for last few days on my -current sandbox laptop. When I do FTP get file from the machine running -current causes panic like below (hand copied). The machine running ftpd panics not FTP client side. I have not tried FTP put yet... It may panic at FTP client side as well. My last cvsup was around 22:00 PDT on May 24 2001. panic: mutex vm not owned at ../../vm/vm_page.c:755 Debugger("panic") db> trace Debugger(c038865b) at Debugger+0x44 panic(c0387828,c03a0554,c03a1eaf,2f3,0) at panic+0x70 _mtx_assert(c045ca20,1,c03a1eaf,2f3) at _mtx_assert+0x49 vm_page_alloc(c8bcc9c0,0,0,c8b04b9c,c8b04a80) at vm_page_alloc+0x22 sendfile(c8b04a80,c8b43f80,0,0,381508) at sendfile+0x31e syscall(2f,2f,2f,381508,0) at syscall+0x689 syscall_with_err_pushed() at syscall_with_err_pushed+0x1b PS: I am not subscribed to -current but subscribed to current-digest so if it is already reported/fixed, sorry... Tammy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 10: 5:53 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.webjockey.net (mail.webjockey.net [208.141.46.3]) by hub.freebsd.org (Postfix) with ESMTP id 7EDD537B423 for ; Fri, 25 May 2001 10:05:40 -0700 (PDT) (envelope-from ancient@outloud.org) Received: from Dragon.outloud.org (Goal@House.Of.Pain.Com [24.14.88.149]) by mail.webjockey.net (8.11.3/8.11.3) with ESMTP id f4PH5bB69870 for ; Fri, 25 May 2001 12:05:38 -0500 (EST) (envelope-from ancient@outloud.org) Message-Id: <5.1.0.14.2.20010525120111.00a75498@208.141.46.12> X-Sender: ancient@208.141.46.12 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 25 May 2001 12:04:11 -0500 To: current@freebsd.org From: Storms of Perfection Subject: Bug? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Latest CVS from a couple minutes ago, on the kernel compile (make depend goes fine) [root@home] SMP.Kernel> make cc -c -x assembler-with-cpp -DLOCORE -O -pipe -march=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../dev -I../../../include -I../../contrib/dev/acpica/Subsystem/Include -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 ../../i386/i386/locore.s {standard input}: Assembler messages: {standard input}:1422: Error: .space specifies non-absolute value {standard input}:2154: Error: undefined symbol L0 in operation setting PTmap {standard input}:2154: Error: undefined symbol PDRSHIFT in operation setting PTmap {standard input}:1379: Error: undefined symbol L0 in operation {standard input}:1379: Error: undefined symbol PAGE_SIZE in operation {standard input}:1380: Error: undefined symbol L0 in operation {standard input}:1380: Error: undefined symbol PDESIZE in operation {standard input}:2154: Error: undefined symbol L0 in operation setting APTmap {standard input}:2154: Error: undefined symbol PDRSHIFT in operation setting APTmap {standard input}:1388: Error: undefined symbol L0 in operation {standard input}:1388: Error: undefined symbol PAGE_SIZE in operation {standard input}:1389: Error: undefined symbol L0 in operation {standard input}:1389: Error: undefined symbol PDESIZE in operation {standard input}:2154: Error: undefined symbol L0 in operation setting SMP_prvspace {standard input}:2154: Error: undefined symbol PDRSHIFT in operation setting SMP_prvspace {standard input}:1399: Error: undefined symbol L0 in operation {standard input}:1399: Error: undefined symbol PAGE_SIZE in operation {standard input}:1613: Error: undefined symbol UPAGES in operation {standard input}:1613: Error: undefined symbol PAGE_SIZE in operation {standard input}:1976: Error: undefined symbol BI_ESYMTAB in operation {standard input}:1981: Error: undefined symbol BI_SYMTAB in operation {standard input}:1982: Error: undefined symbol BI_ESYMTAB in operation {standard input}:1986: Error: undefined symbol BI_KERNEND in operation {standard input}:1998: Error: undefined symbol PAGE_SIZE in operation {standard input}:1998: Error: undefined symbol PAGE_SIZE in operation {standard input}:2002: Error: undefined symbol PAGE_SIZE in operation {standard input}:2002: Error: undefined symbol PAGE_SIZE in operation {standard input}:2006: Error: undefined symbol UPAGES in operation {standard input}:2006: Error: undefined symbol PAGE_SIZE in operation {standard input}:2006: Error: undefined symbol UPAGES in operation {standard input}:2006: Error: undefined symbol PAGE_SIZE in operation {standard input}:2011: Error: undefined symbol PAGE_SIZE in operation {standard input}:2011: Error: undefined symbol PAGE_SIZE in operation {standard input}:2014: Error: undefined symbol PAGE_SIZE in operation {standard input}:2014: Error: undefined symbol PAGE_SIZE in operation {standard input}:2021: Error: undefined symbol PAGE_SIZE in operation {standard input}:2021: Error: undefined symbol PAGE_SIZE in operation {standard input}:2027: Error: undefined symbol PAGE_SIZE in operation {standard input}:2027: Error: undefined symbol PAGE_SIZE in operation {standard input}:2082: Error: undefined symbol PAGE_SHIFT in operation {standard input}:2098: Error: undefined symbol PAGE_SHIFT in operation {standard input}:2099: Error: undefined symbol PAGE_SHIFT in operation {standard input}:2126: Error: undefined symbol PAGE_SIZE in operation {standard input}:2126: Error: undefined symbol PAGE_SIZE in operation {standard input}:1539: Error: Subtraction of two symbols in different sections ".tmpstk" {.data section} - "KERNBASE" {*UND* section} at file address 28. {standard input}:1562: Error: Subtraction of two symbols in different sections "end" {*UND* section} - "KERNBASE" {*UND* section} at file address 38. {standard input}:1563: Error: Subtraction of two symbols in different sections "edata" {*UND* section} - "KERNBASE" {*UND* section} at file address 43. {standard input}:1575: Error: Subtraction of two symbols in different sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at file address 61. {standard input}:1591: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 81. {standard input}:1760: Error: Subtraction of two symbols in different sections "kernelname" {*UND* section} - "KERNBASE" {*UND* section} at file address 307. {standard input}:1788: Error: Subtraction of two symbols in different sections "bootinfo" {.data section} - "KERNBASE" {*UND* section} at file address 347. {standard input}:1805: Error: Subtraction of two symbols in different sections "nfs_diskless" {*UND* section} - "KERNBASE" {*UND* section} at file address 379. {standard input}:1810: Error: Subtraction of two symbols in different sections "nfs_diskless_valid" {*UND* section} - "KERNBASE" {*UND* section} at file address 392. {standard input}:1823: Error: Subtraction of two symbols in different sections "boothowto" {*UND* section} - "KERNBASE" {*UND* section} at file address 406. {standard input}:1825: Error: Subtraction of two symbols in different sections "bootdev" {*UND* section} - "KERNBASE" {*UND* section} at file address 414. {standard input}:1863: Error: Subtraction of two symbols in different sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file address 466. {standard input}:1868: Error: Subtraction of two symbols in different sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file address 482. {standard input}:1869: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 492. {standard input}:1870: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 502. {standard input}:1871: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 512. {standard input}:1872: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 522. {standard input}:1891: Error: Subtraction of two symbols in different sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file address 563. {standard input}:1918: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 598. {standard input}:1919: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 608. {standard input}:1920: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 618. {standard input}:1926: Error: Subtraction of two symbols in different sections "cpu_high" {.data section} - "KERNBASE" {*UND* section} at file address 633. {standard input}:1927: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 639. {standard input}:1928: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 645. {standard input}:1929: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 651. {standard input}:1930: Error: Subtraction of two symbols in different sections "cpu_vendor" {.data section} - "KERNBASE" {*UND* section} at file address 657. {standard input}:1934: Error: Subtraction of two symbols in different sections "cpu_id" {.data section} - "KERNBASE" {*UND* section} at file address 670. {standard input}:1935: Error: Subtraction of two symbols in different sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at file address 676. {standard input}:1942: Error: Subtraction of two symbols in different sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file address 693. {standard input}:1948: Error: Subtraction of two symbols in different sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file address 710. {standard input}:1952: Error: Subtraction of two symbols in different sections "cpu" {.data section} - "KERNBASE" {*UND* section} at file address 722. {standard input}:1965: Error: Subtraction of two symbols in different sections "cpu_feature" {.data section} - "KERNBASE" {*UND* section} at file address 733. {standard input}:1973: Error: Subtraction of two symbols in different sections "_end" {*UND* section} - "KERNBASE" {*UND* section} at file address 755. {standard input}:1976: Error: Negative of non-absolute symbol KERNBASE {standard input}:1981: Error: Negative of non-absolute symbol KERNBASE {standard input}:1982: Error: Negative of non-absolute symbol KERNBASE {standard input}:1986: Error: Negative of non-absolute symbol KERNBASE {standard input}:1994: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 814. {standard input}:1995: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 820. {standard input}:1998: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 826. {standard input}:1998: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 838. {standard input}:1999: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 856. {standard input}:2002: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 862. {standard input}:2002: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 874. {standard input}:2003: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 892. {standard input}:2006: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 898. {standard input}:2006: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 910. {standard input}:2007: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 928. {standard input}:2009: Error: Subtraction of two symbols in different sections "proc0paddr" {.data section} - "KERNBASE" {*UND* section} at file address 940. {standard input}:2011: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 946. {standard input}:2011: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 958. {standard input}:2012: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 976. {standard input}:2014: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 982. {standard input}:2014: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 994. {standard input}:2015: Error: Subtraction of two symbols in different sections "vm86pa" {.data section} - "KERNBASE" {*UND* section} at file address 1012. {standard input}:2017: Error: Subtraction of two symbols in different sections "vm86paddr" {.data section} - "KERNBASE" {*UND* section} at file address 1024. {standard input}:2021: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1030. {standard input}:2021: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1042. {standard input}:2022: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1060. {standard input}:2024: Error: Subtraction of two symbols in different sections "cpu0prvpage" {.data section} - "KERNBASE" {*UND* section} at file address 1072. {standard input}:2027: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1078. {standard input}:2027: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1090. {standard input}:2028: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1108. {standard input}:2030: Error: Subtraction of two symbols in different sections "SMPpt" {.data section} - "KERNBASE" {*UND* section} at file address 1120. {standard input}:2048: Error: Subtraction of two symbols in different sections "etext" {*UND* section} - "KERNBASE" {*UND* section} at file address 1129. {standard input}:2051: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1152. {standard input}:2054: Error: Subtraction of two symbols in different sections "etext" {*UND* section} - "KERNBASE" {*UND* section} at file address 1174. {standard input}:2065: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1195. {standard input}:2068: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1214. {standard input}:2071: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1236. {standard input}:2073: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1255. {standard input}:2076: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1278. {standard input}:2078: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1297. {standard input}:2083: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1339. {standard input}:2086: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1362. {standard input}:2088: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1381. {standard input}:2094: Error: Subtraction of two symbols in different sections "vm86pa" {.data section} - "KERNBASE" {*UND* section} at file address 1423. {standard input}:2100: Error: Subtraction of two symbols in different sections "vm86pa" {.data section} - "KERNBASE" {*UND* section} at file address 1465. {standard input}:2104: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1488. {standard input}:2106: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1507. {standard input}:2109: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1530. {standard input}:2111: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1549. {standard input}:2114: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1572. {standard input}:2117: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1591. {standard input}:2120: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1614. {standard input}:2123: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1633. {standard input}:2126: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1657. {standard input}:2126: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1669. {standard input}:2130: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 1702. {standard input}:2134: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1725. {standard input}:2137: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1741. {standard input}:2140: Error: Subtraction of two symbols in different sections "KPTphys" {.data section} - "KERNBASE" {*UND* section} at file address 1764. {standard input}:2143: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1783. {standard input}:2146: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1806. {standard input}:2149: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1825. *** Error code 1 Stop in /usr/src/sys/compile/SMP.Kernel. [root@home] SMP.Kernel> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 10:48:26 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 7DF4437B42C; Fri, 25 May 2001 10:48:23 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4PHllG18737; Fri, 25 May 2001 10:47:47 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010525085426C.thomma@baynetworks.com> Date: Fri, 25 May 2001 10:47:51 -0700 (PDT) From: John Baldwin To: Tamiji Homma Subject: RE: Panic vm_page_alloc(sendfile) Cc: freebsd-current@FreeBSD.org, alfred@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 25-May-01 Tamiji Homma wrote: > Hi, > > I noticed this panic for last few days on my -current > sandbox laptop. > > When I do FTP get file from the machine running > -current causes panic like below (hand copied). > > The machine running ftpd panics not FTP client side. > I have not tried FTP put yet... It may panic at FTP > client side as well. > > My last cvsup was around 22:00 PDT on May 24 2001. > > panic: mutex vm not owned at ../../vm/vm_page.c:755 > Debugger("panic") > db> trace > Debugger(c038865b) at Debugger+0x44 > panic(c0387828,c03a0554,c03a1eaf,2f3,0) at panic+0x70 > _mtx_assert(c045ca20,1,c03a1eaf,2f3) at _mtx_assert+0x49 > vm_page_alloc(c8bcc9c0,0,0,c8b04b9c,c8b04a80) at vm_page_alloc+0x22 > sendfile(c8b04a80,c8b43f80,0,0,381508) at sendfile+0x31e > syscall(2f,2f,2f,381508,0) at syscall+0x689 > syscall_with_err_pushed() at syscall_with_err_pushed+0x1b > > PS: I am not subscribed to -current but subscribed to > current-digest so if it is already reported/fixed, sorry... Cool, thanks for the bug report. Please try the patch at http://www.FreeBSD.org/~jhb/patches/sendfile.patch. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Fri May 25 11: 2:52 2001 Delivered-To: freebsd-current@freebsd.org Received: from sj-msg-core-1.cisco.com (sj-msg-core-1.cisco.com [171.71.163.11]) by hub.freebsd.org (Postfix) with ESMTP id 7302037B423; Fri, 25 May 2001 11:02:42 -0700 (PDT) (envelope-from bmah@cisco.com) Received: from bmah-freebsd-0.cisco.com (bmah-freebsd-0.cisco.com [171.70.84.42]) by sj-msg-core-1.cisco.com (8.11.3/8.9.1) with ESMTP id f4PI2j917134; Fri, 25 May 2001 11:02:45 -0700 (PDT) Received: (from bmah@localhost) by bmah-freebsd-0.cisco.com (8.11.3/8.11.3) id f4PI2fn25743; Fri, 25 May 2001 11:02:41 -0700 (PDT) (envelope-from bmah) Message-Id: <200105251802.f4PI2fn25743@bmah-freebsd-0.cisco.com> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 To: freebsd-current@freebsd.org, freebsd-doc@freebsd.org Cc: bmah@freebsd.org Subject: HEADS UP: RELNOTESng now default in -CURRENT, *.TXT files removed From: bmah@freebsd.org (Bruce A. Mah) Reply-To: bmah@freebsd.org X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1550148461P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 25 May 2001 11:02:41 -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --==_Exmh_-1550148461P Content-Type: text/plain; charset=us-ascii RELNOTESng is now the default for -CURRENT release builds. Floppy images get ASCII renderings only, while the CDROM and FTP areas get both ASCII and HTML. To disable all release note documentation building (i.e. for minimal builds), define NORELNOTES at release-building time. Note that release notes require doc building as well (it may be possible to untangle this dependency in the future). Please also note that the old *.TXT files are now gone from -CURRENT. dd did some infrastructure (currently disabled by default) to the Web site build that will make -CURRENT snapshot release notes available; we're waiting for someone like nik or wosch (hint hint, guys) to add a CVS update line to whatever magic kicks off Web site builds. Until then, renderings of the release documentation can continue to be found at: http://people.freebsd.org/~bmah/relnotes/ Thanks for everyone's help and suggestions! Bruce. PS. 4-STABLE is unaffected by these changes (for now), but it is my intent to MFC RELNOTESng after a brief shake-down period. --==_Exmh_-1550148461P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: Exmh version 2.3.1+ 05/14/2001 iD8DBQE7Dp5B2MoxcVugUsMRAspjAKDWg0aj5ZHCDtHRc8WZGivnOyEbowCeIqYY F3+NkxAGbjt7Qou2igzRpNQ= =5uXn -----END PGP SIGNATURE----- --==_Exmh_-1550148461P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 11:16: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 62B3C37B423 for ; Fri, 25 May 2001 11:16:06 -0700 (PDT) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id f4PIF7242701; Fri, 25 May 2001 13:15:07 -0500 (CDT) (envelope-from jlemon) Date: Fri, 25 May 2001 13:15:07 -0500 (CDT) From: Jonathan Lemon Message-Id: <200105251815.f4PIF7242701@prism.flugsvamp.com> To: DougB@DougBarton.net, current@freebsd.org Subject: Re: tail -f over NFS in -stable X-Newsgroups: local.mail.freebsd-current In-Reply-To: References: 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: > Blast from the past. This patch seemed reasonable to me at the time, but I >notice you didn't commit it. Any reason why? The issue has just come up >again on -questions. It shouldn't be needed. Instead, the following logic is used: if (kevent(kq, ev, n, NULL, 0, &ts) < 0) { close(kq); kq = -1; action = USE_SLEEP; Registration of a VNODE filter on a filesystem that doesn't understand it (NFS) should fail. Hardcoding ufs in the binary is the wrong thing to do; it precludes kernel enhancements later where other filesystems are taught about kqueue. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 11:17:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 551AE37B42C for ; Fri, 25 May 2001 11:17:17 -0700 (PDT) (envelope-from obrien@nuxi.ucdavis.edu) Received: from dragon.nuxi.com (root@[206.40.252.115]) by relay.nuxi.com (8.11.2/8.11.2) with ESMTP id f4PIHGl29664; Fri, 25 May 2001 11:17:16 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f4PIHFJ95421; Fri, 25 May 2001 11:17:15 -0700 (PDT) (envelope-from obrien) Date: Fri, 25 May 2001 11:17:14 -0700 From: "David O'Brien" To: Mikhail Teterin Cc: kris@obsecurity.org, Jim.Pirzyk@disney.com, current@FreeBSD.org Subject: Re: amd feature request (Re: AMD config file question.) Message-ID: <20010525111714.C95361@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: <20010525023340.B54585@dragon.nuxi.com> <200105251356.f4PDujB40310@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105251356.f4PDujB40310@aldan.algebra.com>; from mi@aldan.algebra.com on Fri, May 25, 2001 at 09:56:42AM -0400 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, May 25, 2001 at 09:56:42AM -0400, Mikhail Teterin wrote: > Now that smbfs is in, can amd be used to mount smb shares? Of course, it > can. But can we have something like "host" type, where all smb-shares > available from a host are automaticly accessible? This may be added to > the host-type together with NFS, or be made part of a separate smbhost > type. I'd vote for the first one, personally... Send me a tested patch and I'll consider it. I want to make sure you won't be causing any problems in the generic case. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 11:24:38 2001 Delivered-To: freebsd-current@freebsd.org Received: from southpass.baynetworks.com (ns2.BayNetworks.COM [134.177.3.16]) by hub.freebsd.org (Postfix) with ESMTP id B851537B423; Fri, 25 May 2001 11:24:30 -0700 (PDT) (envelope-from thomma@BayNetworks.COM) Received: from mailhost.BayNetworks.COM (ns3.baynetworks.com [132.245.204.12]) by southpass.baynetworks.com (8.9.1/8.9.1) with ESMTP id LAA13282; Fri, 25 May 2001 11:14:20 -0700 (PDT) Received: from fedex.engwest.baynetworks.com (fedex.engwest.baynetworks.com [134.177.110.46]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id OAA13087; Fri, 25 May 2001 14:24:28 -0400 (EDT) Received: from carrera.engwest (carrera [134.177.160.237]) by fedex.engwest.baynetworks.com (8.8.8+Sun/8.8.8) with SMTP id LAA05973; Fri, 25 May 2001 11:23:40 -0700 (PDT) Received: from localhost by carrera.engwest (SMI-8.6/SMI-SVR4) id LAA04160; Fri, 25 May 2001 11:18:44 -0700 To: jhb@freebsd.org Cc: freebsd-current@freebsd.org, alfred@freebsd.org Subject: RE: Panic vm_page_alloc(sendfile) In-Reply-To: Your message of "Fri, 25 May 2001 10:47:51 -0700 (PDT)" References: X-Mailer: Mew version 1.92 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010525111844N.thomma@baynetworks.com> Date: Fri, 25 May 2001 11:18:44 -0700 From: Tamiji Homma X-Dispatcher: imput version 971024 Lines: 71 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John, Thank you for quick patch. But I hate to report "The patch didn't work." You need another patch to try ;-) Here is trace back. I omitted details (I still do hand copy) If you need exact trace back, I'll have to setup serial port. panic: mutex vm not owned at ../../vm/vm_page.h:320 Debugger("panic") Stop at Debugger+0x44: pushl %ebx db> trace Debugger panic _mtx_assert vm_page_unwire sf_buf_free sbdrop tcp_input ip_input ipintr swi_net ithread_loop fork_exit fork_trampoline Tammy From: John Baldwin Subject: RE: Panic vm_page_alloc(sendfile) Date: Fri, 25 May 2001 10:47:51 -0700 (PDT) Message-ID: jhb> jhb> On 25-May-01 Tamiji Homma wrote: jhb> > Hi, jhb> > jhb> > I noticed this panic for last few days on my -current jhb> > sandbox laptop. jhb> > jhb> > When I do FTP get file from the machine running jhb> > -current causes panic like below (hand copied). jhb> > jhb> > The machine running ftpd panics not FTP client side. jhb> > I have not tried FTP put yet... It may panic at FTP jhb> > client side as well. jhb> > jhb> > My last cvsup was around 22:00 PDT on May 24 2001. jhb> > jhb> > panic: mutex vm not owned at ../../vm/vm_page.c:755 jhb> > Debugger("panic") jhb> > db> trace jhb> > Debugger(c038865b) at Debugger+0x44 jhb> > panic(c0387828,c03a0554,c03a1eaf,2f3,0) at panic+0x70 jhb> > _mtx_assert(c045ca20,1,c03a1eaf,2f3) at _mtx_assert+0x49 jhb> > vm_page_alloc(c8bcc9c0,0,0,c8b04b9c,c8b04a80) at vm_page_alloc+0x22 jhb> > sendfile(c8b04a80,c8b43f80,0,0,381508) at sendfile+0x31e jhb> > syscall(2f,2f,2f,381508,0) at syscall+0x689 jhb> > syscall_with_err_pushed() at syscall_with_err_pushed+0x1b jhb> > jhb> > PS: I am not subscribed to -current but subscribed to jhb> > current-digest so if it is already reported/fixed, sorry... jhb> jhb> Cool, thanks for the bug report. Please try the patch at jhb> http://www.FreeBSD.org/~jhb/patches/sendfile.patch. jhb> jhb> -- jhb> jhb> John Baldwin -- http://www.FreeBSD.org/~jhb/ jhb> PGP Key: http://www.baldwin.cx/~john/pgpkey.asc 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 Fri May 25 11:42:33 2001 Delivered-To: freebsd-current@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id BE4B237B422; Fri, 25 May 2001 11:42:31 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f4PIftG19666; Fri, 25 May 2001 11:41:55 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010525111844N.thomma@baynetworks.com> Date: Fri, 25 May 2001 11:42:00 -0700 (PDT) From: John Baldwin To: Tamiji Homma Subject: RE: Panic vm_page_alloc(sendfile) Cc: alfred@FreeBSD.org, freebsd-current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 25-May-01 Tamiji Homma wrote: > John, > > Thank you for quick patch. But I hate to report "The patch didn't work." > You need another patch to try ;-) It sort of worked. :) It got farther along. :) Please try the updated sendfile.patch. Thanks. > Here is trace back. I omitted details (I still do hand copy) > If you need exact trace back, I'll have to setup serial port. The list of functions is fine for mtx_assert panics, thanks. :) -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "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 Fri May 25 11:45:58 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp04.primenet.com (smtp04.primenet.com [64.211.219.53]) by hub.freebsd.org (Postfix) with ESMTP id 61D5B37B422 for ; Fri, 25 May 2001 11:45:53 -0700 (PDT) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.9.3/8.9.3) id LAA00958 for ; Fri, 25 May 2001 11:45:51 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp04.primenet.com, id smtpdAAAoday2b; Fri May 25 11:45:42 2001 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id LAA12273 for current@freebsd.org; Fri, 25 May 2001 11:54:19 -0700 (MST) From: Terry Lambert Message-Id: <200105251854.LAA12273@usr05.primenet.com> Subject: Re: Strange DNS behavior; I'm stumped To: current@freebsd.org Date: Fri, 25 May 2001 18:54:18 +0000 (GMT) X-Mailer: ELM [version 2.5 PL2] 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 ] Here's the rub: when I start X, my window manager ctwm tries to ] determine the hostname (to assign to HOSTNAME and then m4-process the ] .ctwmrc) This causes my machine to dial out. I've used tcpdump on port ] 53 (dns) by putting this in /etc/start_if.isp1: ] /usr/sbin/tcpdump -nli isp1 -c 16 port 53 > /tmp/tcpdump.53 & ] so I capture the very first dns packets. The result is: Make your test program do a gethostbyname(), like it does. Then take the resulting IP address, and call gethostbyaddr(), to get the _canonical_ name and IP address of the host you obtained by name, so that it will give you the A record name of the host, instead of some CNAMe which may be transient. Now watch your modem dial out, because you have not set up correct in-addr.arpa delegations for all of your local IP addresses in your DNS server. Now look up. See the lightbulb. Correct the missing in-addr.arpa. delegations. See that you have the same problem. Realize that you need to run a local authoritative in-addr.arpa. nameserver. Realize that doing this will destroy your ability to do reverse address resolution for any host not on your local net. Consider switching to a less anal window manager. Realize that you can run a caching-only local nameserver. Now look up. See the lightbulb. Now preload the caching n-only name-server's cache for all local IP addresses with data (long lived data) for the in-addr.arpa. delegations which would exists, were you to own your own IP addresses in reality. Preload your cache in the file, and restart your nameserver via SIGHUP. Try it again. See that the problem is fixed. Smile. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 12: 3:17 2001 Delivered-To: freebsd-current@freebsd.org Received: from baynet.baynetworks.com (ns1.BayNetworks.COM [134.177.3.20]) by hub.freebsd.org (Postfix) with ESMTP id 7FAAA37B422; Fri, 25 May 2001 12:03:14 -0700 (PDT) (envelope-from thomma@BayNetworks.COM) Received: from mailhost.BayNetworks.COM (ns2.baynetworks.com [134.177.1.109]) by baynet.baynetworks.com (8.9.1/8.9.1) with ESMTP id MAA18349; Fri, 25 May 2001 12:01:11 -0700 (PDT) Received: from fedex.engwest.baynetworks.com (fedex.engwest.baynetworks.com [134.177.110.46]) by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id LAA13513; Fri, 25 May 2001 11:53:20 -0700 (PDT) Received: from carrera.engwest (carrera [134.177.160.237]) by fedex.engwest.baynetworks.com (8.8.8+Sun/8.8.8) with SMTP id MAA06671; Fri, 25 May 2001 12:02:15 -0700 (PDT) Received: from localhost by carrera.engwest (SMI-8.6/SMI-SVR4) id LAA04255; Fri, 25 May 2001 11:57:19 -0700 To: jhb@freebsd.org Cc: alfred@freebsd.org, freebsd-current@freebsd.org Subject: RE: Panic vm_page_alloc(sendfile) In-Reply-To: Your message of "Fri, 25 May 2001 11:42:00 -0700 (PDT)" References: X-Mailer: Mew version 1.92 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010525115719X.thomma@baynetworks.com> Date: Fri, 25 May 2001 11:57:19 -0700 From: Tamiji Homma X-Dispatcher: imput version 971024 Lines: 14 Sender: owner-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 25-May-01 Tamiji Homma wrote: > > John, > > > > Thank you for quick patch. But I hate to report "The patch didn't work." > > You need another patch to try ;-) > It sort of worked. :) It got farther along. :) Please try the updated > sendfile.patch. Thanks. The second patch worked! You are so fast! ;-) Thanks. Tammy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 12:43:54 2001 Delivered-To: freebsd-current@freebsd.org Received: from privatecube.privatelabs.com (privatecube.privatelabs.com [63.114.185.254]) by hub.freebsd.org (Postfix) with ESMTP id 0DEFA37B422; Fri, 25 May 2001 12:43:52 -0700 (PDT) (envelope-from mi@aldan.algebra.com) Received: from misha.privatelabs.com (root@misha.plten [10.0.0.106]) by privatecube.privatelabs.com (8.9.3/8.9.2) with ESMTP id PAA18143; Fri, 25 May 2001 15:04:45 -0400 From: mi@aldan.algebra.com Received: from misha.privatelabs.com (mi@localhost [127.0.0.1]) by misha.privatelabs.com (8.11.3/8.11.1) with ESMTP id f4PJhlr65483; Fri, 25 May 2001 15:43:49 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200105251943.f4PJhlr65483@misha.privatelabs.com> Date: Fri, 25 May 2001 15:43:45 -0400 (EDT) Reply-To: mi@aldan.algebra.com Subject: Re: amd feature request (Re: AMD config file question.) To: obrien@FreeBSD.org Cc: current@FreeBSD.org In-Reply-To: <20010525111714.C95361@dragon.nuxi.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 25 May, David O'Brien wrote: > On Fri, May 25, 2001 at 09:56:42AM -0400, Mikhail Teterin wrote: >> Now that smbfs is in, can amd be used to mount smb shares? Of course, >> it can. But can we have something like "host" type, where all >> smb-shares available from a host are automaticly accessible? This may >> be added to the host-type together with NFS, or be made part of a >> separate smbhost type. I'd vote for the first one, personally... > > Send me a tested patch and I'll consider it. I want to make sure you > won't be causing any problems in the generic case. Heh. That was a feature request only. I don't even know the details of NFS, much less SMB. Sorry, -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 14: 4:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from dt051n37.san.rr.com (dt051n37.san.rr.com [204.210.32.55]) by hub.freebsd.org (Postfix) with ESMTP id ED3D737B423 for ; Fri, 25 May 2001 14:04:17 -0700 (PDT) (envelope-from DougB@DougBarton.net) Received: from DougBarton.net (master [10.0.0.2]) by dt051n37.san.rr.com (8.9.3/8.9.3) with ESMTP id OAA29993; Fri, 25 May 2001 14:04:15 -0700 (PDT) (envelope-from DougB@DougBarton.net) Message-ID: <3B0EC8CF.3DE4FEA2@DougBarton.net> Date: Fri, 25 May 2001 14:04:15 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Lemon Cc: current@freebsd.org Subject: Re: tail -f over NFS in -stable References: <200105251815.f4PIF7242701@prism.flugsvamp.com> 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 Jonathan Lemon wrote: > > In article you write: > > Blast from the past. This patch seemed reasonable to me at the time, but I > >notice you didn't commit it. Any reason why? The issue has just come up > >again on -questions. > > It shouldn't be needed. Ok, your explanation makes perfect sense. I followed up to the user with a little patch that'll tell him for sure if tail is trying to use kqueue or not. I was just concerned that the problem seemed to have cropped back up, but now I think that the user's problem is not in this area. Thanks, Doug -- I need someone really bad. Are you really bad? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 15:34:53 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (ppp-227-187.usc.edu [128.125.227.187]) by hub.freebsd.org (Postfix) with ESMTP id 0199437B422 for ; Fri, 25 May 2001 15:34:50 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5BC1466B62; Fri, 25 May 2001 15:34:48 -0700 (PDT) Date: Fri, 25 May 2001 15:34:48 -0700 From: Kris Kennaway To: Storms of Perfection Cc: current@FreeBSD.ORG Subject: Re: Bug? Message-ID: <20010525153448.A38321@xor.obsecurity.org> References: <5.1.0.14.2.20010525120111.00a75498@208.141.46.12> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.2.20010525120111.00a75498@208.141.46.12>; from ancient@outloud.org on Fri, May 25, 2001 at 12:04:11PM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 25, 2001 at 12:04:11PM -0500, Storms of Perfection wrote: > Latest CVS from a couple minutes ago, on the kernel compile (make depend= =20 > goes fine) >=20 > [root@home] SMP.Kernel> make > cc -c -x assembler-with-cpp -DLOCORE -O -pipe -march=3Dpentiumpro -Wall= =20 > -Wredundant-decls -Wnested-externs=20 > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline=20 > -Wcast-qual -fformat-extensions -ansi -nostdinc -I- -I. -I../..=20 > -I../../dev -I../../../include=20 > -I../../contrib/dev/acpica/Subsystem/Include -D_KERNEL -include=20 > opt_global.h -elf -mpreferred-stack-boundary=3D2 ../../i386/i386/locore.s > {standard input}: Assembler messages: binutils failure. Were you trying to upgrade from an old system or something? Follow the upgrade instructions. Kris --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7Dt4HWry0BWjoQKURAuI5AJ9geECqt+c3V3HfS1x6f3dbnAduQACfZofa cRbUQUqxJBSi+stVtJEE7Gc= =Y6Ys -----END PGP SIGNATURE----- --liOOAslEiF7prFVr-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 15:46:51 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp05.primenet.com (smtp05.primenet.com [64.211.219.54]) by hub.freebsd.org (Postfix) with ESMTP id AA47437B422 for ; Fri, 25 May 2001 15:46:45 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp05.primenet.com (8.9.3/8.9.3) id PAA28951 for ; Fri, 25 May 2001 15:46:44 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp05.primenet.com, id smtpdAAAG9aGH4; Fri May 25 15:46:36 2001 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id QAA05152 for current@freebsd.org; Fri, 25 May 2001 16:11:16 -0700 (MST) From: Terry Lambert Message-Id: <200105252311.QAA05152@usr02.primenet.com> Subject: PATCH: media option for ethernet hw checksum To: current@freebsd.org Date: Fri, 25 May 2001 23:11:16 +0000 (GMT) X-Mailer: ELM [version 2.5 PL2] 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 Here is a patch I have locally that would be useful for Bill Paul, I think. I know, we could use "flag0" for this, but it seems to me that this will be an increasingly common option in hadware. I know Bill had to set this manually as a compile time flag, for lack of an option (same for the JMB Intel Gigabit card driver). PS: The if_ti.c driver has a bug in the option checking, in that it does an equality instead of a bit test, in case some goes in to make this option work there... Index: if_media.h =================================================================== RCS file: /home/cvs/FreeBSD/sys/net/if_media.h,v retrieving revision 1.1.1.1 diff -r1.1.1.1 if_media.h 180a181 > #define IFM_CKSUM 0x00400000 /* Force hardware checksum */ 347a349 > { IFM_CKSUM, "hw-checksum" }, \ Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 16:37:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id F339337B424 for ; Fri, 25 May 2001 16:37:33 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f4PNbTX21078; Fri, 25 May 2001 16:37:29 -0700 Date: Fri, 25 May 2001 16:37:29 -0700 From: Brooks Davis To: Terry Lambert Cc: current@FreeBSD.ORG Subject: Re: PATCH: media option for ethernet hw checksum Message-ID: <20010525163729.A18559@Odin.AC.HMC.Edu> References: <200105252311.QAA05152@usr02.primenet.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105252311.QAA05152@usr02.primenet.com>; from tlambert@primenet.com on Fri, May 25, 2001 at 11:11:16PM +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 25, 2001 at 11:11:16PM +0000, Terry Lambert wrote: > Here is a patch I have locally that would be useful for Bill Paul, > I think. I know, we could use "flag0" for this, but it seems to > me that this will be an increasingly common option in hadware. Should this be implemented as a shared option like this? I ask because NetBSD has added the following types and only has one shared option left: #define IFM_FLOW 0x00400000 /* enable hardware flow control */ #define IFM_FLAG0 0x01000000 /* Driver defined flag */ #define IFM_FLAG1 0x02000000 /* Driver defined flag */ #define IFM_FLAG2 0x04000000 /* Driver defined flag */ #define IFM_LOOP 0x08000000 /* Put hardware in loopback */ Personaly I don't think I would have wasted 3/8th of the shared options on the abomination known as flags... -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7Duy4XY6L6fI4GtQRAgv1AJ9MmXfaF/XY5IIPNuRpLYRIlaZdhACfcEyr fqTsutlGc4/CI9UhuQKLP+s= =9TmG -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 18:26: 6 2001 Delivered-To: freebsd-current@freebsd.org Received: from zion.x.br (spo47-96.gvi.com.br [200.192.47.96]) by hub.freebsd.org (Postfix) with ESMTP id 3C2D037B422 for ; Fri, 25 May 2001 18:26:02 -0700 (PDT) (envelope-from galmeida@linux.ime.usp.br) Received: (from galmeida@localhost) by zion.x.br (8.11.3/8.11.1) id f4Q1ObD00698 for freebsd-current@freebsd.org; Fri, 25 May 2001 22:24:37 -0300 (BRT) (envelope-from galmeida) Date: Fri, 25 May 2001 22:24:37 -0300 (BRT) From: Felipe Gustavo de Almeida Message-Id: <200105260124.f4Q1ObD00698@zion.x.br> To: freebsd-current@freebsd.org Subject: kernel panic: page fault while in kernel mode Sender: owner-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 guys, since last weekend I've been in a bad trip with current, if I start X and try to launch a program the machine complete locks up. Today I cvsup'ed at ~ May 6 00:05 GMT, installed the new kernel, started X and.. wow!! starting mozilla didn't look up my box. So, let's try a make world, this time I wasn't that lucky: kernel panic after ~25min of make buildworld: (sorry output hand copied) freeing uidinfo uid=0, sbsize=683616 freeing uidinfo uid=0, proccnt=51 Kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address = 0x19c fault cool supervisor read, page not present IP 0x8: 0xc01b5e5e SP 0x10: 0xca75eed4 FP 0x10: 0xca75eee0 CS base: 0x0, limit 0xfffff type 0x1b DPL 0, press 1, def32 1, gran 1 proc eflags resume,IOPL = 0 current process 45372 (make) trap number = 12 panic page fault syncing disks... (at this point the machine locked up) I'll try to compile a debug kernel to put up some more info about these crashes -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 19:22:13 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id A976537B424; Fri, 25 May 2001 19:22:10 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id CA0203E2F; Fri, 25 May 2001 19:22:09 -0700 (PDT) To: current@freebsd.org Cc: alfred@freebsd.org Subject: vm_pager_(de)allocate and vm_mtx Date: Fri, 25 May 2001 19:22:09 -0700 From: Dima Dorfman Message-Id: <20010526022209.CA0203E2F@bazooka.unixfreak.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 Is there a reason vm_pager_allocate acquires vm_mtx itself if necessary but vm_pager_deallocate does not? At the moment, detaching an md(4) disk will panic the system with a failed mtx_assert in vm_pager_deallocate. This can be fixed one of two ways: vm_pager_deallocate could be made to deal with vm_mtx itself like vm_pager_allocate does, or md(4) and any other drivers which call vm_pager_deallocate can be fixed to acquire vm_mtx. So which will it be? I'll supply patches for either case. Thanks, Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 20:44: 9 2001 Delivered-To: freebsd-current@freebsd.org Received: from thuvia.demon.co.uk (thuvia.demon.co.uk [193.237.34.248]) by hub.freebsd.org (Postfix) with ESMTP id 5B61637B42C for ; Fri, 25 May 2001 20:43:45 -0700 (PDT) (envelope-from mark@thuvia.demon.co.uk) Received: (from mark@localhost) by thuvia.demon.co.uk (8.11.3/8.11.3) id f4Q3gSO03181 for freebsd-current@freebsd.org; Sat, 26 May 2001 04:42:28 +0100 (BST) (envelope-from mark) Date: Sat, 26 May 2001 04:42:28 +0100 (BST) From: Mark Valentine Message-Id: <200105260342.f4Q3gSO03181@thuvia.demon.co.uk> X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: freebsd-current@freebsd.org Subject: vnode pager panic with latest sources Sender: owner-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 started getting a panic like this immediately after bootup around the same time as everyone else's problems (although my last build was from March 1st, and I've only just started using INVARIANTS/WITNESS and ``makeoptions DEBUG=-g'' which were recently aded to GENERIC). The latest commits don't seem to have changed anything. During boot (interleaved with IPv6 stuff), I get this: lock order reversal 1st 0xc04a7380 mntvnode @ /usr/src/sys/ufs/ffs/ffs_vsops.c:1007 2nd 0xcd105aec vnode interlock @ /usr/src/sys/ufs/ffs/ffs_vfsops.c:106 Just around the time of the console login prompt (consistently), I panic: [warning: likely to contain hand transcription errors] -- BEGIN ---------------------------------------------------------------------- recursed on non-recursive lock (sleep mutex) vm @ /usr/src/sys/ufs/ufs/ufs_readwrite.c:420 first acquired @ /usr/src/sys/vm/vnode_pager.c:912 panic: recurse Debugger("panic") Stopped at Debugger+0x44: pushl %ebx db> show reg cs 0x8 ds 0xc0200010 getitimer+0xa0 es 0xcd0f0010 fs 0xc0460018 w_data+0x1418 ss 0x10 eax 0x12 ecx 0x20 edx 0xc00b8f00 ebx 0x202 esp 0xcd0fac1c ebp 0xcd0fac28 esi 0x100 edi 0xc0482f1c eip 0xc036a8dc Debugger+0x44 Debugger+0x44: pushl %ebx db> trace Debugger(c03b9b7b) at Debugger+0x44 panic(c03bc8c8,cd0fad0c,cd0fad0c,1,0) at panic+0x70 witness_lock(c04b3960,8,c03d7bc0.1a4) at witness_lock+0x348 ffs_write(cd0facf8) at ffs_write+0xba vnode_pager_generic_putpages(cd1196c0,cd0fadf4,1000,0,cd0fadc8) at vnode_pager_generic_putpages+0x198 vop_stdputpages(cd0fad7c,cd0fad60,c0331ab9,cd0fad7c,cd0fad9c) at vop_stdputpages+0x1a vop_defaultop(cd0fad7c,cd0fad9c,c034f35d,cd0fad7c,0) at vop_defaultop+0x15 ufs_vnoperate(cd0fad7c) at ufs_vnoperate+0x15 vnode_pager_putpages(cd120240,cd0fadf4,1,0,cd0fadc8,c04b3960,1,c03db941,91) at vnode_pager_putpages+0x1a9 vm_pageout_flush(cd0fadf4,1,0,c0c36404,c0466bc0) at vm_pageout_flush+0x12a vm_object_page_clean(cd120240,0,0,4) at vm_object_page_clean+0x430 vfa_msync(c125a600,2,cb67a43c,cb67a320,0) at vfs_msync+0x235 sync(cb67a320,cd0faf80,4,bfbffdcc,bfbffdcc) at sync+0xf4 syscall(2f,2f,2f,bfbffdcc,bfbffdcc) at syscall+0x689 syscall_with_err_pushed() at syscall_with_err_pushed+0x1b -- END ------------------------------------------------------------------------ src/sys/vm/vnode_pager.c is at revision 1.130 My kernel config file: -- BEGIN ---------------------------------------------------------------------- machine i386 cpu I686_CPU ident DOTAR maxusers 32 makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options NO_F00F_HACK options INET #InterNETworking options INET6 #IPv6 communications protocols options IPSEC #IP security options IPSEC_ESP #IP security (crypto; define w/ IPSEC) options MROUTING # Multicast routing options NETGRAPH #netgraph(4) system options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #print information about # dropped packets options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default options IPV6FIREWALL #firewall for IPv6 options IPV6FIREWALL_VERBOSE options IPV6FIREWALL_DEFAULT_TO_ACCEPT options IPDIVERT #divert sockets options FFS #Berkeley Fast Filesystem options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT #NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem options SOFTUPDATES options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options AUTO_EOI_1 options UCONSOLE #Allow users to grab the console options VESA options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options PERFMON options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options DDB options INVARIANTS options INVARIANT_SUPPORT options WITNESS options P1003_1B options _KPOSIX_PRIORITY_SCHEDULING device isa device pci device fdc device ata device atadisk # ATA disk drives options ATA_STATIC_ID #Static dev number like old `wd' driver device ahc # AHA2940 and onboard AIC7xxx devices device sym # NCR/Symbios Logic (newer chipsets + those of `ncr') options AHC_ALLOW_MEMIO device scbus # SCSI bus (required) device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) device atkbdc 1 # At keyboard controller device atkbd # at keyboard device psm # psm mouse device vga # VGA screen device splash device sc 1 device npx device apm device pmtimer device pcm device midi device seq device pca device sio # 8250, 16[45]50 based serial ports device ppc device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device device joy device miibus # MII bus support device fxp # Intel EtherExpress PRO/100B (82557, 82558) device random # Entropy device device loop # Network loopback device ether # Ethernet support device disc # Discard device device sl 3 # Kernel SLIP device ppp 3 # Kernel PPP device tun # Packet tunnel. device gif 4 # IPv6 and IPv4 tunneling device faith 1 # IPv6-to-IPv4 relaying (translation) device stf # 6to4 IPv6 over IPv4 encapsulation device pty # Pseudo-ttys (telnet etc) device snp 3 # Snoop device - to look at pty/vty/etc.. device md # Memory "disks" device speaker # Play IBM BASIC-style noises out your speaker device splash device bpf #Berkeley packet filter options PPP_BSDCOMP #PPP BSD-compress support options PPP_DEFLATE #PPP zlib/deflate/gzip support options PPP_FILTER #enable bpf filtering (needs bpf) options COMPAT_LINUX -- END ------------------------------------------------------------------------ dmesg output from my working kernel (March 1st): -- BEGIN ---------------------------------------------------------------------- Copyright (c) 1992-2001 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 #1: Thu Mar 1 02:04:02 GMT 2001 root@dotar-sojat:/usr/obj/usr/src/sys/DOTAR Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 601365847 Hz CPU: Pentium III/Pentium III Xeon/Celeron (601.37-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x681 Stepping = 1 Features=0x387f9ff real memory = 268419072 (262128K bytes) avail memory = 256643072 (250628K bytes) Preloaded elf kernel "kernel" at 0xc048c000. WARNING: size of kinfo_proc (648) should be 644!!! Pentium Pro MTRR support enabled VESA: v2.0, 32768k memory, flags:0x1, mode table:0xc00c6974 (c0006974) VESA: Matrox Graphics Inc. Using $PIR table, 8 entries at 0xc00f0e70 npx0: on motherboard npx0: INT 16 interface pcib0: at pcibus 0 on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 (no driver attached) isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xd800-0xd80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 pci0: at 4.2 (no driver attached) pci0: at 4.3 (no driver attached) csa0: mem 0xdf800000-0xdf8fffff,0xe0000000-0xe0000fff irq 9 at device 9.0 on pci0 pcm0: on csa0 sym0: <896> port 0xd000-0xd0ff mem 0xde800000-0xde801fff,0xdf000000-0xdf0003ff irq 10 at device 11.0 on pci0 sym0: Symbios NVRAM, ID 7, Fast-40, 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. sym1: <896> port 0xb800-0xb8ff mem 0xdd800000-0xdd801fff,0xde000000-0xde0003ff irq 9 at device 11.1 on pci0 sym1: Symbios NVRAM, ID 7, Fast-40, SE, parity checking sym1: open drain IRQ line driver, using on-chip SRAM sym1: using LOAD/STORE-based firmware. sym1: handling phase mismatch from SCRIPTS. pci0: at 13.0 (no driver attached) atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 joy0 at port 0x201 on isa0 pca0 at port 0x40 on isa0 pmtimer0 on isa0 ppc0: at port 0x378-0x37f irq 7 flags 0x40 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppi0: on ppbus0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio2 at port 0x3e8-0x3ef irq 5 on isa0 sio2: type 16550A vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc1: on isa0 sc1: MDA <16 virtual consoles, flags=0x0> WARNING: Driver mistake: repeat make_dev("consolectl") vga1: at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff on isa0 unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources pca1: at port 0x61 on isa0 WARNING: Driver mistake: repeat make_dev("pcaudio") WARNING: Driver mistake: repeat make_dev("pcaudioctl") IPv6 packet filtering initialized, default to accept, unlimited logging IP packet filtering initialized, divert enabled, rule-based forwarding disabled, default to accept, unlimited logging IPsec: Initialized Security Association Processing. ad0: 73308MB [148945/16/63] at ata0-master UDMA33 Waiting 15 seconds for SCSI devices to settle (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered. (noperiph:sym1:0:-1:-1): SCSI BUS reset delivered. sa0 at sym1 bus 0 target 4 lun 0 sa0: Removable Sequential Access SCSI-CCS device sa0: 3.300MB/s transfers Mounting root from ufs:/dev/da0a da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-3 device da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C) da1 at sym0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C) cd0 at sym1 bus 0 target 2 lun 0 cd0: < > Fixed CD-ROM SCSI-0 device cd0: 3.300MB/s transfers cd0: Attempt to query device size failed: HARDWARE FAILURE, Ram failure cd1 at sym1 bus 0 target 3 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: 20.000MB/s transfers (20.000MHz, offset 8) cd1: Attempt to query device size failed: NOT READY, Medium not present - tray closed da2 at sym1 bus 0 target 0 lun 0 da2: Removable Direct Access SCSI-2 device da2: 10.000MB/s transfers (10.000MHz, offset 15) da2: Attempt to query device size failed: NOT READY, Medium not present -- END ------------------------------------------------------------------------ What changes should I start to make first to narrow this down? (I'll try to get kernel dumps going, though I haven't had much success with these in the past.) Cheers, Mark. -- Mark Valentine, Thuvia Labs "Tigers will do ANYTHING for a tuna fish sandwich." Mark Valentine uses "We're kind of stupid that way." *munch* *munch* and endorses FreeBSD -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 22: 2:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from cowpie.acm.vt.edu (cowpie.acm.vt.edu [128.173.42.253]) by hub.freebsd.org (Postfix) with ESMTP id E05F937B423 for ; Fri, 25 May 2001 22:02:09 -0700 (PDT) (envelope-from mheffner@cowpie.acm.vt.edu) Received: (from mheffner@localhost) by cowpie.acm.vt.edu (8.11.3/8.11.3) id f4Q51X674784 for freebsd-current@freebsd.org; Sat, 26 May 2001 01:01:33 -0400 (EDT) (envelope-from mheffner) Date: Sat, 26 May 2001 01:01:32 -0400 From: Mike Heffner To: freebsd-current@freebsd.org Subject: Laptop locks up during pci initialization Message-ID: <20010526010132.A74721@cowpie.acm.vt.edu> Reply-To: mheffner@vt.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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 recently purchased a new Toshiba Satellite 2805 laptop, and I'm trying to install -current on it =) When I tried to install from the -current snapshots they all would lockup just after 'pcib0: ...' was printed. So I tried a 4-stable snapshot and that worked perfectly. However, I'm now trying to upgrade to -current, but it still locks up in the kernel when trying to initialize the pci bus. The following are the last lines of a verbose boot just before it locks up: pcib0: at pcibus 0 on motherboard pci0: physical bus=0 map[10]: type 3, range 32, base e00000000, size 27, enabled found-> vendor=0x8086, dev=0x7190, revid=0x03 bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 ( Then three more devices it finds, and then this is the last one: found-> vendor=0x8086, dev=0x7112, revid=0x01 bus=0, slot=5, func=2 class=0c-03-00, hdrtype=0x00, mfdev=0 intpin=d, irq=11 When looking at pciconf this last device is my USB UHCI controller, but I don't have it in my kernel: uhci0@pci0:5:2: class=0x0c0300 card=0x00000000 chip=0x71128086 rev=0x01 hdr=0x00 Now, when I recompile the kernel without `device pci' it boots fine without any lockups. Is anyone else having similar problems? I looked through the archives but couldn't find anyone else with similar problems. It looks like it's been broken for awhile as I tried current snapshots back to March 1, and they all locked up at the same place. I'll be glad to try any patches to try and get this working. The following is dmesg on a boot without `device pci': Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #2: Fri May 25 21:20:48 EDT 2001 spock@satellite.muriel.penguinpowered.com:/usr/obj/usr/src/sys/SATELLITE Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 746338989 Hz CPU: Pentium III/Pentium III Xeon/Celeron (746.34-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383f9ff real memory = 134086656 (130944K bytes) avail memory = 126726144 (123756K bytes) Preloaded elf kernel "kernel" at 0xc03b2000. Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface isa0: on motherboard sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: on ppbus0 lpt0: Interrupt-driven port sio0: configured irq 4 not in bitmap of probed irqs 0 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 sio1: configured irq 3 not in bitmap of probed irqs 0 atspeaker0: at port 0x61 on isa0 unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources IP Filter: v3.4.16 initialized. Default = pass all, Logging = enabled ata1-slave: ata_command: timeout waiting for intr ata1-slave: identify failed ad0: 19077MB [38760/16/63] at ata0-master BIOSPIO acd0: DVD-ROM at ata1-master BIOSPIO Mounting root from ufs:/dev/ad0s2a And here is my kernel config: machine i386 cpu I686_CPU ident SATELLITE maxusers 32 options MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT #NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options KBD_INSTALL_CDEV # install a CDEV entry in /dev options COMPAT_LINUX # Linux stuff device isa device eisa device fdc device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atkbdc # At keyboard controller device atkbd # at keyboard device psm # psm mouse device vga # VGA screen device sc device npx device sio # 8250, 16[45]50 based serial ports device ppc device ppbus # Parallel port bus (required) device lpt # Printer device random # Entropy device device loop # Network loopback device ether # Ethernet support device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device speaker options IPFILTER options IPFILTER_LOG options TCP_DROP_SYNFIN device bpf # Berkeley packet filter options DDB options INVARIANTS options INVARIANT_SUPPORT options WITNESS And the full pciconf is: chip0@pci0:0:0: class=0x060000 card=0x00011179 chip=0x71908086 rev=0x03 hdr=0x00 pcib1@pci0:1:0: class=0x060400 card=0x00000000 chip=0x71918086 rev=0x03 hdr=0x01 isab0@pci0:5:0: class=0x068000 card=0x00000000 chip=0x71108086 rev=0x02 hdr=0x00 atapci0@pci0:5:1: class=0x010180 card=0x00000000 chip=0x71118086 rev=0x01 hdr=0x00 uhci0@pci0:5:2: class=0x0c0300 card=0x00000000 chip=0x71128086 rev=0x01 hdr=0x00 chip1@pci0:5:3: class=0x068000 card=0x00000000 chip=0x71138086 rev=0x03 hdr=0x00 fxp0@pci0:8:0: class=0x020000 card=0x24118086 chip=0x12298086 rev=0x09 hdr=0x00 none0@pci0:8:1: class=0x070002 card=0x24118086 chip=0x00d4115d rev=0x00 hdr=0x00 chip2@pci0:11:0: class=0x060700 card=0x00011179 chip=0x06171179 rev=0x20 hdr=0x02 chip3@pci0:11:1: class=0x060700 card=0x00011179 chip=0x06171179 rev=0x20 hdr=0x02 none1@pci0:12:0: class=0x040100 card=0x00011179 chip=0x00121073 rev=0x00 hdr=0x00 none2@pci1:0:0: class=0x030000 card=0x00011179 chip=0x8c125333 rev=0x13 hdr=0x00 Thanks, Mike -- Mike Heffner Fredericksburg, VA http://filebox.vt.edu/users/mheffner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 22: 2:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id 34F5C37B422 for ; Fri, 25 May 2001 22:02:42 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f4Q52eo19018; Sat, 26 May 2001 01:02:40 -0400 (EDT) Date: Sat, 26 May 2001 01:02:39 -0400 From: Alfred Perlstein To: Dima Dorfman Cc: current@FreeBSD.ORG Subject: Re: vm_pager_(de)allocate and vm_mtx Message-ID: <20010526010239.G17514@superconductor.rush.net> References: <20010526022209.CA0203E2F@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <20010526022209.CA0203E2F@bazooka.unixfreak.org>; from dima@unixfreak.org on Fri, May 25, 2001 at 07:22:09PM -0700 X-all-your-base: are belong to us. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Dima Dorfman [010525 22:22] wrote: > Is there a reason vm_pager_allocate acquires vm_mtx itself if > necessary but vm_pager_deallocate does not? At the moment, detaching > an md(4) disk will panic the system with a failed mtx_assert in > vm_pager_deallocate. This can be fixed one of two ways: > vm_pager_deallocate could be made to deal with vm_mtx itself like > vm_pager_allocate does, or md(4) and any other drivers which call > vm_pager_deallocate can be fixed to acquire vm_mtx. So which will it > be? I'll supply patches for either case. Usually fixing the caller is better as it will catch people that expect vm state to remain unchanged across several calls. -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 22:20: 9 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-30.dsl.lsan03.pacbell.net [63.207.60.30]) by hub.freebsd.org (Postfix) with ESMTP id 827C737B422 for ; Fri, 25 May 2001 22:20:05 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 30EBE66BF7; Fri, 25 May 2001 22:20:04 -0700 (PDT) Date: Fri, 25 May 2001 22:20:03 -0700 From: Kris Kennaway To: Sheldon Hearn Cc: Mikhail Teterin , dima@unixfreak.org, kris@obsecurity.org, current@freebsd.org Subject: Re: mount_mfs (Re: smbfs) Message-ID: <20010525222003.A70469@xor.obsecurity.org> References: <200105251334.f4PDYJB40172@aldan.algebra.com> <91259.990800808@axl.fw.uunet.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <91259.990800808@axl.fw.uunet.co.za>; from sheldonh@uunet.co.za on Fri, May 25, 2001 at 04:26:48PM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 25, 2001 at 04:26:48PM +0200, Sheldon Hearn wrote: >=20 >=20 > On Fri, 25 May 2001 09:34:16 -0400, Mikhail Teterin wrote: >=20 > > Why can't that program _replace_ mount_mfs? And assume the name too? >=20 > The objection that impressed me the last time this was suggested is that > it's totally counter-intuitive to have a binary called mount_mfs that > doesn't mount an MFS filesystem. Rather, it does all sorts of icky > extra stuff to achieve a rather specific goal. >=20 > I still don't see why an rc.conf knob specifically for /tmp isn't > sufficient. That's what people want this for. Others can read the > excellent documentation supplied in mdconfig(8), which is appropriately > cross-referenced from md(4), which is the manual page for the device > concerned. Logical, orthogonal and pretty damn easy, when you look at > the EXAMPLES section. :-) Someone please just fix it :) Kris --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7Dz0DWry0BWjoQKURAh/WAKDo8rtwJ0ryU60NvDHba4Yu9GxtcQCg9SyE O3wfLVwxMuiUvZiU01LZXPs= =gJDc -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 22:44:40 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id A6C7337B423 for ; Fri, 25 May 2001 22:44:37 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 1C1893E28; Fri, 25 May 2001 22:44:37 -0700 (PDT) To: Kris Kennaway Cc: Sheldon Hearn , Mikhail Teterin , current@freebsd.org Subject: Re: mount_mfs (Re: smbfs) In-Reply-To: <20010525222003.A70469@xor.obsecurity.org>; from kris@obsecurity.org on "Fri, 25 May 2001 22:20:03 -0700" Date: Fri, 25 May 2001 22:44:37 -0700 From: Dima Dorfman Message-Id: <20010526054437.1C1893E28@bazooka.unixfreak.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 Kris Kennaway writes: > On Fri, May 25, 2001 at 04:26:48PM +0200, Sheldon Hearn wrote: > > > > > > On Fri, 25 May 2001 09:34:16 -0400, Mikhail Teterin wrote: > > > > > Why can't that program _replace_ mount_mfs? And assume the name too? > > > > The objection that impressed me the last time this was suggested is that > > it's totally counter-intuitive to have a binary called mount_mfs that > > doesn't mount an MFS filesystem. Rather, it does all sorts of icky > > extra stuff to achieve a rather specific goal. FWIW, I agree with this. It mounts *ufs*, not *mfs*. It just puts the ufs on a memory disk; thus, the name is inappropriate, but the idea is still good. > > I still don't see why an rc.conf knob specifically for /tmp isn't > > sufficient. That's what people want this for. Others can read the > > excellent documentation supplied in mdconfig(8), which is appropriately > > cross-referenced from md(4), which is the manual page for the device > > concerned. Logical, orthogonal and pretty damn easy, when you look at > > the EXAMPLES section. :-) How about make a port of out the mount_mfs compatible program and committing your (Sheldon's) /tmp rc.conf patch? Those who only need /tmp (and as you say, this is the majority) have what they need, we don't have [needless] stuff in the base system, and those who need something that pretends to be mount_mfs can get that from the ports. Does this sound good? > Someone please just fix it :) Erm, perhaps you could elaborate on "it"? Would the above suggestion suit you? Regards, Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 22:51:15 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id D1B0B37B422; Fri, 25 May 2001 22:51:11 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id 7B5803E28; Fri, 25 May 2001 22:51:11 -0700 (PDT) To: Alfred Perlstein Cc: current@FreeBSD.ORG Subject: Re: vm_pager_(de)allocate and vm_mtx In-Reply-To: <20010526010239.G17514@superconductor.rush.net>; from alfred@FreeBSD.ORG on "Sat, 26 May 2001 01:02:39 -0400" Date: Fri, 25 May 2001 22:51:11 -0700 From: Dima Dorfman Message-Id: <20010526055111.7B5803E28@bazooka.unixfreak.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 Alfred Perlstein writes: > * Dima Dorfman [010525 22:22] wrote: > > Is there a reason vm_pager_allocate acquires vm_mtx itself if > > necessary but vm_pager_deallocate does not? At the moment, detaching > > an md(4) disk will panic the system with a failed mtx_assert in > > vm_pager_deallocate. This can be fixed one of two ways: > > vm_pager_deallocate could be made to deal with vm_mtx itself like > > vm_pager_allocate does, or md(4) and any other drivers which call > > vm_pager_deallocate can be fixed to acquire vm_mtx. So which will it > > be? I'll supply patches for either case. > > Usually fixing the caller is better as it will catch people that > expect vm state to remain unchanged across several calls. Patch to fix md(4) attached. Look okay? Dima Dorfman dima@unixfreak.org Index: md.c =================================================================== RCS file: /stl/src/FreeBSD/src/sys/dev/md/md.c,v retrieving revision 1.33 diff -u -r1.33 md.c --- md.c 2001/05/21 18:52:00 1.33 +++ md.c 2001/05/26 05:48:57 @@ -711,8 +711,11 @@ (void)vn_close(sc->vnode, sc->flags & MD_READONLY ? FREAD : (FREAD|FWRITE), sc->cred, p); if (sc->cred != NULL) crfree(sc->cred); - if (sc->object != NULL) + if (sc->object != NULL) { + mtx_lock(&vm_mtx); vm_pager_deallocate(sc->object); + mtx_unlock(&vm_mtx); + } if (sc->secp != NULL) { for (u = 0; u < sc->nsect; u++) if ((uintptr_t)sc->secp[u] > 255) @@ -763,17 +766,20 @@ * Note the truncation. */ + mtx_lock(&vm_mtx); sc->secsize = PAGE_SIZE; sc->nsect = mdio->md_size / (PAGE_SIZE / DEV_BSIZE); sc->object = vm_pager_allocate(OBJT_SWAP, NULL, sc->secsize * (vm_offset_t)sc->nsect, VM_PROT_DEFAULT, 0); if (mdio->md_options & MD_RESERVE) { if (swap_pager_reserve(sc->object, 0, sc->nsect) < 0) { vm_pager_deallocate(sc->object); + mtx_unlock(&vm_mtx); sc->object = NULL; mddestroy(sc, mdio, p); return(EDOM); } } + mtx_unlock(&vm_mtx); error = mdsetcred(sc, p->p_ucred); if (error) mddestroy(sc, mdio, p); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Fri May 25 23:36:29 2001 Delivered-To: freebsd-current@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 4F51E37B422 for ; Fri, 25 May 2001 23:36:27 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f4Q6aGE67176; Sat, 26 May 2001 00:36:20 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200105260636.f4Q6aGE67176@harmony.village.org> To: Storms of Perfection Subject: Re: Bug? Cc: current@FreeBSD.ORG In-reply-to: Your message of "Fri, 25 May 2001 12:04:11 CDT." <5.1.0.14.2.20010525120111.00a75498@208.141.46.12> References: <5.1.0.14.2.20010525120111.00a75498@208.141.46.12> Date: Sat, 26 May 2001 00:36:16 -0600 From: Warner Losh Sender: owner-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 <5.1.0.14.2.20010525120111.00a75498@208.141.46.12> Storms of Perfection writes: : Latest CVS from a couple minutes ago, on the kernel compile (make depend : goes fine) Read UPDATING on how to build kernels. Likely you aren't using make buildkernel in the upgrade process. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 0:40:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from dt051n37.san.rr.com (dt051n37.san.rr.com [204.210.32.55]) by hub.freebsd.org (Postfix) with ESMTP id 0B48737B424 for ; Sat, 26 May 2001 00:40:37 -0700 (PDT) (envelope-from DougB@DougBarton.net) Received: from DougBarton.net (master [10.0.0.2]) by dt051n37.san.rr.com (8.9.3/8.9.3) with ESMTP id AAA33805; Sat, 26 May 2001 00:40:12 -0700 (PDT) (envelope-from DougB@DougBarton.net) Message-ID: <3B0F5DDC.8EABA5@DougBarton.net> Date: Sat, 26 May 2001 00:40:12 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Dima Dorfman Cc: Kris Kennaway , Sheldon Hearn , Mikhail Teterin , current@FreeBSD.ORG Subject: Re: mount_mfs (Re: smbfs) References: <20010526054437.1C1893E28@bazooka.unixfreak.org> 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 My take on it is that having a script that you can feed parameters and have it create a nice memory disk for you would be a cool thing, and since you'd have to put effectively the same commands into rc (or wherever) the "bloat" would be minimal. So, if someone wants to send me the stuff, either the script, or the rc bits, I'll bang it into shape and commit it. Howwzzat? -- I need someone really bad. Are you really bad? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 0:50:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.34.253]) by hub.freebsd.org (Postfix) with ESMTP id 9745437B422; Sat, 26 May 2001 00:50:18 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f4Q7o8m97927; Sat, 26 May 2001 09:50:08 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Dima Dorfman Cc: Alfred Perlstein , current@FreeBSD.ORG Subject: Re: vm_pager_(de)allocate and vm_mtx In-Reply-To: Your message of "Fri, 25 May 2001 22:51:11 PDT." <20010526055111.7B5803E28@bazooka.unixfreak.org> Date: Sat, 26 May 2001 09:50:08 +0200 Message-ID: <97925.990863408@critter> From: 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 In message <20010526055111.7B5803E28@bazooka.unixfreak.org>, Dima Dorfman write s: >Alfred Perlstein writes: >> * Dima Dorfman [010525 22:22] wrote: >> > Is there a reason vm_pager_allocate acquires vm_mtx itself if >> > necessary but vm_pager_deallocate does not? At the moment, detaching >> > an md(4) disk will panic the system with a failed mtx_assert in >> > vm_pager_deallocate. This can be fixed one of two ways: >> > vm_pager_deallocate could be made to deal with vm_mtx itself like >> > vm_pager_allocate does, or md(4) and any other drivers which call >> > vm_pager_deallocate can be fixed to acquire vm_mtx. So which will it >> > be? I'll supply patches for either case. >> >> Usually fixing the caller is better as it will catch people that >> expect vm state to remain unchanged across several calls. > >Patch to fix md(4) attached. Look okay? Looks fine, go ahead and commit. Poul-Henning > > Dima Dorfman > dima@unixfreak.org > >Index: md.c >=================================================================== >RCS file: /stl/src/FreeBSD/src/sys/dev/md/md.c,v >retrieving revision 1.33 >diff -u -r1.33 md.c >--- md.c 2001/05/21 18:52:00 1.33 >+++ md.c 2001/05/26 05:48:57 >@@ -711,8 +711,11 @@ > (void)vn_close(sc->vnode, sc->flags & MD_READONLY ? FREAD : (FREAD|FWRITE), sc->cred, p); > if (sc->cred != NULL) > crfree(sc->cred); >- if (sc->object != NULL) >+ if (sc->object != NULL) { >+ mtx_lock(&vm_mtx); > vm_pager_deallocate(sc->object); >+ mtx_unlock(&vm_mtx); >+ } > if (sc->secp != NULL) { > for (u = 0; u < sc->nsect; u++) > if ((uintptr_t)sc->secp[u] > 255) >@@ -763,17 +766,20 @@ > * Note the truncation. > */ > >+ mtx_lock(&vm_mtx); > sc->secsize = PAGE_SIZE; > sc->nsect = mdio->md_size / (PAGE_SIZE / DEV_BSIZE); > sc->object = vm_pager_allocate(OBJT_SWAP, NULL, sc->secsize * (vm_offset_t)sc->nsect, VM_PROT_DEFAULT, 0); > if (mdio->md_options & MD_RESERVE) { > if (swap_pager_reserve(sc->object, 0, sc->nsect) < 0) { > vm_pager_deallocate(sc->object); >+ mtx_unlock(&vm_mtx); > sc->object = NULL; > mddestroy(sc, mdio, p); > return(EDOM); > } > } >+ mtx_unlock(&vm_mtx); > error = mdsetcred(sc, p->p_ucred); > if (error) > mddestroy(sc, mdio, p); > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message > -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 0:54:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by hub.freebsd.org (Postfix) with ESMTP id 6D75337B423 for ; Sat, 26 May 2001 00:54:13 -0700 (PDT) (envelope-from rabat@web.de) Received: from [194.97.50.138] (helo=mx0.freenet.de) by mout1.freenet.de with esmtp (Exim 3.22 #1) id 153Ytn-00065m-00 for current@freebsd.org; Sat, 26 May 2001 09:54:11 +0200 Received: from b3c40.pppool.de ([213.7.60.64] helo=spotteswoode.yi.org) by mx0.freenet.de with asmtp (ID inode@freenet.de) (Exim 3.22 #1) id 153Ytm-0000LC-00 for current@freebsd.org; Sat, 26 May 2001 09:54:11 +0200 Received: (qmail 1221 invoked by uid 0); 26 May 2001 07:54:31 -0000 Date: Sat, 26 May 2001 09:54:31 +0200 From: clemensF To: current@freebsd.org Subject: buildworld Message-ID: <20010526095431.B894@spotteswoode.yi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: private X-PGP-ID: 0x214190AF X-Stamper-To: post@stamper.itconsult.co.uk Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG i'm having trouble upgrading my freebsd 4. it was frequently patched due to troubles with poll(2) and ipfilter. a few days ago i cvsup'ed to tag=., but the build failed at various stages. my gaol at the beginning was only to upgrade for reconfiguring the kernel, as i will be getting DSL soon and needed a few network twists, but when each and every attempt to get a kernel build failed i went for a make world. now i went back to RELENG_4, but the system seems to be a mess, i get too many errors. i'd be willing to merge the kernel changes later and doing it manually, but at present i've got the complete RELENG_4 sources in a vergin state right after cvsup(?), and the builds fail miserably. the errors and the local modification dates on the files seem to indicate that cvsup did not install the latest headers. where do i start the build, ie. which targets must be done before buildworld to have it start in a known state? clemens fischer ps: please Cc: me, i'm not on the list. thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 2: 4:50 2001 Delivered-To: freebsd-current@freebsd.org Received: from ns.plaut.de (ns.plaut.de [194.99.75.166]) by hub.freebsd.org (Postfix) with ESMTP id 2E41237B423 for ; Sat, 26 May 2001 02:04:48 -0700 (PDT) (envelope-from root@nihil.plaut.de) Received: (from uucp@localhost) by ns.plaut.de (8.9.3/8.9.3) with UUCP id LAA15953 for current@freebsd.org; Sat, 26 May 2001 11:04:46 +0200 (CEST) (envelope-from root@nihil.plaut.de) Received: from localhost (root@localhost) by nihil.plaut.de (8.11.3/8.8.8) with ESMTP id f4Q94Pf01142 for ; Sat, 26 May 2001 11:04:25 +0200 (CEST) (envelope-from root@nihil) Date: Sat, 26 May 2001 11:04:24 +0200 (CEST) From: Michael Reifenberger To: FreeBSD-Current Subject: Panic: spin lock shed lock hold by ... for >5 seconds 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 get the above panic when just running aviplay (/usr/ports/graphics/avifile) or wine. Since both programs use USER_LDT functions I suspect a problem there in the kernel. The kernel is the latest -current. I get no kernel-dump because the panic seems to loop (in conjunction with some lockmgr: panics...) But it's too easy to reproduce anyway... Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 2:42:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 718D537B423; Sat, 26 May 2001 02:42:20 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f4Q9gKM00955; Sat, 26 May 2001 02:42:20 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 2443E380E; Sat, 26 May 2001 02:42:20 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Alfred Perlstein Cc: Dima Dorfman , current@FreeBSD.ORG, jhb@FreeBSD.ORG Subject: Re: vm_pager_(de)allocate and vm_mtx In-Reply-To: <20010526010239.G17514@superconductor.rush.net> Date: Sat, 26 May 2001 02:42:20 -0700 From: Peter Wemm Message-Id: <20010526094220.2443E380E@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > * Dima Dorfman [010525 22:22] wrote: > > Is there a reason vm_pager_allocate acquires vm_mtx itself if > > necessary but vm_pager_deallocate does not? At the moment, detaching > > an md(4) disk will panic the system with a failed mtx_assert in > > vm_pager_deallocate. This can be fixed one of two ways: > > vm_pager_deallocate could be made to deal with vm_mtx itself like > > vm_pager_allocate does, or md(4) and any other drivers which call > > vm_pager_deallocate can be fixed to acquire vm_mtx. So which will it > > be? I'll supply patches for either case. > > Usually fixing the caller is better as it will catch people that > expect vm state to remain unchanged across several calls. It is a bit late now, but if we're going to push this to callers, I wish we had set up VM_LOCK() and VM_UNLOCK() macros or something so that we dont have to deal with fallout if something there changes (or gets conditionalized). At least use the macros outside of the vm/* and pmap.c files... On the same train of thought, perhaps GIANT_LOCK() and GIANT_UNLOCK() might have been an idea too. It would certainly have changed the code impact when the mutex api changed last time. It also gives us better 4.x porting targets because we can provide stub (do nothing) GIANT_LOCK()/UNLOCK() macros on 4.x. OK, we could do the same for mtx_lock()/unlock() too but I think the macros give us more flexability should we want to globally change the giant lock implementation at some point (or even locally add instrumentation for testing or whatever). Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 3: 7:53 2001 Delivered-To: freebsd-current@freebsd.org Received: from dt051n37.san.rr.com (dt051n37.san.rr.com [204.210.32.55]) by hub.freebsd.org (Postfix) with ESMTP id 7219737B422 for ; Sat, 26 May 2001 03:07:50 -0700 (PDT) (envelope-from DougB@DougBarton.net) Received: from DougBarton.net (master [10.0.0.2]) by dt051n37.san.rr.com (8.9.3/8.9.3) with ESMTP id DAA34976; Sat, 26 May 2001 03:07:47 -0700 (PDT) (envelope-from DougB@DougBarton.net) Message-ID: <3B0F8073.526EED2E@DougBarton.net> Date: Sat, 26 May 2001 03:07:47 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: clemensF Cc: current@FreeBSD.ORG Subject: Re: buildworld References: <20010526095431.B894@spotteswoode.yi.org> 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 clemensF wrote: > > i'm having trouble upgrading my freebsd 4. it was frequently patched due > to troubles with poll(2) and ipfilter. a few days ago i cvsup'ed to tag=., That would have brought your sources to 5-Current, not 4-Stable. > but the build failed at various stages. That would be expected. > my gaol at the beginning was only > to upgrade for reconfiguring the kernel, FreeBSD isn't linux, we don't do "kernel only" updates. You should really spend some time reading the FreeBSD Handbook on the web, especially the sections about updating your system. Meanwhile, your best bet is probably to install a -stable snapshot. That should get you the updates you need, and bring your system to the point where you will be able to do complete source upgrades again. Take a look at ftp://releng4.freebsd.org/pub/FreeBSD/snapshots/i386/ Good luck, Doug -- I need someone really bad. Are you really bad? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 5:13:43 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-60.dsl.lsan03.pacbell.net [63.207.60.60]) by hub.freebsd.org (Postfix) with ESMTP id 67E2F37B423 for ; Sat, 26 May 2001 05:13:40 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id A7F0466B21; Sat, 26 May 2001 05:13:31 -0700 (PDT) Date: Sat, 26 May 2001 05:13:30 -0700 From: Kris Kennaway To: Michael Reifenberger Cc: FreeBSD-Current Subject: Re: Panic: spin lock shed lock hold by ... for >5 seconds Message-ID: <20010526051330.A51361@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from root@nihil.plaut.de on Sat, May 26, 2001 at 11:04:24AM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 26, 2001 at 11:04:24AM +0200, Michael Reifenberger wrote: > Hi, > I get the above panic when just running aviplay (/usr/ports/graphics/avifile) or wine. > Since both programs use USER_LDT functions I suspect a problem there in the kernel. > The kernel is the latest -current. > I get no kernel-dump because the panic seems to loop (in conjunction with some > lockmgr: panics...) > But it's too easy to reproduce anyway... I had a panic when I ran avifile earlier tonight. Since I was in X I couldn't catch the details, but it sounds like it might be the same one. Kris --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7D53oWry0BWjoQKURAkLcAKChMiezHLhLw9D7+D3/wfbhVMsCzgCbBl9m M5oC6iM5Q2rBJJ8rM8vS1pM= =m4cJ -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 9: 6:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id F283637B423; Sat, 26 May 2001 09:06:28 -0700 (PDT) (envelope-from mdharnois@c1030098-a.wtrlo1.ia.home.com) Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001) id AA1E714A0D; Sat, 26 May 2001 11:07:36 -0500 (CDT) Date: Sat, 26 May 2001 11:07:36 -0500 From: Michael Harnois To: freebsd-current@freebsd.org Cc: alfred@freebsd.org, jhb@freebsd.org Subject: recursed on non-recursive lock Message-ID: <20010526110731.A707@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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 finally got this much. I hope it helps. lock order reversal 1st 0xc03af0a0 mntvnode @ ../../ufs/ffs/ffs_vnops.c:1007 2nd 0xc8b539cc vnode interlock @ ../../ufs/ffs/ffs_vfsops.c:1016 recursed on non-recursive lock (sleep mutex) vm @ ../../ufs/ufs/ufs_readwrite.c:420 first acquired @ ../../vm/vnode_pager.c:912 panic:recurse Debugger ("panic") Stopped at Debugger+0x45: pushl %ebx db> t Debugger(c0310767b) at Debugger+0x45 panic(c0313348,c81b9cb8,a0,10,0) at panic+0x70 witness_lock(c03b3f20,8,c03263b6,1a4) at witness_lock+0x356 ffs_write(c81b9ca4) at ffs_write+0xba vnode_pager_generic_putpages(c8c31d00,c81b9ddc,10000,0,c81b9d74) at vnode_pager_generic_putpages+0x19c vop_stdputpages(c81b9d28,c81b9d0c,c02a7f9d,c81b9d28,c81b9d48) at vop_stdputpages+0x1f vop_defaultop(c81b9d28,c81b9d48,c02c5c3d,c81b9d28,0) at vop_defaultop+0x15 ufs_vnoperate(c81b9d28) at ufs_vnoperate+0x15 vnode_pager_putpages(c8c4b360,c81b9ddc,10,0,c81b9d74,c03b3f20,1,c0329ffa,91) at vnode_pager_putpages+0x1ad vm_pageout_flush(c81b9ddc,10,0,c09d3b7c,c0a0d638) at vm_pageout_flush+0x12c vm_object_page_clean(c8c4b360,0,0,4) at vm_object_page_clean+0x434 vfs_msync(c0eeb200,2,c81ae440,c7b9b200,c0e8b194) at vfs_msync+02x34 sync_fsync(c81b9f5c) at sync_fsync+0x17c sched_sync(0,c81b9fa8) at sched_sync+0x16c fork_exit(c01d330c,0,c81b9fa8) at fork_exit+0xb6 fork_trampoline() at fork_trampoline+0x8 db> show registers cs 0x8 ds 0x10 es 0x10 fs 0x18 ss 0x10 eax 0x12 ecx 0xc03a7c00 main_console.518 edx 0xc033074f db_lengths+0x1d7 ebx 0x202 esp 0xc81b9bc8 ebp 0xc81b9bd4 esi 0x100 edi 0xc0386ccc eip 0xc02daa39 Debugger+0x45 efl 0x46 Debugger+0x45: pushl %ebx db> show locks exclusive (sleep mutex) vm (oxc03b3f20) locked @ ../../vm/vnode_pager.c:912 exclusive (sleep mutex) Giant (0xc03b4b00) locked @ ../../kern/vfs_subr.c:1027 db> c syncing disks... panic: mutex vm owned at ../../kern/vfs_bio.c:2990 Debugger("panic") Stopped at Debugger+0x45: pushl %ebx db> c Uptime: 37s dumping to dev ad0s1b, offset 280744 dump ata0: resetting devices .. -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa Wise men talk because they have something to say; fools, because they have to say something. -- Plato To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 9:56:20 2001 Delivered-To: freebsd-current@freebsd.org Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by hub.freebsd.org (Postfix) with ESMTP id A61D037B423 for ; Sat, 26 May 2001 09:56:17 -0700 (PDT) (envelope-from jesper@skriver.dk) Received: by freesbee.wheel.dk (Postfix, from userid 1001) id 4E8045D79; Sat, 26 May 2001 18:57:59 +0200 (CEST) Date: Sat, 26 May 2001 18:57:59 +0200 From: Jesper Skriver To: Dima Dorfman Cc: Kris Kennaway , Sheldon Hearn , Mikhail Teterin , current@freebsd.org Subject: Re: mount_mfs (Re: smbfs) Message-ID: <20010526185759.C94185@skriver.dk> References: <20010525222003.A70469@xor.obsecurity.org> <20010526054437.1C1893E28@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010526054437.1C1893E28@bazooka.unixfreak.org>; from dima@unixfreak.org on Fri, May 25, 2001 at 10:44:37PM -0700 X-PGP-Fingerprint: 6B88 9CE8 66E9 E631 C9C5 5EB4 22AB F0EC F956 1C31 X-PGP-Public-Key: http://freesbee.wheel.dk/~jesper/gpgkey.pub Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, May 25, 2001 at 10:44:37PM -0700, Dima Dorfman wrote: > Kris Kennaway writes: > > On Fri, May 25, 2001 at 04:26:48PM +0200, Sheldon Hearn wrote: > > > I still don't see why an rc.conf knob specifically for /tmp isn't > > > sufficient. That's what people want this for. Others can read the > > > excellent documentation supplied in mdconfig(8), which is appropriately > > > cross-referenced from md(4), which is the manual page for the device > > > concerned. Logical, orthogonal and pretty damn easy, when you look at > > > the EXAMPLES section. :-) > > How about make a port of out the mount_mfs compatible program and > committing your (Sheldon's) /tmp rc.conf patch? Those who only need > /tmp (and as you say, this is the majority) have what they need, we > don't have [needless] stuff in the base system, and those who need > something that pretends to be mount_mfs can get that from the ports. > Does this sound good? My vote would be to have the mount_mfs script/program in the base system, even if it has nothing to do with mfs, as long as it do what the old mount_mfs program did. /Jesper -- Jesper Skriver, jesper(at)skriver(dot)dk - CCIE #5456 Work: Network manager @ AS3292 (Tele Danmark DataNetworks) Private: FreeBSD committer @ AS2109 (A much smaller network ;-) One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 11:39: 6 2001 Delivered-To: freebsd-current@freebsd.org Received: from updraft.jp.freebsd.org (updraft.jp.FreeBSD.ORG [210.157.158.42]) by hub.freebsd.org (Postfix) with ESMTP id 5CD3F37B424 for ; Sat, 26 May 2001 11:39:03 -0700 (PDT) (envelope-from matusita@jp.FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by updraft.jp.freebsd.org (8.11.3+3.4W/8.11.3) with ESMTP/inet id f4QIco827353; Sun, 27 May 2001 03:38:50 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) Cc: current@FreeBSD.ORG In-Reply-To: <200105251943.f4PJhlr65483@misha.privatelabs.com> References: <20010525111714.C95361@dragon.nuxi.com> <200105251943.f4PJhlr65483@misha.privatelabs.com> X-Face: '*aj"d@ijeQ:/X}]oM5c5Uz{ZZZk90WPt>a^y4$cGQp8:!H\W=hSM;PuNiidkc]/%,;6VGu e+`&APmz|P;F~OL/QK%;P2vU>\j4X.8@i%j6[%DTs_3J,Fff0)*oHg$A.cDm&jc#pD24WK@{,"Ef!0 P\):.2}8jo-BiZ?X&t$V X-User-Agent: Mew/1.94.2 XEmacs/21.5 (alfalfa) X-FaceAnim: (-O_O-)(O_O- )(_O- )(O- )(- -)( -O)( -O_)( -O_O)(-O_O-) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Dispatcher: imput version 20000228(IM140) Lines: 9 From: Makoto MATSUSHITA To: mi@aldan.algebra.com Subject: Re: amd feature request (Re: AMD config file question.) Date: Sun, 27 May 2001 03:38:34 +0900 Message-Id: <20010527033834A.matusita@jp.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 mi> Heh. That was a feature request only. I don't even know the details of mi> NFS, much less SMB. Sorry, Since amd is not FreeBSD specfic product, how 'bout sending your request to the am-utils developers? -- - Makoto `MAR' MATSUSHITA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 12:25:43 2001 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 5684337B422 for ; Sat, 26 May 2001 12:25:34 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id VAA07492; Sat, 26 May 2001 21:25:33 +0200 (CEST) (envelope-from des@ofug.org) 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: current@freebsd.org Cc: mckusick@mckusick.com Subject: worklist_remove panic From: Dag-Erling Smorgrav Date: 26 May 2001 21:25:32 +0200 Message-ID: Lines: 92 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG No dump (dumps seem to have been broken for about a month now), but a stacktrace from DDB: kernel: type 12 trap, code=0 Stopped at worklist_remove+0x1c: cmpw $0,0xa(%ecx) db> trace worklist_remove(deadc0de) at worklist_remove+0x1c free_diradd(deadc0de) at free_diradd+0x26 free_newdirblk(c2e45cd0) at free_newdirblk+0x32 handle_written_inodeblock(c287b200,c6323480) at handle_written_inodeblock+0x2b2 softdep_disk_write_complete(c6323480) at softdep_disk_write_complete+0x6a bufdone(c6323480,cf2c7f54,c014de93,c6323480,c258b280) at bufdone+0x101 bufdonebio(c6323480) at bufdonebio+0xe ad_interrupt(c2c5f940,c2564300,cf2c7f7c,c01ba6e4,c258b280) at ad_interrupt+0x3ef ata_intr(c258b280) at ata_intr+0xae ithread_loop(c258b200,cf2c7fa8) at ithread_loop+0x424 fork_exit(c01ba2c0,c258b200,cf2c7fa8) at fork_exit+0xf4 fork_trampoline() at fork_trampoline+0x8 db> panic panic: from debugger Debugger("panic") Stopped at worklist_remove+0x1c: cmpw $0,0xa(%ecx) db> panic: from debugger Uptime: 1d0h12m13s dumping to dev ad0b, offset 131104 dump ata0: resetting devices .. panic: witness_restore: lock (sleep mutex) Giant not locked Uptime: 1d0h12m13s Dump already in progress, bailing... Automatic reboot in 15 seconds - press a key on the console to abort des@des ~% gdb -k GNU gdb 4.18 Copyright 1998 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-unknown-freebsd". (kgdb) exec-file /boot/kernel/kernel (kgdb) symbol-file /sys/compile/DES/kernel.debug Reading symbols from /sys/compile/DES/kernel.debug...done. (kgdb) l *(worklist_remove+0x1c) 0xc0261750 is in worklist_remove (../../ufs/ffs/ffs_softdep.c:432). 427 struct worklist *item; 428 { 429 430 if (lk.lkt_held == -1) 431 panic("worklist_remove: lock not held"); 432 if ((item->wk_state & ONWORKLIST) == 0) { 433 FREE_LOCK(&lk); 434 panic("worklist_remove: not on list"); 435 } 436 item->wk_state &= ~ONWORKLIST; (kgdb) l *(free_diradd+0x26) 0xc02640fa is in free_diradd (../../ufs/ffs/ffs_softdep.c:2601). 2596 #ifdef DEBUG 2597 if (lk.lkt_held == -1) 2598 panic("free_diradd: lock not held"); 2599 #endif 2600 WORKLIST_REMOVE(&dap->da_list); 2601 LIST_REMOVE(dap, da_pdlist); 2602 if ((dap->da_state & DIRCHG) == 0) { 2603 pagedep = dap->da_pagedep; 2604 } else { 2605 dirrem = dap->da_previous; (kgdb) l *(free_newdirblk+0x32) 0xc026345e is in free_newdirblk (../../ufs/ffs/ffs_softdep.c:2033). 2028 */ 2029 pagedep = newdirblk->db_pagedep; 2030 pagedep->pd_state &= ~NEWBLOCK; 2031 if ((pagedep->pd_state & ONWORKLIST) == 0) 2032 while ((dap = LIST_FIRST(&pagedep->pd_pendinghd)) != NULL) 2033 free_diradd(dap); 2034 /* 2035 * If no dependencies remain, the pagedep will be freed. 2036 */ 2037 for (i = 0; i < DAHASHSZ; i++) After this panic, fsck complained of bad superblocks on all file systems. By the way, fsck is intolerably slow these days: more than twenty minutes for 'fsck -y' of a 5.5 GB filesystem (roughly 380,000 files) on a recent and far from sluggish IBM IDE drive. Most (nearly all) of that time is spent in phase 2. 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 Sat May 26 14:12:40 2001 Delivered-To: freebsd-current@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 9BC5837B423 for ; Sat, 26 May 2001 14:12:37 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 26 May 2001 22:12:36 +0100 (BST) Date: Sat, 26 May 2001 22:12:36 +0100 From: David Malone To: Dag-Erling Smorgrav Cc: current@freebsd.org, mckusick@mckusick.com Subject: Re: worklist_remove panic Message-ID: <20010526221236.A60521@walton.maths.tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Sat, May 26, 2001 at 09:25:32PM +0200 Sender: owner-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, May 26, 2001 at 09:25:32PM +0200, Dag-Erling Smorgrav wrote: > No dump (dumps seem to have been broken for about a month now), but a > stacktrace from DDB: Crashdumps have been working for me recently, (apart from the fact that they overrun the end of my swap partition by 64k and clobber the superblock of my /var partition). David. 22:09# ls -l /var/crash/vmcore.9 -rw------- 1 root wheel 134152192 May 24 21:17 /var/crash/vmcore.9 22:10# strings /var/crash/kernel.9 | fgrep May May 20 2001 @(#)FreeBSD 5.0-CURRENT #23: Mon May 21 19:58:56 BST 2001 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 14:16:29 2001 Delivered-To: freebsd-current@freebsd.org Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by hub.freebsd.org (Postfix) with ESMTP id E704237B422 for ; Sat, 26 May 2001 14:16:25 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id AA65817DAC; Sat, 26 May 2001 23:05:59 +0200 (CEST) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.11.1/8.11.1) id f4QJio901854 for freebsd-current@freebsd.org; Sat, 26 May 2001 21:44:50 +0200 (CEST) (envelope-from schweikh) Date: Sat, 26 May 2001 21:44:50 +0200 From: Jens Schweikhardt To: freebsd-current@freebsd.org Subject: mutex panic Message-ID: <20010526214450.B1114@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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, world\n my system cvsupped around May 25 reliably causes a panic when I $ cp /cdrom/distfiles/somefiles /tmp I've written down the message from the debugger: /usr/src/sys/kern_synch.c:385: sleeping with "vm" locked from /usr/src/sys/vm/vm_pager.c: 428 panic: sleeping process owns a mutex Debugger("panic") >trace Debugger(...) panic() propagate_priority() _mtx_lock_sleep() ffs_write() vn_write() writev() syscall() syscall_with_err_pushed() Anything else I can do to track this down? Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 14:59:30 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-60.dsl.lsan03.pacbell.net [63.207.60.60]) by hub.freebsd.org (Postfix) with ESMTP id 9937337B422 for ; Sat, 26 May 2001 14:59:26 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0643666B88; Sat, 26 May 2001 14:59:22 -0700 (PDT) Date: Sat, 26 May 2001 14:59:22 -0700 From: Kris Kennaway To: current@FreeBSD.org Subject: 'make includes' ownership patch Message-ID: <20010526145922.A72087@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Shouldn't the includes/Makefile be installing headers using INCOWN/INCGRP instead of BINOWN/BINGRP? I ran into this when trying to do a 'make includes' as a normal user. Kris Index: include/Makefile =================================================================== RCS file: /home/ncvs/src/include/Makefile,v retrieving revision 1.142 diff -u -r1.142 Makefile --- include/Makefile 2001/05/26 11:57:29 1.142 +++ include/Makefile 2001/05/26 21:57:34 @@ -78,15 +78,15 @@ beforeinstall: ${SHARED} @rm -f ${DESTDIR}/usr/include/timepps.h cd ${.CURDIR}; \ - ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m 444 \ ${FILES} ${DESTDIR}/usr/include cd ${.CURDIR}/arpa; \ - ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m 444 \ ${ARPAFILES} ${DESTDIR}/usr/include/arpa cd ${.CURDIR}/protocols; \ - ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m 444 \ ${PROTOFILES} ${DESTDIR}/usr/include/protocols - ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m 444 \ ${.OBJDIR}/osreldate.h \ ${DESTDIR}/usr/include .for i in ${LFILES} @@ -109,12 +109,12 @@ -p ${DESTDIR}/usr/include .for i in ${LDIRS} ${LSUBDIRS} cd ${.CURDIR}/../sys; \ - ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 $i/*.h \ + ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m 444 $i/*.h \ ${DESTDIR}/usr/include/$i .endfor .if exists(${.CURDIR}/../sys/${MACHINE_ARCH}/include) cd ${.CURDIR}/../sys/${MACHINE_ARCH}/include; \ - ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ + ${INSTALL} -C -o ${INCOWN} -g ${INCGRP} -m 444 *.h \ ${DESTDIR}/usr/include/machine .endif .for i in ${SFILES} --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7ECc5Wry0BWjoQKURAjtOAJ9EUJsRTmUzcBRZ/fvY5dwdR2R45ACg1M7e kUBCn7of2BIsiIA6uPeBOoE= =0kh1 -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 15: 2:17 2001 Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 0D5B537B422; Sat, 26 May 2001 15:02:15 -0700 (PDT) (envelope-from obrien@nuxi.ucdavis.edu) Received: from dragon.nuxi.com (root@[206.40.252.115]) by relay.nuxi.com (8.11.2/8.11.2) with ESMTP id f4QM2El37930; Sat, 26 May 2001 15:02:14 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f4QM2Aw12194; Sat, 26 May 2001 15:02:10 -0700 (PDT) (envelope-from obrien) Date: Sat, 26 May 2001 15:02:10 -0700 From: "David O'Brien" To: Warner Losh Cc: Joseph Koshy , freebsd-current@FreeBSD.ORG Subject: Re: Date for a working -current? Message-ID: <20010526150210.E11876@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <20010524042637.09B2537B422@hub.freebsd.org> <200105242256.f4OMufE58506@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105242256.f4OMufE58506@harmony.village.org>; from imp@harmony.village.org on Thu, May 24, 2001 at 04:56:41PM -0600 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 24, 2001 at 04:56:41PM -0600, Warner Losh wrote: > In message <20010524042637.09B2537B422@hub.freebsd.org> Joseph Koshy writes: > : I'm in the processing of bring a 5-current system of Oct 2000 vintage > : more upto-date. > > May 18th, 2001 12:00:00 is what I've been using. One must be careful posting something like this -- it isn't timezone clean. To get just before Afred's VM commit you can use -D '2001-05-19 01:27:00 UTC' -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 15: 6: 4 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-60.dsl.lsan03.pacbell.net [63.207.60.60]) by hub.freebsd.org (Postfix) with ESMTP id 4938837B423 for ; Sat, 26 May 2001 15:06:02 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5FC3966B88; Sat, 26 May 2001 15:06:01 -0700 (PDT) Date: Sat, 26 May 2001 15:06:00 -0700 From: Kris Kennaway To: Kris Kennaway Cc: current@FreeBSD.org Subject: Re: 'make includes' ownership patch Message-ID: <20010526150600.A77078@xor.obsecurity.org> References: <20010526145922.A72087@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010526145922.A72087@xor.obsecurity.org>; from kris@obsecurity.org on Sat, May 26, 2001 at 02:59:22PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 26, 2001 at 02:59:22PM -0700, Kris Kennaway wrote: > Shouldn't the includes/Makefile be installing headers using > INCOWN/INCGRP instead of BINOWN/BINGRP? I ran into this when trying > to do a 'make includes' as a normal user. Oops, hit send too soon; more changes are required of the same form. Before I go to the trouble of doing those, I might as well get confirmation whether this is the right thing to do. Kris --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7ECjIWry0BWjoQKURAu8uAKDeAImckmQ3+cxX6SdecR+chaqjdwCfVVVj ZAEDPXqsFZ2R6NIkT3F9TQw= =EcZC -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 16:55:35 2001 Delivered-To: freebsd-current@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id A0ADD37B422 for ; Sat, 26 May 2001 16:55:32 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f4QNtWM05369 for ; Sat, 26 May 2001 16:55:32 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 726E1380E; Sat, 26 May 2001 16:55:32 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: David Malone Cc: Dag-Erling Smorgrav , current@FreeBSD.ORG Subject: Re: worklist_remove panic In-Reply-To: <20010526221236.A60521@walton.maths.tcd.ie> Date: Sat, 26 May 2001 16:55:32 -0700 From: Peter Wemm Message-Id: <20010526235532.726E1380E@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Malone wrote: > On Sat, May 26, 2001 at 09:25:32PM +0200, Dag-Erling Smorgrav wrote: > > No dump (dumps seem to have been broken for about a month now), but a > > stacktrace from DDB: > > Crashdumps have been working for me recently, (apart from the fact > that they overrun the end of my swap partition by 64k and clobber > the superblock of my /var partition). Check your disk label. I got burned a few months back on a fairly old install where I created swap first, then root. This causes the swap partition to start at sector 0, with root straight after. For some reason, sysinstall or the kernel decided to += 64k on the start address of the swap partition (to avoid swap clobbering the fdisk, bootblocks, etc at the start of the disk), but neglected to remove 64k from the size. So, when I finally crashed the box with dumps enabled, it took out the first 64k of my root filesystem. I never found the code that made this change. Either it is well hidden, or got removed a while back. This machine was installed from a 4.0-SNAP from some time before march 1999. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 18:42:34 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailer.tydfam.machida.tokyo.jp (ns.tydfam.machida.tokyo.jp [210.161.209.130]) by hub.freebsd.org (Postfix) with ESMTP id 0160737B423 for ; Sat, 26 May 2001 18:42:31 -0700 (PDT) (envelope-from ken@tydfam.machida.tokyo.jp) Received: from localhost (natto.tydfam.machida.tokyo.jp [210.161.209.131]) by mailer.tydfam.machida.tokyo.jp (8.11.1/3.7W10/03/98) with ESMTP id f4R1gSO01066 for ; Sun, 27 May 2001 10:42:28 +0900 (JST) To: freebsd-current@freebsd.org Subject: Q) lock order reversal X-Mailer: Mew version 1.94.1 on XEmacs 21.1 (Cuyahoga Valley) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010527104228P.ken@tyd2.tydfam.machida.tokyo.jp> Date: Sun, 27 May 2001 10:42:28 +0900 From: Takeshi Ken Yamada X-Dispatcher: imput version 20000228(IM140) Lines: 10 Sender: owner-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! With recent -current kernel, I get message below with P3@800Mhz X 2 when booting up. What is wrong? lock order reversal 1st 0xc04d4ac0 mntvnode @ ../../ufs/ffs/ffs_vfsops.c 1007 2nd 0xdb3001ac vnode interlock @ ../../ufs/ffs/ffs_vfsops.c 1016 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 18:48:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from gate.lustig.com (lustig.ne.mediaone.net [24.91.125.166]) by hub.freebsd.org (Postfix) with SMTP id 59C2137B423 for ; Sat, 26 May 2001 18:48:18 -0700 (PDT) (envelope-from barry@lustig.com) Received: (qmail 1876 invoked from network); 27 May 2001 01:50:15 -0000 Received: from gate.lustig.com (HELO lustig.com) (barry@205.246.2.242) by gate.lustig.com with SMTP; 27 May 2001 01:50:15 -0000 Message-ID: <3B105D56.1A637EF@lustig.com> Date: Sat, 26 May 2001 21:50:14 -0400 From: Barry Lustig Organization: Barry Lustig & Associates, Inc. X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Valentin Nechayev Cc: current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Boot time memory issue References: <3B0858F9.1E483EEE@lustig.com> <20010525091937.B774@iv.nn.kiev.ua> 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 Valentin Nechayev wrote: > > Sun, May 20, 2001 at 19:53:29, barry (Barry Lustig) wrote about "Boot time memory issue": > > Do verbose boot (`boot -v') with large SC_HISTORY_SIZE (1000 at least, > 2000 at most), and after boot check for "SMAP ..." lines at the very > beginning of the kernel boot log at /dev/console. (They are not written > to log viewable with dmesg.) Another way is to use serial console. > With this SMAP lines one can say more concrete diagnosis. Here are the SMAP lines: SMAP type=01 base=00000000 00000000 len=00000000 0009f800 SMAP type=02 base=00000000 0009f800 len=00000000 00000800 SMAP type=02 base=00000000 000e8400 len=00000000 00017c00 SMAP type=01 base=00000000 00100000 len=00000000 13ef0000 SMAP type=03 base=00000000 13ff0000 len=00000000 0000f800 SMAP type=04 base=00000000 13fff800 len=00000000 00000800 SMAP type=02 base=00000000 fff80000 len=00000000 00080000 Too many holes in the physical address space, giving up > > > I was curious whether the memory limitation on the Sony VAIO Z505 > > machines was an actual hardware limitation or a marketing issue. I just > > tried adding a 256MB module to my machine. The BIOS seemed to mostly > > recognize it. > > It did see 320MB of RAM, but had problems when testing all of it. > > Current (from > > a couple of weeks ago) boots, but gives me: > > Too many holes in the physical address space, giving up > > > > and comes up showing 64MB of RAM. Is this something that can be worked > > around, or have I run up against an actual hardware limit on the > > machine? > > /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 18:53:42 2001 Delivered-To: freebsd-current@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id A10D537B423; Sat, 26 May 2001 18:53:36 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.3/8.11.3) with ESMTP id f4R21o404244; Sat, 26 May 2001 19:01:50 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200105270201.f4R21o404244@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Barry Lustig Cc: Valentin Nechayev , current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Boot time memory issue In-reply-to: Your message of "Sat, 26 May 2001 21:50:14 EDT." <3B105D56.1A637EF@lustig.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 26 May 2001 19:01:50 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Valentin Nechayev wrote: > > > > Sun, May 20, 2001 at 19:53:29, barry (Barry Lustig) wrote about "Boot time memory issue": > > > > Do verbose boot (`boot -v') with large SC_HISTORY_SIZE (1000 at least, > > 2000 at most), and after boot check for "SMAP ..." lines at the very > > beginning of the kernel boot log at /dev/console. (They are not written > > to log viewable with dmesg.) Another way is to use serial console. > > With this SMAP lines one can say more concrete diagnosis. > > Here are the SMAP lines: > > SMAP type=01 base=00000000 00000000 len=00000000 0009f800 > SMAP type=02 base=00000000 0009f800 len=00000000 00000800 > SMAP type=02 base=00000000 000e8400 len=00000000 00017c00 > SMAP type=01 base=00000000 00100000 len=00000000 13ef0000 > SMAP type=03 base=00000000 13ff0000 len=00000000 0000f800 > SMAP type=04 base=00000000 13fff800 len=00000000 00000800 > SMAP type=02 base=00000000 fff80000 len=00000000 00080000 > Too many holes in the physical address space, giving up Can you try changing the declaration of phys_avail at the top of sys/i386/i386/machdep.c from: vm_offset_t phys_avail[10]; to vm_offset_t phys_avail[100]; -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 18:59:30 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 6EF6637B424 for ; Sat, 26 May 2001 18:59:25 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 22930 invoked by uid 0); 27 May 2001 01:59:22 -0000 Received: from p3e9c2f14.dip.t-dialin.net (HELO forge.local) (62.156.47.20) by mail.gmx.net (mp006-rz3) with SMTP; 27 May 2001 01:59:22 -0000 Received: from tmm by forge.local with local (Exim 3.20 #1) id 153ppw-000L7d-00; Sun, 27 May 2001 03:59:20 +0200 Date: Sun, 27 May 2001 03:59:20 +0200 From: Thomas Moestl To: Michael Harnois Cc: freebsd-current@freebsd.org, alfred@freebsd.org, jhb@freebsd.org Subject: Re: recursed on non-recursive lock Message-ID: <20010527035920.B80564@crow.dom2ip.de> Mail-Followup-To: Thomas Moestl , Michael Harnois , freebsd-current@freebsd.org, alfred@freebsd.org, jhb@freebsd.org References: <20010526110731.A707@home.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010526110731.A707@home.com>; from mdharnois@home.com on Sat, May 26, 2001 at 11:07:36AM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, 2001/05/26 at 11:07:36 -0500, Michael Harnois wrote: > I finally got this much. I hope it helps. > > lock order reversal > 1st 0xc03af0a0 mntvnode @ ../../ufs/ffs/ffs_vnops.c:1007 > 2nd 0xc8b539cc vnode interlock @ ../../ufs/ffs/ffs_vfsops.c:1016 > > recursed on non-recursive lock (sleep mutex) vm @ ../../ufs/ufs/ufs_readwrite.c:420 > first acquired @ ../../vm/vnode_pager.c:912 > panic:recurse > Debugger ("panic") > Stopped at Debugger+0x45: pushl %ebx > db> t > Debugger(c0310767b) at Debugger+0x45 > panic(c0313348,c81b9cb8,a0,10,0) at panic+0x70 > witness_lock(c03b3f20,8,c03263b6,1a4) at witness_lock+0x356 > ffs_write(c81b9ca4) at ffs_write+0xba > vnode_pager_generic_putpages(c8c31d00,c81b9ddc,10000,0,c81b9d74) at vnode_pager_generic_putpages+0x19c > vop_stdputpages(c81b9d28,c81b9d0c,c02a7f9d,c81b9d28,c81b9d48) at vop_stdputpages+0x1f > vop_defaultop(c81b9d28,c81b9d48,c02c5c3d,c81b9d28,0) at vop_defaultop+0x15 > ufs_vnoperate(c81b9d28) at ufs_vnoperate+0x15 > vnode_pager_putpages(c8c4b360,c81b9ddc,10,0,c81b9d74,c03b3f20,1,c0329ffa,91) at vnode_pager_putpages+0x1ad > [...] I can relatively reliable reproduce this panic here... The problem appears to be that the vm_mtx is held when VOP_WRITE is called in vnode_pager_generic_putpages (sys/vm/vnode_pager.c:999). This may try to grab the vm_mtx (e.g. the ufs implementation in sys/ufs/ufs/ufs_readwrite.c), so you end up with a recursion on the lock. Even if it wouldn't recurse, VOP_WRITE can AFAIK block, so there is a potential for other panics, too. The attached patch just unlocks vm_mtx before this call and reacquires the it when it's done. This works for me, and I think it theoretically should be safe because all relevant parts are under Giant again for now; YMMV, it might cause other panics or corruption, so you've been warned ;) - thomas --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="vn_pager.diff" Index: sys/vm/vnode_pager.c =================================================================== RCS file: /home/ncvs/src/sys/vm/vnode_pager.c,v retrieving revision 1.130 diff -u -r1.130 vnode_pager.c --- sys/vm/vnode_pager.c 2001/05/23 22:51:23 1.130 +++ sys/vm/vnode_pager.c 2001/05/27 01:07:19 @@ -996,7 +996,9 @@ auio.uio_rw = UIO_WRITE; auio.uio_resid = maxsize; auio.uio_procp = (struct proc *) 0; + mtx_unlock(&vm_mtx); error = VOP_WRITE(vp, &auio, ioflags, curproc->p_ucred); + mtx_lock(&vm_mtx); cnt.v_vnodeout++; cnt.v_vnodepgsout += ncount; --3MwIy2ne0vdjdPXF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 19: 1:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from gate.lustig.com (lustig.ne.mediaone.net [24.91.125.166]) by hub.freebsd.org (Postfix) with SMTP id 1ABD037B422 for ; Sat, 26 May 2001 19:01:37 -0700 (PDT) (envelope-from barry@lustig.com) Received: (qmail 2161 invoked from network); 27 May 2001 02:03:35 -0000 Received: from gate.lustig.com (HELO lustig.com) (barry@205.246.2.242) by gate.lustig.com with SMTP; 27 May 2001 02:03:35 -0000 Message-ID: <3B106076.657BB1A9@lustig.com> Date: Sat, 26 May 2001 22:03:34 -0400 From: Barry Lustig Organization: Barry Lustig & Associates, Inc. X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Mike Smith Cc: Valentin Nechayev , current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Boot time memory issue References: <200105270201.f4R21o404244@mass.dis.org> 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 Mike Smith wrote: > > > Here are the SMAP lines: > > > > SMAP type=01 base=00000000 00000000 len=00000000 0009f800 > > SMAP type=02 base=00000000 0009f800 len=00000000 00000800 > > SMAP type=02 base=00000000 000e8400 len=00000000 00017c00 > > SMAP type=01 base=00000000 00100000 len=00000000 13ef0000 > > SMAP type=03 base=00000000 13ff0000 len=00000000 0000f800 > > SMAP type=04 base=00000000 13fff800 len=00000000 00000800 > > SMAP type=02 base=00000000 fff80000 len=00000000 00080000 > > Too many holes in the physical address space, giving up > > Can you try changing the declaration of phys_avail at the top of > sys/i386/i386/machdep.c from: > > vm_offset_t phys_avail[10]; > > to > > vm_offset_t phys_avail[100]; > Did that and got the same error. I put a printf just before the pa_indx++ in machdep.c and watched it increment by 2's all the way up to 100. Any other ideas? barry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 20:35:39 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id 2B7B137B423; Sat, 26 May 2001 20:35:36 -0700 (PDT) (envelope-from mdharnois@home.com) Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001) id 6F35814A1F; Sat, 26 May 2001 22:36:43 -0500 (CDT) To: Thomas Moestl Cc: freebsd-current@FreeBSD.ORG, alfred@FreeBSD.ORG, jhb@FreeBSD.ORG Subject: Re: recursed on non-recursive lock References: <20010526110731.A707@home.com> <20010527035920.B80564@crow.dom2ip.de> From: Michael Harnois Date: 26 May 2001 22:36:42 -0500 In-Reply-To: <20010527035920.B80564@crow.dom2ip.de> (Thomas Moestl's message of "Sun, 27 May 2001 03:59:20 +0200") Message-ID: <861ypb31kl.fsf@mharnois.workgroup.net> Lines: 17 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) 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, 27 May 2001 03:59:20 +0200, Thomas Moestl said: > The attached patch just unlocks vm_mtx before this call and > reacquires the it when it's done. This works for me Me, too. So far, at least ... uptime 25 minutes, swapping, X running, none of which I could do before ... thanks! > > lock order reversal I still have this little booger ... is it significant? -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa Earth has its boundaries, but human stupidity is limitless. -- Gustave Flaubert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 20:55:13 2001 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 821) id 72C0E37B422; Sat, 26 May 2001 20:55:09 -0700 (PDT) Date: Sat, 26 May 2001 20:55:09 -0700 From: John To: Current List Subject: Correctness of UIO_MAXIOV definition? Message-ID: <20010526205509.A14824@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-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, A few days ago I posted a short message to hackers asking for input concerning the definition of UIO_MAXIOV. The definition of UIO_MAXIOV is hidden behind _KERNEL. I have a small patch I'd like to apply to simply move the #define outside of _KERNEL. The patch is below. The second question I have is more standards based. Should we consider changing UIO_MAXIOV to IOV_MAX or _XOPEN_IOV_MAX and deprecating the 1st? I am unclear on what the standard is for this. Draft 4 of the Austin Group Common Specifications seems to say: 9166 XSI {IOV_MAX} 9167 Maximum number of iovec structures that one process has available for use with readv( ) or 9168 writev( ). 9169 Minimum Acceptable Value: {_XOPEN_IOV_MAX} 9524 XSI {_XOPEN_IOV_MAX} 9525 Maximum number of iovec structures that one process has available for use with readv( ) or 9526 writev( ). 9694 * Under Runtime Invariant Values, {ATEXIT_MAX}, {IOV_MAX}, {PAGESIZE}, and 9695 {PAGE_SIZE} are added. 9696 * Under Minimum Values, {_XOPEN_IOV_MAX} is added. 13654 APPLICATION USAGE 13655 The implementation can put a limit on the number of scatter/gather elements which can be | 13656 processed in one call. The symbol {IOV_MAX} defined in should always be used to | 13657 learn about the limits instead of assuming a fixed value. | 13658 RATIONALE 13659 Traditionally, the maximum number of scatter/gather elements the system can process in one | 13660 call were descibed by the symbolic value {UIO_MAXIOV}. In IEEE Std. 1003.1-200x this value | 13661 was replaced by the constant {IOV_MAX} which can be found in . | 15151 The following symbolic constants shall be defined for sysconf(): 15198 XSI _SC_IOV_MAX Comments welcome. -john Index: uio.h =================================================================== RCS file: /home/ncvs/src/sys/sys/uio.h,v retrieving revision 1.12 diff -u -r1.12 uio.h --- uio.h 2001/02/16 14:31:49 1.12 +++ uio.h 2001/05/25 02:32:50 @@ -68,11 +68,6 @@ struct proc *uio_procp; }; -/* - * Limits - */ -#define UIO_MAXIOV 1024 /* max 1K of iov's */ -#define UIO_SMALLIOV 8 /* 8 on stack, else malloc */ struct vm_object; @@ -91,6 +86,12 @@ ssize_t readv __P((int, const struct iovec *, int)); ssize_t writev __P((int, const struct iovec *, int)); __END_DECLS + +/* + * iovec array size limits + */ +#define UIO_MAXIOV 1024 /* max 1K of iov's */ +#define UIO_SMALLIOV 8 /* 8 on stack, else malloc */ #endif /* _KERNEL */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 21:15:40 2001 Delivered-To: freebsd-current@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 46AF837B422 for ; Sat, 26 May 2001 21:15:37 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id 7D9813E28 for ; Sat, 26 May 2001 21:15:36 -0700 (PDT) To: current@freebsd.org Subject: Re: kbdcontrol the build-tool revisited (was: cvs commit: src/usr.sbin/kbdcontrol kbdcontrol.c) In-Reply-To: <200105270403.f4R43r843630@freefall.freebsd.org>; from dd@FreeBSD.org on "Sat, 26 May 2001 21:03:53 -0700 (PDT)" Date: Sat, 26 May 2001 21:15:36 -0700 From: Dima Dorfman Message-Id: <20010527041536.7D9813E28@bazooka.unixfreak.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 folks, As I'm sure most people here know, kbdcontrol is a build-tool because sysinstall requires it to generate keymap.h. This means that it has to compile with the headers already in /usr/include on the host system; the last time this came up with PASTE, we just defined the needed constant in kbdcontrol.c and forgot about the problem. This is rather silly, because it effectively means we can't add new features to kbdcontrol that depend on new header files. Furthermore, sysinstall only needs a small subset of its features, which can be easily factored out into a separate program. This has been proposed before; nobody really objected, but it was found that defining the constant was much quicker and easier. Since I think being unable to add new features to kbdcontrol is a rather silly limitation, I again propose to factor out `kbdcontrol -L` into a separate program, which can then be made a build-tool. I'll do all the work necessary if this is what we want to do. Regards, Dima Dorfman dima@unixfreak.org Dima Dorfman writes: > dd 2001/05/26 21:03:53 PDT > > Modified files: > usr.sbin/kbdcontrol kbdcontrol.c > Log: > A la rev. 1.36, define CONS_CLRHIST here if it isn't already since > this is a build tool, so it has to build on 4.x with the old headers. > > Revision Changes Path > 1.38 +7 -3 src/usr.sbin/kbdcontrol/kbdcontrol.c > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 21:32:46 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id 4461437B422; Sat, 26 May 2001 21:32:43 -0700 (PDT) (envelope-from mdharnois@home.com) Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001) id C93B014A34; Sat, 26 May 2001 23:33:41 -0500 (CDT) To: Thomas Moestl Cc: freebsd-current@FreeBSD.ORG, alfred@FreeBSD.ORG, jhb@FreeBSD.ORG Subject: Re: recursed on non-recursive lock References: <20010526110731.A707@home.com> <20010527035920.B80564@crow.dom2ip.de> From: Michael Harnois Date: 26 May 2001 23:33:40 -0500 In-Reply-To: <20010527035920.B80564@crow.dom2ip.de> (Thomas Moestl's message of "Sun, 27 May 2001 03:59:20 +0200") Message-ID: <86ae3z1kd7.fsf@mharnois.workgroup.net> Lines: 8 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) 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 After I'd been up a couple of hours I had a spontaneous reboot. No idea why. Still a lot better than I'd been doing ... -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa Earth has its boundaries, but human stupidity is limitless. -- Gustave Flaubert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sat May 26 23:21:31 2001 Delivered-To: freebsd-current@freebsd.org Received: from c1030098-a.wtrlo1.ia.home.com (c1030098-a.wtrlo1.ia.home.com [24.6.200.230]) by hub.freebsd.org (Postfix) with ESMTP id 3A2D237B422; Sat, 26 May 2001 23:21:28 -0700 (PDT) (envelope-from mdharnois@home.com) Received: by c1030098-a.wtrlo1.ia.home.com (Postfix, from userid 1001) id 2EAC114A0D; Sun, 27 May 2001 01:22:27 -0500 (CDT) To: Thomas Moestl Cc: freebsd-current@FreeBSD.ORG, alfred@FreeBSD.ORG, jhb@FreeBSD.ORG Subject: next panic: blockable sleep lock Keywords: trap,lock,sleep,debugger,syscall,panic,mutex,fault References: <20010526110731.A707@home.com> <20010527035920.B80564@crow.dom2ip.de> From: Michael Harnois Date: 27 May 2001 01:22:24 -0500 In-Reply-To: <20010527035920.B80564@crow.dom2ip.de> (Thomas Moestl's message of "Sun, 27 May 2001 03:59:20 +0200") Message-ID: <86u22748gv.fsf_-_@mharnois.workgroup.net> Lines: 46 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) 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 freeing uidinfo: uid = 0, sbsize = 3197224 freeing uidinfo: uid = 0, proccnt = 86 kernel trap 12 with interrupts disabled panic: blockable sleep lock (sleep mutex) Giant @ ../../vm/vm_fault.c:213 Debugger("panic") Stopped at Debugger+0x45: pushl %ebx db> t Debugger(c0350d9b) at Debugger+0x45 panic(c0353900, c034fd00,c0372434,c0368074,d5) at panic+0x70 witness_lock(co4230c0,8,c0368074,d5) at witness_lock+0x1b4 vm_fault(c040e2ec,deadc000,1,0,0) at vm_fault+0xb2 trap_pfault(c8d27e94,0,deadc2af,c8cbd200,c0b3351c) at trap_pfault+0x2d1 trap(c8d20018,c01d0010,c8cb0010,4,c0b3351c) at trap+0x5d0 calltrap() at calltrap+0x5 --- trap 0xc, eip = 0xc01ba652, esp = 0xc8d27ed4, ebp = 0xc8d27ee0 --- _mtx_lock_sleep(c0b3351c,0,c035076c,364) at mtx_lock_sleep+0x342 chgproccnt(c0b33500,ffffffff,0,c1280900,c03b0d40,c8d26bbc,c1280900) at chgproccnt+0x67 wait1(c8cbd200,c8d27f80,0,c8d27fa0,c0323469) at wait1+0x765 wait4(c8cbd200,c8d27f80,8085c01,bfbfed04,c597) at wait4+0x12 syscall(2f,2f,2f,c597,bfbfed04) at syscall+0x695 syscall_with_err_pushed() at syscall_with_error_pushed+0x1b db> show reg cs 0x8 ds 0x8d20010 es 0x10 fs 0x18 ss 0x10 eax 0x12 edx 0xc0370e6f db_lengths+0x1d7 ebx 0x202 esp 0xc8d27da4 ebp 0xc8d27db0 esi 0x100 edi 0xc8cbd200 eip 0xc0313d09 efl 0x46 Debugger+0x45: pushl %ebx db> show locks exclusive (sleep mutex) Giant (0xc04230c0) locked @ ../../i386/i386/trap.c:1153 exclusive (spin mutex) sched lock (0xc0422f20) locked @ ../../kern/kern_mutex.c: 312 -- Michael D. Harnois mdharnois@home.com Redeemer Lutheran Church Washburn, Iowa Earth has its boundaries, but human stupidity is limitless. -- Gustave Flaubert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message