From owner-freebsd-current Sun Jul 15 0:53:33 2001 Delivered-To: freebsd-current@freebsd.org Received: from mp.virtual-earth.de (mp.virtual-earth.de [212.89.109.98]) by hub.freebsd.org (Postfix) with ESMTP id 8DAF537B403 for ; Sun, 15 Jul 2001 00:53:30 -0700 (PDT) (envelope-from mathiasp@mp.virtual-earth.de) Received: (from mathiasp@localhost) by mp.virtual-earth.de (8.11.4/8.11.4) id f6F7rSw29807 for freebsd-current@freebsd.org; Sun, 15 Jul 2001 09:53:28 +0200 (CEST) (envelope-from mathiasp) Message-Id: <200107150753.f6F7rSw29807@mp.virtual-earth.de> Date: Sun, 15 Jul 2001 09:53:27 +0200 (CEST) From: Mathias.Picker@virtual-earth.de Subject: qtk probs on -current To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have problems building kde on my -current box for some time. I re-cvsuped yesterday, but the problem remains. I did post this on -ports, and got an explanation from John Polstra (http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=861732+865021+/usr/local/www/db/text/2001/freebsd-ports/20010708.freebsd-ports) ending with: > ldd /usr/X11R6/bin/uic > [...] > NEEDED crtn.o > The last line is the reason for the error message. I built the qt23 > port on my -current machine and observed the same thing. (The "uic" > program comes from the qt23 port.) This is almost certainly caused by > an "ld" bug in the new version of binutils (2.11.2). I haven't tried > to debug it, and I don't know if/when I'll have time. It's possible > this has already been fixed by the binutils team. I imagine they > would stumble onto it pretty quickly themselves. So, is the binutils team aware of this problem? Is someone looking into this? I just want to know so I have an idea when I can try next - retrying with the same error gets frustrating - and I'm not good enough to try to fix this myself... Cheers, Mathias -- virtual earth Mathias Picker Geschäftsführer Gesellschaft für Wissens re/prä sentation mbH Mathias.Picker@virtual-earth.de Fon +49 89 / 540 7425-1 Fax +49 89 / 540 7425-9 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 3: 3:16 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 3D01437B401 for ; Sun, 15 Jul 2001 03:02:50 -0700 (PDT) (envelope-from alex@fump.kawo2.rwth-aachen.de) Received: from fump.kawo2.rwth-aachen.de (root@fump.kawo2.rwth-aachen.de [134.130.181.148]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id MAA24458 for ; Sun, 15 Jul 2001 12:02:49 +0200 Received: (from alex@localhost) by fump.kawo2.rwth-aachen.de (8.11.3/8.11.3) id f6FA3IV99885 for current@FreeBSD.org; Sun, 15 Jul 2001 12:03:18 +0200 (CEST) (envelope-from alex) Date: Sun, 15 Jul 2001 12:03:17 +0200 From: Alexander Langer To: current@FreeBSD.org Subject: netstat kernel panic Message-ID: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> Mail-Followup-To: Alexander Langer , current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 Hello, when running netstat or using an app, that uses it (such as linux-navigator), my machine panics: Script started on Sat Jul 14 12:52:06 2001 (kgdb) mobile# gdb -k /usr/obj/usr/src/sys/MOBILE/kernel.debug vmcore.1 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"... IdlePTD 4804608 initial pcb at 39bce0 panicstr: from debugger panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address = 0x3a fault code = supervisor write, page not present instruction pointer = 0x8:0xc02c8cfe stack pointer = 0x10:0xcd6b4d44 frame pointer = 0x10:0xcd6b4d5c 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 = 5731 (netstat) trap number = 12 panic: page fault syncing disks... 102 102 panic: Lock (sx) allproc not locked @ /usr/src/sys/kern/kern_proc.c:152. Uptime: 2h3m2s dumping to dev ad0b, offset 176256 dump ata0: resetting devices .. panic: witness_save: lock (sleep mutex) Giant not locked Uptime: 2h3m3s Dump already in progress, bailing... Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot <-- Rebooting... ACPI debug layer 0x0 debug level 0x0 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: Tue Jul 10 18:53:24 CEST 2001 alex@mobile.cichlids.com:/usr/obj/usr/src/sys/MOBILE Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 647191364 Hz CPU: Pentium III/Pentium III Xeon/Celeron (647.19-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x387f9ff real memory = 67043328 (65472K bytes) avail memory = 60309504 (58896K bytes) Preloaded elf kernel "kernel" at 0xc0476000. Preloaded elf module "agp.ko" at 0xc047609c. Preloaded elf module "random.ko" at 0xc0476138. Warning: module random already exists Pentium Pro MTRR support enabled WARNING: Driver mistake: repeat make_dev("random") Using $PIR table, 4 entries at 0xc00fdf80 acpi0: on motherboard acpi_cpu0: on acpi0 acpi_tz0: on acpi0 acpi_pcib0: on acpi0 pci0: on acpi_pcib0 agp0: mem 0xf8000000-0xfbffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1050-0x105f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: at device 7.2 on pci0 uhci0: Could not map ports device_probe_and_attach: uhci0 attach returned 6 pci0: at 7.3 (no driver attached) pci0: at 9.0 (no driver attached) pci0: at 9.1 (no driver attached) acpi_pcib0: matched entry for 0.12.INTA (source \\_SB_.PCI0.ISA_.LNKA) acpi_pcib0: possible interrupts: 3 4 5 7 11 12 acpi_pcib0: routed interrupt 3 via \\_SB_.PCI0.ISA_.LNKA pcic0: mem 0x44000000-0x44000fff irq 3 at device 12.0 on pci0 pcic0: Memory mapped device, will work. pccard0: on pcic0 acpi_ec0: on acpi0 acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_timer0: <24-bit timer at 3.579545MHz> on acpi0 npx0: on motherboard npx0: INT 16 interface too many dependant configs too many dependant configs too many dependant configs too many dependant configs too many dependant configs too many dependant configs too many dependant configs too many dependant configs orm0:
Add me to your mailing list = !
xgattix@sympatico.ca
 
------=_NextPart_000_000C_01C10C52.C98AC150-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 8:13:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id CA29337B405; Sun, 15 Jul 2001 08:13:21 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:/M4qi+yn9uZXApUdmq3hyph/y1X0dKpgjNqoGKKKaUVJ+S7Z4ex+2eFlSxc4C369@localhost [::1]) (authenticated as ume with CRAM-MD5) by peace.mahoroba.org (8.11.4/8.11.4/peace) with ESMTP/inet6 id f6FFDIo35936; Mon, 16 Jul 2001 00:13:18 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 16 Jul 2001 00:13:14 +0900 (JST) Message-Id: <20010716.001314.59549708.ume@mahoroba.org> To: net@FreeBSD.org, current@FreeBSD.org Subject: Use of M_WAITOK in if_addmulti(). From: Hajimu UMEMOTO In-Reply-To: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> References: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> X-Mailer: Mew version 1.95b119 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-Operating-System: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Current if_addmulti() calls MALLOC() with M_WAITOK. However, if_addmulti() can be called from in[6]_addmulti() with splnet(). It may lead kernel panic. So, I wish to change to use M_NOWAIT. Any comment? Index: sys/net/if.c diff -u sys/net/if.c.orig sys/net/if.c --- sys/net/if.c.orig Wed Jul 4 20:28:47 2001 +++ sys/net/if.c Sun Jul 15 23:47:15 2001 @@ -1412,8 +1412,8 @@ llsa = 0; } - MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, M_IFMADDR, M_WAITOK); - MALLOC(dupsa, struct sockaddr *, sa->sa_len, M_IFMADDR, M_WAITOK); + MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, M_IFMADDR, M_NOWAIT); + MALLOC(dupsa, struct sockaddr *, sa->sa_len, M_IFMADDR, M_NOWAIT); bcopy(sa, dupsa, sa->sa_len); ifma->ifma_addr = dupsa; @@ -1441,9 +1441,9 @@ ifma->ifma_refcount++; } else { MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, - M_IFMADDR, M_WAITOK); + M_IFMADDR, M_NOWAIT); MALLOC(dupsa, struct sockaddr *, llsa->sa_len, - M_IFMADDR, M_WAITOK); + M_IFMADDR, M_NOWAIT); bcopy(llsa, dupsa, llsa->sa_len); ifma->ifma_addr = dupsa; ifma->ifma_ifp = ifp; -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 8:18:25 2001 Delivered-To: freebsd-current@freebsd.org Received: from bsduser.ca (194.40.220-216.q9.net [216.220.40.194]) by hub.freebsd.org (Postfix) with ESMTP id 9AA8137B406; Sun, 15 Jul 2001 08:18:14 -0700 (PDT) (envelope-from chris@collins-ca.com) Received: from bsduser.ca (bsduser.ca [216.220.40.194]) by bsduser.ca (8.11.3/8.11.3) with ESMTP id f6FFM2n91303; Sun, 15 Jul 2001 11:22:02 -0400 (EDT) (envelope-from chris@collins-ca.com) Date: Sun, 15 Jul 2001 11:22:02 -0400 (EDT) From: Chris Collins X-X-Sender: To: Cc: Subject: Re: buildworld problem. In-Reply-To: <20010714133434.F14426-100000@bsduser.ca> Message-ID: <20010715111916.X88805-100000@bsduser.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello I have tried another cvsup today and then tried a buildworld again. Now I am getting a new error message. Does anybody know how to resolve this error? Thanks -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj COMPILER_PATH=/usr/obj/usr/src/i386/usr/libexec:/usr/obj/usr/src/i386/usr/bin LIBRARY_PATH=/usr/obj/usr/src/i386/usr/lib:/usr/obj/usr/src/i386/usr/lib OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec CFLAGS="-nostdinc -O -pipe " PERL5LIB=/usr/obj/usr/src/i386/usr/libdata/perl/5.00503 GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/i386/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/i386/usr/share/tmac DESTDIR=/usr/obj/usr/src/i386 INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make -f Makefile.inc1 all ===> share/info ===> include ===> include/rpcsvc ===> lib ===> lib/csu/i386-elf ===> lib/libcom_err gzip -cn /usr/src/lib/libcom_err/../../contrib/com_err/com_err.3 > com_err.3.gz -cn: No such file or directory *** Error code 1 Stop in /usr/src/lib/libcom_err. *** Error code 1 Stop in /usr/src/lib. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. bsduser# 11:15AM up 4 days, 10:21, 3 users, load averages: 0.56, 0.76, 0.91 On Sat, 14 Jul 2001, Chris Collins wrote: > > Hello All > > I have just cvsuped and now I am trying to make buildworld with no luck. > > I'm getting the following error and I have no idea where to begin to fix > this. The only thing I have tried is running cvsup again from another > cvsup site incase there was something wrong with the one I was using. > > Does anybody have any ideas? > > > -------------------------------------------------------------- > >>> stage 4: building everything.. > -------------------------------------------------------------- > cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj > COMPILER_PATH=/usr/obj/usr/src/i386/usr/libexec:/usr/obj/usr/src/i386/usr/bin > LIBRARY_PATH=/usr/obj/usr/src/i386/usr/lib:/usr/obj/usr/src/i386/usr/lib > OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec CFLAGS="-nostdinc -O > -pipe " PERL5LIB=/usr/obj/usr/src/i386/usr/libdata/perl/5.00503 > GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin > GROFF_FONT_PATH=/usr/obj/usr/src/i386/usr/share/groff_font > GROFF_TMAC_PATH=/usr/obj/usr/src/i386/usr/share/tmac > DESTDIR=/usr/obj/usr/src/i386 INSTALL="sh /usr/src/tools/install.sh" > PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin > make -f Makefile.inc1 all > ===> share/info > ===> include > ===> include/rpcsvc > ===> lib > ===> lib/csu/i386-elf > ===> lib/libcom_err > make: don't know how to make com_err.3. Stop > *** Error code 2 > > Stop in /usr/src/lib. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > > Chris > > > ------- > > > > 1:30PM up 3 days, 12:36, 3 users, load averages: 0.71, 0.72, 0.84 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 9:24:30 2001 Delivered-To: freebsd-current@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id D292E37B409; Sun, 15 Jul 2001 09:24:14 -0700 (PDT) (envelope-from julian@elischer.org) Received: from elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA79651; Sun, 15 Jul 2001 11:18:48 -0700 (PDT) Message-ID: <3B51C28F.7A56D8D8@elischer.org> Date: Sun, 15 Jul 2001 09:19:27 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Hajimu UMEMOTO Cc: net@FreeBSD.org, current@FreeBSD.org Subject: Re: Use of M_WAITOK in if_addmulti(). References: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> <20010716.001314.59549708.ume@mahoroba.org> Content-Type: text/plain; charset=iso-8859-2 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 Hajimu UMEMOTO wrote: NOWAIT MAY return. you have not handled the case for when it returns with a NULL allocation so if it returns NULL you continue, and page-fault immediatly. > > Hi, > > Current if_addmulti() calls MALLOC() with M_WAITOK. However, > if_addmulti() can be called from in[6]_addmulti() with splnet(). It > may lead kernel panic. So, I wish to change to use M_NOWAIT. > Any comment? > > Index: sys/net/if.c > diff -u sys/net/if.c.orig sys/net/if.c > --- sys/net/if.c.orig Wed Jul 4 20:28:47 2001 > +++ sys/net/if.c Sun Jul 15 23:47:15 2001 > @@ -1412,8 +1412,8 @@ > llsa = 0; > } > > - MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, M_IFMADDR, M_WAITOK); > - MALLOC(dupsa, struct sockaddr *, sa->sa_len, M_IFMADDR, M_WAITOK); > + MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, M_IFMADDR, M_NOWAIT); > + MALLOC(dupsa, struct sockaddr *, sa->sa_len, M_IFMADDR, M_NOWAIT); > bcopy(sa, dupsa, sa->sa_len); > > ifma->ifma_addr = dupsa; > @@ -1441,9 +1441,9 @@ > ifma->ifma_refcount++; > } else { > MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, > - M_IFMADDR, M_WAITOK); > + M_IFMADDR, M_NOWAIT); > MALLOC(dupsa, struct sockaddr *, llsa->sa_len, > - M_IFMADDR, M_WAITOK); > + M_IFMADDR, M_NOWAIT); > bcopy(llsa, dupsa, llsa->sa_len); > ifma->ifma_addr = dupsa; > ifma->ifma_ifp = ifp; > > -- > Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan > ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org > http://www.imasy.org/~ume/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message WAIT____ -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / hard at work in | / \ julian@elischer.org +------>x USA \ a very strange | ( OZ ) \___ ___ | country ! +- X_.---._/ presently in San Francisco \_/ \\ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 9:28:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from midten.fast.no (midten.fast.no [213.188.8.11]) by hub.freebsd.org (Postfix) with ESMTP id 884CD37B406; Sun, 15 Jul 2001 09:28:10 -0700 (PDT) (envelope-from Tor.Egge@fast.no) Received: from fast.no (IDENT:tegge@midten.fast.no [213.188.8.11]) by midten.fast.no (8.9.3/8.9.3) with ESMTP id SAA01763; Sun, 15 Jul 2001 18:27:52 +0200 (CEST) Message-Id: <200107151627.SAA01763@midten.fast.no> To: juriy@aviaport.ru Cc: freebsd-current@FreeBSD.ORG, peter@FreeBSD.ORG Subject: Re: kernel with SSE is unstable From: Tor.Egge@fast.no In-Reply-To: Your message of "Sun, 15 Jul 2001 01:01:47 +0400" References: <20010715010147.A892@aviaport.ru> X-Mailer: Mew version 1.70 on Emacs 19.34.1 Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sun_Jul_15_18:27:48_2001)--" Content-Transfer-Encoding: 7bit Date: Sun, 15 Jul 2001 18:27:52 +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 ----Next_Part(Sun_Jul_15_18:27:48_2001)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit > In my system kernel(WITH SSE) falls when I use commands netstat and swapinfo. > kernel without SSE works fine. I got a very similar panic when trying an UP kernel with SSE enabled. mi_switch() sets curproc->p_oncpu to NOCPU before calling cpu_switch(). cpu_switch() might call npxsave() which calls fpusave with NOCPU as the 'oncpu' argument. A suggested patch is enclosed. - Tor Egge ----Next_Part(Sun_Jul_15_18:27:48_2001)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Index: sys/i386/isa/npx.c =================================================================== RCS file: /home/ncvs/src/sys/i386/isa/npx.c,v retrieving revision 1.104 diff -u -r1.104 npx.c --- sys/i386/isa/npx.c 2001/07/12 12:21:53 1.104 +++ sys/i386/isa/npx.c 2001/07/15 16:23:02 @@ -160,8 +160,8 @@ #endif static int npx_probe __P((device_t dev)); static int npx_probe1 __P((device_t dev)); -static void fpusave __P((union savefpu *, u_char)); -static void fpurstor __P((union savefpu *, u_char)); +static void fpusave __P((union savefpu *)); +static void fpurstor __P((union savefpu *)); #ifdef I586_CPU_XXX static long timezero __P((const char *funcname, void (*func)(void *buf, size_t len))); @@ -579,7 +579,7 @@ stop_emulating(); fldcw(&control); if (PCPU_GET(curpcb) != NULL) - fpusave(&PCPU_GET(curpcb)->pcb_save, curproc->p_oncpu); + fpusave(&PCPU_GET(curpcb)->pcb_save); start_emulating(); critical_exit(savecrit); } @@ -881,7 +881,7 @@ * fnsave are broken, so our treatment breaks fnclex if it is the * first FPU instruction after a context switch. */ - fpurstor(&PCPU_GET(curpcb)->pcb_save, curproc->p_oncpu); + fpurstor(&PCPU_GET(curpcb)->pcb_save); critical_exit(s); return (1); @@ -916,18 +916,18 @@ { stop_emulating(); - fpusave(addr, curproc->p_oncpu); + fpusave(addr); start_emulating(); PCPU_SET(npxproc, NULL); } static void -fpusave(addr, oncpu) +fpusave(addr) union savefpu *addr; - u_char oncpu; { static struct savexmm svxmm[MAXCPU]; + u_char oncpu = PCPU_GET(cpuid); if (!cpu_fxsr) fnsave(addr); @@ -938,11 +938,11 @@ } static void -fpurstor(addr, oncpu) +fpurstor(addr) union savefpu *addr; - u_char oncpu; { static struct savexmm svxmm[MAXCPU]; + u_char oncpu = PCPU_GET(cpuid); if (!cpu_fxsr) frstor(addr); ----Next_Part(Sun_Jul_15_18:27:48_2001)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 10:25:20 2001 Delivered-To: freebsd-current@freebsd.org Received: from light.imasy.or.jp (light.imasy.or.jp [202.227.24.4]) by hub.freebsd.org (Postfix) with ESMTP id 2974637B403; Sun, 15 Jul 2001 10:25:11 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: (from uucp@localhost) by light.imasy.or.jp (8.11.3+3.4W/8.11.3/light) with UUCP id f6FHP1216099; Mon, 16 Jul 2001 02:25:01 +0900 (JST) (envelope-from ume@mahoroba.org) Received: from peace.mahoroba.org (IDENT:sxTc4RZcYEQYf5SvLGaGaTycVj/Aeo06n0y4OZO1NAxuUEKkgHGMLia8iE2DyX/X@peace.mahoroba.org [2001:200:301:0:200:f8ff:fe05:3eae]) (authenticated as ume with CRAM-MD5) by mail.mahoroba.org (8.11.4/8.11.4/chaos) with ESMTP/inet6 id f6FHOgL23057; Mon, 16 Jul 2001 02:24:43 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 16 Jul 2001 02:24:39 +0900 (JST) Message-Id: <20010716.022439.74683611.ume@mahoroba.org> To: julian@elischer.org Cc: net@FreeBSD.org, current@FreeBSD.org Subject: Re: Use of M_WAITOK in if_addmulti(). From: Hajimu UMEMOTO In-Reply-To: <3B51C28F.7A56D8D8@elischer.org> References: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> <20010716.001314.59549708.ume@mahoroba.org> <3B51C28F.7A56D8D8@elischer.org> X-Mailer: xcite1.38> Mew version 1.95b119 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-Operating-System: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> On Sun, 15 Jul 2001 09:19:27 -0700 >>>>> Julian Elischer said: julian> NOWAIT MAY return. julian> you have not handled the case for when it returns with a NULL allocation julian> so if it returns NULL you continue, and page-fault immediatly. Oops, thank you. How about this? Index: sys/net/if.c diff -u sys/net/if.c.orig sys/net/if.c --- sys/net/if.c.orig Mon Jul 16 01:39:34 2001 +++ sys/net/if.c Mon Jul 16 01:51:49 2001 @@ -1412,8 +1412,14 @@ llsa = 0; } - MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, M_IFMADDR, M_WAITOK); - MALLOC(dupsa, struct sockaddr *, sa->sa_len, M_IFMADDR, M_WAITOK); + MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, M_IFMADDR, M_NOWAIT); + if (iama == NULL) + return (ENOBUFS); + MALLOC(dupsa, struct sockaddr *, sa->sa_len, M_IFMADDR, M_NOWAIT); + if (dupsa == NULL) { + FREE(ifma, M_IFMADDR); + return (ENOBUFS); + } bcopy(sa, dupsa, sa->sa_len); ifma->ifma_addr = dupsa; @@ -1441,9 +1447,15 @@ ifma->ifma_refcount++; } else { MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, - M_IFMADDR, M_WAITOK); + M_IFMADDR, M_NOWAIT); + if (iama == NULL) + return (ENOBUFS); MALLOC(dupsa, struct sockaddr *, llsa->sa_len, - M_IFMADDR, M_WAITOK); + M_IFMADDR, M_NOWAIT); + if (dupsa == NULL) { + FREE(ifma, M_IFMADDR); + return (ENOBUFS); + } bcopy(llsa, dupsa, llsa->sa_len); ifma->ifma_addr = dupsa; ifma->ifma_ifp = ifp; -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 10:31:12 2001 Delivered-To: freebsd-current@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id 3DEC437B401; Sun, 15 Jul 2001 10:31:04 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:KDGClK7a+52EuQvJR80VQaf99FNJoc1zyOjYd+cAUNj1xi/oQcCHgLI5f1K70omw@localhost [::1]) (authenticated as ume with CRAM-MD5) by peace.mahoroba.org (8.11.4/8.11.4/peace) with ESMTP/inet6 id f6FHUkJ60741; Mon, 16 Jul 2001 02:30:46 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 16 Jul 2001 02:30:43 +0900 (JST) Message-Id: <20010716.023043.130171162.ume@mahoroba.org> To: julian@elischer.org Cc: net@FreeBSD.org, current@FreeBSD.org Subject: Re: Use of M_WAITOK in if_addmulti(). From: Hajimu UMEMOTO In-Reply-To: <20010716.022439.74683611.ume@mahoroba.org> References: <20010716.001314.59549708.ume@mahoroba.org> <3B51C28F.7A56D8D8@elischer.org> <20010716.022439.74683611.ume@mahoroba.org> X-Mailer: xcite1.38> Mew version 1.95b119 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-Operating-System: FreeBSD 5.0-CURRENT 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 ume> Index: sys/net/if.c ume> diff -u sys/net/if.c.orig sys/net/if.c ume> --- sys/net/if.c.orig Mon Jul 16 01:39:34 2001 ume> +++ sys/net/if.c Mon Jul 16 01:51:49 2001 Oops, it was wrong version. Index: sys/net/if.c diff -u sys/net/if.c.orig sys/net/if.c --- sys/net/if.c.orig Mon Jul 16 01:39:34 2001 +++ sys/net/if.c Mon Jul 16 01:51:49 2001 @@ -1412,8 +1412,14 @@ llsa = 0; } - MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, M_IFMADDR, M_WAITOK); - MALLOC(dupsa, struct sockaddr *, sa->sa_len, M_IFMADDR, M_WAITOK); + MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, M_IFMADDR, M_NOWAIT); + if (ifma == NULL) + return (ENOBUFS); + MALLOC(dupsa, struct sockaddr *, sa->sa_len, M_IFMADDR, M_NOWAIT); + if (dupsa == NULL) { + FREE(ifma, M_IFMADDR); + return (ENOBUFS); + } bcopy(sa, dupsa, sa->sa_len); ifma->ifma_addr = dupsa; @@ -1441,9 +1447,15 @@ ifma->ifma_refcount++; } else { MALLOC(ifma, struct ifmultiaddr *, sizeof *ifma, - M_IFMADDR, M_WAITOK); + M_IFMADDR, M_NOWAIT); + if (ifma == NULL) + return (ENOBUFS); MALLOC(dupsa, struct sockaddr *, llsa->sa_len, - M_IFMADDR, M_WAITOK); + M_IFMADDR, M_NOWAIT); + if (dupsa == NULL) { + FREE(ifma, M_IFMADDR); + return (ENOBUFS); + } bcopy(llsa, dupsa, llsa->sa_len); ifma->ifma_addr = dupsa; ifma->ifma_ifp = ifp; -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 10:52:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [206.40.252.115]) by hub.freebsd.org (Postfix) with ESMTP id 5B95037B403; Sun, 15 Jul 2001 10:52:06 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f6FHpWA71542; Sun, 15 Jul 2001 10:51:32 -0700 (PDT) (envelope-from obrien) Date: Sun, 15 Jul 2001 10:51:32 -0700 From: "David O'Brien" To: Chris Collins Cc: freebsd-current@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: buildworld problem. Message-ID: <20010715105132.A71519@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <20010714133434.F14426-100000@bsduser.ca> <20010715111916.X88805-100000@bsduser.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010715111916.X88805-100000@bsduser.ca>; from chris@collins-ca.com on Sun, Jul 15, 2001 at 11:22:02AM -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 Sun, Jul 15, 2001 at 11:22:02AM -0400, Chris Collins wrote: > ===> lib/libcom_err > gzip -cn /usr/src/lib/libcom_err/../../contrib/com_err/com_err.3 > > com_err.3.gz > -cn: No such file or directory > *** Error code 1 I would run ``type gzip'' or ``which gzip''. It seems either you've done something to your gzip binary, or there is a commit that broke it that I've missed. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 11:44:48 2001 Delivered-To: freebsd-current@freebsd.org Received: from bsduser.ca (194.40.220-216.q9.net [216.220.40.194]) by hub.freebsd.org (Postfix) with ESMTP id 7DDF437B403; Sun, 15 Jul 2001 11:44:40 -0700 (PDT) (envelope-from chris@collins-ca.com) Received: from bsduser.ca (bsduser.ca [216.220.40.194]) by bsduser.ca (8.11.3/8.11.3) with ESMTP id f6FImRn05339; Sun, 15 Jul 2001 14:48:27 -0400 (EDT) (envelope-from chris@collins-ca.com) Date: Sun, 15 Jul 2001 14:48:27 -0400 (EDT) From: Chris Collins X-X-Sender: To: "David O'Brien" Cc: , Subject: Re: buildworld problem. In-Reply-To: <20010715105132.A71519@dragon.nuxi.com> Message-ID: <20010715144307.K92506-100000@bsduser.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here is what I get when I do a which. I don't think that there is anything wrong with my gzip binary. I use it almost everyday. I'll think that I will re-install it just to be sure. bsduser# which gzip /sbin/gzip bsduser# 2:40PM up 4 days, 13:46, 3 users, load averages: 0.10, 0.37, 1.24 On Sun, 15 Jul 2001, David O'Brien wrote: > On Sun, Jul 15, 2001 at 11:22:02AM -0400, Chris Collins wrote: > > ===> lib/libcom_err > > gzip -cn /usr/src/lib/libcom_err/../../contrib/com_err/com_err.3 > > > com_err.3.gz > > -cn: No such file or directory > > *** Error code 1 > > I would run ``type gzip'' or ``which gzip''. It seems either you've done > something to your gzip binary, or there is a commit that broke it that > I've missed. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 12: 3:20 2001 Delivered-To: freebsd-current@freebsd.org Received: from sneakerz.org (sneakerz.org [216.33.66.254]) by hub.freebsd.org (Postfix) with ESMTP id D3F9D37B401; Sun, 15 Jul 2001 12:03:16 -0700 (PDT) (envelope-from bright@sneakerz.org) Received: by sneakerz.org (Postfix, from userid 1092) id 8B8355D010; Sun, 15 Jul 2001 14:03:05 -0500 (CDT) Date: Sun, 15 Jul 2001 14:03:05 -0500 From: Alfred Perlstein To: Hajimu UMEMOTO Cc: julian@elischer.org, net@FreeBSD.org, current@FreeBSD.org Subject: Re: Use of M_WAITOK in if_addmulti(). Message-ID: <20010715140305.H15299@sneakerz.org> References: <20010716.001314.59549708.ume@mahoroba.org> <3B51C28F.7A56D8D8@elischer.org> <20010716.022439.74683611.ume@mahoroba.org> <20010716.023043.130171162.ume@mahoroba.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010716.023043.130171162.ume@mahoroba.org>; from ume@mahoroba.org on Mon, Jul 16, 2001 at 02:30:43AM +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Hajimu UMEMOTO [010715 12:31] wrote: > > ume> Index: sys/net/if.c > ume> diff -u sys/net/if.c.orig sys/net/if.c > ume> --- sys/net/if.c.orig Mon Jul 16 01:39:34 2001 > ume> +++ sys/net/if.c Mon Jul 16 01:51:49 2001 > > Oops, it was wrong version. One trick is to pass a "waitok" parameter, the INET6 code would call it with it set to zero, however most other consumers would call it with it set to one meaning they can block. -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 12:16:19 2001 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [206.40.252.115]) by hub.freebsd.org (Postfix) with ESMTP id 6733637B401; Sun, 15 Jul 2001 12:16:15 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f6FJGDW72652; Sun, 15 Jul 2001 12:16:13 -0700 (PDT) (envelope-from obrien) Date: Sun, 15 Jul 2001 12:16:13 -0700 From: "David O'Brien" To: Chris Collins Cc: freebsd-current@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: buildworld problem. Message-ID: <20010715121613.A72537@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <20010715105132.A71519@dragon.nuxi.com> <20010715144307.K92506-100000@bsduser.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010715144307.K92506-100000@bsduser.ca>; from chris@collins-ca.com on Sun, Jul 15, 2001 at 02:48:27PM -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 Sun, Jul 15, 2001 at 02:48:27PM -0400, Chris Collins wrote: > Here is what I get when I do a which. I don't think that there is anything > wrong with my gzip binary. I use it almost everyday. I'll think that I > will re-install it just to be sure. ... > > > gzip -cn /usr/src/lib/libcom_err/../../contrib/com_err/com_err.3 > > > > com_err.3.gz > > > -cn: No such file or directory Something is going on -- gzip is not recognizing options. It thinks "-cn" is a file. That certainly isn't normal. -- -- 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 Sun Jul 15 12:32:55 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-165-226-181.dsl.lsan03.pacbell.net [64.165.226.181]) by hub.freebsd.org (Postfix) with ESMTP id 2CCA037B405; Sun, 15 Jul 2001 12:32:52 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 2DF7566D15; Sun, 15 Jul 2001 12:32:48 -0700 (PDT) Date: Sun, 15 Jul 2001 12:32:48 -0700 From: Kris Kennaway To: Chris Collins Cc: David O'Brien , freebsd-current@FreeBSD.ORG Subject: Re: buildworld problem. Message-ID: <20010715123248.A10227@xor.obsecurity.org> References: <20010715105132.A71519@dragon.nuxi.com> <20010715144307.K92506-100000@bsduser.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010715144307.K92506-100000@bsduser.ca>; from chris@collins-ca.com on Sun, Jul 15, 2001 at 02:48:27PM -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 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 15, 2001 at 02:48:27PM -0400, Chris Collins wrote: > Here is what I get when I do a which. I don't think that there is anything > wrong with my gzip binary. I use it almost everyday. I'll think that I > will re-install it just to be sure. >=20 >=20 > bsduser# which gzip > /sbin/gzip > bsduser# That's the wrong location for it: xor# which gzip /usr/bin/gzip Something is messed up on your system. Kris --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7Ue/fWry0BWjoQKURAjidAJ4xPCeTCCUqfvtBEeuaOpgvFASwZQCgzUM9 Mi7K2NeZ243vxLasZ0uTu14= =A5zk -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 13:51:25 2001 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id F390E37B403; Sun, 15 Jul 2001 13:51:16 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id f6FKoae21142; Sun, 15 Jul 2001 16:50:36 -0400 (EDT) (envelope-from wollman) Date: Sun, 15 Jul 2001 16:50:36 -0400 (EDT) From: Garrett Wollman Message-Id: <200107152050.f6FKoae21142@khavrinen.lcs.mit.edu> To: Hajimu UMEMOTO Cc: net@FreeBSD.ORG, current@FreeBSD.ORG Subject: Use of M_WAITOK in if_addmulti(). In-Reply-To: <20010716.001314.59549708.ume@mahoroba.org> References: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> <20010716.001314.59549708.ume@mahoroba.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 < said: > Current if_addmulti() calls MALLOC() with M_WAITOK. However, > if_addmulti() can be called from in[6]_addmulti() with splnet(). It > may lead kernel panic. This is not a problem (or should not be). It is permissible to sleep while some interrupts are blocked; it is just not (in 4-stable) permissible to sleep in interrupt context. The PR that I sent a few days ago was an example of one such circumstance. Is it really the case that in6_addmulti() can be invoked in interrupt context, and if so, why? -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 14:20: 9 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 3F1EE37B401 for ; Sun, 15 Jul 2001 14:20:02 -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 XAA25133; Sun, 15 Jul 2001 23:20:00 +0200 (CEST) Received: (from j@localhost) by uriah.heep.sax.de (8.11.4/8.11.4) id f6FLHdN23530; Sun, 15 Jul 2001 23:17:39 +0200 (MET DST) (envelope-from j) Date: Sun, 15 Jul 2001 23:17:39 +0200 (MET DST) Message-Id: <200107152117.f6FLHdN23530@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: <20010714133434.F14426-100000@bsduser.ca> <20010715111916.X88805-100000@bsduser.ca> <20010715105132.A71519@dragon.nuxi.com> From: j@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: buildworld problem. X-Original-Newsgroups: local.freebsd.current To: freebsd-current@freebsd.org Cc: Chris Collins Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "David O'Brien" wrote: >> -cn: No such file or directory >> *** Error code 1 > I would run ``type gzip'' or ``which gzip''. It seems either you've > done something to your gzip binary, or there is a commit that broke > it that I've missed. That's typical behaviour for the mini-gzip that is part of /stand/sysinstall. -- 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 Sun Jul 15 15:19:51 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 B4BBE37B401 for ; Sun, 15 Jul 2001 15:19:43 -0700 (PDT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 15 Jul 2001 23:19:42 +0100 (BST) To: freebsd-current@freebsd.org Subject: Load average synchronisation and phantom loads Date: Sun, 15 Jul 2001 23:19:42 +0100 From: Ian Dowse Message-ID: <200107152319.aa46183@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 There are a few PRs and a number of messages in the mailing list archives that describe a problem where the load average occasionally remains at 1.0 or greater even though top(1) reports that the CPU is nearly 100% idle. The PRs I could find in a quick search are kern/21155, kern/23448 and kern/27334. The most probable cause for this effect is a synchonisation between the load measurement and processes that periodically run for short amounts of time. The load average is based on samples of the number of running processes taken at exact 5-second intervals. If some other process regularly runs with a period that divides into 5 seconds, that process may always be seen as running even though it may only run for a tiny fraction of the available CPU time. A very likely candidate process is bufdaemon; it sleeps for 1 second at a time, so if it happens to get scheduled in the same tick as the load measurement and before the load measurement, it will always be seen as running. The patch below causes the samples of running processes to be somewhat randomised; instead of being taken every 5 seconds, the gap now varies in the range 4 to 6 seconds, so that synchronisation should no longer occur. Would there be any objections to my committing this? Two comments on the patch: - This patch removes the SSLEEP case in loadav(), because in the existing code, p->p_slptime has always just been incremented in schedcpu() so this case never made a difference. To keep the same load average behaviour when loadav() is called at different times, this case needs to be removed. - The load average calculation now has really nothing to do with the VM system, so it could be moved elsewhere. I've just left it in vm_meter.c because that's where it's always been. Ian Index: vm/vm_meter.c =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/vm/vm_meter.c,v retrieving revision 1.57 diff -u -r1.57 vm_meter.c --- vm/vm_meter.c 2001/07/04 19:00:12 1.57 +++ vm/vm_meter.c 2001/07/15 20:54:38 @@ -53,8 +53,11 @@ #include #include +static void loadav_init(void); + struct loadavg averunnable = { {0, 0, 0}, FSCALE }; /* load average, of runnable procs */ +static struct callout loadav_callout; struct vmmeter cnt; @@ -75,19 +78,17 @@ * 1, 5 and 15 minute intervals. */ static void -loadav(struct loadavg *avg) +loadav(void *arg) { int i, nrun; + struct loadavg *avg; struct proc *p; + avg = (struct loadavg *)arg; sx_slock(&allproc_lock); - for (nrun = 0, p = LIST_FIRST(&allproc); p != 0; p = LIST_NEXT(p, p_list)) { + for (nrun = 0, p = LIST_FIRST(&allproc); p != 0; + p = LIST_NEXT(p, p_list)) { switch (p->p_stat) { - case SSLEEP: - if (p->p_pri.pri_level > PZERO || - p->p_slptime != 0) - continue; - /* FALLTHROUGH */ case SRUN: if ((p->p_flag & P_NOLOAD) != 0) continue; @@ -100,15 +101,24 @@ for (i = 0; i < 3; i++) avg->ldavg[i] = (cexp[i] * avg->ldavg[i] + nrun * FSCALE * (FSCALE - cexp[i])) >> FSHIFT; + + /* + * Schedule the next update to occur in 5 seconds, but add a + * random variation to help avoid synchronisation with + * processes that run at regular intervals. + */ + callout_reset(&loadav_callout, hz * 4 + (int)(random() % (hz * 2)), + loadav, arg); } -void -vmmeter() +static void +loadav_init() { - - if (time_second % 5 == 0) - loadav(&averunnable); + callout_init(&loadav_callout, 0); + loadav(&averunnable); } +SYSINIT(loadav, SI_SUB_PSEUDO, SI_ORDER_ANY, loadav_init, NULL) + SYSCTL_UINT(_vm, VM_V_FREE_MIN, v_free_min, CTLFLAG_RW, &cnt.v_free_min, 0, ""); Index: vm/vm_extern.h =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/vm/vm_extern.h,v retrieving revision 1.47 diff -u -r1.47 vm_extern.h --- vm/vm_extern.h 2000/03/13 10:47:24 1.47 +++ vm/vm_extern.h 2001/07/15 20:36:14 @@ -84,7 +84,6 @@ int vm_mmap __P((vm_map_t, vm_offset_t *, vm_size_t, vm_prot_t, vm_prot_t, int, void *, vm_ooffset_t)); vm_offset_t vm_page_alloc_contig __P((vm_offset_t, vm_offset_t, vm_offset_t, vm_offset_t)); void vm_set_page_size __P((void)); -void vmmeter __P((void)); struct vmspace *vmspace_alloc __P((vm_offset_t, vm_offset_t)); struct vmspace *vmspace_fork __P((struct vmspace *)); void vmspace_exec __P((struct proc *)); Index: kern/kern_synch.c =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/kern/kern_synch.c,v retrieving revision 1.148 diff -u -r1.148 kern_synch.c --- kern/kern_synch.c 2001/07/06 01:16:42 1.148 +++ kern/kern_synch.c 2001/07/15 20:38:13 @@ -56,8 +56,6 @@ #include #include #include -#include -#include #ifdef KTRACE #include #include @@ -295,7 +293,6 @@ mtx_unlock_spin(&sched_lock); } sx_sunlock(&allproc_lock); - vmmeter(); wakeup((caddr_t)&lbolt); callout_reset(&schedcpu_callout, hz, schedcpu, NULL); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 18:43:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 49B1737B401; Sun, 15 Jul 2001 18:43:35 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:100f:10c1:ed03:fbc7:d990:5678]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id KAA08771; Mon, 16 Jul 2001 10:45:23 +0900 (JST) Date: Mon, 16 Jul 2001 10:43:31 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: Garrett Wollman Cc: net@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: Use of M_WAITOK in if_addmulti(). In-Reply-To: <200107152050.f6FKoae21142@khavrinen.lcs.mit.edu> References: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> <20010716.001314.59549708.ume@mahoroba.org> <200107152050.f6FKoae21142@khavrinen.lcs.mit.edu> User-Agent: Wanderlust/2.5.8 (Smooth) Emacs/21.0 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) 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 >>>>> On Sun, 15 Jul 2001 16:50:36 -0400 (EDT), >>>>> Garrett Wollman said: >> Current if_addmulti() calls MALLOC() with M_WAITOK. However, >> if_addmulti() can be called from in[6]_addmulti() with splnet(). It >> may lead kernel panic. > This is not a problem (or should not be). It is permissible to sleep > while some interrupts are blocked; it is just not (in 4-stable) > permissible to sleep in interrupt context. The PR that I sent a few > days ago was an example of one such circumstance. Is it really the > case that in6_addmulti() can be invoked in interrupt context, Yes, it is. in6_update_ifa() can be called under an interrupt context, as you pointed out, and it calls in6_joingroup(), which then calls in6_addmulti(). > and if > so, why? When a new unicast address is configured, the configuring node must be join the solicited-node multicast group corresponding to the unicast address. Since the autoconfiguration procedure runs under an interrupt context, the joining routine also runs under the context. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Sun Jul 15 21:38:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from saturn.axissoft.co.jp (saturn.axissoft.co.jp [210.81.71.34]) by hub.freebsd.org (Postfix) with ESMTP id 89D8A37B401 for ; Sun, 15 Jul 2001 21:38:34 -0700 (PDT) (envelope-from ogata@axissoft.co.jp) Received: from lucifer.axissoft.co.jp (IDENT:root@[172.16.10.2]) by saturn.axissoft.co.jp (8.9.3/3.7W/Linux2.0) with ESMTP id NAA14189 for ; Mon, 16 Jul 2001 13:39:26 +0900 Received: from spring ([172.16.3.91]) by lucifer.axissoft.co.jp (8.9.3/3.7W) with SMTP id NAA17481 for ; Mon, 16 Jul 2001 13:45:28 +0900 Date: Mon, 16 Jul 2001 13:44:08 +0900 From: Hiroyuki Ogata To: freebsd-current@FreeBSD.org Message-Id: <20010716134322.686F.OGATA@axissoft.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.03 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG subscribe freebsd-current To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 1:31:32 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-169-104-2.dsl.lsan03.pacbell.net [64.169.104.2]) by hub.freebsd.org (Postfix) with ESMTP id 6EDCB37B401; Mon, 16 Jul 2001 01:31:29 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5787C67378; Mon, 16 Jul 2001 01:31:28 -0700 (PDT) Date: Mon, 16 Jul 2001 01:31:27 -0700 From: Kris Kennaway To: current@FreeBSD.org Cc: brian@FreeBSD.org, imp@FreeBSD.org, ache@FreeBSD.org Subject: libedit replacement for libreadline Message-ID: <20010716013127.A16058@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" 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 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, I've just finished syncing up our libedit to the version in NetBSD, which includes a number of bugfixes, but perhaps more interestingly it can function as a drop-in (apparently binary compatible) replacement for GNU libreadline (unfortunately it's not binary compatible with our present libedit). I've tested this so far with bc and gdb and it seems to indeed work as expected, though I've not yet done a full make world with the patches. I've tried not to spam any previous FreeBSD changes (which should probably be submitted back to NetBSD to keep us fully in sync), but I may have missed something and will check again later. I've CC'ed the FreeBSD people who have made most of the (few) changes to libedit on our side in case they have time to verify the diffs. Fetch the following file and unpack it in /usr/src; it will overwrite the contents of lib/libedit. You should also disable libreadline in gnu/lib/Makefile (and might want to remove /usr/include/readline/* to make sure it picks up the new versions). http://www.freebsd.org/~kris/libedit.tgz Comments welcome. Kris --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7UqZeWry0BWjoQKURAsa5AKDsNZxGACM6oS36fFx1ERgjxuXNeACg/g2h yEESgtUM6akaRLms6GsPyDM= =4MLe -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 2:33:55 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 A3A5F37B405; Mon, 16 Jul 2001 02:33:52 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 16 Jul 2001 10:33:51 +0100 (BST) Date: Mon, 16 Jul 2001 10:33:51 +0100 From: David Malone To: Kris Kennaway Cc: current@FreeBSD.org, brian@FreeBSD.org, imp@FreeBSD.org, ache@FreeBSD.org Subject: Re: libedit replacement for libreadline Message-ID: <20010716103351.A81876@walton.maths.tcd.ie> References: <20010716013127.A16058@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716013127.A16058@xor.obsecurity.org>; from kris@obsecurity.org on Mon, Jul 16, 2001 at 01:31:27AM -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, Jul 16, 2001 at 01:31:27AM -0700, Kris Kennaway wrote: > I've just finished syncing up our libedit to the version in NetBSD, > which includes a number of bugfixes, but perhaps more interestingly it > can function as a drop-in (apparently binary compatible) replacement > for GNU libreadline (unfortunately it's not binary compatible with our > present libedit). It doesn't actually impliment all of libreadline - just it's most common uses. Last time I checked libedit couldn't emulate readline's callback mode. I looked at implimenting the callback stuff, but it would be really hard to do properly 'cos of how libedit is structured. (In the end I hacked something together, but it's really ugly.) David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 2:39:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-169-104-2.dsl.lsan03.pacbell.net [64.169.104.2]) by hub.freebsd.org (Postfix) with ESMTP id E7D9A37B412; Mon, 16 Jul 2001 02:39:38 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id F0A1B67378; Mon, 16 Jul 2001 02:39:29 -0700 (PDT) Date: Mon, 16 Jul 2001 02:39:28 -0700 From: Kris Kennaway To: Kris Kennaway Cc: current@FreeBSD.ORG, brian@FreeBSD.ORG, imp@FreeBSD.ORG, ache@FreeBSD.ORG Subject: Re: libedit replacement for libreadline Message-ID: <20010716023927.A39392@xor.obsecurity.org> References: <20010716013127.A16058@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716013127.A16058@xor.obsecurity.org>; from kris@obsecurity.org on Mon, Jul 16, 2001 at 01:31:27AM -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 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 16, 2001 at 01:31:27AM -0700, Kris Kennaway wrote: > for GNU libreadline (unfortunately it's not binary compatible with our > present libedit). I've tested this so far with bc and gdb and it ..or source compatible, apparently. I thought I'd tested this with the ftp client, but I must have been using old headers or something. I'll have to look at this some more. Kris --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7UrZPWry0BWjoQKURAuKdAJ9zme0XrmkOvOeE5nGs3xEq+pv0NwCgw3lO XnDmvF+2BPXUrWViBf58+jw= =TJin -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 3:19:50 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-62.dsl.lsan03.pacbell.net [63.207.60.62]) by hub.freebsd.org (Postfix) with ESMTP id 1731937B403; Mon, 16 Jul 2001 03:19:44 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B49FD67378; Mon, 16 Jul 2001 03:19:33 -0700 (PDT) Date: Mon, 16 Jul 2001 03:19:32 -0700 From: Kris Kennaway To: David Malone Cc: Kris Kennaway , current@FreeBSD.ORG, brian@FreeBSD.ORG, imp@FreeBSD.ORG, ache@FreeBSD.ORG Subject: Re: libedit replacement for libreadline Message-ID: <20010716031932.A5930@xor.obsecurity.org> References: <20010716013127.A16058@xor.obsecurity.org> <20010716103351.A81876@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716103351.A81876@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Mon, Jul 16, 2001 at 10:33:51AM +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 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2001 at 10:33:51AM +0100, David Malone wrote: > On Mon, Jul 16, 2001 at 01:31:27AM -0700, Kris Kennaway wrote: >=20 > > I've just finished syncing up our libedit to the version in NetBSD, > > which includes a number of bugfixes, but perhaps more interestingly it > > can function as a drop-in (apparently binary compatible) replacement > > for GNU libreadline (unfortunately it's not binary compatible with our > > present libedit). >=20 > It doesn't actually impliment all of libreadline - just it's most > common uses. Last time I checked libedit couldn't emulate readline's > callback mode. I looked at implimenting the callback stuff, but it > would be really hard to do properly 'cos of how libedit is structured. > (In the end I hacked something together, but it's really ugly.) Hmm. We could easily provide a libreadline port for ports to use, as long as libedit does everything that's needed for the in-tree users (are there any others apart from bc and gdb?) The only danger is if future versions of those grow the need to use other parts of the API which we don't implement. The upside is that both the FreeBSD and NetBSD communities would be facing the same problem, meaning greater developer power to implement new features. Personally, I think it's worth it to get rid of a GNU dependency in the base system, as well as reducing the overall amount of functional code duplication. Kris --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7Ur+zWry0BWjoQKURAg3nAJ4qeYoctA5vU4wBBc6R9hmGy790+gCeIBkC UhO5Lmx80CznXMLX9HEaq8M= =Z3JA -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 3:33:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id A4A4D37B403; Mon, 16 Jul 2001 03:33:16 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.4/8.11.4) id f6GAX2b11158; Mon, 16 Jul 2001 14:33:03 +0400 (MSD) (envelope-from ache) Date: Mon, 16 Jul 2001 14:33:00 +0400 From: "Andrey A. Chernov" To: David Malone Cc: Kris Kennaway , current@FreeBSD.org, brian@FreeBSD.org, imp@FreeBSD.org Subject: Re: libedit replacement for libreadline Message-ID: <20010716143259.A11043@nagual.pp.ru> References: <20010716013127.A16058@xor.obsecurity.org> <20010716103351.A81876@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010716103351.A81876@walton.maths.tcd.ie> User-Agent: Mutt/1.3.19i Sender: owner-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, Jul 16, 2001 at 10:33:51 +0100, David Malone wrote: > On Mon, Jul 16, 2001 at 01:31:27AM -0700, Kris Kennaway wrote: > > > I've just finished syncing up our libedit to the version in NetBSD, > > which includes a number of bugfixes, but perhaps more interestingly it > > can function as a drop-in (apparently binary compatible) replacement > > for GNU libreadline (unfortunately it's not binary compatible with our > > present libedit). > > It doesn't actually impliment all of libreadline - just it's most > common uses. Last time I checked libedit couldn't emulate readline's > callback mode. I looked at implimenting the callback stuff, but it > would be really hard to do properly 'cos of how libedit is structured. > (In the end I hacked something together, but it's really ugly.) I don't think that libreadline replacement is good idea. Libreadline is moving target - every version adds new functions and renames old ones. I doubt that NetBSD people will follow libreadline closely. Moreover, I think some libreadline stuff is very libreadline specific and will be not implemened in any case. So libedit as libreadline replacement can be used only if you want to save some space on floppy for very simple libreadline application, but not in general case. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 3:38: 2 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 3BE6C37B403; Mon, 16 Jul 2001 03:37:59 -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 UAA29412; Mon, 16 Jul 2001 20:37:28 +1000 Date: Mon, 16 Jul 2001 20:35:13 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Tor.Egge@fast.no Cc: juriy@aviaport.ru, freebsd-current@FreeBSD.ORG, peter@FreeBSD.ORG Subject: Re: kernel with SSE is unstable In-Reply-To: <200107151627.SAA01763@midten.fast.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 15 Jul 2001 Tor.Egge@fast.no wrote: > > In my system kernel(WITH SSE) falls when I use commands netstat and swapinfo. > > kernel without SSE works fine. > > I got a very similar panic when trying an UP kernel with SSE enabled. > > mi_switch() sets curproc->p_oncpu to NOCPU before calling > cpu_switch(). cpu_switch() might call npxsave() which calls fpusave > with NOCPU as the 'oncpu' argument. > > A suggested patch is enclosed. > Index: sys/i386/isa/npx.c > =================================================================== > RCS file: /home/ncvs/src/sys/i386/isa/npx.c,v > retrieving revision 1.104 > diff -u -r1.104 npx.c > --- sys/i386/isa/npx.c 2001/07/12 12:21:53 1.104 > +++ sys/i386/isa/npx.c 2001/07/15 16:23:02 > @@ -160,8 +160,8 @@ > #endif > static int npx_probe __P((device_t dev)); > static int npx_probe1 __P((device_t dev)); > -static void fpusave __P((union savefpu *, u_char)); > -static void fpurstor __P((union savefpu *, u_char)); > +static void fpusave __P((union savefpu *)); > +static void fpurstor __P((union savefpu *)); Good. I want all use of the cpu number removed. It seems to be just to avoid alignment problems that shouldn't happen in practice (the save area should always be suitably aligned if it isn't already, and I think it is already). > static void > -fpusave(addr, oncpu) > +fpusave(addr) > union savefpu *addr; > - u_char oncpu; > { > static struct savexmm svxmm[MAXCPU]; > + u_char oncpu = PCPU_GET(cpuid); > > if (!cpu_fxsr) > fnsave(addr); Also, `struct savexmm' is not too large to put on the stack. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 3:40: 1 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-62.dsl.lsan03.pacbell.net [63.207.60.62]) by hub.freebsd.org (Postfix) with ESMTP id 2405B37B403; Mon, 16 Jul 2001 03:39:52 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D537F6769D; Mon, 16 Jul 2001 03:39:50 -0700 (PDT) Date: Mon, 16 Jul 2001 03:39:50 -0700 From: Kris Kennaway To: "Andrey A. Chernov" Cc: David Malone , Kris Kennaway , current@FreeBSD.org, brian@FreeBSD.org, imp@FreeBSD.org Subject: Re: libedit replacement for libreadline Message-ID: <20010716033949.B9822@xor.obsecurity.org> References: <20010716013127.A16058@xor.obsecurity.org> <20010716103351.A81876@walton.maths.tcd.ie> <20010716143259.A11043@nagual.pp.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="24zk1gE8NUlDmwG9" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716143259.A11043@nagual.pp.ru>; from ache@nagual.pp.ru on Mon, Jul 16, 2001 at 02:33:00PM +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 --24zk1gE8NUlDmwG9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2001 at 02:33:00PM +0400, Andrey A. Chernov wrote: > > It doesn't actually impliment all of libreadline - just it's most > > common uses. Last time I checked libedit couldn't emulate readline's > > callback mode. I looked at implimenting the callback stuff, but it > > would be really hard to do properly 'cos of how libedit is structured. > > (In the end I hacked something together, but it's really ugly.) >=20 > I don't think that libreadline replacement is good idea. Libreadline is > moving target - every version adds new functions and renames old ones. I > doubt that NetBSD people will follow libreadline closely. Moreover, I > think some libreadline stuff is very libreadline specific and will be not > implemened in any case. So libedit as libreadline replacement can be used > only if you want to save some space on floppy for very simple libreadline > application, but not in general case. Well, it depends on how you think of it; if you think of it instead as a "minimal libreadline" which does enough to support the other readline consumers in the FreeBSD base OS, then it makes a lot more sense to replace, IMO. We can make a port of GNU libreadline to satisfy ports which need more. Referring to Section 1.3.2 (FreeBSD Project Goals), this move seems to be well in line with the charter of the project. Kris --24zk1gE8NUlDmwG9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7UsR1Wry0BWjoQKURAk/vAJ90AUpRKm2mXYHTLz6NySYhJH4drACfQ/wL Uuz8q0uHSHPWE/K0rxlpIeo= =+D9Y -----END PGP SIGNATURE----- --24zk1gE8NUlDmwG9-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 3:59:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from ada.eu.org (marvin.enst.fr [137.194.161.2]) by hub.freebsd.org (Postfix) with ESMTP id 486FF37B408 for ; Mon, 16 Jul 2001 03:59:08 -0700 (PDT) (envelope-from sam@inf.enst.fr) Received: by ada.eu.org (Postfix, from userid 10) id E9F7C1907F; Mon, 16 Jul 2001 12:58:55 +0200 (CEST) Received: by trillian.rfc1149.net (Postfix, from userid 1000) id 1CBA2BC5F; Mon, 16 Jul 2001 12:58:06 +0200 (CEST) To: freebsd-current@freebsd.org Subject: ATA disks problem in -CURRENT Date: 16 Jul 2001 12:58:06 +0200 Lines: 21 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: Samuel Tardieu Organization: Ecole Nationale Superieure des Telecommunications Reply-To: Samuel Tardieu Content-Transfer-Encoding: 8bit X-WWW: http://www.rfc1149.net/sam X-Mail-Processing: Sam's procmail tools X-ICQ: 21547599 X-Sam-Laptop: yes Message-Id: <2001-07-16-12-58-06+trackit+sam@inf.enst.fr> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG With recent -CURRENT kernels (including one from yesterday), I get random strange behaviours as far as my ATA disk is concerned: - the disk light stays on; - I can read from the disk but cannot write anything to it (sync blocks, writes from vi block, ...); - suspending then resuming the laptop doesn't help; - I can get to DDB and use panic to dump the kernel, but it points me to the keyboard interrupt since I used ctrl-alt-esc to get there. It is on a Sony VAIO PCG-Z600NE, with the bundled 12GB HDD: atapci0: port 0xfcb0-0xfcbf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ad0: 11513MB [23392/16/63] at ata0-master UDMA33 Sam -- Samuel Tardieu -- sam@inf.enst.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 4:18: 3 2001 Delivered-To: freebsd-current@freebsd.org Received: from freebsd.dk (fw-rl0.freebsd.dk [212.242.86.114]) by hub.freebsd.org (Postfix) with ESMTP id D46AB37B405 for ; Mon, 16 Jul 2001 04:17:59 -0700 (PDT) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.11.3/8.11.3) id f6GBHuZ61117; Mon, 16 Jul 2001 13:17:56 +0200 (CEST) (envelope-from sos) From: Søren Schmidt Message-Id: <200107161117.f6GBHuZ61117@freebsd.dk> Subject: Re: ATA disks problem in -CURRENT In-Reply-To: <2001-07-16-12-58-06+trackit+sam@inf.enst.fr> "from Samuel Tardieu at Jul 16, 2001 12:58:06 pm" To: Samuel Tardieu Date: Mon, 16 Jul 2001 13:17:54 +0200 (CEST) Cc: freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems Samuel Tardieu wrote: > With recent -CURRENT kernels (including one from yesterday), I get > random strange behaviours as far as my ATA disk is concerned: > > - the disk light stays on; > - I can read from the disk but cannot write anything to it (sync > blocks, writes from vi block, ...); > - suspending then resuming the laptop doesn't help; > - I can get to DDB and use panic to dump the kernel, but it points > me to the keyboard interrupt since I used ctrl-alt-esc to get > there. > > It is on a Sony VAIO PCG-Z600NE, with the bundled 12GB HDD: > > atapci0: port 0xfcb0-0xfcbf at device 7.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > ad0: 11513MB [23392/16/63] at ata0-master UDMA33 Hmm, I havn't changed anything in the ATA driver lately, so I dont know what should have caused this malfunction. When was the last date -current worked for you ?> -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 8:16:26 2001 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 473CE37B403 for ; Mon, 16 Jul 2001 08:16:21 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.11.4/8.11.4) id f6GFGCT34314; Mon, 16 Jul 2001 11:16:12 -0400 (EDT) (envelope-from wollman) Date: Mon, 16 Jul 2001 11:16:12 -0400 (EDT) From: Garrett Wollman Message-Id: <200107161516.f6GFGCT34314@khavrinen.lcs.mit.edu> To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: libedit replacement for libreadline In-Reply-To: <20010716031932.A5930@xor.obsecurity.org> References: <20010716013127.A16058@xor.obsecurity.org> <20010716103351.A81876@walton.maths.tcd.ie> <20010716031932.A5930@xor.obsecurity.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 < said: > Personally, I think it's worth it to get rid of a GNU dependency in > the base system, as well as reducing the overall amount of functional > code duplication. I don't, particularly since the two programs which use it are already GNU software, so you haven't actually bought any additional freedom by making such a change. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 8:27:29 2001 Delivered-To: freebsd-current@freebsd.org Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.121.49]) by hub.freebsd.org (Postfix) with ESMTP id 7F01B37B405 for ; Mon, 16 Jul 2001 08:27:24 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.130.87.Dial1.SanJose1.Level3.net [209.245.130.87]) by scaup.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id IAA04107; Mon, 16 Jul 2001 08:26:53 -0700 (PDT) Message-ID: <3B5307E2.6E26B445@mindspring.com> Date: Mon, 16 Jul 2001 08:27:30 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Garrett Wollman Cc: Giorgos Keramidas , freebsd-current@FreeBSD.ORG Subject: Re: cannot print to remote printer References: <873d83pquy.wl@wilhelm.noname> <20010711214311.C2855@heechee.tobez.org> <200107120645.f6C6jtP45267@uriah.heep.sax.de> <20010712122148.B10960@heechee.tobez.org> <86k81eaqcj.fsf@hades.hell.gr> <200107122117.f6CLHsl43063@khavrinen.lcs.mit.edu> <3B4F3485.DE6DC3E5@mindspring.com> <20010714014914.A7876@hades.hell.gr> <200107141705.f6EH5c802083@khavrinen.lcs.mit.edu> 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 Garrett Wollman wrote: > > I'm not sure about POSIX, but the manpage of nohup does not mention > > SIGCHLD. The only signals I see mentioned in revision 1.8 of nohup.1 > > are SIGHUP and SIGQUIT. > > That is correct. SIGCHLD is entirely irrelevant to `nohup', as the > slightest amount of effort on Terry's part would have made clear. This is the answer I was asking for: is SIGCHLD "special", and thus treated differently, or is this applicable to all signals? I would be alarmed, if we were to treat different signals differently, which it seems you are advising. The reason I mentioned "nohup" is that the behaviour you are specifying, if applied to SIGHUP as well as SIGCHLD, would break "nohup". So if "nohup" is intended to continue to function as it has historically, then this change appears pretty arbitrary; at the very least, it complicates the signals API domain specific knowledge required to use the thing, which is annoying, to say the least. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 12: 1: 2 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-62.dsl.lsan03.pacbell.net [63.207.60.62]) by hub.freebsd.org (Postfix) with ESMTP id 4B58937B405 for ; Mon, 16 Jul 2001 12:00:59 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1B73D67BA5; Mon, 16 Jul 2001 12:00:57 -0700 (PDT) Date: Mon, 16 Jul 2001 12:00:55 -0700 From: Kris Kennaway To: Garrett Wollman Cc: Kris Kennaway , current@FreeBSD.ORG Subject: Re: libedit replacement for libreadline Message-ID: <20010716120054.A94139@xor.obsecurity.org> References: <20010716013127.A16058@xor.obsecurity.org> <20010716103351.A81876@walton.maths.tcd.ie> <20010716031932.A5930@xor.obsecurity.org> <200107161516.f6GFGCT34314@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107161516.f6GFGCT34314@khavrinen.lcs.mit.edu>; from wollman@khavrinen.lcs.mit.edu on Mon, Jul 16, 2001 at 11:16:12AM -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 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2001 at 11:16:12AM -0400, Garrett Wollman wrote: > <= said: >=20 > > Personally, I think it's worth it to get rid of a GNU dependency in > > the base system, as well as reducing the overall amount of functional > > code duplication. >=20 > I don't, particularly since the two programs which use it are already > GNU software, so you haven't actually bought any additional freedom by > making such a change. A third is vinum, which buys some additional freedom :-) Kris --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7UznjWry0BWjoQKURAiJ3AJ0d66b3Ww9YSRUqroWoUL86ngkarQCgoATs uxQwodgIOZQ2ovejJwIOcYA= =a5bM -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 12:27:24 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 DFC7237B403; Mon, 16 Jul 2001 12:27:18 -0700 (PDT) (envelope-from jdp@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 f6GJRHq53168; Mon, 16 Jul 2001 12:27:17 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Mon, 16 Jul 2001 12:27:17 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: current@freebsd.org Subject: ncurses: 4.x -> 5.x buildworld failure + patch Cc: peter@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 While upgrading an old (October 2000) -current system which did not have a libc.so.5 yet, I ran into this failure in src/lib/ncurses: cc -o make_keys -nostdinc -O -pipe -mcpu=ev56 -mcpu=ev56 -I. -I/c/src/lib/libncurses -I/c/src/lib/libncurses/../../contrib/ncur ses/ncurses -I/c/src/lib/libncurses/../../contrib/ncurses/include -Wall -DFREEBSD_NATIVE -DNDEBUG -DHAVE_CONFIG_H -DTERMIOS -I/ usr/obj/c/src/alpha/usr/include /c/src/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/make_keys.c ./make_keys /c/src/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/keys.list > init_keytry.h /usr/libexec/ld-elf.so.1: Shared object "libc.so.5" not found *** Error code 1 I am reasonably sure the same problem would occur in trying to upgrade from -stable to -current. I patched it as shown below and the buildworld was able to finish. John Index: Makefile =================================================================== RCS file: /home/ncvs/src/lib/libncurses/Makefile,v retrieving revision 1.51 diff -u -r1.51 Makefile --- Makefile 2001/06/12 01:14:02 1.51 +++ Makefile 2001/07/16 15:24:59 @@ -330,10 +330,10 @@ build-tools: make_hash make_keys make_keys: make_keys.c names.c curses.h ncurses_def.h - ${CC} -o $@ ${CFLAGS} ${NCURSES}/ncurses/tinfo/make_keys.c + ${CC} -o $@ -static ${CFLAGS} ${NCURSES}/ncurses/tinfo/make_keys.c make_hash: comp_hash.c hashsize.h curses.h ncurses_def.h - ${CC} -o $@ ${CFLAGS} -DMAIN_PROGRAM \ + ${CC} -o $@ -static ${CFLAGS} -DMAIN_PROGRAM \ ${NCURSES}/ncurses/tinfo/comp_hash.c # ./configure generated To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 12:41:22 2001 Delivered-To: freebsd-current@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-62.dsl.lsan03.pacbell.net [63.207.60.62]) by hub.freebsd.org (Postfix) with ESMTP id 955DE37B405; Mon, 16 Jul 2001 12:41:19 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 97F5567378; Mon, 16 Jul 2001 12:41:18 -0700 (PDT) Date: Mon, 16 Jul 2001 12:41:18 -0700 From: Kris Kennaway To: Kris Kennaway Cc: current@FreeBSD.ORG, brian@FreeBSD.ORG, imp@FreeBSD.ORG, ache@FreeBSD.ORG Subject: Re: libedit replacement for libreadline Message-ID: <20010716124117.A18563@xor.obsecurity.org> References: <20010716013127.A16058@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010716013127.A16058@xor.obsecurity.org>; from kris@obsecurity.org on Mon, Jul 16, 2001 at 01:31:27AM -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 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2001 at 01:31:27AM -0700, Kris Kennaway wrote: > Fetch the following file and unpack it in /usr/src; it will overwrite > the contents of lib/libedit. You should also disable libreadline in > gnu/lib/Makefile (and might want to remove /usr/include/readline/* to > make sure it picks up the new versions). >=20 > http://www.freebsd.org/~kris/libedit.tgz I've updated this file with an improved makefile for libedit, as well as a patch which should allow world to build (the pppctl changes are from Brian, most of the rest are taken from or inspired by changes applied to NetBSD). The vinum patch hilights the problem that the new "libreadline" (just a symlink to libedit) exposes new symbols which may conflict with an existing program. I'm not sure how to deal with this. Kris --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7U0NcWry0BWjoQKURAsGZAJ974ifCJtd53MU8UxwKjPsC/NYY0wCg0Sxv bv+QlEUVrKBVHsn//zBsZFs= =Lafd -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 13: 4:29 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 405E037B401 for ; Mon, 16 Jul 2001 13:04: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.4/8.11.2) with ESMTP id f6GK3Qv72696; Mon, 16 Jul 2001 13:03:26 -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: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> Date: Mon, 16 Jul 2001 13:03:34 -0700 (PDT) From: John Baldwin To: Alexander Langer Subject: RE: netstat kernel panic 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 > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x3a > fault code = supervisor write, page not present > instruction pointer = 0x8:0xc02c8cfe > stack pointer = 0x10:0xcd6d1d44 > frame pointer = 0x10:0xcd6d1d5c > 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 = 595 (netstat) > panic: from debugger > panic: from debugger > Uptime: 2m41s > > dumping to dev ad0b, offset 176256 > dump ata0: resetting devices .. done > 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 > 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 > 11 10 9 8 7 6 5 4 3 2 1 0 > --- >#0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:478 > 478 if (dumping++) { > (kgdb) tr > trace command requires an argument > (kgdb) bt >#0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:478 >#1 0xc01e3aff in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:321 >#2 0xc01e3f19 in panic (fmt=0xc031d94e "from debugger") > at /usr/src/sys/kern/kern_shutdown.c:600 >#3 0xc015b315 in db_panic (addr=-1070822146, have_addr=0, count=-1, > modif=0xcd6d1bb0 "") at /usr/src/sys/ddb/db_command.c:441 >#4 0xc015b2b3 in db_command (last_cmdp=0xc0363a94, cmd_table=0xc03638f4, > aux_cmd_tablep=0xc035d2e0, aux_cmd_tablep_end=0xc035d2e4) > at /usr/src/sys/ddb/db_command.c:341 >#5 0xc015b37f in db_command_loop () at /usr/src/sys/ddb/db_command.c:463 >#6 0xc015d54b in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:72 >#7 0xc02e6d3e in kdb_trap (type=12, code=0, regs=0xcd6d1d04) > at /usr/src/sys/i386/i386/db_interface.c:167 >#8 0xc02f78a0 in trap_fatal (frame=0xcd6d1d04, eva=58) > at /usr/src/sys/i386/i386/trap.c:927 >#9 0xc02f7615 in trap_pfault (frame=0xcd6d1d04, usermode=0, eva=58) > at /usr/src/sys/i386/i386/trap.c:846 >#10 0xc02f6c64 in trap (frame={tf_fs = -1070333928, tf_es = 16, > tf_ds = -1069809648, tf_edi = -1069775252, tf_esi = 0, > tf_ebp = -848487076, tf_isp = -848487120, tf_ebx = 1, > tf_edx = -848739040, tf_ecx = 1, tf_eax = 2, tf_trapno = 12, tf_err = > 2, > tf_eip = -1070822146, tf_cs = 8, tf_eflags = 66118, > tf_esp = -1069680480, tf_ss = 1}) at /usr/src/sys/i386/i386/trap.c:405 >#11 0xc02c8cfe in vm_object_pip_add (object=0x0, i=1) I've seen this panic many times on my alpha SMP testbox. It seems that the vm object returned by vm_map_lookup via the fs.first_object variable is actually NULL, resulting in a NULL pointer deref when calling vm_object_pip_add() (note object=0x0). I haven't seen this on UP or x86 before, but it seems the bug wasn't alpha specific now. :( > ---Type to continue, or q to quit--- > at /usr/src/sys/vm/vm_object.c:237 >#12 0xc02bf94e in vm_fault1 (map=0xc03c866c, vaddr=3226185728, > fault_type=1 '\001', fault_flags=0) at /usr/src/sys/vm/vm_fault.c:274 >#13 0xc02bf753 in vm_fault (map=0xc03c866c, vaddr=3226185728, fault_type=1, > fault_flags=0) at /usr/src/sys/vm/vm_fault.c:198 >#14 0xc02f75b9 in trap_pfault (frame=0xcd6d1ea0, usermode=0, eva=3226185798) > at /usr/src/sys/i386/i386/trap.c:833 >#15 0xc02f6c64 in trap (frame={tf_fs = -848756712, tf_es = -848494576, > tf_ds = -1070727152, tf_edi = 1, tf_esi = -1063576320, > tf_ebp = -848486688, tf_isp = -848486708, tf_ebx = -1069076892, > tf_edx = -1048725504, tf_ecx = -1068781498, tf_eax = -1048725504, > tf_trapno = 12, tf_err = 0, tf_eip = -1071436904, tf_cs = 8, > tf_eflags = 66194, tf_esp = -848486660, tf_ss = -1071699782}) > at /usr/src/sys/i386/i386/trap.c:405 >#16 0xc0232b98 in strcmp (s1=0xc17db800 "imp_softc", > s2=0xc04bb046
) > at /usr/src/sys/libkern/strcmp.c:50 >#17 0xc01f28ba in link_elf_lookup_symbol (lf=0xc09b1d00, > name=0xc17db800 "imp_softc", sym=0xcd6d1f30) > at /usr/src/sys/kern/link_elf.c:1003 >#18 0xc01d7f36 in kldsym (p=0xcd694520, uap=0xcd6d1f80) at linker_if.h:24 >#19 0xc02f823d in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, > tf_edi = 134602604, tf_esi = 134602616, tf_ebp = -1077937584, > tf_isp = -848486444, tf_ebx = 671616116, tf_edx = 0, tf_ecx = 0, > ---Type to continue, or q to quit--- > tf_eax = 337, tf_trapno = 12, tf_err = 2, tf_eip = 671926476, > tf_cs = 31, tf_eflags = 663, tf_esp = -1077937644, tf_ss = 47}) > at /usr/src/sys/i386/i386/trap.c:1128 >#20 0xc02e7a2d in syscall_with_err_pushed () >#21 0x804f992 in ?? () >#22 0x804f54c in ?? () >#23 0x8049301 in ?? () > (kgdb) mobile# exit -- 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 Jul 16 13:21:55 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 CC11037B405; Mon, 16 Jul 2001 13:21:51 -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.9.3) with ESMTP id WAA02489; Mon, 16 Jul 2001 22:21:51 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id 871BA14DAB; Mon, 16 Jul 2001 22:21:48 +0200 (CEST) Date: Mon, 16 Jul 2001 22:21:48 +0200 From: Alexander Langer To: John Baldwin Cc: current@FreeBSD.org Subject: Re: netstat kernel panic Message-ID: <20010716222148.A8002@zerogravity.kawo2.rwth-aachen.d> Mail-Followup-To: Alexander Langer , John Baldwin , current@FreeBSD.org References: <20010715120317.A99869@fump.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhb@FreeBSD.org on Mon, Jul 16, 2001 at 01:03:34PM -0700 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 John Baldwin (jhb@FreeBSD.org): > > tf_eip = -1070822146, tf_cs = 8, tf_eflags = 66118, > > tf_esp = -1069680480, tf_ss = 1}) at /usr/src/sys/i386/i386/trap.c:405 > >#11 0xc02c8cfe in vm_object_pip_add (object=0x0, i=1) > > I've seen this panic many times on my alpha SMP testbox. It seems that the vm > object returned by vm_map_lookup via the fs.first_object variable is actually > NULL, resulting in a NULL pointer deref when calling vm_object_pip_add() (note > object=0x0). I haven't seen this on UP or x86 before, but it seems the bug > wasn't alpha specific now. :( I had it on two different machines (both _UP_ x86). (just to verify). Thanks Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 13:54:27 2001 Delivered-To: freebsd-current@freebsd.org Received: from maildrop.dub-t3-1.nwcgroup.com (maildrop.dub-t3-1.nwcgroup.com [195.129.80.17]) by hub.freebsd.org (Postfix) with ESMTP id F22EA37B401 for ; Mon, 16 Jul 2001 13:54:13 -0700 (PDT) (envelope-from customerservice@playnetwork.com) Received: from maildrop (localhost [127.0.0.1]) by maildrop.dub-t3-1.nwcgroup.com (Postfix) with ESMTP id AB53F489A for ; Mon, 16 Jul 2001 21:54:13 +0100 (IST) Message-ID: <1295320313.995316853699.JavaMail.nwdmail@maildrop> Date: Mon, 16 Jul 2001 20:54:13 +0000 (GMT+00:00) From: Reply-To: customerservice@playnetwork.com To: current@FreeBSD.org Subject: Save Up To 70% On Music For Your Business! Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29240_1229554937.995316853695" X-mailer: NewWorld Direct Java Mail Program X-uri: http://www.newworldcommerce.com X-Complaints: abuse@nwcgroup.com X-Bounce-Info: A28BOoFh~wGApCB6OX.ceN~xyHRS0~zNs6FH+GH+D5+oS~Lx+LO+BMEdA+VXS+1a8h+yOicZ1eb~di~Gfjhi+9PP+GS+bA~UQNj~HjTP+4In~cjnr~umxk+ZlMk Return-Errors-To: customerservice@playnetwork.com X-Errors-To: customerservice@playnetwork.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 Dear Are you currently playing the radio as your in-store music source? Are you tired of all the deejay chatter and endless advertising? OR, are you using a CD player - and find your customers and employees hear the same music over and over because you're too busy to change CDs or buy new ones? Are you uncertain about paying ASCAP, BMI, or SESAC music licensing fees? Introducing PlayNetwork Online, a monthly subscription service that resolves all your business music issues. http://www.nwd42.com/s.asp?N=Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJhO Best of all it's available to you at an affordable monthly fee. If you'd like to learn more about this exciting new music service, please click on the link below for information regarding the benefits of professionally programmed music and details on our special introductory offer. Add life to your business with music. PlayNetwork Online. Imagine music your way. http://www.nwd42.com/s.asp?N=Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJhO Click here to configure your eMail preference: http://www.nwd42.com/s.asp?N=Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJXb Click here to unsubscribe: http://www.nwd42.com/s.asp?N=Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJfN The following text is for MIME compliant client programs. ------=_Part_29240_1229554937.995316853695 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Description: Plain Text mail part Dear Are you currently playing the radio as your in-store music source? Are you tired of all the deejay chatter and endless advertising? OR, are you using a CD player - and find your customers and employees hear the same music over and over because you're too busy to change CDs or buy new ones? Are you uncertain about paying ASCAP, BMI, or SESAC music licensing fees? Introducing PlayNetwork Online, a monthly subscription service that resolves all your business music issues. http://www.nwd42.com/s.asp?N=Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJhO Best of all it's available to you at an affordable monthly fee. If you'd like to learn more about this exciting new music service, please click on the link below for information regarding the benefits of professionally programmed music and details on our special introductory offer. Add life to your business with music. PlayNetwork Online. Imagine music your way. http://www.nwd42.com/s.asp?N=Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJhO Click here to configure your eMail preference: http://www.nwd42.com/s.asp?N=Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJXb Click here to unsubscribe: http://www.nwd42.com/s.asp?N=Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJfN ------=_Part_29240_1229554937.995316853695 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: HTML mail part - external links Welcome
=09 =09
=09 =09 =09=09 =09 =09<= td align=3Dleft width=3D"100%">
If you cannot read this eMail, please go to
http://www.nwd42.= com/s.asp?N=3DZwm8Yq3701v~HNHEBLEDGOYJCHGDFHJhO
=09=09=09 =09=09=09=20 =09=09=09 =09=09=09 =09=09=09
3D""
=09=09
Welcome= !
=09=09
FINALLY, AFFORDABLE MUSIC FOR YOUR BUSINESS!
3D""

3D""=
 
<= IMG SRC=3D"http://www.nwd42.com/offer/PlayNetwork/Images/banner5%2ejpg" BOR= DER=3D0 ALT=3D"">
&n= bsp;

Visit our web = site and subscribe today.
Add life to your business with music!
3D""
 
<= TR>
3D""
Or Call Us At 1-866-752-9321 For M= ore Information.
 
Call Me
eMail Us
3D""<= /TD>

=
SUBSCRIBE TODAY AND SAVE!
=09 =09=09 =09

=09 =09=09=20 =09=09=09 =09=09=09=09 =09=09=09 =09=09
=09 =09 =09 =09=09 =09=09=09 =09 =09=09=09 =09=09=09=09 =09=09=09 =09=09
=09=09Click he= re to configure your eMail preference:
http://www.nwd42.com/s.asp?N=3D= Zwm8Yq3701v~HNHEBLEDGOYJCHGDFHJXb
=09
=09=09=09=09=09 =09=09=09=09=09Click here to unsubscribe:
http://www.nwd42.com/s.asp?N=3DZwm8Yq3701v= ~HNHEBLEDGOYJCHGDFHJfN
=09=09=09=09
=09
------=_Part_29240_1229554937.995316853695-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 14:30:51 2001 Delivered-To: freebsd-current@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id AFD3737B401; Mon, 16 Jul 2001 14:30:48 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from beppo (mjacob@beppo [192.67.166.79]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f6GLUlS19997; Mon, 16 Jul 2001 14:30:47 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Mon, 16 Jul 2001 14:30:47 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: John Baldwin Cc: Alexander Langer , current@FreeBSD.ORG Subject: RE: netstat kernel panic 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've seen this panic many times on my alpha SMP testbox. It seems that the vm > object returned by vm_map_lookup via the fs.first_object variable is actually > NULL, resulting in a NULL pointer deref when calling vm_object_pip_add() (note > object=0x0). I haven't seen this on UP or x86 before, but it seems the bug > wasn't alpha specific now. :( > No.... "Yay!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 14:37: 4 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp9.xs4all.nl (smtp9.xs4all.nl [194.109.127.135]) by hub.freebsd.org (Postfix) with ESMTP id 2677837B401; Mon, 16 Jul 2001 14:36:58 -0700 (PDT) (envelope-from wkb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp9.xs4all.nl (8.9.3/8.9.3) with ESMTP id XAA19741; Mon, 16 Jul 2001 23:36:55 +0200 (CEST) Received: (from wkb@localhost) by freebie.xs4all.nl (8.11.4/8.11.4) id f6GLatR02484; Mon, 16 Jul 2001 23:36:55 +0200 (CEST) (envelope-from wkb) Date: Mon, 16 Jul 2001 23:36:55 +0200 From: Wilko Bulte To: Matthew Jacob Cc: John Baldwin , Alexander Langer , current@FreeBSD.ORG Subject: Re: netstat kernel panic Message-ID: <20010716233655.A2457@freebie.xs4all.nl> 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 mjacob@feral.com on Mon, Jul 16, 2001 at 02:30:47PM -0700 X-OS: FreeBSD 4.3-STABLE X-PGP: finger wilko@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 Mon, Jul 16, 2001 at 02:30:47PM -0700, Matthew Jacob wrote: > > I've seen this panic many times on my alpha SMP testbox. It seems that the vm > > object returned by vm_map_lookup via the fs.first_object variable is actually > > NULL, resulting in a NULL pointer deref when calling vm_object_pip_add() (note > > object=0x0). I haven't seen this on UP or x86 before, but it seems the bug > > wasn't alpha specific now. :( > > > > No.... "Yay!" "Thou shall not enjoy the misery of thou fellow committers" But it sure helps if things are broken on x86 as well as on alpha.. :-) :-) -- | / o / / _ Arnhem, The Netherlands email: wilko@FreeBSD.org |/|/ / / /( (_) Bulte "Youth is not a time in life, it is a state of mind" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 14:39:24 2001 Delivered-To: freebsd-current@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id 1C46237B406; Mon, 16 Jul 2001 14:39:21 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from beppo (mjacob@beppo [192.67.166.79]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f6GLdHS20127; Mon, 16 Jul 2001 14:39:17 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Mon, 16 Jul 2001 14:39:17 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: Wilko Bulte Cc: John Baldwin , Alexander Langer , current@FreeBSD.ORG Subject: Re: netstat kernel panic In-Reply-To: <20010716233655.A2457@freebie.xs4all.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 16 Jul 2001, Wilko Bulte wrote: > On Mon, Jul 16, 2001 at 02:30:47PM -0700, Matthew Jacob wrote: > > > I've seen this panic many times on my alpha SMP testbox. It seems that the vm > > > object returned by vm_map_lookup via the fs.first_object variable is actually > > > NULL, resulting in a NULL pointer deref when calling vm_object_pip_add() (note > > > object=0x0). I haven't seen this on UP or x86 before, but it seems the bug > > > wasn't alpha specific now. :( > > > > > > > No.... "Yay!" > > "Thou shall not enjoy the misery of thou fellow committers" > > But it sure helps if things are broken on x86 as well as on alpha.. > > :-) :-) > It just means it might get fixed quicker! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 14:44:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp8.xs4all.nl (smtp8.xs4all.nl [194.109.127.134]) by hub.freebsd.org (Postfix) with ESMTP id 90F5837B406; Mon, 16 Jul 2001 14:44:16 -0700 (PDT) (envelope-from wkb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp8.xs4all.nl (8.9.3/8.9.3) with ESMTP id XAA05123; Mon, 16 Jul 2001 23:44:13 +0200 (CEST) Received: (from wkb@localhost) by freebie.xs4all.nl (8.11.4/8.11.4) id f6GLiDY02587; Mon, 16 Jul 2001 23:44:13 +0200 (CEST) (envelope-from wkb) Date: Mon, 16 Jul 2001 23:44:13 +0200 From: Wilko Bulte To: Matthew Jacob Cc: John Baldwin , Alexander Langer , current@FreeBSD.ORG Subject: Re: netstat kernel panic Message-ID: <20010716234413.A2573@freebie.xs4all.nl> References: <20010716233655.A2457@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mjacob@feral.com on Mon, Jul 16, 2001 at 02:39:17PM -0700 X-OS: FreeBSD 4.3-STABLE X-PGP: finger wilko@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 Mon, Jul 16, 2001 at 02:39:17PM -0700, Matthew Jacob wrote: > > On Mon, 16 Jul 2001, Wilko Bulte wrote: > > > On Mon, Jul 16, 2001 at 02:30:47PM -0700, Matthew Jacob wrote: > > > > I've seen this panic many times on my alpha SMP testbox. It seems that the vm > > > > object returned by vm_map_lookup via the fs.first_object variable is actually > > > > NULL, resulting in a NULL pointer deref when calling vm_object_pip_add() (note > > > > object=0x0). I haven't seen this on UP or x86 before, but it seems the bug > > > > wasn't alpha specific now. :( > > > > > > > > > > No.... "Yay!" > > > > "Thou shall not enjoy the misery of thou fellow committers" > > > > But it sure helps if things are broken on x86 as well as on alpha.. > > > > :-) :-) > > > > It just means it might get fixed quicker! Exactly my point. We should promote architecture-neutral bugs :) -- | / o / / _ Arnhem, The Netherlands email: wilko@FreeBSD.org |/|/ / / /( (_) Bulte "Youth is not a time in life, it is a state of mind" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 15:52:34 2001 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [206.40.252.115]) by hub.freebsd.org (Postfix) with ESMTP id E795F37B401; Mon, 16 Jul 2001 15:52:31 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f6GMqV328622; Mon, 16 Jul 2001 15:52:31 -0700 (PDT) (envelope-from obrien) Date: Mon, 16 Jul 2001 15:52:30 -0700 From: "David O'Brien" To: Mike Smith Cc: current@freebsd.org Subject: Re: Lock of struct filedesc, file, pgrp, session and sigio Message-ID: <20010716155229.A28578@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <20010707183624.B22535@dragon.nuxi.com> <200107080154.f681srN01547@mass.dis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107080154.f681srN01547@mass.dis.org>; from msmith@freebsd.org on Sat, Jul 07, 2001 at 06:54:53PM -0700 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 Sat, Jul 07, 2001 at 06:54:53PM -0700, Mike Smith wrote: > Yelling at people won't solve the problem, nor will trying to hold the > project to ransom. These are things that you need to take into > consideration. You can take over Gcc and Binutils maintenance at any time. I doubt you or any k00l d00d kernel hak0rs will step away from kernel development. My attempts to find anyone that wants to help maintain these contrib bits (and have the skills) have turned up zilch. Sorry you feel I am holding the project to ransom. But dealing with a 3 month old cycle of breakages just isn't in the least bit fun or even mildly enjoyable. Of course you mentioned you gave your Alpha away, so I know you aren't even trying to run FreeBSD on multiple platforms. So maybe you should keep that in mind when seeing the frustration of those that do. -- -- 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 Mon Jul 16 19:41:28 2001 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 688F237B41D; Mon, 16 Jul 2001 19:40:04 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.4/8.11.4) id f6H2e1Q21564; Tue, 17 Jul 2001 06:40:01 +0400 (MSD) (envelope-from ache) Date: Tue, 17 Jul 2001 06:40:01 +0400 From: "Andrey A. Chernov" To: Kris Kennaway Cc: current@FreeBSD.ORG, brian@FreeBSD.ORG, imp@FreeBSD.ORG Subject: Re: libedit replacement for libreadline Message-ID: <20010717064000.B21495@nagual.pp.ru> References: <20010716013127.A16058@xor.obsecurity.org> <20010716124117.A18563@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline In-Reply-To: <20010716124117.A18563@xor.obsecurity.org> User-Agent: Mutt/1.3.19i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2001 at 12:41:18 -0700, Kris Kennaway wrote: >=20 > The vinum patch hilights the problem that the new "libreadline" (just > a symlink to libedit) exposes new symbols which may conflict with an > existing program. I'm not sure how to deal with this. Can of worms opened, as I warn you beforehead :-) --=20 Andrey A. Chernov http://ache.pp.ru/ --TakKZr9L6Hm6aLOc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBO1OlgOJgpPLZnQjrAQEYeQQAgBdsvlfgJNk5CTCiXRCPT3Dwm7iADemz oLeiXpUleffPFvYsqgA7EqzrJfTY/fW+J7cAL0ou2uG9QsmxOt8UuQS2rNmy31Om rWMQjPlcCivjIJXXp309nBm8q2PlG9Z3EX6m6nW0ilfmpU2B1lw8/W+FNMyuva+0 ACQaCzAlXKk= =O/2t -----END PGP SIGNATURE----- --TakKZr9L6Hm6aLOc-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 19:41:36 2001 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id C762437B41E for ; Mon, 16 Jul 2001 19:41:22 -0700 (PDT) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.4/8.11.4) id f6H2cPL21534; Tue, 17 Jul 2001 06:38:25 +0400 (MSD) (envelope-from ache) Date: Tue, 17 Jul 2001 06:38:25 +0400 From: "Andrey A. Chernov" To: Kris Kennaway Cc: Garrett Wollman , current@FreeBSD.ORG Subject: Re: libedit replacement for libreadline Message-ID: <20010717063825.A21495@nagual.pp.ru> References: <20010716013127.A16058@xor.obsecurity.org> <20010716103351.A81876@walton.maths.tcd.ie> <20010716031932.A5930@xor.obsecurity.org> <200107161516.f6GFGCT34314@khavrinen.lcs.mit.edu> <20010716120054.A94139@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20010716120054.A94139@xor.obsecurity.org> User-Agent: Mutt/1.3.19i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2001 at 12:00:55 -0700, Kris Kennaway wrote: > On Mon, Jul 16, 2001 at 11:16:12AM -0400, Garrett Wollman wrote: > > < said: > >=20 > > > Personally, I think it's worth it to get rid of a GNU dependency in > > > the base system, as well as reducing the overall amount of functional > > > code duplication. > >=20 > > I don't, particularly since the two programs which use it are already > > GNU software, so you haven't actually bought any additional freedom by > > making such a change. >=20 > A third is vinum, which buys some additional freedom :-) So lets use it for vinum only leaving gnu soft bug-to-bug compatible with itself. --=20 Andrey A. Chernov http://ache.pp.ru/ --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBO1OlIeJgpPLZnQjrAQHwvwP9FYvi17Xct/ObnHt3bIMJI9GYZT83c/gq 1k4LJJRA3l3n1hg1BXGb1NJATSReeQeo2V9QmBiMQjBi6SozAwwR88E1aVvijjSx sdTthF3WfU86fq9K0e63cU0z9dvIfSPa//88qqR5kwbgD+CxlEHq+TbPdop0iUsb eFZPZWE+Tig= =M9DG -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message From owner-freebsd-current Mon Jul 16 23:26:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from white.dogwood.com (white.dogwood.com [63.96.228.130]) by hub.freebsd.org (Postfix) with ESMTP id 8BFA537B406; Mon, 16 Jul 2001 23:26:51 -0700 (PDT) (envelope-from dave@dogwood.com) Received: (from dave@localhost) by white.dogwood.com (8.11.4/8.11.3) id f6H6Qhc08309; Mon, 16 Jul 2001 23:26:43 -0700 (PDT) (envelope-from dave) From: Dave Cornejo Message-Id: <200107170626.f6H6Qhc08309@white.dogwood.com> Subject: more on supermicro 6010H hang To: gibbs@scsiguy.com, jhb@freebsd.org Date: Mon, 16 Jul 2001 23:26:43 -0700 (PDT) Cc: freebsd-current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL88 (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 I have isolated the point at which current no longer runs as Jan 31 - Feb 1 of this year. Prior version work fine, in Feb & Mar I get either "Kernel trap 9 with interrupts disabled" or I think the same thing with trap 26 (really not sure on that one). Next I took a brand new current from this evening and tried it - it still hangs, but a keypress on the keyboard pretty much always breaks it out of the hang and into a normal boot. Now, I finally got the equipment and time together to remote gdb the bad kernel and here's what I get: I set a breakpoint at cam_xpt.c::xpt_config() - this is where the "Waiting 15 seconds.." message is from and stepped down through it. I get through the first xpt_for_all_busses (xptconfigbuscountfunc,...) and then I hit the second one (~line 6749 of cam_xpt.c) I pass through several things, including the xptconfigfunc() and end up in subr_autoconf.c::run_interrupt_driven_config_hooks(). At the bottom of this function there is a tsleep that gets called - this is apparently where it hangs. If I hit a key on the keyboard it will continue on past this point and all seems to work fine from then on. This is my first time this deep into the kernel - can you suggest a further plan of attack? thanks! dave c here's the dmesg output for this system if this helps any: 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 #0: Mon Jul 16 22:32:23 PDT 2001 dave@juneau.dogwood.com:/usr/src/sys/i386/compile/SMP Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (999.53-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383fbff real memory = 1073676288 (1048512K bytes) avail memory = 1040248832 (1015868K bytes) Programming 16 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 Programming 16 pins in IOAPIC #1 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: 4, version: 0x000f0011, at 0xfec00000 io1 (APIC): apic id: 5, version: 0x000f0011, at 0xfec01000 Preloaded elf kernel "kernel" at 0xc0527000. Pentium Pro MTRR support enabled WARNING: Driver mistake: destroy_dev on 154/0 Using $PIR table, 7 entries at 0xc00f5370 npx0: on motherboard npx0: INT 16 interface pcib0: at pcibus 0 on motherboard IOAPIC #1 intpin 12 -> irq 2 IOAPIC #1 intpin 10 -> irq 5 IOAPIC #1 intpin 11 -> irq 7 IOAPIC #1 intpin 15 -> irq 9 pci0: on pcib0 pcib1: at device 0.1 on pci0 IOAPIC #1 intpin 14 -> irq 11 pci1: on pcib1 pci1: at 0.0 (no driver attached) fxp0: port 0xc800-0xc83f mem 0xfe800000-0xfe8fffff,0xfeafb000-0xfeafbfff irq 2 at device 4.0 on pci0 fxp0: Ethernet address 00:30:48:11:69:84 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0xd000-0xd0ff mem 0xfeafc000-0xfeafcfff irq 5 at device 5.0 on pci0 aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/255 SCBs ahc1: port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff irq 7 at device 5.1 on pci0 aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/255 SCBs fxp1: port 0xd400-0xd43f mem 0xfe900000-0xfe9fffff,0xfeafd000-0xfeafdfff irq 9 at device 6.0 on pci0 fxp1: Ethernet address 00:30:48:11:6e:27 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: port 0x580-0x58f at device 15.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ohci0: mem 0xfeafe000-0xfeafefff irq 10 at device 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: (unknown) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered pcib2: at pcibus 2 on motherboard pci2: on pcib2 orm0: