From owner-freebsd-bugs Sun Oct 11 07:30:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA29449 for freebsd-bugs-outgoing; Sun, 11 Oct 1998 07:30:41 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA29439; Sun, 11 Oct 1998 07:30:31 -0700 (PDT) (envelope-from des@FreeBSD.org) From: "Dag-Erling C. Sm\xf8rgrav" Received: (from des@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA29660; Sun, 11 Oct 1998 07:30:26 -0700 (PDT) Date: Sun, 11 Oct 1998 07:30:26 -0700 (PDT) Message-Id: <199810111430.HAA29660@freefall.freebsd.org> To: bs@eunet.ch, des@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/8260 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: upgrade security breach State-Changed-From-To: open-closed State-Changed-By: des State-Changed-When: Sun Oct 11 07:30:15 PDT 1998 State-Changed-Why: Pilot error. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Oct 11 07:32:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA29519 for freebsd-bugs-outgoing; Sun, 11 Oct 1998 07:32:02 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA29503; Sun, 11 Oct 1998 07:31:51 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from fenja.ifi.uio.no (2602@fenja.ifi.uio.no [129.240.65.174]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with ESMTP id QAA20401; Sun, 11 Oct 1998 16:31:36 +0200 (MET DST) Received: (from dag-erli@localhost) by fenja.ifi.uio.no ; Sun, 11 Oct 1998 16:31:36 +0200 (MET DST) Mime-Version: 1.0 To: "Bernard Steiner" Cc: Gary Palmer , gpalmer@hub.freebsd.org, freebsd-bugs@hub.freebsd.org Subject: Re: kern/8258 References: <199810110127.DAA03742@eunet.ch> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 11 Oct 1998 16:31:35 +0200 In-Reply-To: "Bernard Steiner"'s message of "Sun, 11 Oct 1998 03:27:11 +0200" Message-ID: Lines: 11 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id HAA29505 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Bernard Steiner" writes: > I just didn't expect sd to disappear suddenly. > Sorry for not reading the new GENERIC or LINT. > (What is CAM ? Time to read the source, I guess ;-) No, time to read freebsd-current@freebsd.org, which is *required* for anybody who intends to run 3.0 before it becomes -STABLE. DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Oct 11 07:40:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA00668 for freebsd-bugs-outgoing; Sun, 11 Oct 1998 07:40:08 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA00641 for ; Sun, 11 Oct 1998 07:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA29952; Sun, 11 Oct 1998 07:40:00 -0700 (PDT) Date: Sun, 11 Oct 1998 07:40:00 -0700 (PDT) Message-Id: <199810111440.HAA29952@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Subject: Re: misc/8260: upgrade security breach Reply-To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/8260; it has been noted by GNATS. From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) To: bs@eunet.ch Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: misc/8260: upgrade security breach Date: 11 Oct 1998 16:30:03 +0200 bs@eunet.ch writes: > Put a *** SECURITY WARNING *** with appropriate kind words that it > may be a good idea to disable inetd and friends between the > upgrade-commit button and the actual upgrade. > This is a non-issue for installs running single user mode. I, uh, don't know what to say, except maybe that if you think sysinstall's upgrade option was ever meant to work in multi-user mode, you are completely off your rocker. No offense. DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Oct 11 08:10:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA04206 for freebsd-bugs-outgoing; Sun, 11 Oct 1998 08:10:12 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA04136 for ; Sun, 11 Oct 1998 08:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA00950; Sun, 11 Oct 1998 08:10:01 -0700 (PDT) Received: from mnw.eas.slu.edu (mnw.eas.slu.edu [165.134.8.248]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA02574 for ; Sun, 11 Oct 1998 08:01:20 -0700 (PDT) (envelope-from ejh@gumbo.eas.slu.edu) Received: from gumbo.eas.slu.edu (gumbo.eas.slu.edu [165.134.8.219]) by mnw.eas.slu.edu (8.8.8/8.8.8) with ESMTP id KAA15384 for ; Sun, 11 Oct 1998 10:01:06 -0500 (CDT) Received: (from ejh@localhost) by gumbo.eas.slu.edu (8.9.1/8.8.8) id KAA00540; Sun, 11 Oct 1998 10:00:56 -0500 (CDT) (envelope-from ejh) Message-Id: <199810111500.KAA00540@gumbo.eas.slu.edu> Date: Sun, 11 Oct 1998 10:00:56 -0500 (CDT) From: ejh@eas.slu.edu Reply-To: ejh@eas.slu.edu To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8266: nfsd should allow just nfs version two registration Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8266 >Category: bin >Synopsis: nfsd should allow just nfs version two registration >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 11 08:10:00 PDT 1998 >Last-Modified: >Originator: Eric J. Haug >Organization: Saint Louis University >Release: FreeBSD 3.0-BETA i386 >Environment: FreeBSD NFS server in a Solaris 2.5, 2.51, and 2.6 environment. >Description: The Solaris 2.6 system trying to automount using the /net mechanism will refuse negotiate down to nfs version 2 if it finds version 3 registered with the portmaper. Mountd is running and only allowing version 2 mounts. I believe BETA 3.0 is known to have NFS version 3 problems. >How-To-Repeat: Have a default 3.0 BETA system with exported filesystems login to a Solaris 2.6 system and try to list one of the exported directories. Note the failure. Also note that 3.0 BETA will reliably crash while an NFS version 3 client is doing a tar extract. >Fix: Allow nfsd to have a -2 option as well. The following diff could be applied to /usr/src/sbin/nfsd.c And -2 added to the nfsd options in the rc.conf script. 48c48 < "$Id: nfsd.c,v 1.14 1998/10/10 13:35:00 ejh Exp $"; --- > "$Id: nfsd.c,v 1.13 1998/07/15 06:33:15 charnier Exp $"; 148d147 < int twoonly; 189d187 < twoonly = 0; 194c192 < #define GETOPT "2n:rtu" --- > #define GETOPT "n:rtu" 199,201d196 < case '2': < twoonly = 1; < break; 267,278c262,269 < if (udpflag ) { < if (!pmap_set(RPCPROG_NFS, 2, IPPROTO_UDP, NFS_PORT)) < err(1, "can't register version 2 with portmap for UDP"); < if (!twoonly && !pmap_set(RPCPROG_NFS, 3, IPPROTO_UDP, NFS_PORT)) < err(1, "can't register version 3 with portmap for UDP"); < } < if (tcpflag ) { < if (!pmap_set(RPCPROG_NFS, 2, IPPROTO_TCP, NFS_PORT)) < err(1, "can't register version 2 with portmap for TCP"); < if (!twoonly && !pmap_set(RPCPROG_NFS, 3, IPPROTO_TCP, NFS_PORT)) < err(1, "can't register version 3 with portmap for TCP"); < } --- > if (udpflag && > (!pmap_set(RPCPROG_NFS, 2, IPPROTO_UDP, NFS_PORT) || > !pmap_set(RPCPROG_NFS, 3, IPPROTO_UDP, NFS_PORT))) > err(1, "can't register with portmap for UDP"); > if (tcpflag && > (!pmap_set(RPCPROG_NFS, 2, IPPROTO_TCP, NFS_PORT) || > !pmap_set(RPCPROG_NFS, 3, IPPROTO_TCP, NFS_PORT))) > err(1, "can't register with portmap for TCP"); 400,405c391,393 < if (!pmap_set(RPCPROG_NFS, 2, IPPROTO_UDP, NFS_PORT)) { < syslog(LOG_ERR, "can't register version 2 with udp portmap"); < exit(1); < } < if ( !twoonly && !pmap_set(RPCPROG_NFS, 3, IPPROTO_UDP, NFS_PORT)) { < syslog(LOG_ERR, "can't register version 3 with udp portmap"); --- > if (!pmap_set(RPCPROG_NFS, 2, IPPROTO_UDP, NFS_PORT) || > !pmap_set(RPCPROG_NFS, 3, IPPROTO_UDP, NFS_PORT)) { > syslog(LOG_ERR, "can't register with udp portmap"); 484,489c472,474 < if (!pmap_set(RPCPROG_NFS, 2, IPPROTO_TCP, NFS_PORT)) { < syslog(LOG_ERR, "can't register version 2 tcp with portmap"); < exit(1); < } < if (!twoonly && !pmap_set(RPCPROG_NFS, 3, IPPROTO_TCP, NFS_PORT)) { < syslog(LOG_ERR, "can't register version 3 tcp with portmap"); --- > if (!pmap_set(RPCPROG_NFS, 2, IPPROTO_TCP, NFS_PORT) || > !pmap_set(RPCPROG_NFS, 3, IPPROTO_TCP, NFS_PORT)) { > syslog(LOG_ERR, "can't register tcp with portmap"); >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sun Oct 11 22:10:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA05882 for freebsd-bugs-outgoing; Sun, 11 Oct 1998 22:10:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA05858 for ; Sun, 11 Oct 1998 22:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA23966; Sun, 11 Oct 1998 22:10:00 -0700 (PDT) Received: from shell1.dragondata.com (shell1.dragondata.com [204.137.237.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA05687 for ; Sun, 11 Oct 1998 22:09:14 -0700 (PDT) (envelope-from root@shell1.dragondata.com) Received: (from root@localhost) by shell1.dragondata.com (8.8.8/8.8.8) id AAA12737; Mon, 12 Oct 1998 00:09:09 -0500 (CDT) (envelope-from root) Message-Id: <199810120509.AAA12737@shell1.dragondata.com> Date: Mon, 12 Oct 1998 00:09:09 -0500 (CDT) From: "home.dragondata.com" Reply-To: root@shell1.dragondata.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8275 >Category: bin >Synopsis: w/top/etc randomly fail with 'Cannot allocate memory' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 11 22:10:00 PDT 1998 >Last-Modified: >Originator: home.dragondata.com >Organization: DragonData Internet Services >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: >Description: bash-2.02# w 1:09PM up 19 days, 53 mins, 7 users, load averages: 0.01, 0.53, 0.77 USER TTY FROM LOGIN@ IDLE WHAT debora p0 p03-38.stamford. 10:13AM 2:48 -bash (bash) tekforce p1 209-122-210-13.s 12:45PM 16 -bash (bash) natasha p2 205.235.55.190 Fri09AM 2days -bash (bash) eddieb p3 EDDIEB.uwsp.edu 12:08PM - (pine) likesit p6 gigantus.demon.n 1:03PM 5 -bash (bash) root p8 home Sun06PM - w gigantus p9 gigantus.demon.n 1:06PM 2 -bash (bash) You have new mail in /var/mail/root bash-2.02# w 1:10PM up 19 days, 54 mins, 7 users, load averages: 0.08, 0.48, 0.73 USER TTY FROM LOGIN@ IDLE WHAT w: kvm_getprocs: Cannot allocate memory: Cannot allocate memory bash-2.02# w 1:10PM up 19 days, 54 mins, 7 users, load averages: 0.08, 0.48, 0.73 USER TTY FROM LOGIN@ IDLE WHAT debora p0 p03-38.stamford. 10:13AM 2:49 -bash (bash) tekforce p1 209-122-210-13.s 12:45PM 17 -bash (bash) natasha p2 205.235.55.190 Fri09AM 2days -bash (bash) eddieb p3 EDDIEB.uwsp.edu 12:08PM - -bash (bash) likesit p6 gigantus.demon.n 1:03PM 5 -bash (bash) root p8 home Sun06PM - w gigantus p9 gigantus.demon.n 1:06PM - pico freebee >How-To-Repeat: Keep hitting 'w' over and over on a busy box. >Fix: Not sure, if someone has any clues, let me know and I'll start looking though. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 01:10:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA23402 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 01:10:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA23359 for ; Mon, 12 Oct 1998 01:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA29199; Mon, 12 Oct 1998 01:10:01 -0700 (PDT) Received: from marathon.tekla.fi (marathon.tekla.fi [192.98.7.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA22985 for ; Mon, 12 Oct 1998 01:05:02 -0700 (PDT) (envelope-from sja@tekla.fi) Received: from poveri.tekla.fi (poveri.tekla.fi [192.98.7.19]) by marathon.tekla.fi (8.8.7/8.8.7) with SMTP id LAA03045 for ; Mon, 12 Oct 1998 11:04:47 +0300 Received: by poveri.tekla.fi; (5.65v3.2/1.1.8.2/20Aug96-0557PM) id AA01712; Mon, 12 Oct 1998 11:04:54 +0300 Message-Id: <9810120804.AA01712@poveri.tekla.fi> Date: Mon, 12 Oct 1998 11:04:54 +0300 From: Sakari Jalovaara To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8280: Typos in kernel: APM, matcd, UDMA+PIIX4 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8280 >Category: kern >Synopsis: Typos in kernel: APM, matcd, UDMA+PIIX4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 01:10:01 PDT 1998 >Last-Modified: >Originator: Sakari Jalovaara >Organization: Ministry of Information, Information Retrieval >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: These seem like typos to me. I'm not sure, don't have the manuals, and don't have the hardware for any of these. One in advanced power management, one in Matsushita/Panasonic CD-ROM driver, one in UltraDMA+PIIX4 initialization. --- sys/i386/apm/apm.c.orig Sun Oct 11 22:39:54 1998 +++ sys/i386/apm/apm.c Sun Oct 11 22:41:42 1998 @@ -793,7 +793,7 @@ sc->ds_base = (apm_ds_base << 4) + APM_KERNBASE; sc->cs32_limit = apm_cs32_limit - 1; if (apm_cs16_limit == 0) - apm_cs16_limit == apm_cs32_limit; + apm_cs16_limit = apm_cs32_limit; sc->cs16_limit = apm_cs16_limit - 1; sc->ds_limit = apm_ds_limit - 1; sc->cs_entry = apm_cs_entry; --- sys/i386/isa/matcd/audio.c.orig Sun Oct 11 22:40:04 1998 +++ sys/i386/isa/matcd/audio.c Sun Oct 11 22:42:38 1998 @@ -213,7 +213,7 @@ } /*<14>*/ unlockbus(controller, ldrive); /*<16>Release bus*/ - if (z & MATCD_ST_AUDIOBSY==0 && /*<14>If drive is idle*/ + if ((z & MATCD_ST_AUDIOBSY)==0 && /*<14>If drive is idle*/ cd->status==CD_AS_PLAY_IN_PROGRESS) { /*<14>but was playing*/ cd->status=CD_AS_PLAY_COMPLETED; /*<14>then its done*/ return(0); --- sys/pci/ide_pci.c.orig Sun Oct 11 22:40:10 1998 +++ sys/pci/ide_pci.c Sun Oct 11 22:43:09 1998 @@ -696,8 +696,8 @@ unitno = cookie->ctlr * 2 + cookie->unit; - mask = 1 << unitno + 3 << (16 + unitno * 4); - new = 1 << unitno + 2 << (16 + unitno * 4); + mask = (1 << unitno) + (3 << (16 + unitno * 4)); + new = (1 << unitno) + (2 << (16 + unitno * 4)); pci_conf_write(cookie->tag, 0x48, (pci_conf_read(cookie->tag, 0x48) & ~mask) | new); >How-To-Repeat: RTFS. I don't know what these really do. >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 01:10:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA23426 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 01:10:14 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA23350 for ; Mon, 12 Oct 1998 01:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA29190; Mon, 12 Oct 1998 01:10:01 -0700 (PDT) Received: from bulls.mei.co.jp (bulls.mei.co.jp [202.224.189.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA22560 for ; Mon, 12 Oct 1998 01:03:14 -0700 (PDT) (envelope-from takamune@avrl.mei.co.jp) Received: by bulls.mei.co.jp (8.9.1/3.7W) with ESMTP id RAA19361 for ; Mon, 12 Oct 1998 17:02:59 +0900 (JST) Received: by dodgers.mei.co.jp (8.9.1/3.7W) with SMTP id RAA24223 for ; Mon, 12 Oct 1998 17:02:59 +0900 (JST) Received: by avrlgate1.avrl.mei.co.jp (8.6.10+2.4W/3.3W3-avrl3.0) id RAA22888; Mon, 12 Oct 1998 17:02:58 +0900 Received: by dream.avrl.mei.co.jp (8.8.8/3.6W-03/04/98-dream) id RAA22084; Mon, 12 Oct 1998 17:02:35 +0900 (JST) Message-Id: <199810120802.RAA22084@dream.avrl.mei.co.jp> Date: Mon, 12 Oct 1998 17:02:35 +0900 (JST) From: takamune@avrl.mei.co.jp Reply-To: takamune@avrl.mei.co.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8279: "/usr/sbin/sysctl" is linked to "${DESTDIR}/sbin/sysctl". Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8279 >Category: bin >Synopsis: /usr/sbin/sysctl -> ${DESTDIR}/sbin/sysctl >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 01:10:00 PDT 1998 >Last-Modified: >Originator: Kazutoki TAKAMUNE takamune@avrl.mei.co.jp >Organization: Matsushita Electric Industrial Co., Ltd. >Release: FreeBSD 2.2.7-STABLE i386 >Environment: FreeBSD dream.avrl.mei.co.jp 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Oct 12 12:38:56 JST 1998 takamune@dream.avrl.mei.co.jp:/usr/src/sys/compile/DREAM i386 >Description: If DESTDIR is defined, "/usr/sbin/sysctl" is linked to "${DESTDIR}/sbin/sysctl" by "make installworld". >How-To-Repeat: # cd /usr/src # make installworld DESTDIR=/XXX ===> usr.sbin/sysctl install -c -s -o bin -g bin -m 555 sysctl /spare/sbin /XXX/usr/sbin/sysctl -> /XXX/sbin/sysctl # ls -l /XXX/usr/sbin/sysctl lrwxrwxrwx 1 root bin 18 Oct 12 13:06 /XXX/usr/sbin/sysctl -> /XXX/sbin/sysctl >Fix: *** bsd.prog.mk.orig Mon Jun 15 01:10:49 1998 --- bsd.prog.mk Mon Oct 12 17:01:23 1998 *************** *** 105,112 **** .endif .if defined(LINKS) && !empty(LINKS) @set ${LINKS}; \ while test $$# -ge 2; do \ ! l=${DESTDIR}$$1; \ shift; \ t=${DESTDIR}$$1; \ shift; \ --- 105,113 ---- .endif .if defined(LINKS) && !empty(LINKS) @set ${LINKS}; \ + echo -- "${LN_FLAGS}" | egrep -q -- '-[^-]*s' || d=${DESTDIR}; \ while test $$# -ge 2; do \ ! l=$$d$$1; \ shift; \ t=${DESTDIR}$$1; \ shift; \ >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 02:10:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA28952 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 02:10:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA28894 for ; Mon, 12 Oct 1998 02:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA01531; Mon, 12 Oct 1998 02:10:01 -0700 (PDT) Received: from athena.nextech.co.jp (node163.nextech.co.jp [210.162.96.163]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA28290 for ; Mon, 12 Oct 1998 02:04:45 -0700 (PDT) (envelope-from kobayasi@nextech.co.jp) Received: (from kobayasi@localhost) by athena.nextech.co.jp (8.8.8/3.6W) id SAA17994; Mon, 12 Oct 1998 18:04:22 +0900 (JST) Message-Id: <199810120904.SAA17994@athena.nextech.co.jp> Date: Mon, 12 Oct 1998 18:04:22 +0900 (JST) From: Satosi KOBAYASI Reply-To: kobayasi@north.ad.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8281: writev() in libc_r causes loop Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8281 >Category: bin >Synopsis: writev() in libc_r causes loop >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 02:10:00 PDT 1998 >Last-Modified: >Originator: Satosi KOBAYASI >Organization: NORTH (Network Organization for Research and Technology in Hokkaido) >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: FreeBSD athena 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Sun Oct 4 17:27:30 JST 1998 kobayasi@athena:/usr/local/src/remote/sys/compile/ASIX i386 >Description: writev() in libc_r causes loop when it's called with the following arguments: * the iovcnt is more than 0 * at the last member of the iovec array, the iov_len set to 0 (Detail) writev() defined in /usr/src/lib/libc_r/uthread/uthread_writev.c, calls _thread_sys_writev() in itself. When _thread_sys_writev() returns 0, writev() does't increment the index of the iovec array. So if the index points to the last member of the array, writev() calls _thread_sys_writev() with the member whose iov_len set to 0. Because there is nothing to write, _thread_sys_writev() returns 0, and writev() doesn't increment the index... >How-To-Repeat: Compile the following code with -lc_r, and run it. #include #include #include #include #include #include #include static char b1[] = "test"; static char b2[] = "foo"; int main(int argc, char **argv) { int fd; struct iovec buf[2]; if (argc != 2) { fprintf(stderr, "Usage: %s \n", *argv); exit(1); } if ((fd = open(*(argv + 1), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)) < 0) { perror("open"); exit(1); } buf[0].iov_base = b1; buf[0].iov_len = strlen(b1); buf[1].iov_base = b2; buf[1].iov_len = 0; if (writev(fd, buf, 2) < 0) { perror("writev"); exit(1); } close(fd); exit(0); } >Fix: Apply the following patch or something like this. --- uthread_writev.c.orig Mon Oct 12 17:38:58 1998 +++ uthread_writev.c Mon Oct 12 18:00:02 1998 @@ -83,6 +83,16 @@ /* Perform a non-blocking write syscall: */ n = _thread_sys_writev(fd, &p_iov[idx], iovcnt - idx); + /* To avoid loop */ + if (n == 0) { + while (idx < iovcnt && p_iov[idx].iov_len == 0) + idx++; + if (idx == iovcnt) { + ret = num; + break; + } + } + /* Check if one or more bytes were written: */ if (n > 0) { /* >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 03:30:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA04281 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 03:30:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA04259 for ; Mon, 12 Oct 1998 03:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id DAA03686; Mon, 12 Oct 1998 03:30:01 -0700 (PDT) Received: from isabase.philol.msu.ru (isabase.philol.msu.ru [195.208.217.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA03699 for ; Mon, 12 Oct 1998 03:20:36 -0700 (PDT) (envelope-from grg@isabase.philol.msu.ru) Received: (from grg@localhost) by isabase.philol.msu.ru (8.8.8/8.8.8) id OAA24599; Mon, 12 Oct 1998 14:17:38 GMT (envelope-from grg) Message-Id: <199810121417.OAA24599@isabase.philol.msu.ru> Date: Mon, 12 Oct 1998 14:17:38 GMT From: Grigoriy Strokin Reply-To: grg@isabase.philol.msu.ru To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8282: either m4 changequote bug or 'man m4' documentation bug Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8282 >Category: bin >Synopsis: either m4 changequote bug or 'man m4' documentation bug >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 03:30:01 PDT 1998 >Last-Modified: >Originator: Grigoriy Strokin >Organization: Moscow University >Release: FreeBSD 3.0-980520-SNAP i386 >Environment: >Description: m4 'changequote' macro doesn't understand multicharacter symbols for quotes. That is, changequote(<<,>> works identically as changequote(<,>) whereas man m5 says: changequote Defines the quote symbols to be the first and second arguments. The symbols may be up to five characters long . >How-To-Repeat: This command line and program output illustrate the bug: =============================================== $ echo 'changequote(<<,>>) <>'|m4 =============================================== no angle brackets should appear in output, because double angle brackets must be considered quotation symbols >Fix: a) include this problem to BUGS section for 'man m4' b) just fix m4 sources >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 06:09:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA18549 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 06:09:49 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA18533; Mon, 12 Oct 1998 06:09:40 -0700 (PDT) (envelope-from des@FreeBSD.org) From: "Dag-Erling C. Sm\xf8rgrav" Received: (from des@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA09508; Mon, 12 Oct 1998 06:09:39 -0700 (PDT) Date: Mon, 12 Oct 1998 06:09:39 -0700 (PDT) Message-Id: <199810121309.GAA09508@freefall.freebsd.org> To: root@shell1.dragondata.com, des@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8275 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: w/top/etc randomly fail with 'Cannot allocate memory' State-Changed-From-To: open-closed State-Changed-By: des State-Changed-When: Mon Oct 12 06:08:53 PDT 1998 State-Changed-Why: Not a bug. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 06:10:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA18673 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 06:10:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA18646 for ; Mon, 12 Oct 1998 06:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA09557; Mon, 12 Oct 1998 06:10:01 -0700 (PDT) Date: Mon, 12 Oct 1998 06:10:01 -0700 (PDT) Message-Id: <199810121310.GAA09557@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' Reply-To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8275; it has been noted by GNATS. From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) To: root@shell1.dragondata.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' Date: 12 Oct 1998 15:08:24 +0200 "home.dragondata.com" writes: > bash-2.02# w > 1:10PM up 19 days, 54 mins, 7 users, load averages: 0.08, 0.48, 0.73 > USER TTY FROM LOGIN@ IDLE WHAT > w: kvm_getprocs: Cannot allocate memory: Cannot allocate memory ^^^^^^^^^^^^^^^^^^^^^^ can.not () ('kan-(.){a:}t; k*-'n{a:}t, ka-') can not -- cannot but to be bound to: MUST al.lo.cate (vt) ('al-*-.k{a-}t) Etymology: ML i[allocatus], pp. of i[allocare], fr. L i[ad-] + i[locare] to place, fr. i[locus] place -- more at STALL] 1) vt, to apportion for a specific purpose or to particular persons or things: DISTRIBUTE 2) vt, ASSIGN, DESIGNATE syn. see allot; -- al.lo.ca.tion, n (.al-*-'k{a-}-sh*n) mem.o.ry (n) ('mem-(*-)r{e-}) Etymology: ME i[memorie], fr. MF i[memoire], fr. L i[memoria], fr. i[memor] mindful; akin to OE i[mimorian] to remember, L i[mora] delay, Gk i[merm{e-}ra] care, Skt i[smarati] he remembers 1) a) n, the power or process of reproducing or recalling what has been learnedand retained esp. through associative mechanisms b) n, persistent modification of structure or behavior resulting from an organism's activity or experience c) n, the store of things learned and retained as evidenced by recall and recognition 2) a) n, commemorative remembrance b) n, the fact or condition of being remembered 3) a) n, a particular act of recall or recollection b) n, an image or impression of someone or something remembered c) n, the time within which past events can be or are remembered 4) n, a component in an electronic computing machine into which information can be inserted, stored, and extracted when needed Synonyms: i[syn] REMEMBRANCE, RECOLLECTION, REMINISCENCE]; MEMORY applies both to the power of remembering and to what is remembered; REMEMBRANCE applies to the act of remembering or the fact of being remembered; RECOLLECTION adds an implication of consciously bringing back to mind often with some effort; REMINISCENCE suggests the recalling of incidents, experience, or feelings from a remote past > >Fix: > Not sure, if someone has any clues, let me know and I'll start looking > though. Add more memory or swap to your computer. DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 09:00:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA14985 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 09:00:04 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA14922 for ; Mon, 12 Oct 1998 09:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA21354; Mon, 12 Oct 1998 09:00:01 -0700 (PDT) Date: Mon, 12 Oct 1998 09:00:01 -0700 (PDT) Message-Id: <199810121600.JAA21354@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Kevin Day Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' Reply-To: Kevin Day Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8275; it has been noted by GNATS. From: Kevin Day To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?=) Cc: root@shell1.dragondata.com, FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' Date: Mon, 12 Oct 1998 10:57:53 -0500 (CDT) > "home.dragondata.com" writes: > > bash-2.02# w > > 1:10PM up 19 days, 54 mins, 7 users, load averages: 0.08, 0.48, 0.73 > > USER TTY FROM LOGIN@ IDLE WHAT > > w: kvm_getprocs: Cannot allocate memory: Cannot allocate memory > ^^^^^^^^^^^^^^^^^^^^^^ > > can.not () > ('kan-(.){a:}t; k*-'n{a:}t, ka-') > can not > -- cannot but to be bound to: MUST > > >Fix: > > Not sure, if someone has any clues, let me know and I'll start looking > > though. > > Add more memory or swap to your computer. > > DES > -- > Dag-Erling Smørgrav - dag-erli@ifi.uio.no > Sorry, I should have elaborated: Mem: 222M Active, 27M Inact, 50M Wired, 60M Cache, 8277K Buf, 18M Free Swap: 256M Total, 4532K Used, 252M Free, 2% Inuse How can I be running out of memory? real memory = 402653184 (393216K bytes) avail memory = 391720960 (382540K bytes) With 18MB free, and 60MB sitting in a cache, I can't see that I'm out of just raw memory... Our of mbufs? Out of some fixed kind of memory? That's what I don't know - what memory am I running out of? Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 09:17:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA18162 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 09:17:13 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA18151; Mon, 12 Oct 1998 09:16:56 -0700 (PDT) (envelope-from des@FreeBSD.org) From: "Dag-Erling C. Sm\xf8rgrav" Received: (from des@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA21940; Mon, 12 Oct 1998 09:16:55 -0700 (PDT) Date: Mon, 12 Oct 1998 09:16:55 -0700 (PDT) Message-Id: <199810121616.JAA21940@freefall.freebsd.org> To: root@shell1.dragondata.com, des@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8275 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: w/top/etc randomly fail with 'Cannot allocate memory' State-Changed-From-To: closed-open State-Changed-By: des State-Changed-When: Mon Oct 12 09:03:56 PDT 1998 State-Changed-Why: Originator reports he's not low on memory. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 09:53:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA22577 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 09:53:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA22569; Mon, 12 Oct 1998 09:52:52 -0700 (PDT) (envelope-from ken@FreeBSD.org) From: Kenneth Merry Received: (from ken@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA23208; Mon, 12 Oct 1998 09:52:51 -0700 (PDT) Date: Mon, 12 Oct 1998 09:52:51 -0700 (PDT) Message-Id: <199810121652.JAA23208@freefall.freebsd.org> To: dg@root.com, ken@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, ken@FreeBSD.ORG Subject: Re: bin/8086 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: "systat -iostat" coredumps when trying to display more than 7 lines of history State-Changed-From-To: open-closed State-Changed-By: ken State-Changed-When: Mon Oct 12 09:51:51 PDT 1998 State-Changed-Why: I checked in Tor's patch in revision 1.14 of src/lib/libcurses/refresh.c. Responsible-Changed-From-To: freebsd-bugs->ken Responsible-Changed-By: ken Responsible-Changed-When: Mon Oct 12 09:51:51 PDT 1998 Responsible-Changed-Why: I checked in the patch. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 10:36:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA29540 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 10:36:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from yoss.nonline.net (yoss.nonline.net [207.139.235.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA29535 for ; Mon, 12 Oct 1998 10:36:04 -0700 (PDT) (envelope-from yossman@yoss.nonline.net) Received: from localhost (yossman@localhost) by yoss.nonline.net (8.8.5/8.8.5) with SMTP id NAA16492 for ; Mon, 12 Oct 1998 13:36:11 -0400 (EDT) Date: Mon, 12 Oct 1998 13:36:11 -0400 (EDT) From: yossman To: bugs@FreeBSD.ORG Subject: pine4.01? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org i think the pico editor that comes with the pine4.01 package install is screwed up.. almost every time i edit something using the pico that comes with that package it inserts a (seemingly random) series of 'U' characters at the top of the file, like so: ----- ybox.yossman.net# uname -a FreeBSD ybox.yossman.net 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Wed Jul 22 08:48:29 GMT 1998 root@builder .cdrom.com:/usr/src/sys/compile/GENERIC i386 ybox.yossman.net# cat /etc/inetd.conf UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU# # Internet server configuration database # # @(#)inetd.conf 5.4 (Berkeley) 6/30/90 # ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l [...etc...] ----- if i downgrade to pine3.96, the problem does not occur. any ideas? anyone heard of that before? i admit i haven't checked the mailing list archives yet to see if someone else has been having the problem, but i did check errata.. makes sense it wouldn't be in errata though because it's not a problem (probably) with the base 2.2.7-RELEASE. thanks, talk to you guys later.. yossman ----------------------------------------------------------------------- Yossarian Holmberg (yossman) yossman@nonline.net Senior Systems Administrator, National Online http://www.nonline.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 11:08:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA06572 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 11:08:03 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA06542 for ; Mon, 12 Oct 1998 11:07:54 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id LAA01216; Mon, 12 Oct 1998 11:06:13 -0700 (PDT) Message-Id: <199810121806.LAA01216@implode.root.com> To: Kevin Day cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' In-reply-to: Your message of "Mon, 12 Oct 1998 09:00:01 PDT." <199810121600.JAA21354@freefall.freebsd.org> From: David Greenman Reply-To: dg@root.com Date: Mon, 12 Oct 1998 11:06:12 -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > "home.dragondata.com" writes: > > > bash-2.02# w > > > 1:10PM up 19 days, 54 mins, 7 users, load averages: 0.08, 0.48, 0.73 > > > USER TTY FROM LOGIN@ IDLE WHAT > > > w: kvm_getprocs: Cannot allocate memory: Cannot allocate memory The problem is caused by the process table growing while w/top is trying to read the data. Via kvm_getprocs, which is a libkvm library function, they first make a syscall to determine how much memory is needed, and then after allocating the appropriate amount of memory, do another syscall to get the data. In-between the calls, the process table changed and made the needed amount of memory assumption invalid. kvm_getprocs gives up too easily. It should retry the above procedure a few times before giving up. It should also add in some padding in order to make it a bit more resilient to minor increases in the number of processes in the system. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 11:27:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA08948 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 11:27:38 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA08943 for ; Mon, 12 Oct 1998 11:27:35 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id EAA19765; Tue, 13 Oct 1998 04:27:16 +1000 Date: Tue, 13 Oct 1998 04:27:16 +1000 From: Bruce Evans Message-Id: <199810121827.EAA19765@godzilla.zeta.org.au> To: freebsd-bugs@FreeBSD.ORG, toasty@home.dragondata.com Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > "home.dragondata.com" writes: > > > bash-2.02# w > > > 1:10PM up 19 days, 54 mins, 7 users, load averages: 0.08, 0.48, 0.73 > > > USER TTY FROM LOGIN@ IDLE WHAT > > > w: kvm_getprocs: Cannot allocate memory: Cannot allocate memory > > ^^^^^^^^^^^^^^^^^^^^^^ > With 18MB free, and 60MB sitting in a cache, I can't see that I'm out of > just raw memory... Our of mbufs? Out of some fixed kind of memory? That's > what I don't know - what memory am I running out of? Probably just malloced memory. kvm_getprocs() asks the kernel for the size required to fit information about all processes. It malloc()s this size and attempts to fetch the information using another sysctl. This fails if the size required has increased, but kvm_getprocs() is too stupid to retry. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 11:40:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10553 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 11:40:03 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10548 for ; Mon, 12 Oct 1998 11:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA26956; Mon, 12 Oct 1998 11:40:01 -0700 (PDT) Date: Mon, 12 Oct 1998 11:40:01 -0700 (PDT) Message-Id: <199810121840.LAA26956@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' Reply-To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8275; it has been noted by GNATS. From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) To: Kevin Day Cc: root@shell1.dragondata.com, FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' Date: 12 Oct 1998 20:35:27 +0200 Kevin Day writes: > With 18MB free, and 60MB sitting in a cache, I can't see that I'm out of > just raw memory... Our of mbufs? Out of some fixed kind of memory? That's > what I don't know - what memory am I running out of? If you read the kvm_getprocs() code (in src/lib/libkvm/kvm_proc.c) you'll notice the only case in which it prints out an error message is if sysctl() fails. sysctl(3) mentions that sysctl() will fail and set errno to ENOMEM if "The length pointed to by oldlenp is too short to hold the requested value." What seems to happen is that between the first and the second call to sysctl, the size of the data has grown (because the number of running processes is growing fast), so the buffer we allocate is no longer big enough. The best way to fix this is to retry the sysctl() with a larger buffer if/when it fails with ENOMEM. If my reasoning is correct, the following (untested) patch should solve this: Index: kvm_proc.c =================================================================== RCS file: /home/ncvs/src/lib/libkvm/kvm_proc.c,v retrieving revision 1.21 diff -u -r1.21 kvm_proc.c --- kvm_proc.c 1998/09/16 04:17:46 1.21 +++ kvm_proc.c 1998/10/12 18:33:58 @@ -302,10 +302,15 @@ _kvm_syserr(kd, kd->program, "kvm_getprocs"); return (0); } - kd->procbase = (struct kinfo_proc *)_kvm_malloc(kd, size); - if (kd->procbase == 0) - return (0); - st = sysctl(mib, op == KERN_PROC_ALL ? 3 : 4, kd->procbase, &size, NULL, 0); + kd->procbase = 0; + do { + kd->procbase = (struct kinfo_proc *)_kvm_realloc(kd, + size); + if (kd->procbase == 0) + return (0); + st = sysctl(mib, op == KERN_PROC_ALL ? 3 : 4, + kd->procbase, &size, NULL, 0); + } while (st == -1 && errno == ENOMEM); if (st == -1) { _kvm_syserr(kd, kd->program, "kvm_getprocs"); return (0); Of course, there is no guarantee that the loop will terminate before the process table goes full, but if you're seeing this problem in the first place it shouldn't take too long to fill up :) Now if only jkh will come out of his trance and answer some mail so I can get his approval to commit it... DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 12:00:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA13676 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 12:00:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA13571 for ; Mon, 12 Oct 1998 12:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA27741; Mon, 12 Oct 1998 12:00:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12033; Mon, 12 Oct 1998 11:50:08 -0700 (PDT) (envelope-from nobody) Message-Id: <199810121850.LAA12033@hub.freebsd.org> Date: Mon, 12 Oct 1998 11:50:08 -0700 (PDT) From: mgrommet@insolwwb.net To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: conf/8290: 3.0-19981009-BETA with DPT PM3334UW controller dies on sysinstall trying to newfs file systems.. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8290 >Category: conf >Synopsis: 3.0-19981009-BETA with DPT PM3334UW controller dies on sysinstall trying to newfs file systems.. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 12:00:01 PDT 1998 >Last-Modified: >Originator: Mike Grommet >Organization: Internet Solutions, Inc. >Release: 3.0-19981009-BETA, also does it with the Oct 4th snap >Environment: Sorry, I am not able to get far enough to give a uname -a >Description: i downloaded the boot.flp, booted it, then proceed to go through the normal install... I tell it to use the entire drive, then begin to slice it up into filesystems... I tell it which versions to install, and such, set up the network interface so I can install from the internet as always, the problem I have occurs when it tries to newfs the swap partition and doesnt get any further) Debug reports "DEBUG: unknown major/minor for devtype -" ( I believe this is in reference to da0, disk array 0, for raid array) I get the message on the debug console where it gives "Cross device link" error in newfs and then a rewrite label error. Install then dies at this point, and never continues... The install program returns an error, and I get booted back to the menu system. I've tried different partition sizes, and different file system sizes. It seems to newfs the swap partition, and before it can move on to newfs'ing the others. Simon Shapiro has indicated that he does not believe this to be a problem with DPT specifically. >How-To-Repeat: Simply attempt an install, where I have to partition the drives >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 12:29:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA20332 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 12:29:11 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from laker.net (jet.laker.net [205.245.74.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA20304 for ; Mon, 12 Oct 1998 12:29:06 -0700 (PDT) (envelope-from sfriedri@laker.net) Received: from nt (digital-pbi-118.laker.net [208.0.233.18]) by laker.net (8.9.0/8.9.LAKERNET.NO-SPAM.SPAMMERS.AND.RELAYS.WILL.BE.TRACKED.AND.PROSECUTED.) with SMTP id PAA19494; Mon, 12 Oct 1998 15:28:51 -0400 Message-Id: <199810121928.PAA19494@laker.net> From: "Steve Friedrich" To: "bugs@FreeBSD.ORG" , "yossman" Date: Mon, 12 Oct 1998 15:28:06 -0400 Reply-To: "Steve Friedrich" X-Mailer: PMMail 98 Professional (2.01.1600) For Windows NT (4.0.1381;3) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: pine4.01? Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 12 Oct 1998 13:36:11 -0400 (EDT), yossman wrote: >i admit i haven't checked the mailing list archives yet to see if someone >else has been having the problem, I remember about a month ago (no more than two) there was info about this on -questions. Please check the archives... Unix systems measure "uptime" in years, Winblows measures it in minutes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 12:33:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA21508 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 12:33:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA21420 for ; Mon, 12 Oct 1998 12:32:52 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id MAA02205; Mon, 12 Oct 1998 12:31:09 -0700 (PDT) Message-Id: <199810121931.MAA02205@implode.root.com> To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' In-reply-to: Your message of "Mon, 12 Oct 1998 11:40:01 PDT." <199810121840.LAA26956@freefall.freebsd.org> From: David Greenman Reply-To: dg@root.com Date: Mon, 12 Oct 1998 12:31:08 -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > If my reasoning is correct, the following (untested) patch should > solve this: > > Index: kvm_proc.c > =================================================================== > RCS file: /home/ncvs/src/lib/libkvm/kvm_proc.c,v > retrieving revision 1.21 > diff -u -r1.21 kvm_proc.c > --- kvm_proc.c 1998/09/16 04:17:46 1.21 > +++ kvm_proc.c 1998/10/12 18:33:58 > @@ -302,10 +302,15 @@ > _kvm_syserr(kd, kd->program, "kvm_getprocs"); > return (0); > } > - kd->procbase = (struct kinfo_proc *)_kvm_malloc(kd, size); > - if (kd->procbase == 0) > - return (0); > - st = sysctl(mib, op == KERN_PROC_ALL ? 3 : 4, kd->procbase, &size, NULL, 0); > + kd->procbase = 0; > + do { > + kd->procbase = (struct kinfo_proc *)_kvm_realloc(kd, > + size); > + if (kd->procbase == 0) > + return (0); > + st = sysctl(mib, op == KERN_PROC_ALL ? 3 : 4, > + kd->procbase, &size, NULL, 0); > + } while (st == -1 && errno == ENOMEM); It should pad "size" with a few processes worth (perhaps increase it by 10%...size += size / 10). -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 12:40:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA23094 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 12:40:04 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA23040 for ; Mon, 12 Oct 1998 12:39:59 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hall.ifi.uio.no (2602@hall.ifi.uio.no [129.240.65.11]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with SMTP id VAA25036; Mon, 12 Oct 1998 21:39:34 +0200 (MET DST) Received: from localhost (dag-erli@localhost) by hall.ifi.uio.no ; Mon, 12 Oct 1998 19:39:32 GMT Mime-Version: 1.0 To: dg@root.com Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' References: <199810121931.MAA02205@implode.root.com> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 12 Oct 1998 21:39:28 +0200 In-Reply-To: David Greenman's message of "Mon, 12 Oct 1998 12:31:08 -0700" Message-ID: Lines: 41 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id MAA23066 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org David Greenman writes: > It should pad "size" with a few processes worth (perhaps increase it by > 10%...size += size / 10). Yes. Do I have your approval to commit the following patch: Index: kvm_proc.c =================================================================== RCS file: /home/ncvs/src/lib/libkvm/kvm_proc.c,v retrieving revision 1.21 diff -u -r1.21 kvm_proc.c --- kvm_proc.c 1998/09/16 04:17:46 1.21 +++ kvm_proc.c 1998/10/12 19:39:14 @@ -302,10 +302,16 @@ _kvm_syserr(kd, kd->program, "kvm_getprocs"); return (0); } - kd->procbase = (struct kinfo_proc *)_kvm_malloc(kd, size); - if (kd->procbase == 0) - return (0); - st = sysctl(mib, op == KERN_PROC_ALL ? 3 : 4, kd->procbase, &size, NULL, 0); + kd->procbase = 0; + do { + size += size / 10; + kd->procbase = (struct kinfo_proc *)_kvm_realloc(kd, + size); + if (kd->procbase == 0) + return (0); + st = sysctl(mib, op == KERN_PROC_ALL ? 3 : 4, + kd->procbase, &size, NULL, 0); + } while (st == -1 && errno == ENOMEM); if (st == -1) { _kvm_syserr(kd, kd->program, "kvm_getprocs"); return (0); DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 12:43:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA23733 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 12:43:50 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA23688 for ; Mon, 12 Oct 1998 12:43:41 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from hall.ifi.uio.no (2602@hall.ifi.uio.no [129.240.65.11]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with SMTP id VAA25596; Mon, 12 Oct 1998 21:43:23 +0200 (MET DST) Received: from localhost (dag-erli@localhost) by hall.ifi.uio.no ; Mon, 12 Oct 1998 19:43:22 GMT Mime-Version: 1.0 To: dg@root.com Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' References: <199810121931.MAA02205@implode.root.com> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 12 Oct 1998 21:43:19 +0200 In-Reply-To: David Greenman's message of "Mon, 12 Oct 1998 12:31:08 -0700" Message-ID: Lines: 34 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id MAA23716 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Doh, I forgot one arg to kvm_realloc: Index: kvm_proc.c =================================================================== RCS file: /home/ncvs/src/lib/libkvm/kvm_proc.c,v retrieving revision 1.21 diff -u -r1.21 kvm_proc.c --- kvm_proc.c 1998/09/16 04:17:46 1.21 +++ kvm_proc.c 1998/10/12 19:43:08 @@ -302,10 +302,16 @@ _kvm_syserr(kd, kd->program, "kvm_getprocs"); return (0); } - kd->procbase = (struct kinfo_proc *)_kvm_malloc(kd, size); - if (kd->procbase == 0) - return (0); - st = sysctl(mib, op == KERN_PROC_ALL ? 3 : 4, kd->procbase, &size, NULL, 0); + kd->procbase = 0; + do { + size += size / 10; + kd->procbase = (struct kinfo_proc *) + _kvm_realloc(kd, kd->procbase, size); + if (kd->procbase == 0) + return (0); + st = sysctl(mib, op == KERN_PROC_ALL ? 3 : 4, + kd->procbase, &size, NULL, 0); + } while (st == -1 && errno == ENOMEM); if (st == -1) { _kvm_syserr(kd, kd->program, "kvm_getprocs"); return (0); DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 12:52:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA25687 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 12:52:01 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA25617 for ; Mon, 12 Oct 1998 12:51:46 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id MAA02439; Mon, 12 Oct 1998 12:50:01 -0700 (PDT) Message-Id: <199810121950.MAA02439@implode.root.com> To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' In-reply-to: Your message of "12 Oct 1998 21:39:28 +0200." From: David Greenman Reply-To: dg@root.com Date: Mon, 12 Oct 1998 12:50:01 -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >David Greenman writes: >> It should pad "size" with a few processes worth (perhaps increase it by >> 10%...size += size / 10). > >Yes. > >Do I have your approval to commit the following patch: Yes, it looks fine. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 12:55:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA26498 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 12:55:26 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA26465 for ; Mon, 12 Oct 1998 12:55:13 -0700 (PDT) (envelope-from dag-erli@ifi.uio.no) Received: from dolgtvari.ifi.uio.no (2602@dolgtvari.ifi.uio.no [129.240.65.8]) by ifi.uio.no (8.8.8/8.8.7/ifi0.2) with SMTP id VAA27490; Mon, 12 Oct 1998 21:54:55 +0200 (MET DST) Received: from localhost (dag-erli@localhost) by dolgtvari.ifi.uio.no ; Mon, 12 Oct 1998 19:54:55 GMT Mime-Version: 1.0 To: dg@root.com Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8275: w/top/etc randomly fail with 'Cannot allocate memory' References: <199810121950.MAA02439@implode.root.com> Organization: University of Oslo, Department of Informatics X-url: http://www.stud.ifi.uio.no/~dag-erli/ X-other-addresses: 'finger dag-erli@ifi.uio.no' for a list X-disclaimer-1: The views expressed in this article are mine alone, and do X-disclaimer-2: not necessarily coincide with those of any organisation or X-disclaimer-3: company with which I am or have been affiliated. X-Stop-Spam: http://www.cauce.org/ From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Date: 12 Oct 1998 21:54:52 +0200 In-Reply-To: David Greenman's message of "Mon, 12 Oct 1998 12:50:01 -0700" Message-ID: Lines: 14 X-Mailer: Gnus v5.5/Emacs 19.34 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id MAA26476 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org David Greenman writes: > > Do I have your approval to commit the following patch: > Yes, it looks fine. (except for forgetting one argument to kvm_realloc) Do I have your approval to work on vfork()/fork() bugs? I asked Jordan three days ago but got no answer. I think it needs fixing before thursday. I have one app fixed and ready to commit and will start patching more if I get the green light. DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 13:43:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA06932 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 13:43:02 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05997; Mon, 12 Oct 1998 13:40:04 -0700 (PDT) (envelope-from des@FreeBSD.org) From: "Dag-Erling C. Sm\xf8rgrav" Received: (from des@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA01473; Mon, 12 Oct 1998 13:40:02 -0700 (PDT) Date: Mon, 12 Oct 1998 13:40:02 -0700 (PDT) Message-Id: <199810122040.NAA01473@freefall.freebsd.org> To: root@shell1.dragondata.com, des@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, des@FreeBSD.ORG Subject: Re: bin/8275 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: w/top/etc randomly fail with 'Cannot allocate memory' State-Changed-From-To: open-feedback State-Changed-By: des State-Changed-When: Mon Oct 12 13:38:50 PDT 1998 State-Changed-Why: Fixed in -current. Responsible-Changed-From-To: freebsd-bugs->des Responsible-Changed-By: des Responsible-Changed-When: Mon Oct 12 13:38:50 PDT 1998 Responsible-Changed-Why: So I'll remember to MFC. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 14:20:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA17319 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 14:20:04 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA17258 for ; Mon, 12 Oct 1998 14:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA02714; Mon, 12 Oct 1998 14:20:00 -0700 (PDT) Received: from foobar.franken.de (foobar.franken.de [194.94.249.81]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA14841 for ; Mon, 12 Oct 1998 14:09:44 -0700 (PDT) (envelope-from logix@foobar.franken.de) Received: (from logix@localhost) by foobar.franken.de (8.8.8/8.8.5) id XAA04329; Mon, 12 Oct 1998 23:08:04 +0200 (CEST) Message-Id: <199810122108.XAA04329@foobar.franken.de> Date: Mon, 12 Oct 1998 23:08:04 +0200 (CEST) From: Harold Gutch Reply-To: logix@foobar.franken.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8293: /usr/libexec/ftpd expands "~" to root's homedir Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8293 >Category: bin >Synopsis: /usr/libexec/ftpd expands "~" to root's homedir >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 14:20:00 PDT 1998 >Last-Modified: >Originator: Harold Gutch >Organization: >Release: FreeBSD 2.2.7-STABLE i386 >Environment: ftpd from STABLE snapshot 980807-SNAP >Description: /usr/libexec/ftpd expands "~" to the homedirectory of root instead of the homedirectory of the user you are logged in as. >How-To-Repeat: logix@overdose:~ $ ftp ftp> o localhost Connected to localhost. 220 overdose.franken.de FTP server (Version 6.00) ready. Name (localhost:logix): 331 Password required for logix. Password: 230 User logix logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd ~ 250 CWD command successful. ftp> pwd 257 "/root" is current directory. ftp> >Fix: unknown >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 15:50:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA02345 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 15:50:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA02275 for ; Mon, 12 Oct 1998 15:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA04989; Mon, 12 Oct 1998 15:50:01 -0700 (PDT) Received: from cowpie.acm.vt.edu (cowpie.acm.vt.edu [128.173.42.253]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA00440 for ; Mon, 12 Oct 1998 15:40:06 -0700 (PDT) (envelope-from dlacroix@cowpie.acm.vt.edu) Received: (from dlacroix@localhost) by cowpie.acm.vt.edu (8.8.8/8.8.8) id SAA05132; Mon, 12 Oct 1998 18:39:38 -0400 (EDT) (envelope-from dlacroix) Message-Id: <199810121800.NAA25190@narf2.streams.com> Date: Mon, 12 Oct 1998 18:39:38 -0400 (EDT) From: David La Croix Reply-To: dlacroix@acm.vt.edu To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8295: Bug in printcap handling of mx#0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8295 >Category: bin >Synopsis: order of options in printcap causes some options to be ignored >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 15:50:00 PDT 1998 >Last-Modified: >Originator: David La Croix >Organization: Streams Online Media Development Corporation >Release: FreeBSD 2.2.7-STABLE #0: Thu Aug 20 13:57:50 CDT 1998 >Environment: FreeBSD 2.2.7-Stable supped in mid August. System is a K6-2 (K6-3D) 300Mhz with 64Mb ram, EIDE disk drive, Alladin V chipset, Tulip PCI ethernet card. (mostly irrelevant) Network printing to a GCC Elite 616 XL (hence the strange filters) >Description: The order options are given appears to be significant in printcap. The printcap (5) man page does not mention order being significant, and I kept getting my large files truncated before they were printed. This printcap entry works: lp:\ :lp=/dev/null:\ :mx#0:sh:\ :if=/usr/local/bin/printfilter:\ :of=/usr/local/bin/tcpof_207.152.104.69:\ :sd=/var/spool/lpd:\ :lf=/var/log/lpd-errs1: This printcap entry doesn't work: lp:\ :lp=/dev/null:\ :if=/usr/local/bin/printfilter:\ :of=/usr/local/bin/tcpof_207.152.104.69:\ :sd=/var/spool/lpd:\ :mx#0:sh:\ :lf=/var/log/lpd-errs1: >How-To-Repeat: See description above >Fix: --RAA29848.908230942/narf2.streams.com-- >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 17:14:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA17142 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 17:14:57 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA17135; Mon, 12 Oct 1998 17:14:51 -0700 (PDT) (envelope-from fenner@FreeBSD.org) From: Bill Fenner Received: (from fenner@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA08096; Mon, 12 Oct 1998 17:14:50 -0700 (PDT) Date: Mon, 12 Oct 1998 17:14:50 -0700 (PDT) Message-Id: <199810130014.RAA08096@freefall.freebsd.org> To: logix@foobar.franken.de, fenner@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8293 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: /usr/libexec/ftpd expands "~" to root's homedir State-Changed-From-To: open-closed State-Changed-By: fenner State-Changed-When: Mon Oct 12 17:14:32 PDT 1998 State-Changed-Why: Duplicate of bin/7943 (which contains a fix) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Mon Oct 12 18:00:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA23328 for freebsd-bugs-outgoing; Mon, 12 Oct 1998 18:00:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA23287 for ; Mon, 12 Oct 1998 18:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id SAA09413; Mon, 12 Oct 1998 18:00:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA21795; Mon, 12 Oct 1998 17:50:31 -0700 (PDT) (envelope-from nobody) Message-Id: <199810130050.RAA21795@hub.freebsd.org> Date: Mon, 12 Oct 1998 17:50:31 -0700 (PDT) From: malartre@aei.ca To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: misc/8297: send-pr.html need a
tag (line 63 of 71 [88%]) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8297 >Category: misc >Synopsis: send-pr.html need a
tag (line 63 of 71 [88%]) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 12 18:00:00 PDT 1998 >Last-Modified: >Originator: Malartre >Organization: Malartre Corp. >Release: 2.2.7-RELEASE >Environment: FreeBSD f00f.org 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Wed Sep 23 01:29:34 EDT 1998 root@f00f.org:/usr/src/sys/compile/F00F i386 >Description: send-pr.html need a
tag. (line 63 of 71 [88%]) Haha, this is my first send-pr and it's about send-pr :-) >How-To-Repeat: Go see http://www.freebsd.org/send-pr.html >Fix: *** send-pr.html Mon Oct 12 20:44:23 1998 --- send-pr.html.old Mon Oct 12 20:32:23 1998 *************** *** 60,66 ****
Which FreeBSD Release You Are Using :
!
Environment (output of "uname -a" on the problem machine):

Full Description:

How to repeat the problem:

Fix to the problem if known:

Note: copy/paste will destroy TABs and spacing, and --- 60,66 ----
Which FreeBSD Release You Are Using :
!
Environment (output of "uname -a" on the problem machine):
Full Description:

How to repeat the problem:

Fix to the problem if known:

Note: copy/paste will destroy TABs and spacing, and >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 00:40:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA14746 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 00:40:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA14696 for ; Tue, 13 Oct 1998 00:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA21222; Tue, 13 Oct 1998 00:40:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA14433; Tue, 13 Oct 1998 00:36:18 -0700 (PDT) (envelope-from nobody) Message-Id: <199810130736.AAA14433@hub.freebsd.org> Date: Tue, 13 Oct 1998 00:36:18 -0700 (PDT) From: alansze@performax.ca To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: i386/8298: When using "make world" for 3.0-19981009-BETA, got error code 1 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8298 >Category: i386 >Synopsis: When using "make world" for 3.0-19981009-BETA, got error code 1 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 00:40:00 PDT 1998 >Last-Modified: >Originator: Alan Sze >Organization: Performax Piping Products Limited >Release: 3.0-19981006-BETA >Environment: FreeBSD unix1.szefinancial.com 3.0-19981006-BETA 3.0-19981006-BETA #3 Mon Oct 12 17:55:55 PDT 1998 root@unix1.szefinancial.com:/usr/src/sys/compile/MYKERNEL i386 >Description: I had 2.2.6 installed and subsequently using /stand/sysinstall -> upgrade to update the system to the current version, and got the source code as well. This part was all successful. However, I copied the source code to another machine (with version 2.2.6 installed), and performed "make world", it produced the following: "usr/src/gnu/usr.bin/awk/../../../ contrib/awk/awk.h:808: warning: data definition has no type or storage class in function name 'gawk_name' in file contrib/awk/gawkmisc.c:39 contrib/awk/posix/gawkmisc.c:32 warning: assignment makes pointer from integer without a cast stop error code 1" I then went back to the original machine which had the 3.0-BETA installed and performed "make world", it produced the exact same result. I have tried "make buildworld", and got the same result. However, the machine is working fine with the upgrade installed through FTP. >How-To-Repeat: It repeat every time as described above. >Fix: It has not been fixed. I guess it has something to do with the line: return (p == NULL ? (char *) filespec : p + 1) where the p pointer had been declared previously as char* p. "p+1" looks like an int operation. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 02:00:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA25411 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 02:00:11 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA25393 for ; Tue, 13 Oct 1998 02:00:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA24213; Tue, 13 Oct 1998 02:00:02 -0700 (PDT) Received: from ren.dtir.qld.gov.au (ns.dtir.qld.gov.au [203.108.138.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA24870 for ; Tue, 13 Oct 1998 01:56:02 -0700 (PDT) (envelope-from syssgm@dtir.qld.gov.au) Received: by ren.dtir.qld.gov.au; id SAA03197; Tue, 13 Oct 1998 18:55:34 +1000 (EST) Received: from ogre.dtir.qld.gov.au(167.123.8.3) by ren.dtir.qld.gov.au via smap (3.2) id xma003189; Tue, 13 Oct 98 18:55:12 +1000 Received: from atlas.dtir.qld.gov.au (atlas.dtir.qld.gov.au [167.123.8.9]) by ogre.dtir.qld.gov.au (8.8.8/8.8.7) with ESMTP id SAA12970 for ; Tue, 13 Oct 1998 18:55:12 +1000 (EST) Received: from nymph.dtir.qld.gov.au (nymph.dtir.qld.gov.au [167.123.10.10]) by atlas.dtir.qld.gov.au (8.8.5/8.8.5) with ESMTP id SAA07669 for ; Tue, 13 Oct 1998 18:55:11 +1000 (EST) Received: (from syssgm@localhost) by nymph.dtir.qld.gov.au (8.8.8/8.8.7) id SAA26209; Tue, 13 Oct 1998 18:55:11 +1000 (EST) (envelope-from syssgm) Message-Id: <199810130855.SAA26209@nymph.dtir.qld.gov.au> Date: Tue, 13 Oct 1998 18:55:11 +1000 (EST) From: Stephen McKay Reply-To: syssgm@dtir.qld.gov.au To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8300: atq(1) ignores locale Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8300 >Category: bin >Synopsis: atq(1) ignores locale time info >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 02:00:01 PDT 1998 >Last-Modified: >Originator: Stephen McKay >Organization: none >Release: FreeBSD 3.0-CURRENT i386 >Environment: Fairly recent -current. Dual PPro 200. >Description: Only some parts of "at" pay attention to the locale. In particular, listing your queued jobs produces output in the much cursed and completely incomprehensible US date format. Your LANG variable is ignored. >How-To-Repeat: $ at teatime oct 15 echo hello Job 20 will be executed using /bin/sh $ unset LANG $ atq Date Owner Queue Job# 16:00:00 10/15/98 root c 20 $ LANG=en_GB.ISO_8859-1 atq Date Owner Queue Job# 16:00:00 10/15/98 root c 20 $ But after the patch ... $ LANG=en_GB.ISO_8859-1 ./atq Date Owner Queue Job# 16:00:00 15/10/98 root c 20 Actually, I'd prefer: Date Owner Queue Job# 1998-10-15 16:00:00 root c 20 but that's different from just fixing a locale bug. Maybe later. I'll complain about the broken en_AU.ISO_8859-1 locale in a minute... >Fix: This patch works for me. But do we want to just move the setlocale() call that is already there? Can that break anything? I'm keen to commit this as it stands for 3.0. Do I have approval? Index: at.c =================================================================== RCS file: /cvs/src/usr.bin/at/at.c,v retrieving revision 1.13 diff -u -r1.13 at.c --- at.c 1997/03/29 04:27:56 1.13 +++ at.c 1998/10/13 07:27:49 @@ -450,6 +450,10 @@ time_t runtimer; char timestr[TIMESIZE]; int first=1; + +#ifdef __FreeBSD__ + (void) setlocale(LC_TIME, ""); +#endif PRIV_START Stephen. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 02:20:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA27309 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 02:20:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA27278 for ; Tue, 13 Oct 1998 02:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA24926; Tue, 13 Oct 1998 02:20:01 -0700 (PDT) Received: from secom-sis.co.jp (spiral.secom-sis.co.jp [202.218.246.72]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA26745 for ; Tue, 13 Oct 1998 02:12:06 -0700 (PDT) (envelope-from tetsuya@secom-sis.co.jp) Received: by spiral.secom-sis.co.jp id <27780>; Tue, 13 Oct 1998 18:08:57 +0900 Message-Id: <98Oct13.180857jst.27780@spiral.secom-sis.co.jp> Date: Tue, 13 Oct 1998 18:11:46 +0900 From: tetsuya@secom-sis.co.jp Reply-To: tetsuya@secom-sis.co.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8301: "ls -B" and "ls -b" misprint Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8301 >Category: bin >Synopsis: "ls -B" and "ls -b" misprint >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 02:20:01 PDT 1998 >Last-Modified: >Originator: Tetsuya Furukawa >Organization: SECOM Information System Co.,Ltd. >Release: FreeBSD 3.0-BETA i386 >Environment: FreeBSD 3.0-BETA i386 (Oct 6 1998) >Description: "ls -B" and "ls -b" print the wrong octal values of file names. >How-To-Repeat: % mkdir work % cd work % perl -e 'open(X, "> \377");' % ls -B \333 % ls -b \333 >Fix: --- bin/ls/util.c.orig Sat Apr 25 09:12:32 1998 +++ bin/ls/util.c Tue Oct 13 18:08:25 1998 @@ -137,8 +137,8 @@ break; default: putchar('0' + (ch >> 6)); - putchar('0' + ((ch >> 3) & 3)); - putchar('0' + (ch & 3)); + putchar('0' + ((ch >> 3) & 7)); + putchar('0' + (ch & 7)); len += 2; break; } @@ -147,8 +147,8 @@ else { putchar('\\'); putchar('0' + (ch >> 6)); - putchar('0' + ((ch >> 3) & 3)); - putchar('0' + (ch & 3)); + putchar('0' + ((ch >> 3) & 7)); + putchar('0' + (ch & 7)); len += 4; } } >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 02:20:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA27333 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 02:20:13 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA27290 for ; Tue, 13 Oct 1998 02:20:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA24935; Tue, 13 Oct 1998 02:20:02 -0700 (PDT) Received: from ren.dtir.qld.gov.au (ns.dtir.qld.gov.au [203.108.138.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA26799 for ; Tue, 13 Oct 1998 02:13:00 -0700 (PDT) (envelope-from syssgm@dtir.qld.gov.au) Received: by ren.dtir.qld.gov.au; id TAA03580; Tue, 13 Oct 1998 19:12:34 +1000 (EST) Received: from ogre.dtir.qld.gov.au(167.123.8.3) by ren.dtir.qld.gov.au via smap (3.2) id xma003578; Tue, 13 Oct 98 19:12:33 +1000 Received: from atlas.dtir.qld.gov.au (atlas.dtir.qld.gov.au [167.123.8.9]) by ogre.dtir.qld.gov.au (8.8.8/8.8.7) with ESMTP id TAA13399 for ; Tue, 13 Oct 1998 19:12:33 +1000 (EST) Received: from nymph.dtir.qld.gov.au (nymph.dtir.qld.gov.au [167.123.10.10]) by atlas.dtir.qld.gov.au (8.8.5/8.8.5) with ESMTP id TAA08638 for ; Tue, 13 Oct 1998 19:12:33 +1000 (EST) Received: (from syssgm@localhost) by nymph.dtir.qld.gov.au (8.8.8/8.8.7) id TAA26732; Tue, 13 Oct 1998 19:12:32 +1000 (EST) (envelope-from syssgm) Message-Id: <199810130912.TAA26732@nymph.dtir.qld.gov.au> Date: Tue, 13 Oct 1998 19:12:32 +1000 (EST) From: Stephen McKay Reply-To: syssgm@dtir.qld.gov.au To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8302: LC_TIME for en_AU.ISO_8859-1 is wrong Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8302 >Category: bin >Synopsis: LC_TIME for en_AU.ISO_8859-1 is wrong >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 02:20:01 PDT 1998 >Last-Modified: >Originator: Stephen McKay >Organization: none >Release: FreeBSD 3.0-CURRENT i386 >Environment: Fairly recent -current. Dual PPro 200. >Description: /usr/share/locale/en_AU.ISO_8859-1/LC_TIME is linked to the US LC_TIME. The Australian view of time is closer to the British view. So it should link to en_GB.ISO_8859-1/LC_TIME. >How-To-Repeat: Inspect /usr/share/local/en_AU.ISO_8859-1. >Fix: This patch should work, but I can't test installworld on any -current box at this time. Sorry. This patch applies to -stable as well. Index: Makefile =================================================================== RCS file: /cvs/src/share/timedef/data/Makefile,v retrieving revision 1.27 diff -u -r1.27 Makefile --- Makefile 1998/08/10 09:49:42 1.27 +++ Makefile 1998/10/13 09:01:05 @@ -36,7 +36,8 @@ IT_LINKS = it_CH LN_LINKS = lt_LN.ASCII lt_LN.ISO_8859-2 NL_LINKS = nl_BE -US_LINKS = en_AU en_CA +US_LINKS = en_CA +GB_LINKS = en_AU .SUFFIXES: .src .out @@ -72,6 +73,10 @@ done for l in ${US_LINKS}; do \ ln -fs ../en_US.ISO_8859-1/LC_TIME \ + ${LOCALEDIR}/$$l.ISO_8859-1/LC_TIME; \ + done + for l in ${GB_LINKS}; do \ + ln -fs ../en_GB.ISO_8859-1/LC_TIME \ ${LOCALEDIR}/$$l.ISO_8859-1/LC_TIME; \ done Stephen. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 03:00:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA02992 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 03:00:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA02985 for ; Tue, 13 Oct 1998 03:00:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id DAA26783; Tue, 13 Oct 1998 03:00:02 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA02867; Tue, 13 Oct 1998 02:59:46 -0700 (PDT) (envelope-from nobody) Message-Id: <199810130959.CAA02867@hub.freebsd.org> Date: Tue, 13 Oct 1998 02:59:46 -0700 (PDT) From: rln@ludd.luth.se To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: conf/8303: 3.0-981009-BETA can't make swap device on wfd0 (wf stripped) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8303 >Category: conf >Synopsis: 3.0-981009-BETA can't make swap device on wfd0 (wf stripped) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 03:00:02 PDT 1998 >Last-Modified: >Originator: Rolf Larsson >Organization: Luleå Academic Computer Society >Release: 4.0-981009-BETA >Environment: Not available (Machine is a Dell Dimension XPS R400) >Description: I just tried to install 3.0-981009-BETA on an ATAPI zipdrive. I first tried to install without swap, but no go; it seems to be required. When I tried to commit the installation with a swap device, Makedev can't create the device entry for wfd0s1b. On the debug screen I see: DEBUG: MakeDev: Invalid disk unit passed: d0s1b For me, it would be handy to have a minimal FreeBSD system on a ZIP-disk for testing purposes. >How-To-Repeat: Boot boot.flp Label and partition zipdisk (ie wfd0) with swap device Commit >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 05:21:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA16725 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 05:21:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA16716; Tue, 13 Oct 1998 05:20:51 -0700 (PDT) (envelope-from des@FreeBSD.org) From: "Dag-Erling C. Sm\xf8rgrav" Received: (from des@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id FAA01976; Tue, 13 Oct 1998 05:20:49 -0700 (PDT) Date: Tue, 13 Oct 1998 05:20:49 -0700 (PDT) Message-Id: <199810131220.FAA01976@freefall.freebsd.org> To: tetsuya@secom-sis.co.jp, des@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, des@FreeBSD.ORG Subject: Re: bin/8301 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: "ls -B" and "ls -b" misprint State-Changed-From-To: open-feedback State-Changed-By: des State-Changed-When: Tue Oct 13 05:19:39 PDT 1998 State-Changed-Why: Fixed in revision 1.18 of src/bin/ls/util.c Responsible-Changed-From-To: freebsd-bugs->des Responsible-Changed-By: des Responsible-Changed-When: Tue Oct 13 05:19:39 PDT 1998 Responsible-Changed-Why: I broke it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 12:50:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA09573 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 12:50:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA09523 for ; Tue, 13 Oct 1998 12:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA22764; Tue, 13 Oct 1998 12:50:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA08043; Tue, 13 Oct 1998 12:41:20 -0700 (PDT) (envelope-from nobody) Message-Id: <199810131941.MAA08043@hub.freebsd.org> Date: Tue, 13 Oct 1998 12:41:20 -0700 (PDT) From: gelderen@mediaport.org To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: conf/8306: NATD get loaded late in bootsequence Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8306 >Category: conf >Synopsis: NATD get loaded late in bootsequence >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 12:50:00 PDT 1998 >Last-Modified: >Originator: Jeroen C. van Gelderen >Organization: >Release: 2.2.7/STABLE >Environment: FreeBSD wit395306.utwente.nl 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Sat Oct 10 15:57:08 GMT 1998 root@wit395306.student.utwente.nl:/usr/src/sys/compile/FIREWALL i386 >Description: I've enabled natd in my rc.conf which works fine except when booting. This has something to do with NATD only getting loaded in pass 3 of rc.network. In the first pass of rc.network ipfw gets initialized and it is instructed to divert everything to the natd which is not running at the time. Then the various services (sendmail, etc) are started. Problem is that they lack internet connectivity because traffic is diverted but natd is not yet running (gets only initialized in pass 3). The patch attached below fixes the problem for me, but it might not be the right solution. I'd like someone to take this over and/or give some feedback... If you need an 'ungarbled' patch, please mail me... >How-To-Repeat: see above >Fix: *** rc.network Sun Oct 11 22:14:49 1998 --- rc.network.new Sun Oct 11 22:14:19 1998 *************** *** 87,98 **** --- 87,104 ---- echo "but firewall rules are not enabled." echo " All ip services are disabled." fi fi fi + + # Network Address Translation daemon + if [ "X${natd_enable}" = X"YES" -a "X${natd_interface}" != X"" -a "X${firewall_enable}" = X"YES" ]; then + echo -n ' natd'; natd ${natd_flags} -n ${natd_interface} + fi + # Configure routing if [ "x$defaultrouter" != "xNO" ] ; then static_routes="default ${static_routes}" route_default="default ${defaultrouter}" fi *************** *** 252,267 **** unset stash_flag fi # IP multicast routing daemon if [ "X${mrouted_enable}" = X"YES" ]; then echo -n ' mrouted'; mrouted ${mrouted_flags} - fi - - # Network Address Translation daemon - if [ "X${natd_enable}" = X"YES" -a "X${natd_interface}" != X"" -a "X${firewall_enable}" = X"YES" ]; then - echo -n ' natd'; natd ${natd_flags} -n ${natd_interface} fi echo '.' network_pass3_done=YES } --- 258,268 ---- >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 13:21:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA15455 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 13:21:11 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA15435; Tue, 13 Oct 1998 13:21:04 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA24043; Tue, 13 Oct 1998 13:21:03 -0700 (PDT) Date: Tue, 13 Oct 1998 13:21:03 -0700 (PDT) Message-Id: <199810132021.NAA24043@freefall.freebsd.org> To: syssgm@dtir.qld.gov.au, ache@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8302 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: LC_TIME for en_AU.ISO_8859-1 is wrong State-Changed-From-To: open-closed State-Changed-By: ache State-Changed-When: Tue Oct 13 13:20:41 PDT 1998 State-Changed-Why: fixed in Makefile v1.28 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 13:43:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA19797 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 13:43:59 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA19775; Tue, 13 Oct 1998 13:43:52 -0700 (PDT) (envelope-from des@FreeBSD.org) From: "Dag-Erling C. Sm\xf8rgrav" Received: (from des@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA24946; Tue, 13 Oct 1998 13:43:50 -0700 (PDT) Date: Tue, 13 Oct 1998 13:43:50 -0700 (PDT) Message-Id: <199810132043.NAA24946@freefall.freebsd.org> To: fenner@parc.xerox.com, des@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, des@FreeBSD.ORG Subject: Re: bin/7943 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: ftpd: ~ is ~root! State-Changed-From-To: open-feedback State-Changed-By: des State-Changed-When: Tue Oct 13 13:42:45 PDT 1998 State-Changed-Why: Fixed in revision 1.52 of src/libexec/ftpd/ftpd.c Responsible-Changed-From-To: freebsd-bugs->des Responsible-Changed-By: des Responsible-Changed-When: Tue Oct 13 13:42:45 PDT 1998 Responsible-Changed-Why: So I remember to MFC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 14:40:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA02114 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 14:40:13 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA02065 for ; Tue, 13 Oct 1998 14:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA27137; Tue, 13 Oct 1998 14:40:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA01953; Tue, 13 Oct 1998 14:39:31 -0700 (PDT) (envelope-from nobody) Message-Id: <199810132139.OAA01953@hub.freebsd.org> Date: Tue, 13 Oct 1998 14:39:31 -0700 (PDT) From: vanja@siamrelay.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: i386/8308: Host/Domain 'problem' in install script/program Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8308 >Category: i386 >Synopsis: Host/Domain 'problem' in install script/program >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 14:40:01 PDT 1998 >Last-Modified: >Originator: Vanja Hrustic >Organization: Siam Relay Ltd. >Release: 3.0-199801009-BETA >Environment: Doesn't matter >Description: During the installation, at Network Configuration, if user enters something like '192.168.1.201' for hostname, install program automatically assigns 168.1.201 as domain name. However, it's imposible to remove domain name entry after this. If user enters a hostname ('ghost' in example), it will again automatically modify it to 'ghost.168.1.201'. If you try to delete domain and move (with TAB) to another field, domain is filled again. It's just a loop that can be annoying sometimes [if you don't want to use/assign domain name]. >How-To-Repeat: In Network configuration do the following: Host: 192.168.1.1 [Domain changes to 168.1.1] Now, no matter what you try to change, you can't remove domain name entry. >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 15:30:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10186 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 15:30:20 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10067 for ; Tue, 13 Oct 1998 15:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA29134; Tue, 13 Oct 1998 15:30:01 -0700 (PDT) Received: from opus.cts.cwu.edu (opus.cts.cwu.edu [198.104.92.71]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA08818 for ; Tue, 13 Oct 1998 15:23:33 -0700 (PDT) (envelope-from skynyrd@opus.cts.cwu.edu) Received: (from skynyrd@localhost) by opus.cts.cwu.edu (8.9.1/8.9.1) id PAA01780; Tue, 13 Oct 1998 15:23:18 -0700 (PDT) Message-Id: <199810132223.PAA01780@opus.cts.cwu.edu> Date: Tue, 13 Oct 1998 15:23:18 -0700 (PDT) From: skynyrd@opus.cts.cwu.edu Reply-To: skynyrd@opus.cts.cwu.edu To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8309: SMP panic via reboot(8): "panic: rslock: ..." Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8309 >Category: kern >Synopsis: SMP panic via reboot(8): "panic: rslock: ..." >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 15:30:00 PDT 1998 >Last-Modified: >Originator: Chris Timmons >Organization: Central Washington University >Release: FreeBSD 3.0-BETA (Oct 13, 1998 ~1700 UTC) >Environment: 3.0-BETA SMP kernel, 4xfxp ethernet, 1xAHA-3940AUW, 5x4GB disk across a & b channels. Tyan Tiger dual PII-266 motherboard >Description: panic: rslock: cpu: 0, addr: 0xf930b208, lock: 0x00000001 mp_lock = 00000001; cpuid = 0; lapic.id = 00000000 panic: from debugger mp_lock = 00000002; cpuid = 0; lapic.id = 00000000 boot() called on cpu#0 (kgdb) bt #0 boot (howto=260) at ../../kern/kern_shutdown.c:268 #1 0xf0137434 in panic (fmt=0xf01161c8 "from debugger") at ../../kern/kern_shutdown.c:430 #2 0xf01161e5 in db_panic (addr=-266405791, have_addr=0, count=-1, modif=0xf9380ccc "") at ../../ddb/db_command.c:432 #3 0xf01160c5 in db_command (last_cmdp=0xf0225514, cmd_table=0xf0225374, aux_cmd_tablep=0xf0239024) at ../../ddb/db_command.c:332 #4 0xf0116252 in db_command_loop () at ../../ddb/db_command.c:454 #5 0xf0118963 in db_trap (type=3, code=0) at ../../ddb/db_trap.c:71 #6 0xf01ef5f4 in kdb_trap (type=3, code=0, regs=0xf9380dbc) at ../../i386/i386/db_interface.c:157 #7 0xf02010a8 in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = -114249312, tf_esi = 256, tf_ebp = -113766912, tf_isp = -113766940, tf_ebx = -266339399, tf_edx = -266405844, tf_ecx = 1, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -266405791, tf_cs = 8, tf_eflags = 598, tf_esp = -266405860, tf_ss = -267160698}) at ../../i386/i386/trap.c:507 #8 0xf01ef861 in Debugger (msg=0xf0137386 "panic") at ../../i386/i386/db_interface.c:316 #9 0xf013742b in panic (fmt=0xf01ffbb9 "rslock: cpu: %d, addr: 0x%08x, lock: 0x%08x") at ../../kern/kern_shutdown.c:428 #10 0xf01ffbb9 in bsl1 () #11 0xf01e1e2c in vm_object_terminate (object=0xf024b014) at ../../vm/vm_object.c:444 #12 0xf0157191 in vrele (vp=0xf930b1a0) at ../../kern/vfs_subr.c:1310 #13 0xf01d0b6a in ffs_unmount (mp=0xf1173c00, mntflags=524288, p=0xf930f340) at ../../ufs/ffs/ffs_vfsops.c:847 #14 0xf0159636 in dounmount (mp=0xf1173c00, flags=524288, p=0xf930f340) at ../../kern/vfs_syscalls.c:468 #15 0xf01580f5 in vfs_unmountall () at ../../kern/vfs_subr.c:2193 #16 0xf0137047 in boot (howto=0) at ../../kern/kern_shutdown.c:253 #17 0xf0136dd1 in reboot (p=0xf930f340, uap=0xf9380f94) at ../../kern/kern_shutdown.c:147 #18 0xf0201c2f in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 0, tf_esi = 0, tf_ebp = -272640416, tf_isp = -113766428, tf_ebx = 1, tf_edx = -1, tf_ecx = 3, tf_eax = 55, tf_trapno = 7, tf_err = 2, tf_eip = 134514864, tf_cs = 31, tf_eflags = 582, tf_esp = -272640440, tf_ss = 39}) at ../../i386/i386/trap.c:1031 #19 0xf01f013c in Xint0x80_syscall () cannot read proc at 0 >How-To-Repeat: I am getting this reliably by simply running reboot(8) >Fix: Unknown. Tor????? >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 19:00:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA15777 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 19:00:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA15717 for ; Tue, 13 Oct 1998 19:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id TAA06426; Tue, 13 Oct 1998 19:00:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA14207; Tue, 13 Oct 1998 18:51:37 -0700 (PDT) (envelope-from nobody) Message-Id: <199810140151.SAA14207@hub.freebsd.org> Date: Tue, 13 Oct 1998 18:51:37 -0700 (PDT) From: eric@lame.net To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/8311: kernel panic on de0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8311 >Category: kern >Synopsis: kernel panic on de0 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 19:00:01 PDT 1998 >Last-Modified: >Originator: Eric >Organization: >Release: 3.0-BETA Circa Oct-11 >Environment: FreeBSD very 3.0-BETA FreeBSD 3.0-BETA #8: Sun Oct 11 06:19:24 PDT 1998 root @:/usr/src/sys/compile/ANTIX.NET i386 >Description: kernel panics for unknown reason while tcpdumping Fatal trap 12: page fault while in kernel mode fault virtual address = 0xefcf5cd8 fault code = Supervisor read, page not present intstruction pointer = 0x8:0xf01c135d stack pointer = 0x10:0xf0223df4 frame pointer = 0x10:0xf0223e28 = DPL 0, pres 1, def321, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = Idle interrupt mask = net tty kernel: type 12 trap, code = 0 Stopped at _tulip_txput+0x165: movl _PTmap(,%eax,4),%edx db> trace _tulip_txput(f06c0800,f052d980,c0020000,f0223e70,f016a0bc) at _tulip_txput+0x165 _tulip_ifstart_one(f06c0818) at _tulip_ifstart_one+0x4d _ether_output(f06c0818,f052c900,f2cf4030,f06cf500,ca1ff18a) at _ether_output+0x2 e0 _ip_output(f052c900,0,f2cf402c,0,0) at _ip_output+0x4f0 _tcp_output(f2cf4060,f2cf4060,0,f0223f80,f0187f63) at _tcp_output+0xab2 _tcp_timers(f2cf4060,0,f022bf48,f022c0e8,c0000000) _tcp_slowtimo(0,f0143370,f0223fb4,f0133463,0) at _tcp_slowtimo+0x63 _pfslowtimo(0,c0000000,0,f2d54fc0,0) at _pfslowtimo+0x23 _softclock(80000000,10,10,0,f2d54fc0) at _softclock+0xc3 doreti_swi() at doreti_swi+0xf >How-To-Repeat: I haven't been able to reproduce it >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 21:00:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA00139 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 21:00:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA29983 for ; Tue, 13 Oct 1998 21:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA09823; Tue, 13 Oct 1998 21:00:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA29157; Tue, 13 Oct 1998 20:52:43 -0700 (PDT) (envelope-from nobody) Message-Id: <199810140352.UAA29157@hub.freebsd.org> Date: Tue, 13 Oct 1998 20:52:43 -0700 (PDT) From: benedict@echonyc.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/8312: Under heavy load, the system panics with "ufs_dirbad: bad dir" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8312 >Category: kern >Synopsis: Under heavy load, the system panics with "ufs_dirbad: bad dir" >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 21:00:01 PDT 1998 >Last-Modified: >Originator: Ben Rosengart >Organization: Icon CMT Corp. >Release: current as of Tue Oct 13 16:38:48 EDT 1998 >Environment: FreeBSD narcissus.net 3.0-BETA FreeBSD 3.0-BETA #17: Tue Oct 13 15:53:06 EDT 1998 ben@narcissus.net:/usr/src/sys/compile/SUEVEN i386 >Description: When I do a make world with around -j24 or above, my system panics with "ufs_dirbad: bad dir". When it comes back up, fsck -p dies on /usr/obj with "UNEXPECTED SOFTDEP INCONSISTENCY". I usually have to fix a bunch of these when I run fsck manually. Here is the full backtrace: #0 boot (howto=256) at ../../kern/kern_shutdown.c:268 #1 0xf012c663 in panic (fmt=0xf01840b8 "ufs_dirbad: bad dir") at ../../kern/kern_shutdown.c:430 #2 0xf0184106 in ufs_dirbad (ip=0xf0a03b00, offset=0, how=0xf01836a0 "mangled entry") at ../../ufs/ufs/ufs_lookup.c:566 #3 0xf0183949 in ufs_lookup (ap=0xf5032dcc) at ../../ufs/ufs/ufs_lookup.c:243 #4 0xf01889ad in ufs_vnoperate (ap=0xf5032dcc) at ../../ufs/ufs/ufs_vnops.c:2291 #5 0xf014a2f1 in vfs_cache_lookup (ap=0xf5032e28) at vnode_if.h:55 #6 0xf01889ad in ufs_vnoperate (ap=0xf5032e28) at ../../ufs/ufs/ufs_vnops.c:2291 #7 0xf014c2ed in lookup (ndp=0xf5032eb0) at vnode_if.h:31 #8 0xf014bda7 in namei (ndp=0xf5032eb0) at ../../kern/vfs_lookup.c:155 #9 0xf0151697 in stat (p=0xf4ff2980, uap=0xf5032f94) at ../../kern/vfs_syscalls.c:1592 #10 0xf01a475c in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 235136, tf_esi = 0, tf_ebp = -272642908, tf_isp = -184340508, tf_ebx = 196672, tf_edx = 13, tf_ecx = 196672, tf_eax = 188, tf_trapno = 12, tf_err = 7, tf_eip = 102389, tf_cs = 31, tf_eflags = 582, tf_esp = -272643028, tf_ss = 39}) at ../../i386/i386/trap.c:1031 #11 0x18ff5 in ?? () #12 0xa4d7 in ?? () #13 0xabad in ?? () #14 0xade9 in ?? () #15 0x9c7a in ?? () #16 0x107e in ?? () Here is my dmesg.boot: Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-BETA #17: Tue Oct 13 15:53:06 EDT 1998 ben@narcissus.net:/usr/src/sys/compile/SUEVEN Timecounter "i8254" frequency 1193182 Hz cost 3502 ns Timecounter "TSC" frequency 199432625 Hz cost 252 ns CPU: Pentium Pro (199.43-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x617 Stepping=7 Features=0xf9ff real memory = 100663296 (98304K bytes) avail memory = 95764480 (93520K bytes) Probing for devices on PCI bus 0: chip0: rev 0x02 on pci0.0.0 chip1: rev 0x01 on pci0.7.0 vga0: rev 0x06 int a irq 11 on pci0.11.0 bt0: rev 0x08 int a irq 9 on pci0.15.0 bt0: BT-948 FW Rev. 5.05R Ultra Narrow SCSI Host Adapter, SCSI ID 7, 192 CCBs Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 at 0x300-0x31f irq 10 on isa ed0: address 00:40:05:1e:df:32, type NE2000 (16 bit) sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface pcm0 at 0x220 irq 5 drq 1 on isa WARNING: sb: misconfigured secondary DMA channel fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in bt: unit number (1) too high bt1 not found at 0x330 npx0 on motherboard npx0: INT 16 interface Waiting 5 seconds for SCSI devices to settle changing root device to da0s1a da0 at bt0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI2 device da0: 3.300MB/s transfers, Tagged Queueing Enabled da0: 2048MB (4194304 512 byte sectors: 255H 63S/T 261C) da1 at bt0 bus 0 target 6 lun 0 da1: Fixed Direct Access SCSI2 device da1: 3.300MB/s transfers, Tagged Queueing Enabled da1: 3067MB (6281856 512 byte sectors: 255H 63S/T 391C) WARNING: / was not properly dismounted cd0 at bt0 bus 0 target 2 lun 0 cd0: Removable CD-ROM SCSI2 device cd0: 3.300MB/s transfers cd0: cd present [313790 x 2048 byte records] ffs_mountfs: superblock updated ffs_mountfs: superblock updated ffs_mountfs: superblock updated ffs_mountfs: superblock updated ffs_mountfs: superblock updated Here is my kernel configuration file: machine "i386" cpu "I686_CPU" ident SUEVEN maxusers 32 options SOFTUPDATES options INET #InterNETworking options FFS #Berkeley Fast Filesystem options MFS options "CD9660" #ISO 9660 Filesystem options "CD9660_ROOT" #CD-ROM usable as root device options FFS_ROOT #FFS usable as root device [keep this!] options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=5000 #Be pessimistic about Joe SCSI device options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor config kernel root on da0 controller isa0 controller eisa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 controller bt0 at isa? port ? cam irq ? controller scbus0 device da0 device sa0 device pass0 device cd0 #Only need one of these, the code dynamically grows device sc0 at isa? port "IO_KBD" conflicts tty irq 1 vector scintr device npx0 at isa? port "IO_NPX" irq 13 vector npxintr device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device sio2 at isa? disable port "IO_COM3" tty irq 5 vector siointr device sio3 at isa? disable port "IO_COM4" tty irq 9 vector siointr device lpt0 at isa? port? tty irq 7 vector lptintr device ed0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector edintr device pcm0 at isa? port 0x220 tty irq 5 drq 1 flags 0x0 vector pcmintr pseudo-device loop pseudo-device ether pseudo-device tun 1 pseudo-device pty 16 pseudo-device bpfilter 2 options KTRACE #kernel tracing options SYSVSHM options SYSVSEM options SYSVMSG >How-To-Repeat: Run a make world with a large -j argument. >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Tue Oct 13 23:40:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA19921 for freebsd-bugs-outgoing; Tue, 13 Oct 1998 23:40:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA19894 for ; Tue, 13 Oct 1998 23:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id XAA15022; Tue, 13 Oct 1998 23:40:01 -0700 (PDT) Received: from nebula.sf.t.u-tokyo.ac.jp (nebula.sf.t.u-tokyo.ac.jp [133.11.87.23]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA19590 for ; Tue, 13 Oct 1998 23:37:50 -0700 (PDT) (envelope-from amakawa@nebula.sf.t.u-tokyo.ac.jp) Received: (from amakawa@localhost) by nebula.sf.t.u-tokyo.ac.jp (8.8.8/8.8.8) id PAA04007; Wed, 14 Oct 1998 15:37:31 +0900 (JST) (envelope-from amakawa) Message-Id: <199810140637.PAA04007@nebula.sf.t.u-tokyo.ac.jp> Date: Wed, 14 Oct 1998 15:37:31 +0900 (JST) From: amakawa@sf.t.u-tokyo.ac.jp Reply-To: amakawa@sf.t.u-tokyo.ac.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8315: [PATCH] a bug in the usage string (-i option) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8315 >Category: bin >Synopsis: [PATCH] a bug in the usage string (-i option) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 13 23:40:01 PDT 1998 >Last-Modified: >Originator: Amakawa Shuhei >Organization: Univ. of Tokyo >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: FreeBSD 2.2.7-RELEASE i386 >Description: moused prints wrong usage of the `-i' option. >How-To-Repeat: /usr/sbin/moused >Fix: *** moused.c.orig Fri Mar 13 20:21:18 1998 --- moused.c Wed Oct 14 14:50:15 1998 *************** *** 756,762 **** fprintf(stderr, "%s\n%s\n%s\n", "usage: moused [-3DRcdfs] [-I file] [-F rate] [-r resolution] [-S baudrate]", " [-C threshold] [-m N=M] [-z N] [-t ] -p ", ! " moused [-d] -i -p "); exit(1); } --- 756,762 ---- fprintf(stderr, "%s\n%s\n%s\n", "usage: moused [-3DRcdfs] [-I file] [-F rate] [-r resolution] [-S baudrate]", " [-C threshold] [-m N=M] [-z N] [-t ] -p ", ! " moused [-d] -i -p "); exit(1); } >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 02:18:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA02369 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 02:18:21 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from shell.futuresouth.com (shell.futuresouth.com [198.78.58.28]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA02358 for ; Wed, 14 Oct 1998 02:18:19 -0700 (PDT) (envelope-from fullermd@futuresouth.com) Received: (from fullermd@localhost) by shell.futuresouth.com (8.8.8/8.8.8) id EAA02174; Wed, 14 Oct 1998 04:18:03 -0500 (CDT) Message-ID: <19981014041803.57887@futuresouth.com> Date: Wed, 14 Oct 1998 04:18:03 -0500 From: "Matthew D. Fuller" To: bugs@FreeBSD.ORG Subject: Re: bin/6325 References: <199805210848.BAA19836@freefall.freebsd.org> <356407C2.5116F14D@san.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <356407C2.5116F14D@san.rr.com>; from Studded on Thu, May 21, 1998 at 03:53:54AM -0700 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, May 21, 1998 at 03:53:54AM -0700, Studded wrote: > Joseph Koshy wrote: > > > > Synopsis: Heading fix for 'w' on long-name systems > > > > State-Changed-From-To: open-closed > > State-Changed-By: jkoshy > > State-Changed-When: Thu May 21 01:47:15 PDT 1998 > > State-Changed-Why: > > Rev 1.27 of usr.bin/w/w.c has a generalized fix for this problem. > > Thanks to both of you for your very good work. I diff'ed -Current and > -Stable and w.c compiles and runs clean with all the changes. Think you > could merge w.c for -Stable up to what's in 1.27? Everything else in > that directory is up to date. As this is biting me now that I'm thinking about 16 char username ;) Is there any reason this hasn't been MFC'd? I don't see it in my latest cvs co, and the patch looks to apply with narry a change. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | FreeBSD; the way computers were meant to be | * "The only reason I'm burning my candle at both ends, is * | that I haven't figured out how to light the middle yet."| * fullermd@futuresouth.com :-} MAtthew Fuller * | http://keystone.westminster.edu/~fullermd | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 06:10:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA21678 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 06:10:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA21617 for ; Wed, 14 Oct 1998 06:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA27518; Wed, 14 Oct 1998 06:10:00 -0700 (PDT) Date: Wed, 14 Oct 1998 06:10:00 -0700 (PDT) Message-Id: <199810141310.GAA27518@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Peter Wemm Subject: Re: kern/8311: kernel panic on de0 Reply-To: Peter Wemm Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/8311; it has been noted by GNATS. From: Peter Wemm To: eric@lame.net Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: kern/8311: kernel panic on de0 Date: Wed, 14 Oct 1998 20:35:19 +0800 eric@lame.net wrote: > FreeBSD very 3.0-BETA FreeBSD 3.0-BETA #8: Sun Oct 11 06:19:24 PDT 1998 r oot [..] > interrupt mask = net tty > kernel: type 12 trap, code = 0 > Stopped at _tulip_txput+0x165: movl _PTmap(,%eax,4),%edx > > db> trace > _tulip_txput(f06c0800,f052d980,c0020000,f0223e70,f016a0bc) at _tulip_txput+0x 165 > _tulip_ifstart_one(f06c0818) at _tulip_ifstart_one+0x4d > _ether_output(f06c0818,f052c900,f2cf4030,f06cf500,ca1ff18a) at _ether_output+ 0x2 > e0 > _ip_output(f052c900,0,f2cf402c,0,0) at _ip_output+0x4f0 > _tcp_output(f2cf4060,f2cf4060,0,f0223f80,f0187f63) at _tcp_output+0xab2 [..] This is thought to have been fixed on 13/Oct/98, in rev 1.88 of if_de.c. The current version of if_de.c is rev 1.89. Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 06:11:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA21877 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 06:11:25 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from traad.ml.org (c20a.voll.ntnu.no [129.241.98.90]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA21870 for ; Wed, 14 Oct 1998 06:11:22 -0700 (PDT) (envelope-from zerium@traad.ml.org) Received: from localhost (zerium@localhost) by traad.ml.org (8.8.8/8.8.8) with SMTP id PAA27419; Wed, 14 Oct 1998 15:14:22 +0200 Date: Wed, 14 Oct 1998 15:14:20 +0200 (CEST) From: Hans Petter Bieker To: "Matthew D. Fuller" cc: bugs@FreeBSD.ORG Subject: Re: bin/6325 In-Reply-To: <19981014041803.57887@futuresouth.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 14 Oct 1998, Matthew D. Fuller wrote: > As this is biting me now that I'm thinking about 16 char username ;) > Is there any reason this hasn't been MFC'd? I don't see it in my latest > cvs co, and the patch looks to apply with narry a change. That would break old wtmp files... -bieker- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 08:30:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA07248 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 08:30:14 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA07192 for ; Wed, 14 Oct 1998 08:30:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA07124; Wed, 14 Oct 1998 08:30:04 -0700 (PDT) Received: from shinzan.kuee.kyoto-u.ac.jp (shinzan.kuee.kyoto-u.ac.jp [130.54.28.246]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA06256 for ; Wed, 14 Oct 1998 08:24:01 -0700 (PDT) (envelope-from tamrin@shinzan.kuee.kyoto-u.ac.jp) Received: (from tamrin@localhost) by shinzan.kuee.kyoto-u.ac.jp (8.8.8/8.8.8) id AAA12060; Thu, 15 Oct 1998 00:23:40 +0900 (JST) (envelope-from tamrin) Message-Id: <199810141523.AAA12060@shinzan.kuee.kyoto-u.ac.jp> Date: Thu, 15 Oct 1998 00:23:40 +0900 (JST) From: tamrin@kuee.kyoto-u.ac.jp Reply-To: tamrin@shinzan.kuee.kyoto-u.ac.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8316: [ATAPI CD-ROM] open() doesn't return -1 when no CDs in drive. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8316 >Category: kern >Synopsis: [ATAPI CD-ROM] open() doesn't return -1 when no CDs in drive. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 14 08:30:01 PDT 1998 >Last-Modified: >Originator: Masatoshi TAMURA >Organization: Kyoto Univ. >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: OS Version: 2.2.7-RELEASE ATAPI CD-ROM: TEAC CD-524EA (Secondary Master) M/B: GigaByte GA-586ATX3 : wdc1 at 0x170-0x177 irq 15 on isa : wdc1: unit 0 (atapi): , removable, accel, ovlap, dma, iordis : wcd0: 4134Kb/sec, 128Kb cache, audio play, 16 volume levels, ejectable tray : wcd0: no disc inside, unlocked >Description: I think, for SCSI CD driver compatible, open() system call for "/dev/[r]wcd0c" should return -1 if no CD is in the drive. But open("/dev/rwcd0c",..) return a positive number such case. Open() seems to success, but no ioctl() request is accepted by returned file descriptor. >How-To-Repeat: Run the next program with no CD in drive. You will see "open success(fd=3)", and kernel message "wcd0: cannot read audio disc" in cosole. ----- #include #include main() { int fd; if ((fd = open("/dev/rwcd0c", O_RDONLY)) < 0) printf("open fail\n"); else printf("open success(fd=%d)\n", fd); return 0; } ----- >Fix: patch for /sys/i386/isa/wcd.c function wcd_read_toc() will return only 0 or EIO(this is defined to 5). So "wcd_read_toc (t) < 0" is always FALSE. --- /sys/i386/isa/wcd.c.original Tue Jul 7 14:23:28 1998 +++ /sys/i386/isa/wcd.c Fri Oct 9 14:11:30 1998 @@ -420,7 +420,7 @@ /* On the first open, read the table of contents. */ if (! (t->flags & F_BOPEN) && ! t->refcnt) { /* Read table of contents. */ - if (wcd_read_toc (t) < 0) + if (wcd_read_toc (t) != 0) return (EIO); /* Lock the media. */ >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 10:20:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA24442 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 10:20:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA24380 for ; Wed, 14 Oct 1998 10:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA12516; Wed, 14 Oct 1998 10:20:00 -0700 (PDT) Date: Wed, 14 Oct 1998 10:20:00 -0700 (PDT) Message-Id: <199810141720.KAA12516@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Chris Timmons Subject: Re: kern/8309 Reply-To: Chris Timmons Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/8309; it has been noted by GNATS. From: Chris Timmons To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: kern/8309 Date: Wed, 14 Oct 1998 10:17:08 -0700 (PDT) Added to the record with the permission of the author... ---------- Forwarded message ---------- Date: Wed, 14 Oct 1998 04:17:57 +0200 From: Tor.Egge@fast.no To: skynyrd@opus.cts.cwu.edu Cc: dt@FreeBSD.ORG, bde@FreeBSD.ORG, jhk@FreeBSD.ORG, dg@FreeBSD.ORG Subject: Re: kern/8309 > #9 0xf013742b in panic (fmt=0xf01ffbb9 "rslock: cpu: %d, addr: 0x%08x, > lock: 0x%08x") at ../../kern/kern_shutdown.c:428 > #10 0xf01ffbb9 in bsl1 () simple_lock (i.e. s_lock) is frameless. The caller is vinvalbuf. > #11 0xf01e1e2c in vm_object_terminate (object=0xf024b014) at > ../../vm/vm_object.c:444 vfs_subr.c has changed recently dt 1998/10/12 13:14:09 PDT Modified files: sys/kern vfs_subr.c Log: UnVMIO vnodes of block devices when they are no longer in use. (Some things, like msdosfs, do not work (panic) on devices with VMIO enabled. FFS enable VMIO on mounted devices, and nothing previously disabled it, so, after you mounted FFS floppy, you could not mount msdosfs floppy anymore...) This is mostly a quick before-release fix. Reviewed by: bde Revision Changes Path 1.164 +13 -2 src/sys/kern/vfs_subr.c That change is broken with regard to locking. vm_object_terminate might block. Thus, the vnode interlock should not be held. Instead, a full lock should be held. Moving the calls to vfs_object_destroy to right before the calls to VOP_INACTIVE looks like an easy fix, but that would introduce a potential vnode leak, since resident page count might be nonzero before vfs_object_destroy is called. By adding some code to vfs_object_destroy, this leak might be plugged. There is very little time left before 3.0 is released. I'll leave this task to the Release Engineer, expecting him to delegate this to somebody else on the CC list. Index: vfs_subr.c =================================================================== RCS file: /home/ncvs/src/sys/kern/vfs_subr.c,v retrieving revision 1.165 diff -u -r1.165 vfs_subr.c --- vfs_subr.c 1998/10/13 08:24:41 1.165 +++ vfs_subr.c 1998/10/14 01:15:57 @@ -1306,8 +1316,13 @@ struct vnode* vp; { if (vp->v_type == VBLK && vp->v_object != NULL && - vp->v_object->ref_count == 0) + vp->v_object->ref_count == 0) { vm_object_terminate(vp->v_object); + simple_lock(&vp->v_interlock); + if (VSHOULDFREE(vp)) + vfree(vp); + simple_unlock(&vp->v_interlock); + } } /* @@ -1336,7 +1351,6 @@ if (vp->v_usecount == 1) { - vfs_object_destroy(vp); vp->v_usecount--; if (VSHOULDFREE(vp)) vfree(vp); @@ -1346,6 +1360,7 @@ * vrele, we explicitly lock the vnode before calling VOP_INACTIVE. */ if (vn_lock(vp, LK_EXCLUSIVE | LK_INTERLOCK, p) == 0) { + vfs_object_destroy(vp); VOP_INACTIVE(vp, p); } @@ -1381,7 +1396,6 @@ if (vp->v_usecount == 1) { - vfs_object_destroy(vp); vp->v_usecount--; if (VSHOULDFREE(vp)) vfree(vp); @@ -1391,6 +1405,7 @@ * vrele, we explicitly lock the vnode before calling VOP_INACTIVE. */ simple_unlock(&vp->v_interlock); + vfs_object_destroy(vp); VOP_INACTIVE(vp, p); } else { - Tor Egge To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 11:20:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA02888 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 11:20:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA02821 for ; Wed, 14 Oct 1998 11:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA15070; Wed, 14 Oct 1998 11:20:01 -0700 (PDT) Date: Wed, 14 Oct 1998 11:20:01 -0700 (PDT) Message-Id: <199810141820.LAA15070@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Brian Somers Subject: Re: conf/8306: NATD get loaded late in bootsequence Reply-To: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/8306; it has been noted by GNATS. From: Brian Somers To: gelderen@mediaport.org Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: conf/8306: NATD get loaded late in bootsequence Date: Wed, 14 Oct 1998 15:32:49 +0100 > > >Number: 8306 > >Category: conf > >Synopsis: NATD get loaded late in bootsequence [.....] > >Description: > I've enabled natd in my rc.conf which works fine except when booting. This > has something to do with NATD only getting loaded in pass 3 of rc.network. Natd needs to move to /sbin if we're going to bring it forward in the boot sequence. As it is, natd could live on an NFS disk that's accessed through an interface that runs natd.... -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 13:49:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23433 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 13:49:04 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23416; Wed, 14 Oct 1998 13:48:58 -0700 (PDT) (envelope-from cwt@FreeBSD.org) From: Chris Timmons Received: (from cwt@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA20733; Wed, 14 Oct 1998 13:48:56 -0700 (PDT) Date: Wed, 14 Oct 1998 13:48:56 -0700 (PDT) Message-Id: <199810142048.NAA20733@freefall.freebsd.org> To: skynyrd@opus.cts.cwu.edu, cwt@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/8309 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: SMP panic via reboot(8): "panic: rslock: ..." State-Changed-From-To: open-closed State-Changed-By: cwt State-Changed-When: Wed Oct 14 13:43:57 PDT 1998 State-Changed-Why: The changes to vfs_subr.c which caused the problem are reverted in version 1.166 of that file, and I can no longer reproduce the problem. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 14:37:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA00394 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 14:37:20 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA00385 for ; Wed, 14 Oct 1998 14:37:18 -0700 (PDT) (envelope-from Studded@gorean.org) Received: from gorean.org (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id OAA08274; Wed, 14 Oct 1998 14:36:49 -0700 (PDT) (envelope-from Studded@gorean.org) Message-ID: <36251970.AB084DBD@gorean.org> Date: Wed, 14 Oct 1998 14:36:48 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.5b2 [en] (X11; I; FreeBSD 2.2.7-STABLE-1009 i386) X-Accept-Language: en MIME-Version: 1.0 To: Hans Petter Bieker CC: "Matthew D. Fuller" , bugs@FreeBSD.ORG Subject: Re: bin/6325 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hans Petter Bieker wrote: > > On Wed, 14 Oct 1998, Matthew D. Fuller wrote: > > > As this is biting me now that I'm thinking about 16 char username ;) > > Is there any reason this hasn't been MFC'd? I don't see it in my latest > > cvs co, and the patch looks to apply with narry a change. > > That would break old wtmp files... How will changing the way 'w' calculates its header size break wtmp files? Doug -- *** Chief Operations Officer, DALnet IRC network *** Go PADRES! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 15:01:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA04092 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 15:01:17 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA03998; Wed, 14 Oct 1998 15:00:53 -0700 (PDT) (envelope-from nate@FreeBSD.org) From: Nate Williams Received: (from nate@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA23722; Wed, 14 Oct 1998 15:00:51 -0700 (PDT) Date: Wed, 14 Oct 1998 15:00:51 -0700 (PDT) Message-Id: <199810142200.PAA23722@freefall.freebsd.org> To: axl@iafrica.com, nate@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG, nate@FreeBSD.ORG Subject: Re: conf/8162 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: [PATCH] src/etc/syslog.conf won't use spaces as field separators State-Changed-From-To: open-closed State-Changed-By: nate State-Changed-When: Wed Oct 14 15:00:00 PDT 1998 State-Changed-Why: Applied to both -current and -stable (well, in a second to -stable). Responsible-Changed-From-To: freebsd-bugs->nate Responsible-Changed-By: nate Responsible-Changed-When: Wed Oct 14 15:00:00 PDT 1998 Responsible-Changed-Why: I did it! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 15:30:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA08382 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 15:30:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA08318 for ; Wed, 14 Oct 1998 15:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA24828; Wed, 14 Oct 1998 15:30:01 -0700 (PDT) Received: from time.cdrom.com (time.cdrom.com [204.216.27.226]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA07443 for ; Wed, 14 Oct 1998 15:26:04 -0700 (PDT) (envelope-from jkh@time.cdrom.com) Received: (from jkh@localhost) by time.cdrom.com (8.8.8/8.8.8) id PAA29825; Wed, 14 Oct 1998 15:26:06 -0700 (PDT) (envelope-from jkh) Message-Id: <199810142226.PAA29825@time.cdrom.com> Date: Wed, 14 Oct 1998 15:26:06 -0700 (PDT) From: "Andrew J. Korty" To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8318: Update to cy driver. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8318 >Category: kern >Synopsis: Add break support to cy driver. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 14 15:30:00 PDT 1998 >Last-Modified: >Originator: "Andrew J. Korty" >Organization: Purdue University >Release: FreeBSD 3.0-current i386 >Environment: >Description: Patch to add support for the TIOCSBRK and TIOCCBRK ioctls to the FreeBSD driver for the Cyclades Cyclom-Y (cy). We use our Cyclades on our console server, so it's more than just a convenience to be able to ioctl() a break and drop into the PROM or DDB. We'd been living with it for a while until last week when I got fed up and fixed the driver. >How-To-Repeat: >Fix: *** sys/i386/isa/cy.c.orig Sun Aug 23 03:26:40 1998 --- sys/i386/isa/cy.c Wed Oct 14 16:42:02 1998 *************** *** 37,43 **** /* * TODO: - * Implement BREAK. * Fix overflows when closing line. * Atomic COR change. * Consoles. --- 37,42 ---- *************** *** 308,313 **** --- 307,315 ---- u_char channel_control;/* CD1400 CCR control command shadow */ u_char cor[3]; /* CD1400 COR1-3 shadows */ u_char intr_enable; /* CD1400 SRER shadow */ + u_char brk; + #define COM_SBRK 0x01 /* start break */ + #define COM_CBRK 0x02 /* end break */ /* * Ping-pong input buffers. The extra factor of 2 in the sizes is *************** *** 1333,1350 **** & CD1400_xIVR_CHAN)); #endif if (com->state >= (CS_BUSY | CS_TTGO | CS_ODEVREADY)) { u_char *ioptr; u_int ocount; ioptr = com->obufq.l_head; ocount = com->obufq.l_tail - ioptr; if (ocount > CD1400_TX_FIFO_SIZE) ocount = CD1400_TX_FIFO_SIZE; com->bytes_out += ocount; do ! cd_outb(iobase, CD1400_TDR, cy_align, ! *ioptr++); while (--ocount != 0); com->obufq.l_head = ioptr; if (ioptr >= com->obufq.l_tail) { --- 1335,1379 ---- & CD1400_xIVR_CHAN)); #endif + if (com->brk & COM_SBRK) { + cd_outb(iobase, CD1400_TDR, cy_align, 0); + cd_outb(iobase, CD1400_TDR, cy_align, 0x81); + } + if (com->brk & COM_CBRK) { + cd_outb(iobase, CD1400_TDR, cy_align, 0); + cd_outb(iobase, CD1400_TDR, cy_align, 0x83); + } + if (com->state >= (CS_BUSY | CS_TTGO | CS_ODEVREADY)) { u_char *ioptr; u_int ocount; ioptr = com->obufq.l_head; ocount = com->obufq.l_tail - ioptr; + if (com->brk) + ocount -= 2; if (ocount > CD1400_TX_FIFO_SIZE) ocount = CD1400_TX_FIFO_SIZE; com->bytes_out += ocount; do ! /* ! * Check for NULs and double them up. ! * We've turned on Embedded Trasmit ! * Commands, for which NUL is the escape ! * character. Therefore, bona-fide NULs ! * must be escaped. ! */ ! if (*ioptr) ! cd_outb(iobase, CD1400_TDR, ! cy_align, *ioptr++); ! else ! if (1 < ocount) { ! cd_outb(iobase, CD1400_TDR, ! cy_align, *ioptr++); ! cd_outb(iobase, CD1400_TDR, ! cy_align, 0); ! --ocount; ! } while (--ocount != 0); com->obufq.l_head = ioptr; if (ioptr >= com->obufq.l_tail) { *************** *** 1373,1378 **** --- 1402,1408 ---- } } } + com->brk = 0; /* terminate service context */ #ifdef PollMode *************** *** 1502,1515 **** cd_outb(iobase, CD1400_CAR, com->cy_align, MINOR_TO_UNIT(mynor) & CD1400_CAR_CHAN); switch (cmd) { - #if 0 case TIOCSBRK: ! outb(iobase + com_cfcr, com->cfcr_image |= CFCR_SBREAK); break; case TIOCCBRK: ! outb(iobase + com_cfcr, com->cfcr_image &= ~CFCR_SBREAK); break; - #endif /* 0 */ case TIOCSDTR: (void)commctl(com, TIOCM_DTR, DMBIS); break; --- 1532,1547 ---- cd_outb(iobase, CD1400_CAR, com->cy_align, MINOR_TO_UNIT(mynor) & CD1400_CAR_CHAN); switch (cmd) { case TIOCSBRK: ! com->brk |= COM_SBRK; ! if (!(tp->t_state & TS_BUSY)) ! comstart(tp); break; case TIOCCBRK: ! com->brk |= COM_CBRK; ! if (!(tp->t_state & TS_BUSY)) ! comstart(tp); break; case TIOCSDTR: (void)commctl(com, TIOCM_DTR, DMBIS); break; *************** *** 1888,1893 **** --- 1920,1927 ---- if (cflag & CCTS_OFLOW) opt |= CD1400_COR2_CCTS_OFLOW; #endif + /* enable Embedded Transmit Commands */ + opt |= CD1400_COR2_ETC; if (opt != com->cor[1]) { cor_change |= CD1400_CCR_COR2; cd_outb(iobase, CD1400_COR2, com->cy_align, com->cor[1] = opt); *************** *** 2113,2118 **** --- 2147,2155 ---- cd_outb(iobase, CD1400_SRER, com->cy_align, com->intr_enable |= CD1400_SRER_TXRDY); } + if (com->brk) + cd_outb(iobase, CD1400_SRER, com->cy_align, + com->intr_enable |= CD1400_SRER_TXRDY); if (tp->t_state & TS_TBLOCK) { if (com->mcr_image & com->mcr_rts && com->state & CS_RTS_IFLOW) #if 0 >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 16:30:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA18286 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 16:30:22 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA18186 for ; Wed, 14 Oct 1998 16:30:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA26789; Wed, 14 Oct 1998 16:30:01 -0700 (PDT) Received: from froggy.anchorage.ptialaska.net (froggy.anchorage.ptialaska.net [208.151.119.238]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA17260 for ; Wed, 14 Oct 1998 16:24:45 -0700 (PDT) (envelope-from abc@froggy.anchorage.ptialaska.net) Received: (from abc@localhost) by froggy.anchorage.ptialaska.net (8.8.8/8.8.8) id OAA11388; Wed, 14 Oct 1998 14:02:04 GMT (envelope-from abc) Message-Id: <199810141402.OAA11388@froggy.anchorage.ptialaska.net> Date: Wed, 14 Oct 1998 14:02:04 GMT From: groggy@iname.com Reply-To: groggy@iname.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8319: lost alias due to exports in .profile Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8319 >Category: bin >Synopsis: lost alias due to exports in .profile >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 14 16:30:01 PDT 1998 >Last-Modified: >Originator: Steve Howe >Organization: none >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: sh shell sh shell (login time) >Description: if a ".profile" contains "export VAR=value" lines, aliases are lost from the file in the ENV variable when logging into a 2.2.7 system. >How-To-Repeat: IN A USER DIRECTORY: (the alias "a" will not function unless export TERM=cons25 -> TERM=cons25; export TERM) #!/bin/sh echo ~/.profile export TERM=cons25 ENV=~/.shinit; export ENV echo #!/bin/sh #echo ~/.shinit a="alias|sort|more" q="cd /home/user; ls" >Fix: unknown >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 18:49:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA08899 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 18:49:17 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA08892; Wed, 14 Oct 1998 18:49:16 -0700 (PDT) (envelope-from msmith@FreeBSD.org) From: Michael Smith Received: (from msmith@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id SAA01662; Wed, 14 Oct 1998 18:49:14 -0700 (PDT) Date: Wed, 14 Oct 1998 18:49:14 -0700 (PDT) Message-Id: <199810150149.SAA01662@freefall.freebsd.org> To: wscott@ichips.intel.com, msmith@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/7810 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: popen fails to set close on exec flag State-Changed-From-To: open-closed State-Changed-By: msmith State-Changed-When: Wed Oct 14 18:47:48 PDT 1998 State-Changed-Why: The implementation fix for popen() was incorporated (with style changes). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 19:10:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA12231 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 19:10:13 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA12139 for ; Wed, 14 Oct 1998 19:10:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id TAA02342; Wed, 14 Oct 1998 19:10:01 -0700 (PDT) Received: from poynting.physics.purdue.edu (poynting.physics.purdue.edu [128.210.146.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA11731 for ; Wed, 14 Oct 1998 19:06:37 -0700 (PDT) (envelope-from ajk@physics.purdue.edu) Received: (from ajk@localhost) by poynting.physics.purdue.edu (8.8.8/8.8.8) id VAA20872; Wed, 14 Oct 1998 21:06:18 -0500 (EST) Message-Id: <199810150206.VAA20872@poynting.physics.purdue.edu> Date: Wed, 14 Oct 1998 21:06:18 -0500 (EST) From: ajk@purdue.edu Reply-To: ajk@purdue.edu To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: gnu/8321: troff -me *(td (today's date) string macro broken Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8321 >Category: gnu >Synopsis: troff -me \*(td (today's date) string macro broken >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 14 19:10:01 PDT 1998 >Last-Modified: >Originator: Andrew J. Korty >Organization: Purdue University Physics Department >Release: FreeBSD 3.0BETA-19981013 i386 >Environment: FreeBSD volta.physics.purdue.edu 3.0-BETA FreeBSD 3.0-BETA #3: Tue Oct 13 15:04:20 EST 1998 csg@volta.physics.purdue.edu:/usr/src/sys/compile/VOLTA i386 >Description: The \*(td string macro, which is supposed to display today's date in the form "October 14, 1998". Apparently, a Y2k fix makes it now display "October 14, 98+1900". Doesn't look like you can perform arithmetic in a string definition. >How-To-Repeat: Just use \*(td in a -me document. >Fix: The following patch works, though there might be better solutions ... *** contrib/groff/tmac/tmac.e.orig Wed Oct 14 20:52:49 1998 --- contrib/groff/tmac/tmac.e Wed Oct 14 20:55:39 1998 *************** *** 1519,1525 **** .if \n(dw=5 .ds dw Thursday .if \n(dw=6 .ds dw Friday .if \n(dw=7 .ds dw Saturday ! .ds td \*(mo \n(dy, \n(yr+1900 .\" *** PARAMETRIC INITIALIZATIONS *** .rr x .nr $v \n(.v00+\n(.sp-1/\n(.sp \" vs as percentage of ps for .sz request --- 1519,1526 ---- .if \n(dw=5 .ds dw Thursday .if \n(dw=6 .ds dw Friday .if \n(dw=7 .ds dw Saturday ! .nr _y \n(yr+1900 ! .ds td \*(mo \n(dy, \n(_y .\" *** PARAMETRIC INITIALIZATIONS *** .rr x .nr $v \n(.v00+\n(.sp-1/\n(.sp \" vs as percentage of ps for .sz request >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 20:30:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA23815 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 20:30:11 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA23790 for ; Wed, 14 Oct 1998 20:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA04575; Wed, 14 Oct 1998 20:30:01 -0700 (PDT) Received: from froggy.anchorage.ptialaska.net (froggy.anchorage.ptialaska.net [208.151.119.238]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA23555 for ; Wed, 14 Oct 1998 20:28:12 -0700 (PDT) (envelope-from abc@froggy.anchorage.ptialaska.net) Received: (from abc@localhost) by froggy.anchorage.ptialaska.net (8.8.8/8.8.8) id DAA03188; Thu, 15 Oct 1998 03:29:06 GMT (envelope-from abc) Message-Id: <199810150329.DAA03188@froggy.anchorage.ptialaska.net> Date: Thu, 15 Oct 1998 03:29:06 GMT From: groggy@iname.com Reply-To: groggy@iname.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8322: Mail doesn't respect REPLYTO in .mailrc Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8322 >Category: bin >Synopsis: Mail doesn't respect REPLYTO in .mailrc >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 14 20:30:01 PDT 1998 >Last-Modified: >Originator: Steve Howe >Organization: none >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: sh shell sh and ~/.mailrc >Description: if you (according to the manpage) say "set REPLYTO=abc@xyz.net" in your ~/.mailrc file, the "Reply-To:" field remains unaltered. >How-To-Repeat: Insert a "set REPLYTO=abc@xyz.net" line in your ~/.mailrc file. >Fix: you must work around this problem by saying "export REPLYTO=abc@xyz.net" in the sh shell before starting Mail. (It would be nice to be able to set "From:" also, which is not currently possible. it is VERY necessary when mailing from CGI scripts (internet shops, etc) so that you can mail on the command line without the sendee getting mail from Apache (ie - From: Unprivelaged User ) >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Wed Oct 14 22:20:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA04824 for freebsd-bugs-outgoing; Wed, 14 Oct 1998 22:20:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA04779 for ; Wed, 14 Oct 1998 22:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA07795; Wed, 14 Oct 1998 22:20:01 -0700 (PDT) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA04567 for ; Wed, 14 Oct 1998 22:17:54 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id WAA06764 for ; Wed, 14 Oct 1998 22:17:38 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma006760; Wed Oct 14 22:17:35 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id WAA11996; Wed, 14 Oct 1998 22:17:35 -0700 (PDT) Message-Id: <199810150517.WAA11996@bubba.whistle.com> Date: Wed, 14 Oct 1998 22:17:35 -0700 (PDT) From: Archie Cobbs Reply-To: archie@whistle.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8324: failure to deliver SIGIO when fildes marked for async i/o Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8324 >Category: kern >Synopsis: failure to deliver SIGIO when fildes marked for async i/o >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 14 22:20:00 PDT 1998 >Last-Modified: >Originator: Archie Cobbs >Organization: Whistle Communications, Inc. >Release: FreeBSD 2.2.6-RELEASE i386 >Environment: 2.2.7 and 3.0 >Description: Run the program below. It will periodically hang until you press return (which causes a readability condition). It should (as far as I can tell) generate continuous output without pausing at all. >How-To-Repeat: > From majordom@FreeBSD.ORG Wed Oct 14 18:42:26 1998 > From: Archie Cobbs > Message-Id: <199810150118.SAA02921@bubba.whistle.com> > Subject: bug with SIGIO? > To: freebsd-hackers@FreeBSD.ORG > Date: Wed, 14 Oct 1998 18:18:55 -0700 (PDT) > X-Mailer: ELM [version 2.4ME+ PL38 (25)] > MIME-Version: 1.0 > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: 7bit > Sender: owner-freebsd-hackers@FreeBSD.ORG > Precedence: bulk > X-Loop: FreeBSD.ORG > Status: RO > > Hi, > The program included below seems to indicate a bug with SIGIO, > in that the process is not always getting signalled when the > file descriptor is writable. > > If you run this program, it outputs for a while, then stops, > then resumes when you hit return (which causes a readable condition). > > I've verified this behavior in 2.2.7 but not 3.0-current. > > Q1. Is this in fact a bug, or else a misunderstanding? > Q2. If this is not a bug, what is the correct way to do this? > > I apologize if this is already know; didn't find anything > in the PR database. > > Thanks, > -Archie > > ___________________________________________________________________________ > Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com > > #include > #include > #include > #include > #include > #include > > void catch() { } > > int > main(int ac, void *av[]) > { > sigset_t empty, block; > int on = 1; > > fcntl(1, F_SETFL, O_NONBLOCK); > ioctl(1, FIOASYNC, &on); > > sigemptyset(&empty); > sigemptyset(&block); > sigaddset(&block, SIGIO); > sigprocmask(SIG_BLOCK, &block, NULL); > signal(SIGIO, catch); > > for (;;) { > int w = write(1, "!@#$%", 5); > if (w < 0 && errno == EWOULDBLOCK) { > sigsuspend(&empty); > write(1, " resumed ", 7); > } > } > } > >Fix: ?? >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 00:12:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA15321 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 00:12:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from pe049.persbraten.vgs.no (pe049.persbraten.vgs.no [194.143.107.50]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA15316 for ; Thu, 15 Oct 1998 00:12:02 -0700 (PDT) (envelope-from zerium@webindex.no) Received: from pe049.persbraten.vgs.no (zerium@pe049.persbraten.vgs.no [194.143.107.50]) by pe049.persbraten.vgs.no (8.8.8/8.8.7) with SMTP id JAA21951; Thu, 15 Oct 1998 09:11:27 +0200 (CEST) Date: Thu, 15 Oct 1998 09:11:27 +0200 (CEST) From: Hans Petter Bieker X-Sender: zerium@pe049.persbraten.vgs.no To: Studded cc: "Matthew D. Fuller" , bugs@FreeBSD.ORG Subject: Re: bin/6325 In-Reply-To: <36251970.AB084DBD@gorean.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 14 Oct 1998, Studded wrote: > How will changing the way 'w' calculates its header size break wtmp > files? Well, the old files has a lenght of 8. If you read that with a fixed size of 16 something breaks. Just read the info about upgrading to v3.0.. -bieker- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 00:25:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA16357 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 00:25:51 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA16351 for ; Thu, 15 Oct 1998 00:25:50 -0700 (PDT) (envelope-from Studded@gorean.org) Received: from gorean.org (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id AAA14479; Thu, 15 Oct 1998 00:25:23 -0700 (PDT) (envelope-from Studded@gorean.org) Message-ID: <3625A362.B6EBB64@gorean.org> Date: Thu, 15 Oct 1998 00:25:22 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.5b2 [en] (X11; I; FreeBSD 2.2.7-STABLE-1009 i386) X-Accept-Language: en MIME-Version: 1.0 To: Hans Petter Bieker CC: "Matthew D. Fuller" , bugs@FreeBSD.ORG Subject: Re: bin/6325 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hans Petter Bieker wrote: > > On Wed, 14 Oct 1998, Studded wrote: > > > How will changing the way 'w' calculates its header size break wtmp > > files? > > Well, the old files has a lenght of 8. If you read that with a fixed > size of 16 something breaks. Just read the info about upgrading to v3.0.. Nothing personal, but you clearly have no idea what we're talking about here. That commit refers to calculating the size of the header for the 'w' command based on the maximum username size on that machine. It has nothing to do with any files, that's a whole seperate issue. Doug -- *** Chief Operations Officer, DALnet IRC network *** Go PADRES! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 03:20:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA01560 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 03:20:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA01518 for ; Thu, 15 Oct 1998 03:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id DAA18961; Thu, 15 Oct 1998 03:20:01 -0700 (PDT) Received: from bento.freebsd.org (bento.FreeBSD.ORG [204.216.27.23]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA00378 for ; Thu, 15 Oct 1998 03:10:05 -0700 (PDT) (envelope-from wosch@bento.freebsd.org) Received: (from wosch@localhost) by bento.freebsd.org (8.9.1/8.8.8) id DAA09356; Thu, 15 Oct 1998 03:10:42 -0700 (PDT) (envelope-from wosch) Message-Id: <199810151010.DAA09356@bento.freebsd.org> Date: Thu, 15 Oct 1998 03:10:42 -0700 (PDT) From: Wolfram Schneider Reply-To: wosch@bento.freebsd.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: conf/8330: modload usage in etc/etc.i386/rc.i386 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8330 >Category: conf >Synopsis: modload usage in etc/etc.i386/rc.i386 >Confidential: yes >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 15 03:20:00 PDT 1998 >Last-Modified: >Originator: Wolfram Schneider >Organization: >Release: FreeBSD 3.0-BETA i386 >Environment: >Description: Modload should not temp write files with a uniq name into the public writable directory /tmp >How-To-Repeat: >Fix: Index: rc.i386 =================================================================== RCS file: /home/ncvs/src/etc/etc.i386/rc.i386,v retrieving revision 1.35 diff -u -r1.35 rc.i386 --- rc.i386 1998/07/22 05:38:58 1.35 +++ rc.i386 1998/10/15 10:03:47 @@ -95,7 +95,7 @@ if [ "X${saver}" != X"NO" ] ; then echo -n ' screensaver' modstat | grep -q _saver || \ - modload -u -o /tmp/saver_mod -q /lkm/${saver}_saver_mod.o + modload -u -o /var/run/saver_mod -q /lkm/${saver}_saver_mod.o fi # mouse daemon >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 08:17:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA06193 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 08:17:25 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA06184; Thu, 15 Oct 1998 08:17:18 -0700 (PDT) (envelope-from des@FreeBSD.org) From: "Dag-Erling C. Sm\xf8rgrav" Received: (from des@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA06370; Thu, 15 Oct 1998 08:17:15 -0700 (PDT) Date: Thu, 15 Oct 1998 08:17:15 -0700 (PDT) Message-Id: <199810151517.IAA06370@freefall.freebsd.org> To: groggy@iname.com, des@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8319 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: lost alias due to exports in .profile State-Changed-From-To: open-closed State-Changed-By: des State-Changed-When: Thu Oct 15 08:17:03 PDT 1998 State-Changed-Why: Pilot error. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 08:20:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA06699 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 08:20:04 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA06656 for ; Thu, 15 Oct 1998 08:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA06440; Thu, 15 Oct 1998 08:20:00 -0700 (PDT) Date: Thu, 15 Oct 1998 08:20:00 -0700 (PDT) Message-Id: <199810151520.IAA06440@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Subject: Re: bin/8319: lost alias due to exports in .profile Reply-To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8319; it has been noted by GNATS. From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) To: groggy@iname.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/8319: lost alias due to exports in .profile Date: 15 Oct 1998 17:16:37 +0200 groggy@iname.com writes: > #!/bin/sh > #echo ~/.shinit > a="alias|sort|more" > q="cd /home/user; ls" That's not going to work. Use: alias a='alias|sort|more' alias q='cd $HOME; ls' DES -- Dag-Erling Smørgrav - dag-erli@ifi.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 09:30:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17038 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 09:30:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA16941 for ; Thu, 15 Oct 1998 09:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA09151; Thu, 15 Oct 1998 09:30:00 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA15891; Thu, 15 Oct 1998 09:25:05 -0700 (PDT) (envelope-from nobody) Message-Id: <199810151625.JAA15891@hub.freebsd.org> Date: Thu, 15 Oct 1998 09:25:05 -0700 (PDT) From: info@highwind.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/8335: pthread_cond_timedwait() is broken Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8335 >Category: kern >Synopsis: pthread_cond_timedwait() is broken >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 15 09:30:00 PDT 1998 >Last-Modified: >Originator: Robert Fleischman >Organization: HighWind Software >Release: 3.0 >Environment: FreeBSD zonda.highwind.com 3.0-19980831-SNAP FreeBSD 3.0-19980831-SNAP #0: Mon Aug 31 14:03:19 GMT 1998 root@make.ican.net:/usr/src/sys/compile/GENERIC i386 >Description: It appears that in recent 3.0 kernels, pthread_cond_timedwait() doesn't work properly. This is true even with the latest libc_r. I've included a test program. >How-To-Repeat: /* Illustration of FreeBSD pthread_cond_timedwait() bug This program sets up a timed conditional wait. It just calls cond_timed_wait(). This should BLOCK for 15 seconds and the program should terminate normally. However, because of some bugs in FreeBSD, the cond_timed_wait returns with no error. It looks as if someone has signaled the condition. Clearly, that is impossible and there is some kind of bug! g++ -o condBug -D_REENTRANT -D_THREAD_SAFE -g -Wall condBug.C -pthread */ #include #include #include int main(int, char **) { pthread_mutex_t lock; pthread_cond_t condition; // Initialize Lock pthread_mutexattr_t lock_attr; assert(!::pthread_mutexattr_init(&lock_attr)); assert(!::pthread_mutex_init(&lock, &lock_attr)); assert(!::pthread_mutexattr_destroy(&lock_attr)); // Initialize Condition pthread_condattr_t cond_attr; assert(!::pthread_condattr_init(&cond_attr)); assert(!::pthread_cond_init(&condition, &cond_attr)); assert(!::pthread_condattr_destroy(&cond_attr)); // Grab current time time_t currentTime = ::time(0); // Lock the lock assert(!::pthread_mutex_lock(&lock)); // Wait in the condition for 15 seconds timespec timeOut; timeOut.tv_sec = currentTime + 15; timeOut.tv_nsec = 0; int err = ::pthread_cond_timedwait(&condition, &lock, &timeOut); // We better get an error (we should have TIMED OUT!) assert(err); // 15 seconds SHOULD have passed, so 5 seconds DEFINATELY should have!! assert(::time(0) >= currentTime + 5); return EXIT_SUCCESS; } >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 11:00:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA00711 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 11:00:08 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA00622 for ; Thu, 15 Oct 1998 11:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA12914; Thu, 15 Oct 1998 11:00:01 -0700 (PDT) Date: Thu, 15 Oct 1998 11:00:01 -0700 (PDT) Message-Id: <199810151800.LAA12914@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Dmitrij Tejblum Subject: Re: kern/8335: pthread_cond_timedwait() is broken Reply-To: Dmitrij Tejblum Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/8335; it has been noted by GNATS. From: Dmitrij Tejblum To: info@highwind.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: kern/8335: pthread_cond_timedwait() is broken Date: Thu, 15 Oct 1998 21:58:23 +0400 I am unable to reproduce this problem on 3 different machines with latest libc_r and reasonable current kernels. (As I know, I am not alone...) Dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 11:10:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA02646 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 11:10:13 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA02573 for ; Thu, 15 Oct 1998 11:10:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA13335; Thu, 15 Oct 1998 11:10:01 -0700 (PDT) Date: Thu, 15 Oct 1998 11:10:01 -0700 (PDT) Message-Id: <199810151810.LAA13335@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: HighWind Software Information Subject: Re: kern/8335: pthread_cond_timedwait() is broken Reply-To: HighWind Software Information Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/8335; it has been noted by GNATS. From: HighWind Software Information To: tejblum@arc.hq.cti.ru Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: kern/8335: pthread_cond_timedwait() is broken Date: Thu, 15 Oct 1998 14:04:47 -0400 (EDT) I would like that bug to be removed. The very latest libc_r seems to fix the problem. After CAREFULLY rebuilding our libc_r (prefaced by a "make clean") it seems the problem is NOT reproduceble. Feel free to close the bug. -Rob "quite red faced for not typing 'make clean'" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 11:11:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA02831 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 11:11:16 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA02778; Thu, 15 Oct 1998 11:10:55 -0700 (PDT) (envelope-from dt@FreeBSD.org) From: Dmitrij Tejblum Received: (from dt@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA13463; Thu, 15 Oct 1998 11:10:53 -0700 (PDT) Date: Thu, 15 Oct 1998 11:10:53 -0700 (PDT) Message-Id: <199810151810.LAA13463@freefall.freebsd.org> To: info@highwind.com, dt@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/8335 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: pthread_cond_timedwait() is broken State-Changed-From-To: open-closed State-Changed-By: dt State-Changed-When: Thu Oct 15 11:10:03 PDT 1998 State-Changed-Why: Closed on originator's request. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 11:43:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA08335 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 11:43:50 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from mailhost.rmci.net (mail.rmci.net [205.162.184.20]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA08324 for ; Thu, 15 Oct 1998 11:43:43 -0700 (PDT) (envelope-from srock@lcpid.com) Received: (qmail 18380 invoked from network); 15 Oct 1998 12:43:25 -0600 Received: from usr-if-40.rmci.net (HELO lcpid.com) (208.14.172.40) by mail.rmci.net with SMTP; 15 Oct 1998 12:43:25 -0600 Message-ID: <3626427C.C7A5125C@lcpid.com> Date: Thu, 15 Oct 1998 12:44:12 -0600 From: Stan Rock X-Mailer: Mozilla 4.07 [en] (Win98; I) MIME-Version: 1.0 To: freebsd-bugs@FreeBSD.ORG Subject: Geometry Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have fought this problem for quite a while. When FreeBSD boots to install (disk, or cd) it finds most large hard drives with a really high number of cylinders, 15 or 16 heads, 63 sectors. Most hard drives don't use this anymore. If they are autodetected like the ones I use its something like 1244 cylinders, 255 heads, and 63 sectors. If one wants to boot Win 98 / Linux / and FreeBSD this presents a problem. I realize you can change the geometry within the installation process and the installation will go smoothly BUT the problem is that is still won't boot unless you change your geometry. With the 1024 cylinder boundry this also creates a huge problem. I would suggest a better work around for this problem. I think that no matter how the hard drive is found at first it should result back to the changed geometry as default. Please let me know if you have any questions. Stan Rock stanrock@if.rmci.net Lucero Computer Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 13:40:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA26772 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 13:40:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA26761 for ; Thu, 15 Oct 1998 13:40:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA20691; Thu, 15 Oct 1998 13:40:02 -0700 (PDT) Received: from eubie.lbl.gov (eubie.lbl.gov [131.243.2.36]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA25834 for ; Thu, 15 Oct 1998 13:31:35 -0700 (PDT) (envelope-from jin@eubie.lbl.gov) Received: (from jin@localhost) by eubie.lbl.gov (8.9.1/8.9.1) id UAA25779; Thu, 15 Oct 1998 20:31:17 GMT (envelope-from jin) Message-Id: <199810152031.UAA25779@eubie.lbl.gov> Date: Thu, 15 Oct 1998 20:31:17 GMT From: Jin Guojun (FTG staff) Reply-To: jin@eubie.lbl.gov To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8338: ypserv fails to get master name for ypxfr Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8338 >Category: bin >Synopsis: ypserv fails to get master name for ypxfr >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 15 13:40:01 PDT 1998 >Last-Modified: >Originator: Jin Guojun (FTG staff) >Organization: >Release: FreeBSD 3.0-19981006-BETA i386 >Environment: All FreeBSD releases If use FreeBSD as YP slave server and Solaris as YP master server (not test other platform as master server yet) >Description: ypserv surpose to get master name 131.243.2.200 (rather than localhost name 131.243.2.36 as eubie itself) The problem seems to be in /usr/src/usr.sbin/ypserv/yp_serv.c marked "wrong name ??????" ypresp_master * ypproc_master_2_svc(ypreq_nokey *argp, struct svc_req *rqstp) { static ypresp_master result; static char ypvalbuf[YPMAXRECORD]; keydat key = { master_sz, master_string }; valdat val; result.peer = ""; #ifdef DB_CACHE if (yp_access(argp->map, argp->domain, (struct svc_req *)rqstp)) { #else if (yp_access(argp->map, (struct svc_req *)rqstp)) { #endif result.stat = YP_YPERR; return(&result); } if (argp->domain == NULL) { result.stat = YP_BADARGS; return (&result); } if (yp_select_map(argp->map, argp->domain, &key, 1) != YP_TRUE) { result.stat = yp_errno; return(&result); } /* * Note that we copy the data retrieved from the database to * a private buffer and NUL terminate the buffer rather than * terminating the data in place. We do this because by stuffing * a '\0' into data.data, we will actually be corrupting memory * allocated by the DB package. This is a bad thing now that we * cache DB handles rather than closing the database immediately. */ result.stat = yp_getbykey(&key, &val); /* wrong name ?????? */ if (result.stat == YP_TRUE) { bcopy((char *)val.valdat_val, (char *)&ypvalbuf, val.valdat_len); ypvalbuf[val.valdat_len] = '\0'; result.peer = (char *)&ypvalbuf; } else result.peer = ""; return (&result); } eubie# ypserv -d -n ypserv: procedure ypproc_xfr called from 131.243.2.200:755 ypserv: client is referencing map "passwd.byname". ypserv: procedure ypproc_xfr called from 131.243.2.200:755 ypserv: client is referencing map "passwd.byname". ypserv: looking up key [YP_MASTER_NAME] ypserv: result of lookup: key: [YP_MASTER_NAME] data: [eubie.lbl.gov] ypserv: procedure ypproc_master called from 131.243.2.36:761 ypserv: client is referencing map "passwd.byname". ypserv: looking up key [YP_MASTER_NAME] ypserv: result of lookup: key: [YP_MASTER_NAME] data: [eubie.lbl.gov] ypserv: procedure ypproc_order called from 131.243.2.36:758 ypserv: client is referencing map "passwd.byname". ypserv: looking up key [YP_LAST_MODIFIED] ypserv: result of lookup: key: [YP_LAST_MODIFIED] data: [908463640] ypserv: procedure ypproc_match called from 131.243.2.36:756 ypserv: client is referencing map "passwd.byname". ypserv: looking up key [YP_INTERDOMAIN] ypserv: procedure ypproc_match called from 131.243.2.36:754 ypserv: client is referencing map "passwd.byname". ypserv: looking up key [YP_SECURE] ypserv: procedure ypproc_xfr called from 131.243.2.12:761 ypserv: client is referencing map "passwd.byuid". ypserv: procedure ypproc_xfr called from 131.243.2.12:761 ypserv: client is referencing map "passwd.byuid". ypserv: looking up key [YP_MASTER_NAME] ypserv: result of lookup: key: [YP_MASTER_NAME] data: [eubie.lbl.gov] ypserv: procedure ypproc_master called from 131.243.2.36:749 ypserv: client is referencing map "passwd.byuid". ypserv: looking up key [YP_MASTER_NAME] ypserv: result of lookup: key: [YP_MASTER_NAME] data: [eubie.lbl.gov] ypserv: procedure ypproc_order called from 131.243.2.36:746 ypserv: client is referencing map "passwd.byuid". ypserv: looking up key [YP_LAST_MODIFIED] ypserv: result of lookup: key: [YP_LAST_MODIFIED] data: [908463640] ypserv: procedure ypproc_match called from 131.243.2.36:744 ypserv: client is referencing map "passwd.byuid". ypserv: looking up key [YP_INTERDOMAIN] ypserv: procedure ypproc_match called from 131.243.2.36:742 ypserv: client is referencing map "passwd.byuid". ypserv: looking up key [YP_SECURE] >How-To-Repeat: Just configure a FreeBSD host as YP slave server and use any other platform (Maybe FreeBSD too) as a master YP server. Try to yppush from master to slave (in master side, cd /var/yp enable YPPUSH, and make). >Fix: Not clear what is the correct fixing. I am currently write a wrapper for ypxfr to get a correct master name just for a temp solution. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 14:43:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA12196 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 14:43:54 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from wpaul@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA12183; Thu, 15 Oct 1998 14:43:52 -0700 (PDT) (envelope-from wpaul) Date: Thu, 15 Oct 1998 14:43:52 -0700 (PDT) From: Bill Paul Message-Id: <199810152143.OAA12183@hub.freebsd.org> To: jin@eubie.lbl.gov, wpaul, freebsd-bugs Subject: Re: bin/8338 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: ypserv fails to get master name for ypxfr State-Changed-From-To: open-closed State-Changed-By: wpaul State-Changed-When: Thu Oct 15 14:21:37 PDT 1998 State-Changed-Why: The code is correct. There is no bug here. The problem is a mis-configuration on your part, or a misunderstanding of how NIS works. The ypproc_master_2_svc() routine looks up the name of the master server by checking the YP_MASTER_NAME key which is encoded into the local copy of the map. It does _NOT_ trust the hostname supplied by the in the YPPROC_XFR request because the host that sends the request might lie, and trick the slave into transfering a map from a bogus host. You can look at the contents of the map on the slave using the yp_mkdb command. Do the following: # cd /var/yp/ # yp_mkdb -u passwd.byname | grep YP_MASTER_NAME You will see that there is a special record in the map database with a key of YP_MASTER_NAME and a data field with the name of the master host. This is the information that ypserv uses to determine the master name when it receives a YPPROC_XFR request. It deliberately ignores the hostname specified in the request arguments because it knows that it might be wrong, and the information in the map is always supposed to be correct. When you first initialize a slave, you need to use ypxfr to transfer copies manually onto the slave from the master. If you have FreeBSD 3.0, then the ypinit script will do this for you: use ypinit -s. After you do this, then the FreeBSD slave server will contain the correct YP_MASTER_NAME information. There are several reasons why may be having problems: - You previously set up the FreeBSD host as an NIS master server and did not erase the old maps before turning the machine into a slave. - The maps on the NIS master server have the wrong YP_MASTER_NAME in them. To check, do a yppoll passwd.byname from a client that is bound to the master name. If yppoll reports the wrong information, then you should rebuild the maps on the master server. I have been using a FreeBSD 3.0 machine as an NIS slave server for some time now using a SunOS 4.1.3 master, and it works perfectly once the slave has been initialized correctly. I would strongly suggest deleting all of the map files on the FreeBSD slave server and using ypinit -s to reinitialize the server. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 15:00:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA14125 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 15:00:18 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA14042 for ; Thu, 15 Oct 1998 15:00:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA25298; Thu, 15 Oct 1998 15:00:01 -0700 (PDT) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA13070 for ; Thu, 15 Oct 1998 14:53:03 -0700 (PDT) (envelope-from dougdougdougdoug@dt053nb4.san.rr.com) Received: (from dougdougdougdoug@localhost) by dt053nb4.san.rr.com (8.8.8/8.8.8) id VAA01700; Thu, 15 Oct 1998 21:52:44 GMT (envelope-from dougdougdougdoug) Message-Id: <199810152152.VAA01700@dt053nb4.san.rr.com> Date: Thu, 15 Oct 1998 21:52:44 GMT From: Studded@gorean.org Reply-To: Studded@gorean.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8339: [PATCH - MFC] for 'mail' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8339 >Category: bin >Synopsis: [PATCH - MFC] for 'mail' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 15 15:00:01 PDT 1998 >Last-Modified: >Originator: Doug >Organization: AAAG >Release: FreeBSD 2.2.7-STABLE-1015 i386 >Environment: Any 2.x system. >Description: The 'mail' program contains some overflowable arrays that lead to the dreaded, "mail in free(): warning: junk pointer, too high to make sense" warnings. >How-To-Repeat: Any use of 'mail' with a username, $TMPDIR, etc. which overflows the buffers causes the error. >Fix: Apply the following patch. This is a cvs diff between -Stable and -Current. The only thing I'm leaving out is the changes from vfork() -> fork() in cmd2.c and popen.c because they cause the junk pointer error again, and the whole fork/vfork thing is a -Current'ism. For the record, the changes in these patches are not my work, I'm just the tackle dummy. :) Thanks, Doug Index: collect.c =================================================================== RCS file: /home/ncvs/src/usr.bin/mail/collect.c,v retrieving revision 1.1.1.1.8.1 retrieving revision 1.4 diff -u -r1.1.1.1.8.1 -r1.4 --- collect.c 1998/03/08 09:46:35 1.1.1.1.8.1 +++ collect.c 1998/10/10 09:58:20 1.4 @@ -77,7 +77,7 @@ int lc, cc, escape, eofcount; register int c, t; char linebuf[LINESIZE], *cp; - extern char tempMail[]; + extern char *tempMail; char getsub; int omask; void collint(), collhup(), collstop(); @@ -472,7 +472,7 @@ { FILE *nf; sig_t sigint = signal(SIGINT, SIG_IGN); - extern char tempEdit[]; + extern char *tempEdit; char *shell; if ((nf = Fopen(tempEdit, "w+")) == NULL) { @@ -521,7 +521,7 @@ int f; { register int *msgvec; - extern char tempMail[]; + extern char *tempMail; struct ignoretab *ig; char *tabst; Index: edit.c =================================================================== RCS file: /home/ncvs/src/usr.bin/mail/edit.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- edit.c 1994/05/27 12:32:06 1.1.1.1 +++ edit.c 1998/10/10 09:58:20 1.2 @@ -148,7 +148,7 @@ time_t modtime; char *edit; struct stat statb; - extern char tempEdit[]; + extern char *tempEdit; if ((t = creat(tempEdit, readonly ? 0400 : 0600)) < 0) { perror(tempEdit); Index: lex.c =================================================================== RCS file: /home/ncvs/src/usr.bin/mail/lex.c,v retrieving revision 1.2.2.1 retrieving revision 1.5 diff -u -r1.2.2.1 -r1.5 --- lex.c 1998/03/08 09:46:49 1.2.2.1 +++ lex.c 1998/10/10 18:37:02 1.5 @@ -64,7 +64,7 @@ char isedit = *name != '%'; char *who = name[1] ? name + 1 : myname; static int shudclob; - extern char tempMesg[]; + extern char *tempMesg; extern int errno; if ((name = expand(name)) == NOSTR) Index: names.c =================================================================== RCS file: /home/ncvs/src/usr.bin/mail/names.c,v retrieving revision 1.2.6.1 retrieving revision 1.4 diff -u -r1.2.6.1 -r1.4 --- names.c 1998/03/08 09:47:02 1.2.6.1 +++ names.c 1998/10/10 09:58:20 1.4 @@ -223,7 +223,7 @@ char *date, *fname, *ctime(); FILE *fout, *fin; int ispipe; - extern char tempEdit[]; + extern char *tempEdit; top = names; np = names; Index: quit.c =================================================================== RCS file: /home/ncvs/src/usr.bin/mail/quit.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- quit.c 1994/05/27 12:32:07 1.1.1.1 +++ quit.c 1998/10/10 09:58:20 1.2 @@ -72,7 +72,7 @@ FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; register struct message *mp; register int c; - extern char tempQuit[], tempResid[]; + extern char *tempQuit, *tempResid; struct stat minfo; char *mbox; Index: send.c =================================================================== RCS file: /home/ncvs/src/usr.bin/mail/send.c,v retrieving revision 1.2.6.1 retrieving revision 1.5 diff -u -r1.2.6.1 -r1.5 --- send.c 1998/03/08 09:47:07 1.2.6.1 +++ send.c 1998/10/10 09:58:20 1.5 @@ -428,7 +428,7 @@ struct header *hp; FILE *fi; { - extern char tempMail[]; + extern char *tempMail; register FILE *nfo, *nfi; register int c; Index: temp.c =================================================================== RCS file: /home/ncvs/src/usr.bin/mail/temp.c,v retrieving revision 1.2.6.1 retrieving revision 1.5 diff -u -r1.2.6.1 -r1.5 --- temp.c 1997/07/28 06:43:49 1.2.6.1 +++ temp.c 1998/10/10 19:01:47 1.5 @@ -49,11 +49,11 @@ * Give names to all the temporary files that we will need. */ -char tempMail[24]; -char tempQuit[24]; -char tempEdit[24]; -char tempResid[24]; -char tempMesg[24]; +char *tempMail; +char *tempQuit; +char *tempEdit; +char *tempResid; +char *tempMesg; char *tmpdir; void @@ -67,21 +67,31 @@ else { len = strlen(tmpdir); if ((cp = malloc(len + 2)) == NULL) - err(1, NULL); + panic("Out of memory"); (void)strcpy(cp, tmpdir); cp[len] = '/'; cp[len + 1] = '\0'; tmpdir = cp; } - + len = strlen(tmpdir); + if ((tempMail = malloc(len + sizeof("RsXXXXXX"))) == NULL) + panic("Out of memory"); strcpy(tempMail, tmpdir); mktemp(strcat(tempMail, "RsXXXXXX")); + if ((tempResid = malloc(len + sizeof("RqXXXXXX"))) == NULL) + panic("Out of memory"); strcpy(tempResid, tmpdir); mktemp(strcat(tempResid, "RqXXXXXX")); + if ((tempQuit = malloc(len + sizeof("RmXXXXXX"))) == NULL) + panic("Out of memory"); strcpy(tempQuit, tmpdir); mktemp(strcat(tempQuit, "RmXXXXXX")); + if ((tempEdit = malloc(len + sizeof("ReXXXXXX"))) == NULL) + panic("Out of memory"); strcpy(tempEdit, tmpdir); mktemp(strcat(tempEdit, "ReXXXXXX")); + if ((tempMesg = malloc(len + sizeof("RxXXXXXX"))) == NULL) + panic("Out of memory"); strcpy(tempMesg, tmpdir); mktemp(strcat(tempMesg, "RxXXXXXX")); >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 15:59:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA23279 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 15:59:26 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from george.lbl.gov (george.lbl.gov [131.243.2.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA23272; Thu, 15 Oct 1998 15:59:24 -0700 (PDT) (envelope-from jin@george.lbl.gov) Received: (from jin@localhost) by george.lbl.gov (8.8.8/8.8.8) id PAA22852; Thu, 15 Oct 1998 15:59:06 -0700 (PDT) Date: Thu, 15 Oct 1998 15:59:06 -0700 (PDT) From: Jin Guojun (FTG staff) Message-Id: <199810152259.PAA22852@george.lbl.gov> To: freebsd-bugs@hub.freebsd.org, wpaul@FreeBSD.ORG, wpaul@hub.freebsd.org Subject: Re: bin/8338 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > You can look at the contents of the map on the slave using the yp_mkdb > command. Do the following: > > # cd /var/yp/ > # yp_mkdb -u passwd.byname | grep YP_MASTER_NAME The YP_MASTER_NAME is correctly set. > You will see that there is a special record in the map database with a > key of YP_MASTER_NAME and a data field with the name of the master host. > This is the information that ypserv uses to determine the master name > when it receives a YPPROC_XFR request. It deliberately ignores the hostname > specified in the request arguments because it knows that it might be wrong, > and the information in the map is always supposed to be correct. > > When you first initialize a slave, you need to use ypxfr to transfer copies > manually onto the slave from the master. If you have FreeBSD 3.0, then > the ypinit script will do this for you: use ypinit -s. After you do this, > then the FreeBSD slave server will contain the correct YP_MASTER_NAME > information. Yes, under 3.0, the "ypinit -s $YP_MASTER_NAME" removed /var/yp/${domain} and reuested all copies of maps transfered; and then, everything seems to work. Under 2.x system, however, "ypxfr -h $YP_MASTER_NAME passwd" failed: # ./ypxfr -h $YP_MASTER_NAME passwd ypxfr: failed to find master of passwd in domain FTG: No such map in server's domain ypxfr: Exiting: Could not get master server address I don't know if I still miss something here, but it is not important since 3.0 works and we wil move to 3.0 any way. If this can be resolved, it will be appreciated. > There are several reasons why may be having problems: > > - You previously set up the FreeBSD host as an NIS master server and > did not erase the old maps before turning the machine into a slave. There was no set-up for server, but could be some bad maps there. Clean-up doesn't help. > - The maps on the NIS master server have the wrong YP_MASTER_NAME > in them. To check, do a yppoll passwd.byname from a client that is > bound to the master name. If yppoll reports the wrong information, > then you should rebuild the maps on the master server. yppoll passwd.byname reports correct information on all hosts. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 16:25:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA26193 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 16:25:37 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA26164; Thu, 15 Oct 1998 16:25:24 -0700 (PDT) (envelope-from thepish@FreeBSD.org) From: Peter Hawkins Received: (from thepish@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA29184; Thu, 15 Oct 1998 16:25:16 -0700 (PDT) Date: Thu, 15 Oct 1998 16:25:16 -0700 (PDT) Message-Id: <199810152325.QAA29184@freefall.freebsd.org> To: Studded@gorean.org, thepish@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8339 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: [PATCH - MFC] for 'mail' State-Changed-From-To: open-closed State-Changed-By: thepish State-Changed-When: Thu Oct 15 16:24:06 PDT 1998 State-Changed-Why: I corrected this in current (separate PR) less than a week ago. Not yet ready to merge to stable - will do after the freeze To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 17:10:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA01610 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 17:10:35 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA01598; Thu, 15 Oct 1998 17:10:28 -0700 (PDT) (envelope-from Studded@gorean.org) Received: from gorean.org (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id RAA03014; Thu, 15 Oct 1998 17:10:11 -0700 (PDT) (envelope-from Studded@gorean.org) Message-ID: <36268EE2.5CB9E275@gorean.org> Date: Thu, 15 Oct 1998 17:10:10 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.5b2 [en] (X11; I; FreeBSD 2.2.7-STABLE-1015 i386) X-Accept-Language: en MIME-Version: 1.0 To: Peter Hawkins CC: freebsd-bugs@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/8339 References: <199810152325.QAA29184@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Peter Hawkins wrote: > > Synopsis: [PATCH - MFC] for 'mail' > > State-Changed-From-To: open-closed > State-Changed-By: thepish > State-Changed-When: Thu Oct 15 16:24:06 PDT 1998 > State-Changed-Why: > I corrected this in current (separate PR) less than a week ago. Not yet > ready to merge to stable - will do after the freeze The whole point of this PR was to make sure that there is a reminder for the MFC, thus the "MFC" in the synopsis. Please re-open this PR and leave it open till the merge is done. Thanks, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 17:20:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA02762 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 17:20:14 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA02687 for ; Thu, 15 Oct 1998 17:20:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA01099; Thu, 15 Oct 1998 17:20:00 -0700 (PDT) Date: Thu, 15 Oct 1998 17:20:00 -0700 (PDT) Message-Id: <199810160020.RAA01099@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Studded Subject: Re: bin/8339 Reply-To: Studded Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8339; it has been noted by GNATS. From: Studded To: Peter Hawkins Cc: freebsd-bugs@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/8339 Date: Thu, 15 Oct 1998 17:10:10 -0700 Peter Hawkins wrote: > > Synopsis: [PATCH - MFC] for 'mail' > > State-Changed-From-To: open-closed > State-Changed-By: thepish > State-Changed-When: Thu Oct 15 16:24:06 PDT 1998 > State-Changed-Why: > I corrected this in current (separate PR) less than a week ago. Not yet > ready to merge to stable - will do after the freeze The whole point of this PR was to make sure that there is a reminder for the MFC, thus the "MFC" in the synopsis. Please re-open this PR and leave it open till the merge is done. Thanks, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Thu Oct 15 21:20:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA04819 for freebsd-bugs-outgoing; Thu, 15 Oct 1998 21:20:12 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA04798 for ; Thu, 15 Oct 1998 21:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA11335; Thu, 15 Oct 1998 21:20:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA04500; Thu, 15 Oct 1998 21:18:29 -0700 (PDT) (envelope-from nobody) Message-Id: <199810160418.VAA04500@hub.freebsd.org> Date: Thu, 15 Oct 1998 21:18:29 -0700 (PDT) From: geoff@ugc.ab.ca To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/8340: Adaptec 1540 Controller not getting probed Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8340 >Category: kern >Synopsis: Adaptec 1540 Controller not getting probed >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 15 21:20:00 PDT 1998 >Last-Modified: >Originator: Geoff Coleman >Organization: >Release: 3.0-19981015-BETA >Environment: >Description: On the latest build of the kernel or booting from the latest boot.flp my adaptec 1540 controller is not getting recognized. The machine boots fine under a July 1998 3.0-Current Kernel (pre-CAM) the machine is a 486 with 16 Mbytes. >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 07:30:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA04118 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 07:30:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA04093 for ; Fri, 16 Oct 1998 07:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA03057; Fri, 16 Oct 1998 07:30:01 -0700 (PDT) Date: Fri, 16 Oct 1998 07:30:01 -0700 (PDT) Message-Id: <199810161430.HAA03057@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Subject: [Steve Howe ] Re: bin/8319: lost alias due to exports in .profile Reply-To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8319; it has been noted by GNATS. From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) To: freebsd-gnats-submit@freebsd.org Cc: Subject: [Steve Howe ] Re: bin/8319: lost alias due to exports in .profile Date: 16 Oct 1998 16:26:43 +0200 ------- Start of forwarded message ------- Date: Fri, 16 Oct 1998 05:25:47 -0800 (AKDT) From: Steve Howe To: "Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?=" Subject: Re: bin/8319: lost alias due to exports in .profile Message-ID: On 16 Oct 1998, Dag-Erling C. [iso-8859-1] Smørgrav wrote: > If you have a more complete description than the one in the PR, go > ahead. I still maintain that the only problem here is your > interpretation ov the sh(1) man page. THIS IS A USER ~/.profile #!/bin/sh echo ~/.profile export TERM=cons25 ENV=~/.shinit; export ENV echo THIS IS A USER ~/.shinit #!/bin/sh #echo ~/.shinit set -E alias a='alias | sort | more' alias q='cd $HOME; ls' UNDER THESE CONDITIONS, ALIAS "a" RESPONDS a: not found IF I MODIFY ~/.profile AS FOLLOWS: #!/bin/sh echo ~/.profile TERM=cons25; export TERM ENV=~/.shinit; export ENV echo ALL WORKS AS EXPECTED. the 1st alias in ~/.shinit is removed whenever a "export VAR=value" command is used in ~./profile. however, if one uses "VAR=value; export VAR" commands in ~/.profile, all aliases in ~/.shinit work as expected. thank you, regards. ------- End of forwarded message ------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 10:33:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA29769 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 10:33:28 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA29747; Fri, 16 Oct 1998 10:33:21 -0700 (PDT) (envelope-from imp@FreeBSD.org) From: Warner Losh Received: (from imp@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA09218; Fri, 16 Oct 1998 10:33:18 -0700 (PDT) Date: Fri, 16 Oct 1998 10:33:18 -0700 (PDT) Message-Id: <199810161733.KAA09218@freefall.freebsd.org> To: geoff@ugc.ab.ca, imp@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/8340 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: Adaptec 1540 Controller not getting probed State-Changed-From-To: open-feedback State-Changed-By: imp State-Changed-When: Fri Oct 16 11:32:02 MDT 1998 State-Changed-Why: I need to get information from Geoff about the kind of card he is using, a boot -v log and some other stuff to recreate this bug. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 11:10:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA06563 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 11:10:15 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA06491 for ; Fri, 16 Oct 1998 11:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA10231; Fri, 16 Oct 1998 11:10:01 -0700 (PDT) Received: from gw-msu.gamma.ru ([193.232.127.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA05691 for ; Fri, 16 Oct 1998 11:06:25 -0700 (PDT) (envelope-from butenko@gw-msu.gamma.ru) Received: (from butenko@localhost) by gw-msu.gamma.ru (8.8.8/8.8.8) id WAA04730; Fri, 16 Oct 1998 22:06:01 +0400 (MSD) (envelope-from butenko) Message-Id: <199810161806.WAA04730@gw-msu.gamma.ru> Date: Fri, 16 Oct 1998 22:06:01 +0400 (MSD) From: butenko@stalker.com Reply-To: butenko@stalker.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8343: the "poll()" function is absent in threaded libs Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8343 >Category: kern >Synopsis: the "poll()" function is absent in threaded libs >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 11:10:01 PDT 1998 >Last-Modified: >Originator: Vladimir Butenko >Organization: Stalker Software, Inc >Release: FreeBSD 3.0-19980804-SNAP i386 >Environment: >Description: When using the "poll()" function in multithreaded programs, compilations finish fine, but attemps to build the programs fail with the following diagnostics: ../sources/Foundation/STSockets.cpp:242: Undefined symbol `_poll' referenced fro m text segment gmake: *** [CGServer] Error 1 Also, it would be fine if can implement the pwrite/pread functions: without them, a multithreaded application has to use an additional mutex for every shared FD, so it can correctly use the lseek/write lseek/read operatations. >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 12:00:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA16253 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 12:00:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA16238 for ; Fri, 16 Oct 1998 12:00:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA12148; Fri, 16 Oct 1998 12:00:02 -0700 (PDT) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [194.93.177.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA16115 for ; Fri, 16 Oct 1998 11:59:04 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id VAA27154; Fri, 16 Oct 1998 21:58:06 +0300 (EEST) (envelope-from ru) Message-Id: <199810161858.VAA27154@relay.ucb.crimea.ua> Date: Fri, 16 Oct 1998 21:58:06 +0300 (EEST) From: Ruslan Ermilov Reply-To: ru@ucb.crimea.ua To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: i386/8344: syscons destructive cursor is bad displayed Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8344 >Category: i386 >Synopsis: syscons destructive cursor is bad displayed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 12:00:02 PDT 1998 >Last-Modified: >Originator: Ruslan Ermilov >Organization: United Commercial Bank >Release: FreeBSD 2.2.7-STABLE i386 >Environment: FreeBSD 2.2.7-STABLE console with syscons driver and destructive cursor. >Description: With standard syscons console driver and destructive cursor, cursor image sometimes gets mixed with character image. begin 644 destructive.sh M(R$O8FEN+W-H"@I0051(/2]B:6XZ+W-B:6XZ+W5S'!OHow-To-Repeat: The following is the uuencoded shell script. I tried to make it as simple as it can be. Run it on console with syscons driver. Please be patient, let it run some time. You should see the blank screen with blinking cursor in form of ``underlined X''. >Fix: Something related to src/sys/i386/isa/syscons.c and blinking cursor. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 12:10:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA17927 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 12:10:11 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA17853 for ; Fri, 16 Oct 1998 12:10:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA12666; Fri, 16 Oct 1998 12:10:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA17713; Fri, 16 Oct 1998 12:09:46 -0700 (PDT) (envelope-from nobody) Message-Id: <199810161909.MAA17713@hub.freebsd.org> Date: Fri, 16 Oct 1998 12:09:46 -0700 (PDT) From: jegelhof@cloud9.net To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/8345: mmap(2) hangs when dealing with certain files on NFS Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8345 >Category: kern >Synopsis: mmap(2) hangs when dealing with certain files on NFS >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 12:10:00 PDT 1998 >Last-Modified: >Originator: James Egelhof >Organization: Cloud 9 Consulting, Inc. >Release: FreeBSD 2.2.7-STABLE >Environment: FreeBSD earl-grey.cloud9.net 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Sat Sep 5 20:17:50 EDT 1998 jegelhof@earl-grey.cloud9.net:/usr/src/sys/compile/EARL-GREY i386 FreeBSD russian-caravan.cloud9.net 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Oct 12 18:18:49 EDT 1998 root@earl-grey.cloud9.net:/usr/src/sys/compile/RUSSIAN-CARAVAN i386 >Description: Programs that use mmap(2) can hang in the "vmopar" state. Programs stuck in that state cannot be killed or revived except by rebooting. This problem happens when the file being read via mmap is mounted over from another machine via NFS, and the file is appended to on the far machine. mmap fails regardless of the size of the file or of the append. >How-To-Repeat: Let's say that the NFS server is "Machine 1" and the client is "Machine 2." Mount a filesystem from Machine 1 onto Machine 2. Let's say the mount point is /mnt. Create a file of nontrivial length in /mnt; say, /mnt/test. Next we need to use a mmap-based utility that will run for a while. Good examples are sz (from the ports collection), cp (if the file is <8MB), and tail. sz is especially good because it will run for a while. machine1> sz /mnt/test [download begins] machine2> echo foo >> /the/filesystem/test [download dies] This will be the output from ps uxl: jegelhof 5539 0.0 0.2 228 536 p9- D 2:43PM 0:00.05 sz test2 (lsz) 349 5539 1 0 -18 0 228 536 vmopar D p9- 0:00.05 sz test2 (lsz) This problem does not occur if you disable the mmap code in the relevant appplication. We have tested this on a variety of hardware and with several different network configurations. This has been done with 10MB Ethernet, 10MB switched Ethernet, and 100MB switched Ethernet. We currently use Intel EtherExpress Pro 10/100B network cards and a Cisco Catalyst 2900XL 100MB switch. >Fix: Workaround is to disable mmap on every utility you use on NFS files. That is not a very good workaround because many FreeBSD standard utilities depend on mmap. Otherwise, mmap needs to be able to handle file size changes on NFS filesystems. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 12:30:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA22603 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 12:30:13 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA22560 for ; Fri, 16 Oct 1998 12:30:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA13603; Fri, 16 Oct 1998 12:30:03 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA20653; Fri, 16 Oct 1998 12:22:32 -0700 (PDT) (envelope-from nobody) Message-Id: <199810161922.MAA20653@hub.freebsd.org> Date: Fri, 16 Oct 1998 12:22:32 -0700 (PDT) From: patl@phoenix.volant.org To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: misc/8346: Strftime can't generate ISO-8601 timezone offsets Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8346 >Category: misc >Synopsis: Strftime can't generate ISO-8601 timezone offsets >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 12:30:02 PDT 1998 >Last-Modified: >Originator: PM Lashley >Organization: >Release: 2.2.7R >Environment: >Description: ISO-8601 (International Standard Date and Time Notation) lists three possibilities for timezone indicators: 1) If no indicator is present, an unspecified offset from UTC is assumed. 2) The letter 'Z' indicates UTC. 3) A signed offset in hours and minutes from UTC (e.g., -08:00 for PST) Strftime can generate the rest of the date and time in an acceptable form; but has no format item which will emit the signed offset notation. (Timezone name abbreviations are not acceptable under ISO-8601 due to the high probability of confusion.) For more info in ISO-8601, see: http://www.cl.cam.ac.uk/~mgk25/iso-time.html >How-To-Repeat: >Fix: Add a new format specifier to emit the signed offset from UTC. Since '%Z' is used to get the timezone name, '%z' is a logical choice for the offset. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 12:51:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA27317 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 12:51:38 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA27262; Fri, 16 Oct 1998 12:51:25 -0700 (PDT) (envelope-from jkh@FreeBSD.org) From: "Jordan K. Hubbard" Received: (from jkh@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA14216; Fri, 16 Oct 1998 12:51:22 -0700 (PDT) Date: Fri, 16 Oct 1998 12:51:22 -0700 (PDT) Message-Id: <199810161951.MAA14216@freefall.freebsd.org> To: shmit@rcn.com, jkh@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/8221 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: Panic in tulip driver. State-Changed-From-To: open-closed State-Changed-By: jkh State-Changed-When: Fri Oct 16 12:51:13 PDT 1998 State-Changed-Why: Closed at author's request To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 13:07:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA00374 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 13:07:32 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA00204; Fri, 16 Oct 1998 13:06:57 -0700 (PDT) (envelope-from dt@FreeBSD.org) From: Dmitrij Tejblum Received: (from dt@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA14826; Fri, 16 Oct 1998 13:06:55 -0700 (PDT) Date: Fri, 16 Oct 1998 13:06:55 -0700 (PDT) Message-Id: <199810162006.NAA14826@freefall.freebsd.org> To: saska@acc.umu.se, dt@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/8177 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: Any user can view other users "chmod 700" home dirs with locate. State-Changed-From-To: open-closed State-Changed-By: dt State-Changed-When: Fri Oct 16 13:03:57 PDT 1998 State-Changed-Why: No. Locate database created by user 'nobody', so it would not work. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 13:12:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA01080 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 13:12:13 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA00974; Fri, 16 Oct 1998 13:11:27 -0700 (PDT) (envelope-from dt@FreeBSD.org) From: Dmitrij Tejblum Received: (from dt@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA15029; Fri, 16 Oct 1998 13:11:23 -0700 (PDT) Date: Fri, 16 Oct 1998 13:11:23 -0700 (PDT) Message-Id: <199810162011.NAA15029@freefall.freebsd.org> To: serge@yahoo-inc.com, dt@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/8132 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: open("..",O_RDONLY|O_NONBLOCK) fails State-Changed-From-To: open-closed State-Changed-By: dt State-Changed-When: Fri Oct 16 13:09:46 PDT 1998 State-Changed-Why: Duplicate of kern/8180. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 14:30:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA21312 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 14:30:42 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA21193 for ; Fri, 16 Oct 1998 14:30:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA17691; Fri, 16 Oct 1998 14:30:00 -0700 (PDT) Received: from kstreet.interlog.com (kstreet.interlog.com [198.53.146.171]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA20211 for ; Fri, 16 Oct 1998 14:26:48 -0700 (PDT) (envelope-from kws@kstreet.interlog.com) Received: (from kws@localhost) by kstreet.interlog.com (8.9.1/8.9.1) id RAA00526; Fri, 16 Oct 1998 17:26:13 -0400 (EDT) (envelope-from kws) Message-Id: <199810162126.RAA00526@kstreet.interlog.com> Date: Fri, 16 Oct 1998 17:26:13 -0400 (EDT) From: street@iname.com Reply-To: street@iname.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8347: /usr/lib/compat build issues in 3.0 RELEASE Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8347 >Category: bin >Synopsis: /usr/lib/compat build issues in 3.0 RELEASE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 14:30:00 PDT 1998 >Last-Modified: >Originator: Kevin Street >Organization: >Release: FreeBSD 3.0-RELEASE i386 >Environment: Using the RELENG_3_0_0_RELEASE src tree and make buildworld/installworld. CVSUP around Oct 16, 13:00 GMT -0400. System is ELF. >Description: Most of the compat libs are built in /usr/lib/compat rather than /usr/lib/compat/aout. Only these libs are put in /usr/lib/compat/aout : libgnumalloc.so.2.0 libresolv.so.2.0 liby.so.2.0 also these symlinks in /usr/lib/compat/aout look strange: libtermcap.so.3.0@ -> /usr/lib/aout/libtermcap.so.2.1 libtermlib.so.3.0@ -> /usr/lib/aout/libtermlib.so.2.1 Neither libtermcap.so.2.1 or libtermlib.so.2.1 exist. There are 1.1 libs built in /usr/lib/compat though. Either the symlinks are wrong, or the 1.1 base libs should really be 2.1 or the 2.1 libs are not being built. >How-To-Repeat: make world >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 16:00:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA07301 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 16:00:37 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA07165 for ; Fri, 16 Oct 1998 16:00:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA20784; Fri, 16 Oct 1998 16:00:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA06547; Fri, 16 Oct 1998 15:56:29 -0700 (PDT) (envelope-from nobody) Message-Id: <199810162256.PAA06547@hub.freebsd.org> Date: Fri, 16 Oct 1998 15:56:29 -0700 (PDT) From: wefa@callcenter.systemhaus.net To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/8348: zforce(1) is broken: fix Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8348 >Category: bin >Synopsis: zforce(1) is broken: fix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 16:00:00 PDT 1998 >Last-Modified: >Originator: Christoph Weber-Fahr >Organization: O.tel.o Caommunications >Release: 2.2.7-RELEASE >Environment: FreeBSD paris.otelo-call.de 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Tue Oct 13 02:08:22 CEST 1998 wefa@newproxy.otelo-call.de:/usr/src/sys/compile/WEB i386 >Description: 1) zforce does nothing. (it fails to identify gzip files and therefore doesn't 'force' anything) 2) if you fix 1) it behaves nonsensical - it tries to truncate filenames to 14 chars, even though there is no such limit in the FreeBSD filesystem 3) the code doing 2) is broken as well - it actually only squeezes '.gz' into the last 3 chars of files of any length > 12, but doesn't shorten them. Oh, and this doesn't work in MSDOS file systems either, because it _loves_ to produce files ending in ..gz, which are illegal in 8.3 filesystems. >How-To-Repeat: use it >Fix: I suggest the appended fix: paris# [bin] diff zforce.org zforce 6c6,13 < # 12345678901234 is renamed to 12345678901.gz --- > # > # Fixed gzip call (added -v option) > # Removed trunking code. Code > # - is unnecessary on FreeBSD > # - was used in FreeBSD despite of that > # - was buggy anyway (it didn't work as advertized) > # 19981010 CWF > 27c34,36 < if gzip -l < "$i" 2>/dev/null | grep '^defl' > /dev/null; then --- > if gzip -vl < "$i" 2>/dev/null | grep '^defl' > /dev/null; then > > new="$i.gz" 29,33d37 < if test `expr "$i" : '^............'` -eq 12; then < new=`expr "$i" : '\(.*\)...$`.gz < else < new="$i.gz" < fi >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 17:20:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA23141 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 17:20:34 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA23013 for ; Fri, 16 Oct 1998 17:20:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA23068; Fri, 16 Oct 1998 17:20:01 -0700 (PDT) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA22336 for ; Fri, 16 Oct 1998 17:16:24 -0700 (PDT) (envelope-from skafte@scanner.worldgate.com) Received: (from skafte@localhost) by scanner.worldgate.com (8.9.1a/8.9.1) id SAA27482; Fri, 16 Oct 1998 18:15:56 -0600 (MDT) Message-Id: <199810170015.SAA27482@scanner.worldgate.com> Date: Fri, 16 Oct 1998 18:15:56 -0600 (MDT) From: Greg Skafte Reply-To: skafte@scanner.worldgate.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8349: Changer definition for SureStore 24x6 dds changer Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8349 >Category: kern >Synopsis: Changer definition for SureStore 24x6 dds changer >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 17:20:00 PDT 1998 >Last-Modified: >Originator: Greg Skafte >Organization: worldgate inc. >Release: FreeBSD 2.2.7-STABLE i386 >Environment: >Description: New auto-changer definition >How-To-Repeat: >Fix: --- scsiconf.c 1998/10/16 20:34:15 1.1 +++ scsiconf.c 1998/10/16 20:35:53 @@ -357,6 +357,10 @@ T_CHANGER, T_CHANGER, T_REMOV, "SONY", "TSL-7000", "*", "ch", SC_MORE_LUS }, + { + T_SEQUENTIAL, T_CHANGER, T_REMOV, "HP", "C1557A", "*", + "ch", SC_MORE_LUS, + }, #endif /* NCH */ #if NCD > 0 #ifndef UKTEST /* make cdroms unrecognised to test the uk driver */ >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 17:30:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA25095 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 17:30:17 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA24988 for ; Fri, 16 Oct 1998 17:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA23282; Fri, 16 Oct 1998 17:30:01 -0700 (PDT) Received: from zaius.worldgate.ca (zaius.worldgate.ca [207.167.1.1] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA23993 for ; Fri, 16 Oct 1998 17:24:35 -0700 (PDT) (envelope-from skafte@zaius.worldgate.ca) Received: (from skafte@localhost) by zaius.worldgate.ca (8.8.8/8.8.8) id SAA17187; Fri, 16 Oct 1998 18:24:10 -0600 (MDT) (envelope-from skafte) Message-Id: <199810170024.SAA17187@zaius.worldgate.ca> Date: Fri, 16 Oct 1998 18:24:10 -0600 (MDT) From: skafte@zaius.worldgate.ca Reply-To: skafte@zaius.worldgate.ca To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: conf/8350: Patch for /etc/rc.firewall Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8350 >Category: conf >Synopsis: Problems with /etc/rc.firewall >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 17:30:01 PDT 1998 >Last-Modified: >Originator: Greg Skafte >Organization: WorldGate Inc. >Release: FreeBSD 2.2.7-STABLE i386 >Environment: 2.2.7-stable using a "file" for firewall definition >Description: in /etc/rc.conf if you specify a filename for the firewall type the firewall rules don't load. >How-To-Repeat: specify a filename for firewall="filename" >Fix: --- /usr/src/etc/rc.firewall Wed Sep 16 22:24:21 1998 +++ /etc/rc.firewall Thu Jul 2 14:27:09 1998 @@ -183,5 +168,5 @@ # Everything else is denied as default. elif [ "${firewall_type}" != "UNKNOWN" -a -r "${firewall_type}" ]; then - $fwcmd ${firewall_type} + . ${firewall_type} fi >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 19:40:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA15346 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 19:40:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA15289 for ; Fri, 16 Oct 1998 19:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id TAA26328; Fri, 16 Oct 1998 19:40:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA12276; Fri, 16 Oct 1998 19:17:45 -0700 (PDT) (envelope-from nobody) Message-Id: <199810170217.TAA12276@hub.freebsd.org> Date: Fri, 16 Oct 1998 19:17:45 -0700 (PDT) From: matt@zigg.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/8352: 3.0-RELEASE sysinstall bombs on newfs Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8352 >Category: bin >Synopsis: 3.0-RELEASE sysinstall bombs on newfs >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 19:40:01 PDT 1998 >Last-Modified: >Originator: Matt Behrens >Organization: >Release: 3.0-RELEASE >Environment: (none, as the system cannot install) i486 DX2/66, 8 MB RAM, 1.2 GB IDE HDD, VLB IDE/IO Controller, VLB Video Controller, ISA NE2000 Compatible NIC >Description: With a system apparently with wd0 drives, 3.0-RELEASE sysinstall and not 3.0-19981015 on a system with IDE drives will give an "Unable to make new root filesystem on /dev/rwd0s2a!" with "newfs: ioctl (WDINFO): Cross-device link" and "newfs: /dev/rwd0s2a: can't rewrite disk label". Something happened between the 15th and the 16th. Confirmed on my system and on 's. >How-To-Repeat: Start an installation with the 3.0-RELEASE boot floppy and follow through any install. When the first newfs is called, this error will occur. >Fix: None for 3.0-RELEASE. Downgrade to 3.0-19981015-BETA. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Fri Oct 16 22:20:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA00304 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 22:20:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA00246 for ; Fri, 16 Oct 1998 22:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA00643; Fri, 16 Oct 1998 22:20:02 -0700 (PDT) Received: from poynting.physics.purdue.edu (poynting.physics.purdue.edu [128.210.146.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA29590 for ; Fri, 16 Oct 1998 22:12:18 -0700 (PDT) (envelope-from ajk@physics.purdue.edu) Received: (from ajk@localhost) by poynting.physics.purdue.edu (8.8.8/8.8.8) id AAA25288; Sat, 17 Oct 1998 00:11:57 -0500 (EST) Message-Id: <199810170511.AAA25288@poynting.physics.purdue.edu> Date: Sat, 17 Oct 1998 00:11:57 -0500 (EST) From: ajk@purdue.edu Reply-To: ajk@purdue.edu To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8353: vipw and chpass echo bogus error messages Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8353 >Category: bin >Synopsis: vipw and chpass echo bogus error messages >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 16 22:20:01 PDT 1998 >Last-Modified: >Originator: Andrew J. Korty >Organization: Purdue University Physics Department >Release: FreeBSD 3.0-BETA i386 >Environment: FreeBSD volta.physics.purdue.edu 3.0-BETA FreeBSD 3.0-BETA #3: Tue Oct 13 15:04:20 EST 1998 csg@volta.physics.purdue.edu:/usr/src/sys/compile/VOLTA i386 >Description: A call to vfork() was replaced by a call to fork() in pw_util.c recently. Later, warn() is called in the parent process, expecting it to have remained intact from the execlp() called in the child. >How-To-Repeat: env EDITOR=/nonexistent vipw >Fix: One possible solution: *** src/usr.sbin/pw_util.c.orig 1998/10/13 14:52:33 1.10 --- src/usr.sbin/pw_util.c 1998/10/17 04:37:49 *************** *** 44,49 **** --- 44,50 ---- * and passwd(1). */ + #include #include #include #include *************** *** 185,200 **** (void)setgid(getgid()); (void)setuid(getuid()); } execlp(editor, p, tempname, NULL); ! _exit(1); } for (;;) { editpid = waitpid(editpid, (int *)&pstat, WUNTRACED); if (editpid == -1) pw_error(editor, 1, 1); else if (WIFSTOPPED(pstat)) raise(WSTOPSIG(pstat)); ! else if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) break; else pw_error(editor, 1, 1); --- 186,203 ---- (void)setgid(getgid()); (void)setuid(getuid()); } + errno = 0; execlp(editor, p, tempname, NULL); ! _exit(errno); } for (;;) { editpid = waitpid(editpid, (int *)&pstat, WUNTRACED); + errno = WEXITSTATUS(pstat); if (editpid == -1) pw_error(editor, 1, 1); else if (WIFSTOPPED(pstat)) raise(WSTOPSIG(pstat)); ! else if (WIFEXITED(pstat) && errno == 0) break; else pw_error(editor, 1, 1); >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 00:30:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA08754 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 00:30:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA08741 for ; Sat, 17 Oct 1998 00:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA03650; Sat, 17 Oct 1998 00:30:00 -0700 (PDT) Received: from eisenhower.ca.sandia.gov (eisenhower.ca.sandia.gov [146.246.243.57]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA07355 for ; Sat, 17 Oct 1998 00:21:45 -0700 (PDT) (envelope-from bmah@eisenhower.ca.sandia.gov) Received: (from bmah@localhost) by eisenhower.ca.sandia.gov (8.8.8/8.8.8) id AAA12931; Sat, 17 Oct 1998 00:21:25 -0700 (PDT) (envelope-from bmah) Message-Id: <199810170721.AAA12931@eisenhower.ca.sandia.gov> Date: Sat, 17 Oct 1998 00:21:25 -0700 (PDT) From: bmah@ca.sandia.gov Reply-To: bmah@ca.sandia.gov To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8355: [PATCH] Fix typos/grammar in sysinstall packages menu Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8355 >Category: bin >Synopsis: [PATCH] Fix typos/grammar in sysinstall packages menu >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 17 00:30:00 PDT 1998 >Last-Modified: >Originator: Bruce A. Mah >Organization: Sandia National Laboratories >Release: FreeBSD 3.0-RELEASE i386 >Environment: >Description: sysinstall's packages menu has a few typos and grammatical problems. >How-To-Repeat: Have an anal-retentive person such as the originator run sysinstall and try to add packages. >Fix: Apply this patch: Index: index.c =================================================================== RCS file: /usr/local/cvsroot/src/release/sysinstall/index.c,v retrieving revision 1.57 diff -c -r1.57 index.c *** index.c 1998/10/15 06:50:43 1.57 --- index.c 1998/10/17 07:06:14 *************** *** 69,81 **** "astro", "Applications related to astronomy.", "archivers", "Utilities for archiving and unarchiving data.", "audio", "Audio utilities - most require a supported sound card.", ! "biology", "Software related to Biology.", "benchmarks", "Utilities for measuring system performance.", "benchmarking", "Utilities for measuring system performance.", "cad", "Computer Aided Design utilities.", "chinese", "Ported software for the Chinese market.", "comms", "Communications utilities.", ! "converters", "Format conversion utilities..", "databases", "Database software.", "devel", "Software development utilities and libraries.", "development", "Software development utilities and libraries.", --- 69,81 ---- "astro", "Applications related to astronomy.", "archivers", "Utilities for archiving and unarchiving data.", "audio", "Audio utilities - most require a supported sound card.", ! "biology", "Software related to biology.", "benchmarks", "Utilities for measuring system performance.", "benchmarking", "Utilities for measuring system performance.", "cad", "Computer Aided Design utilities.", "chinese", "Ported software for the Chinese market.", "comms", "Communications utilities.", ! "converters", "Format conversion utilities.", "databases", "Database software.", "devel", "Software development utilities and libraries.", "development", "Software development utilities and libraries.", *************** *** 95,101 **** "libraries", "Software development libraries.", "mail", "Electronic mail packages and utilities.", "math", "Mathematical computation software.", ! "mbone", "Applications and utilities for the mbone.", "misc", "Miscellaneous utilities.", "net", "Networking utilities.", "networking", "Networking utilities.", --- 95,101 ---- "libraries", "Software development libraries.", "mail", "Electronic mail packages and utilities.", "math", "Mathematical computation software.", ! "mbone", "Applications and utilities for the MBONE.", "misc", "Miscellaneous utilities.", "net", "Networking utilities.", "networking", "Networking utilities.", *************** *** 103,129 **** "numeric", "Mathematical computation software.", "offix", "An office automation suite of sorts.", "orphans", "Packages without a home elsewhere.", ! "perl5", "Utilities/modules for the PERL5 language..", ! "pilot", "Software support for the USR Palm Pilot(tm).", ! "plan9", "Software from the plan9 Operating System.", "print", "Utilities for dealing with printing.", "printing", "Utilities for dealing with printing.", "programming", "Software development utilities and libraries.", ! "python", "Software related to the python language.", "russian", "Ported software for the Russian market.", "security", "System security software.", "shells", "Various shells (tcsh, bash, etc).", "sysutils", "Various system utilities.", "textproc", "Text processing/search utilities.", ! "tcl75", "TCL v7.5 and packages which depend on it.", ! "tcl76", "TCL v7.6 and packages which depend on it.", ! "tcl80", "TCL v8.0 and packages which depend on it.", ! "tcl81", "TCL v8.1 and packages which depend on it.", ! "tk41", "Tk4.1 and packages which depend on it.", ! "tk42", "Tk4.2 and packages which depend on it.", ! "tk80", "Tk8.0 and packages which depend on it.", ! "tk81", "Tk8.1 and packages which depend on it.", ! "troff", "TROFF Text formatting utilities.", "utils", "Various user utilities.", "utilities", "Various user utilities.", "vietnamese", "Ported software for the Vietnamese market.", --- 103,129 ---- "numeric", "Mathematical computation software.", "offix", "An office automation suite of sorts.", "orphans", "Packages without a home elsewhere.", ! "perl5", "Utilities/modules for the PERL5 language.", ! "pilot", "Software support for the 3COM/USR Palm Pilot(tm).", ! "plan9", "Software from the Plan9 operating system.", "print", "Utilities for dealing with printing.", "printing", "Utilities for dealing with printing.", "programming", "Software development utilities and libraries.", ! "python", "Software related to the Python language.", "russian", "Ported software for the Russian market.", "security", "System security software.", "shells", "Various shells (tcsh, bash, etc).", "sysutils", "Various system utilities.", "textproc", "Text processing/search utilities.", ! "tcl75", "TCL v7.5 and packages that depend on it.", ! "tcl76", "TCL v7.6 and packages that depend on it.", ! "tcl80", "TCL v8.0 and packages that depend on it.", ! "tcl81", "TCL v8.1 and packages that depend on it.", ! "tk41", "Tk4.1 and packages that depend on it.", ! "tk42", "Tk4.2 and packages that depend on it.", ! "tk80", "Tk8.0 and packages that depend on it.", ! "tk81", "Tk8.1 and packages that depend on it.", ! "troff", "TROFF text formatting utilities.", "utils", "Various user utilities.", "utilities", "Various user utilities.", "vietnamese", "Ported software for the Vietnamese market.", *************** *** 133,139 **** "x11-fm", "X Window System based file managers.", "x11-fonts", "X Window System fonts.", "x11-toolkits", "X Window System based development toolkits.", ! "x11-wm", "X Window System Window Managers.", NULL, NULL, }; --- 133,139 ---- "x11-fm", "X Window System based file managers.", "x11-fonts", "X Window System fonts.", "x11-toolkits", "X Window System based development toolkits.", ! "x11-wm", "X Window System window managers.", NULL, NULL, }; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 01:40:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA15115 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 01:40:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA15086 for ; Sat, 17 Oct 1998 01:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA05267; Sat, 17 Oct 1998 01:40:01 -0700 (PDT) Received: from swarm.ie.cycu.edu.tw (swarm.ie.cycu.edu.tw [140.135.139.84]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA14987 for ; Sat, 17 Oct 1998 01:39:40 -0700 (PDT) (envelope-from root@swarm.ie.cycu.edu.tw) Received: (from root@localhost) by swarm.ie.cycu.edu.tw (8.8.8/8.8.8) id QAA17358; Sat, 17 Oct 1998 16:38:05 +0800 (CST) (envelope-from root) Message-Id: <199810170838.QAA17358@swarm.ie.cycu.edu.tw> Date: Sat, 17 Oct 1998 16:38:05 +0800 (CST) From: Charlie Root Reply-To: root@swarm.ie.cycu.edu.tw To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: misc/8357: Segmentation fault while making SWARM-1.3 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8357 >Category: misc >Synopsis: Segmentation fault while making SWARM-1.3 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 17 01:40:01 PDT 1998 >Last-Modified: >Originator: Root >Organization: NETLAB, IE, CYCU, ROC >Release: FreeBSD 2.2.7-STABLE i386 >Environment: Pentium II 266, 128MB SDRAM, GA6BXS MainBoard, etc. >Description: Core dumped while making SWARM-1.3 from Santa Fe Inst. >How-To-Repeat: preinstalled freebsd package: tk-8.0.2 tcl-8.0.2 libffi-1.18 blt-2.4f \ xpm-3.4k png-1.0.2 preinstalled: tclobjc-1.4 # ./configure --with-tclincludedir=/usr/local/include/tcl8.0/generic --with-tkincludedir=/usr/local/include/tk8.0/generic # mv /usr/bin/make /usr/bin/make.org # ln -s /usr/local/bin/gmake /usr/bin/make # make make all-recursive make[1]: Entering directory `/usr/ports/distfiles/swarm-1.3.1' Making all in src make[2]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src' for i in collections defobj activity objectbase tclobjc tkobjc gui random simtools simtoolsgui analysis space misc ; do make -C $i headers ; done make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/collections' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/collections' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/defobj' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/defobj' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/activity' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/activity' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/objectbase' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/objectbase' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/tclobjc' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/tclobjc' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/tkobjc' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/tkobjc' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/gui' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/gui' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/random' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/random' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/simtools' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/simtools' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/simtoolsgui' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/simtoolsgui' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/analysis' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/analysis' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/space' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/space' make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/misc' make[3]: Nothing to be done for `headers'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/misc' Making all in collections make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/collections' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/collections' Making all in defobj make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/defobj' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/defobj' Making all in activity make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/activity' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/activity' Making all in objectbase make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/objectbase' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/objectbase' Making all in tclobjc make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/tclobjc' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/tclobjc' Making all in tkobjc make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/tkobjc' Making all in tk make[4]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/tkobjc/tk' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/tkobjc/tk' make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/tkobjc' Making all in gui make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/gui' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/gui' Making all in random make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/random' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/random' Making all in simtools make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/simtools' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/simtools' Making all in simtoolsgui make[3]: Entering directory `/usr/ports/distfiles/swarm-1.3.1/src/simtoolsgui' /bin/sh ../../libtool --mode=link gcc -g -O2 -fno-inline -o libsimtoolsgui.la -rpath /usr/local/lib -version-info 2:0:1 ActionCache.lo ActionHolder.lo ClassDisplayWidget.lo CommonProbeDisplay.lo CompleteProbeDisplay.lo ControlPanel.lo GUIComposite.lo GUISwarm.lo MessageProbeWidget.lo MultiVarProbeDisplay.lo MultiVarProbeWidget.lo ProbeDisplay.lo ProbeDisplayManager.lo SimpleProbeDisplay.lo SingleProbeDisplay.lo VarProbeWidget.lo simtoolsgui.lo rm -f .libs/libsimtoolsgui.la .libs/libsimtoolsgui.* .libs/libsimtoolsgui.* /usr/bin/ld -Bshareable -o .libs/libsimtoolsgui.so.2.0 ActionCache.lo ActionHolder.lo ClassDisplayWidget.lo CommonProbeDisplay.lo CompleteProbeDisplay.lo ControlPanel.lo GUIComposite.lo GUISwarm.lo MessageProbeWidget.lo MultiVarProbeDisplay.lo MultiVarProbeWidget.lo ProbeDisplay.lo ProbeDisplayManager.lo SimpleProbeDisplay.lo SingleProbeDisplay.lo VarProbeWidget.lo simtoolsgui.lo /usr/lib/c++rt0.o Segmentation fault - core dumped make[3]: *** [libsimtoolsgui.la] Error 139 make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/simtoolsgui' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1' make: *** [all-recursive-am] Error 2 >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 02:59:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA21427 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 02:59:53 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA21105; Sat, 17 Oct 1998 02:57:47 -0700 (PDT) (envelope-from thepish@FreeBSD.org) From: Peter Hawkins Received: (from thepish@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA08538; Sat, 17 Oct 1998 02:57:45 -0700 (PDT) Date: Sat, 17 Oct 1998 02:57:45 -0700 (PDT) Message-Id: <199810170957.CAA08538@freefall.freebsd.org> To: root@swarm.ie.cycu.edu.tw, thepish@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/8357 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: Segmentation fault while making SWARM-1.3 State-Changed-From-To: open-feedback State-Changed-By: thepish State-Changed-When: Sat Oct 17 02:55:52 PDT 1998 State-Changed-Why: Supplied make output suggests user ran make when low on resource, possibly producing a damaged object which cannot link. Asked user to attempt a make clean and complete make, monitoring memory usage To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 03:10:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA22836 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 03:10:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA22830 for ; Sat, 17 Oct 1998 03:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id DAA09170; Sat, 17 Oct 1998 03:10:01 -0700 (PDT) Date: Sat, 17 Oct 1998 03:10:01 -0700 (PDT) Message-Id: <199810171010.DAA09170@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Peter Hawkins Subject: Re: misc/8357: Segmentation fault while making SWARM-1.3 Reply-To: Peter Hawkins Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/8357; it has been noted by GNATS. From: Peter Hawkins To: Charlie Root Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: misc/8357: Segmentation fault while making SWARM-1.3 Date: Sat, 17 Oct 1998 19:57:36 +1000 (EST) >/usr/bin/ld -Bshareable -o .libs/libsimtoolsgui.so.2.0 ActionCache.lo ActionHolder.lo ClassDisplayWidget.lo CommonProbeDisplay.lo CompleteProbeDisplay.lo ControlPanel.lo GUIComposite.lo GUISwarm.lo MessageProbeWidget.lo MultiVarProbeDisplay.lo MultiVarP robeWidget.lo ProbeDisplay.lo ProbeDisplayManager.lo SimpleProbeDisplay.lo SingleProbeDisplay.lo VarProbeWidget.lo simtoolsgui.lo /usr/lib/c++rt0.o >Segmentation fault - core dumped >make[3]: *** [libsimtoolsgui.la] Error 139 >make[3]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src/simtoolsgui' >make[2]: *** [all-recursive] Error 1 >make[2]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1/src' >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory `/usr/ports/distfiles/swarm-1.3.1' >make: *** [all-recursive-am] Error 2 At a first guess you're low on free memory. I've also seen this happen if you do a build and it fails due to low resource so that one of the object files is broken. If you do a subsequent make without a make clean you may find make overlooks this and attempts to link to the damaged object file causing an error during the load phase. Please do a make clean then run vmstat during a complete build and let us know how you go? > >>Fix: > > > >>Audit-Trail: >>Unformatted: > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-bugs" in the body of the message > Hilink Internet Peter Hawkins 381 Swan St Richmond, Vic, Australia Ph: +61-3-9421 2006 Fax: +61-3-9421 2007 http://www.hilink.com.au Peter@hilink.com.au FreeBSD Project: thepish@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 03:53:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA26469 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 03:53:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from sos.freebsd.dk (sos.freebsd.dk [212.242.40.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA26447; Sat, 17 Oct 1998 03:52:55 -0700 (PDT) (envelope-from sos@sos.freebsd.dk) Received: (from sos@localhost) by sos.freebsd.dk (8.9.1/8.9.1) id MAA10140; Sat, 17 Oct 1998 12:51:58 +0200 (CEST) (envelope-from sos) Message-Id: <199810171051.MAA10140@sos.freebsd.dk> Subject: Re: misc/8357 In-Reply-To: <199810170957.CAA08538@freefall.freebsd.org> from Peter Hawkins at "Oct 17, 98 02:57:45 am" To: thepish@FreeBSD.ORG (Peter Hawkins) Date: Sat, 17 Oct 1998 12:51:58 +0200 (CEST) Cc: root@swarm.ie.cycu.edu.tw, thepish@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG From: Søren Schmidt Reply-to: sos@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In reply to Peter Hawkins who wrote: > Synopsis: Segmentation fault while making SWARM-1.3 > > State-Changed-From-To: open-feedback > State-Changed-By: thepish > State-Changed-When: Sat Oct 17 02:55:52 PDT 1998 > State-Changed-Why: > Supplied make output suggests user ran make when low on resource, possibly producing a damaged object which cannot link. Asked user to attempt a make clean and complete make, monitoring memory usage Well, I've seen this too with swarm-1.3, the problem seems to be that swarm-1.3 depends on the ELF format somehow, recompile as ELF under 3.0 and it just works... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end? .. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 04:30:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA03880 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 04:30:16 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA03810 for ; Sat, 17 Oct 1998 04:30:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id EAA14208; Sat, 17 Oct 1998 04:30:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA03287; Sat, 17 Oct 1998 04:25:05 -0700 (PDT) (envelope-from nobody) Message-Id: <199810171125.EAA03287@hub.freebsd.org> Date: Sat, 17 Oct 1998 04:25:05 -0700 (PDT) From: rei@internetional.com.br To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: i386/8360: When i try to make "su" comand the system return "Segment Fault" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8360 >Category: i386 >Synopsis: When i try to make "su" comand the system return "Segment Fault" >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 17 04:30:01 PDT 1998 >Last-Modified: >Originator: Reinaldo A. Carvalho >Organization: Internetional Hosts >Release: 2.2.7 >Environment: FreeBSD myname.my.domain 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Wed Jul 22 08:48:29 GMT 1998 root@builder.cdrom.com:/usr/src/sys/compile/GENERIC i386 >Description: This is the problem : bash-2.02$ su Segmentation fault >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 11:48:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10160 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 11:48:17 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from lariat.lariat.org (lariat.lariat.org [206.100.185.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10154 for ; Sat, 17 Oct 1998 11:48:13 -0700 (PDT) (envelope-from brett@lariat.org) Received: (from brett@localhost) by lariat.lariat.org (8.8.8/8.8.6) id MAA06165; Sat, 17 Oct 1998 12:47:49 -0600 (MDT) Message-Id: <4.1.19981017121426.06ec3ea0@mail.lariat.org> X-Sender: brett@mail.lariat.org X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sat, 17 Oct 1998 12:46:57 -0600 To: bugs@FreeBSD.ORG From: Brett Glass Subject: Crash workaround: ATAPI and ATAPI_STATIC required in 2.2.7 wd driver Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've finally taken an entire day and managed to get those 2.2.7 systems stable. As I've mentioned earlier, the machines were getting page faults in the kernel during disk-intensive operations and sometimes seemingly at random. I enabled the debugger and stimulated the systems to crash by running disk-intensive tasks. When I looked at the systems in the debugger after the crash, EVERY ONE was in an idle loop at the time. What's more, WHILE THE DEBUGGER WAS RUNNING, I received error messages from the wd driver. Since the wd driver enters an idle loop to wait for I/O completion, and the crashes occurred during periods of heavy disk I/O (fortunately, mostly reads), everything seemed to point toward the wd driver as the source of the problem. Experimentation was made difficult, however, by the fact that building a new kernel also generated sufficiently intense disk activity to crater the machine. I set up another machine with a SCSI drive just to build test kernels. Sure enough, after MUCH experimentation, I finally found that if one enables the ATAPI and ATAPI_STATIC kernel options -- even though there are no ATAPI CD-ROM drives or tapes present -- the problem vanishes. Once I installed a kernel with these options, we were even able to do a full backup without a crash -- something that hadn't worked in months. Has the code been tested without the ATAPI and ATAPI_STATIC options lately? (I imagine that a lot of work has gone into SCSI testing, so problems with IDE might have been missed even in 3.0.) Who is currently responsible for maintaining the wd driver? --Brett Glass To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 12:06:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA11852 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 12:06:30 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from sos.freebsd.dk (sos.freebsd.dk [212.242.40.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA11817 for ; Sat, 17 Oct 1998 12:06:19 -0700 (PDT) (envelope-from sos@sos.freebsd.dk) Received: (from sos@localhost) by sos.freebsd.dk (8.9.1/8.9.1) id VAA11389; Sat, 17 Oct 1998 21:05:29 +0200 (CEST) (envelope-from sos) Message-Id: <199810171905.VAA11389@sos.freebsd.dk> Subject: Re: Crash workaround: ATAPI and ATAPI_STATIC required in 2.2.7 wd driver In-Reply-To: <4.1.19981017121426.06ec3ea0@mail.lariat.org> from Brett Glass at "Oct 17, 98 12:46:57 pm" To: brett@lariat.org (Brett Glass) Date: Sat, 17 Oct 1998 21:05:29 +0200 (CEST) Cc: bugs@FreeBSD.ORG From: Søren Schmidt Reply-to: sos@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In reply to Brett Glass who wrote: > I've finally taken an entire day and managed to get those 2.2.7 systems > stable. As I've mentioned earlier, the machines were getting page faults in > the kernel during disk-intensive operations and sometimes seemingly at random. [snip]> > Has the code been tested without the ATAPI and ATAPI_STATIC options lately? > (I imagine that a lot of work has gone into SCSI testing, so problems with > IDE might have been missed even in 3.0.) Who is currently responsible for > maintaining the wd driver? Hmm, I doing a rewrite (slowly :( ) of the ata/atapi system, but the problem you see I've never heard of before. What kind of drives do you have and what flags do you have on the wd driver ?? The only thing that I can come up with is that the ATAPI options alters the timing a bit... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end? .. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 12:24:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA13630 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 12:24:38 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from lariat.lariat.org (lariat.lariat.org [206.100.185.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA13613; Sat, 17 Oct 1998 12:24:34 -0700 (PDT) (envelope-from brett@lariat.org) Received: (from brett@localhost) by lariat.lariat.org (8.8.8/8.8.6) id NAA06399; Sat, 17 Oct 1998 13:24:07 -0600 (MDT) Message-Id: <4.1.19981017130810.06f04590@mail.lariat.org> X-Sender: brett@mail.lariat.org X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sat, 17 Oct 1998 13:23:16 -0600 To: sos@FreeBSD.ORG From: Brett Glass Subject: Re: Crash workaround: ATAPI and ATAPI_STATIC required in 2.2.7 wd driver Cc: bugs@FreeBSD.ORG In-Reply-To: <199810171905.VAA11389@sos.freebsd.dk> References: <4.1.19981017121426.06ec3ea0@mail.lariat.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id MAA13619 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 09:05 PM 10/17/98 +0200, Søren Schmidt wrote: >Hmm, I doing a rewrite (slowly :( ) of the ata/atapi system, but the >problem you see I've never heard of before. What kind of drives do >you have We have several, but the machine that acted up first had a Western Digital Caviar 32500. Here are the messages displayed during a boot with the -v (verbose) boot option: wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 2441MB (4999680 sectors), 4960 cyls, 16 heads, 63 S/T, 512 B/S >and what flags do you have on the wd driver ?? The defaults. >The only thing that I can come up with is that the ATAPI options >alters the timing a bit... Are you sure? It seems to me that there might be an error in buffering (hence the page faults) or in IRQ handling. I don't know the code well enough to tell, though. (I'd love to become a FreeBSD kernel hacker, but can find no good reference on register use conventions, timing conventions, kernel data structures, etc. -- and I know that one can't always glean these subtleties from the code. The one time I hacked the wd driver and published some changes, I was told that I'd broken a bunch of rules, though the code somehow worked. But anyway, this is a side issue.) There's got to be some reason why the code is trying to access invalid addresses in one case but not the other.... --Brett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 12:51:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA16546 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 12:51:50 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from sos.freebsd.dk (sos.freebsd.dk [212.242.40.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA16534; Sat, 17 Oct 1998 12:51:39 -0700 (PDT) (envelope-from sos@sos.freebsd.dk) Received: (from sos@localhost) by sos.freebsd.dk (8.9.1/8.9.1) id VAA11529; Sat, 17 Oct 1998 21:49:33 +0200 (CEST) (envelope-from sos) Message-Id: <199810171949.VAA11529@sos.freebsd.dk> Subject: Re: Crash workaround: ATAPI and ATAPI_STATIC required in 2.2.7 wd driver In-Reply-To: <4.1.19981017130810.06f04590@mail.lariat.org> from Brett Glass at "Oct 17, 98 01:23:16 pm" To: brett@lariat.org (Brett Glass) Date: Sat, 17 Oct 1998 21:49:33 +0200 (CEST) Cc: sos@FreeBSD.ORG, bugs@FreeBSD.ORG From: Søren Schmidt Reply-to: sos@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In reply to Brett Glass who wrote: > At 09:05 PM 10/17/98 +0200, Søren Schmidt wrote: > > >Hmm, I doing a rewrite (slowly :( ) of the ata/atapi system, but the > >problem you see I've never heard of before. What kind of drives do > >you have > > We have several, but the machine that acted up first had a Western Digital > Caviar 32500. Here are the messages displayed during a boot with the -v > (verbose) boot option: > > wdc0 at 0x1f0-0x1f7 irq 14 on isa > wdc0: unit 0 (wd0): > wd0: 2441MB (4999680 sectors), 4960 cyls, 16 heads, 63 S/T, 512 B/S Well, some WD drives are a bit wierd, the 1.2G i had said it could handle DMA, but fu*ed up real bad when told to,... > >and what flags do you have on the wd driver ?? > > The defaults. Ok. > >The only thing that I can come up with is that the ATAPI options > >alters the timing a bit... > > Are you sure? It seems to me that there might be an error in buffering > (hence the page faults) or in IRQ handling. I don't know the code > well enough to tell, though. (I'd love to become a FreeBSD kernel > hacker, but can find no good reference on register use conventions, > timing conventions, kernel data structures, etc. -- and I know that > one can't always glean these subtleties from the code. The one time > I hacked the wd driver and published some changes, I was told that > I'd broken a bunch of rules, though the code somehow worked. But > anyway, this is a side issue.) I just looked again (in -current though), and I cannot see how adding the ATAPI* options should heal some disk problem. You didn't use any atapi drives right ?? > There's got to be some reason why the code is trying to access > invalid addresses in one case but not the other.... Well, yes :) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end? .. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 13:01:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA17961 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 13:01:47 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from lariat.lariat.org (lariat.lariat.org [206.100.185.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA17945; Sat, 17 Oct 1998 13:01:40 -0700 (PDT) (envelope-from brett@lariat.org) Received: (from brett@localhost) by lariat.lariat.org (8.8.8/8.8.6) id OAA06745; Sat, 17 Oct 1998 14:01:17 -0600 (MDT) Message-Id: <4.1.19981017135219.06f00520@mail.lariat.org> X-Sender: brett@mail.lariat.org X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sat, 17 Oct 1998 13:55:29 -0600 To: sos@FreeBSD.ORG From: Brett Glass Subject: Re: Crash workaround: ATAPI and ATAPI_STATIC required in 2.2.7 wd driver Cc: bugs@FreeBSD.ORG In-Reply-To: <199810171949.VAA11529@sos.freebsd.dk> References: <4.1.19981017130810.06f04590@mail.lariat.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id NAA17949 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 09:49 PM 10/17/98 +0200, Søren Schmidt wrote: >I just looked again (in -current though), and I cannot see how adding >the ATAPI* options should heal some disk problem. You didn't use >any atapi drives right ?? Nope, that WD drive is the only IDE device on the ENTIRE system. >> There's got to be some reason why the code is trying to access >> invalid addresses in one case but not the other.... > >Well, yes :) Well, I do see some code inside #ifdef ATAPI conditionals that seems to deal with buffers and/or IRQs. Could it be that this is the difference? (I'll send you the 2.2.7 wd.c if it's convenient.) --Brett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 13:24:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA21297 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 13:24:32 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from sos.freebsd.dk (sos.freebsd.dk [212.242.40.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA21284; Sat, 17 Oct 1998 13:24:15 -0700 (PDT) (envelope-from sos@sos.freebsd.dk) Received: (from sos@localhost) by sos.freebsd.dk (8.9.1/8.9.1) id WAA11624; Sat, 17 Oct 1998 22:23:33 +0200 (CEST) (envelope-from sos) Message-Id: <199810172023.WAA11624@sos.freebsd.dk> Subject: Re: Crash workaround: ATAPI and ATAPI_STATIC required in 2.2.7 wd driver In-Reply-To: <4.1.19981017135219.06f00520@mail.lariat.org> from Brett Glass at "Oct 17, 98 01:55:29 pm" To: brett@lariat.org (Brett Glass) Date: Sat, 17 Oct 1998 22:23:33 +0200 (CEST) Cc: sos@FreeBSD.ORG, bugs@FreeBSD.ORG From: Søren Schmidt Reply-to: sos@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In reply to Brett Glass who wrote: > > >> There's got to be some reason why the code is trying to access > >> invalid addresses in one case but not the other.... > > > >Well, yes :) > > Well, I do see some code inside #ifdef ATAPI conditionals that > seems to deal with buffers and/or IRQs. Could it be that this is the > difference? (I'll send you the 2.2.7 wd.c if it's convenient.) Hmm, not really I just took a look at the 2.2.7 wd.c... Does your BIOS allow you to set the parameters used for the disk, ie can you hardwire it to a specific PIO mode ?? if so I'd check what the BIOS sets it to as default, and step that back one notch, then see if the problem persists. Maybe you already stated that, but what chipset does your machine(s) have ?? Some chipsets does push the timing quite a bit which in some cases causes problems. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team Even more code to hack -- will it ever end? .. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 13:37:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA22511 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 13:37:16 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from lariat.lariat.org (lariat.lariat.org [206.100.185.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA22501; Sat, 17 Oct 1998 13:37:04 -0700 (PDT) (envelope-from brett@lariat.org) Received: (from brett@localhost) by lariat.lariat.org (8.8.8/8.8.6) id OAA07090; Sat, 17 Oct 1998 14:36:41 -0600 (MDT) Message-Id: <4.1.19981017143202.06f40410@mail.lariat.org> X-Sender: brett@mail.lariat.org X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sat, 17 Oct 1998 14:35:47 -0600 To: sos@FreeBSD.ORG From: Brett Glass Subject: Re: Crash workaround: ATAPI and ATAPI_STATIC required in 2.2.7 wd driver Cc: bugs@FreeBSD.ORG In-Reply-To: <199810172023.WAA11624@sos.freebsd.dk> References: <4.1.19981017135219.06f00520@mail.lariat.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id NAA22505 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 10:23 PM 10/17/98 +0200, Søren Schmidt wrote: >Hmm, not really I just took a look at the 2.2.7 wd.c... >Does your BIOS allow you to set the parameters used for the disk, >ie can you hardwire it to a specific PIO mode ?? Nope. There's no setting for that. This a 486 machine; the BIOS was developed before people talked about "PIO modes." >Maybe you already stated that, but what chipset does your machine(s) >have ?? Some chipsets does push the timing quite a bit which in >some cases causes problems. This is a Zeos "Rattler" board with an Intel chipset. The Saturn, I think. Here's what I see at boot time: FreeBSD 2.2.7-RELEASE #0: Fri Oct 16 23:54:10 MDT 1998 brett@lariat.lariat.org:/usr/src/sys/compile/LARIAT Calibrating clock(s) ... i8254 clock: 1193135 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency CPU: i486 DX4 (486-class CPU) Origin = "GenuineIntel" Id = 0x480 Stepping=0 Features=0x3 real memory = 16777216 (16384K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x001b4000 - 0x00ffdfff, 14983168 bytes (3658 pages) avail memory = 15065088 (14712K bytes) pcibus_setup(1): mode 1 addr port (0x0cf8) is 0x00000000 pcibus_setup(1a): mode1res=0x00000000 (0x80000000) pcibus_setup(1b): mode1res=0x00000000 (0xff000001) pcibus_setup(2): mode 2 enable port (0x0cf8) is 0x00 pcibus_setup(2a): mode2res=0x0e (0x0e) pcibus_setup(2a): now trying mechanism 2 pcibus_check: device 0 is there (id=04838086) Probing for devices on PCI bus 0: configuration mode 2 allows 16 devices. chip0 rev 4 on pci0:0:0 CPU: 486DX2 or 486DX4, bus=33MHz, CPU->Memory posting ON Warning: NO DRAM parity! Cache: 256KB writeback, cache clocks=2-1-1-1 DRAM: page mode code fetch, read and write, memory clocks=X-1-2-1 CPU->PCI: posting ON, burst mode ON PCI->Memory: posting OFF chip1 rev 3 on pci0:2:0 Bus Modes: Resource Lock, Coprocessor errors enabled Keyboard controller: 60h,62h,64h,66h RTC: 70h-77h Port 92: enabled vga0 rev 0 on pci0:13:0 mapreg[10] type=0 addr=10000000 size=800000. pci0: uses 8388608 bytes of memory from 10000000 upto 107fffff. Probing for devices on the ISA bus: ...etc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 20:40:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA01023 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 20:40:17 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA00922 for ; Sat, 17 Oct 1998 20:40:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA11312; Sat, 17 Oct 1998 20:40:02 -0700 (PDT) Received: from lain.tenchi.ne.jp (dp1-007.kawagoe.linkclub.or.jp [210.155.115.207]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA00501 for ; Sat, 17 Oct 1998 20:36:04 -0700 (PDT) (envelope-from toshi@tenchi.ne.jp) Received: (from toshi@localhost) by lain.tenchi.ne.jp (8.8.8/3.6Wb) id MAA04256; Sun, 18 Oct 1998 12:09:24 +0900 (JST) Message-Id: <199810180309.MAA04256@lain.tenchi.ne.jp> Date: Sun, 18 Oct 1998 12:09:24 +0900 (JST) From: Toshihiko ARAI To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8366: msdosfs re-mount kernel panic. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8366 >Category: kern >Synopsis: msdosfs re-mount kernel panic. >Confidential: yes >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 17 20:40:01 PDT 1998 >Last-Modified: >Originator: Toshihiko ARAI >Organization: Tenchi-Muyo! & PIONEER-LDC ML. >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: FreeBSD 2.2.7-RELEASE and 2.2-STABLE i386 and pc98 arch. FAT16, FAT32 msdos filesystem. >Description: msdosfs bugs. case 1: read-only -> writable -> file copy -> panic case 2: read-write -> read-only -> panic >How-To-Repeat: /etc/fstab: /dev/sd0s3 /msdos msdos ro 0 0 case 1 # mount /msdos # mount -u -w /msdos # cp foo.txt /msdos # sync panic: msdosfs_sync: rofs mod rebooting... case 2 writable mounted on /msdos # mount -u -r /msdos panic: vflush: not busy rebooting... >Fix: cd /msdosfs patch < patch-file Index: msdosfs_denode.c =================================================================== RCS file: /usr/tmp/cvsup/cvs/PAO/sys/msdosfs/msdosfs_denode.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 msdosfs_denode.c --- msdosfs_denode.c 1998/07/24 10:22:22 1.1.1.2 +++ msdosfs_denode.c 1998/10/17 06:07:00 @@ -55,7 +55,10 @@ #include #include #include + +#ifndef __FreeBSD_version #include /* defines "time" */ +#endif #include #include Index: msdosfs_lookup.c =================================================================== RCS file: /usr/tmp/cvsup/cvs/PAO/sys/msdosfs/msdosfs_lookup.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 msdosfs_lookup.c --- msdosfs_lookup.c 1998/07/24 10:22:25 1.1.1.2 +++ msdosfs_lookup.c 1998/10/17 05:25:25 @@ -942,9 +942,7 @@ int error; daddr_t bn; int blsize; - u_long boff; - boff = diroffset & ~pmp->pm_crbomask; blsize = pmp->pm_bpcluster; if (dirclust == MSDOSFSROOT && de_blk(pmp, diroffset + blsize) > pmp->pm_rootdirsize) Index: msdosfs_vfsops.c =================================================================== RCS file: /usr/tmp/cvsup/cvs/PAO/sys/msdosfs/msdosfs_vfsops.c,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 msdosfs_vfsops.c --- msdosfs_vfsops.c 1998/07/24 10:22:29 1.1.1.3 +++ msdosfs_vfsops.c 1998/10/17 05:44:47 @@ -259,7 +259,14 @@ flags = WRITECLOSE; if (mp->mnt_flag & MNT_FORCE) flags |= FORCECLOSE; +#ifndef __FreeBSD_version + if (vfs_busy(mp)) + return EBUSY; +#endif error = vflush(mp, NULLVP, flags); +#ifndef __FreeBSD_version + vfs_unbusy(mp); +#endif } if (!error && (mp->mnt_flag & MNT_RELOAD)) /* not yet implemented */ @@ -269,7 +276,7 @@ #ifdef __FreeBSD_version if ((pmp->pm_flags & MSDOSFSMNT_RONLY) && (mp->mnt_kern_flag & MNTK_WANTRDWR)) { #else - if ((pmp->pm_flags & MSDOSFSMNT_RONLY) && (mp->mnt_flag & MNT_RDONLY) == 0) { + if ((pmp->pm_flags & MSDOSFSMNT_RONLY) && (mp->mnt_flag & MNT_WANTRDWR)) { #endif /* * If upgrade to read-write by non-root, then verify @@ -1134,4 +1141,8 @@ msdosfs_init }; +#ifdef __FreeBSD_version +VFS_SET(msdosfs_vfsops, msdos, 0); +#else VFS_SET(msdosfs_vfsops, msdos, MOUNT_MSDOS, 0); +#endif Index: msdosfs_vnops.c =================================================================== RCS file: /usr/tmp/cvsup/cvs/PAO/sys/msdosfs/msdosfs_vnops.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 msdosfs_vnops.c --- msdosfs_vnops.c 1998/07/24 10:22:31 1.1.1.2 +++ msdosfs_vnops.c 1998/10/17 05:50:11 @@ -1521,7 +1523,9 @@ #endif goto bad; } - if (ip->de_dirclust != MSDOSFSROOT) + if (ip->de_dirclust == MSDOSFSROOT) + ip->de_diroffset = to_diroffset; + else ip->de_diroffset = to_diroffset & pmp->pm_crbomask; } reinsert(ip); @@ -2150,6 +2154,9 @@ static int msdosfs_strategy(ap) struct vop_strategy_args /* { +#ifdef __FreeBSD_version + struct vnode *a_vp; +#endif struct buf *a_bp; } */ *ap; { @@ -2187,7 +2194,11 @@ */ vp = dep->de_devvp; bp->b_dev = vp->v_rdev; +#ifdef __FreeBSD_version + VOP_STRATEGY(vp, bp); +#else VOCALL(vp->v_op, VOFFSET(vop_strategy), ap); +#endif return (0); } @@ -2200,7 +2211,7 @@ struct denode *dep = VTODE(ap->a_vp); printf( - "tag VT_MSDOSFS, startcluster %d, dircluster %ld, diroffset %ld ", + "tag VT_MSDOSFS, startcluster %lu, dircluster %lu, diroffset %lu ", dep->de_StartCluster, dep->de_dirclust, dep->de_diroffset); printf(" dev %d, %d", major(dep->de_dev), minor(dep->de_dev)); #ifdef __FreeBSD_version >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 21:00:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA02912 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 21:00:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA02904 for ; Sat, 17 Oct 1998 21:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA11821; Sat, 17 Oct 1998 21:00:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA02552; Sat, 17 Oct 1998 20:55:20 -0700 (PDT) (envelope-from nobody) Message-Id: <199810180355.UAA02552@hub.freebsd.org> Date: Sat, 17 Oct 1998 20:55:20 -0700 (PDT) From: rsecor@seqlogic.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/8367: /stand/sysintall is screwing up my /etc/rc.conf file's router_enable option Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8367 >Category: bin >Synopsis: /stand/sysintall is screwing up my /etc/rc.conf file's router_enable option >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 17 21:00:00 PDT 1998 >Last-Modified: >Originator: Richard Secor >Organization: Sequential Logic >Release: 2.2.2, 2.2.6, 2.2.7, 3.0 >Environment: FreeBSD tribunal.seqlogic.com 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Wed Sep 23 22:44:12 EDT 1998 root@spaceball1.seqlogic.com:/usr/src/sys/compile/SPACEBALL i386 >Description: I run /stand/sysinstall, when I exit out I find out that the router_enable option in my /etc/rc.conf file is now set to NO instead of the YES I wanted. Even if I specify this in the network configuration portion of /stand/sysinstall it doesn't stick when I exit /stand/sysinstall. I consistantly have to change it manually. This happens in every version of FreeBSD I've ever used. It's not really important but is REALLY annoying. >How-To-Repeat: See Full Description. >Fix: Somewhere in the source, would do it myself but waiting on a new hard drive big enough for the source to be installed... my last drive died from a burn-out. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 21:47:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA07063 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 21:47:54 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA07051; Sat, 17 Oct 1998 21:47:40 -0700 (PDT) (envelope-from thepish@FreeBSD.org) From: Peter Hawkins Received: (from thepish@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id VAA12867; Sat, 17 Oct 1998 21:47:37 -0700 (PDT) Date: Sat, 17 Oct 1998 21:47:37 -0700 (PDT) Message-Id: <199810180447.VAA12867@freefall.freebsd.org> To: dglo@SSEC.WISC.EDU, thepish@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/7583 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: indent input file argument isn't really optional State-Changed-From-To: open-closed State-Changed-By: thepish State-Changed-When: Sat Oct 17 21:46:30 PDT 1998 State-Changed-Why: Good patch. Thankyou. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 22:07:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA08302 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 22:07:15 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA08295; Sat, 17 Oct 1998 22:07:06 -0700 (PDT) (envelope-from thepish@FreeBSD.org) From: Peter Hawkins Received: (from thepish@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA13413; Sat, 17 Oct 1998 22:07:03 -0700 (PDT) Date: Sat, 17 Oct 1998 22:07:03 -0700 (PDT) Message-Id: <199810180507.WAA13413@freefall.freebsd.org> To: rsecor@seqlogic.com, thepish@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/8367 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: /stand/sysintall is screwing up my /etc/rc.conf file's router_enable option State-Changed-From-To: open-feedback State-Changed-By: thepish State-Changed-When: Sat Oct 17 22:05:34 PDT 1998 State-Changed-Why: Need more info to be able to repeat (to wit - what is user doing when in sysinstall? (at a guess asking for gated but sysinstall can't load gated) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message From owner-freebsd-bugs Sat Oct 17 22:10:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA08700 for freebsd-bugs-outgoing; Sat, 17 Oct 1998 22:10:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA08695 for ; Sat, 17 Oct 1998 22:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA13604; Sat, 17 Oct 1998 22:10:00 -0700 (PDT) Date: Sat, 17 Oct 1998 22:10:00 -0700 (PDT) Message-Id: <199810180510.WAA13604@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Peter Hawkins Subject: Re: bin/8367: /stand/sysintall is screwing up my /etc/rc.conf file's router_enable option Reply-To: Peter Hawkins Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8367; it has been noted by GNATS. From: Peter Hawkins To: rsecor@seqlogic.com Cc: freebsd-gnats-submit@freebsd.org Subject: Re: bin/8367: /stand/sysintall is screwing up my /etc/rc.conf file's router_enable option Date: Sun, 18 Oct 1998 15:01:47 +1000 (EST) >I run /stand/sysinstall Could you be a little more specific please? What are you doing within sysinstall? Could you let us know what things you have to perform within sysinstall to repeat this problem? Are you doing a full system upgrade or just ducking in to add some extra distributions or prepare a hard disk? Give me a step by step list of your actions within sysinstall and I'll try to repeat it. Peter Hilink Internet Peter Hawkins 381 Swan St Richmond, Vic, Australia Ph: +61-3-9421 2006 Fax: +61-3-9421 2007 http://www.hilink.com.au Peter@hilink.com.au FreeBSD Project: thepish@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message