From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 21 00:20:14 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AD2F16A4C0 for ; Sun, 21 Sep 2003 00:20:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BEC443FB1 for ; Sun, 21 Sep 2003 00:20:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8L7KDFY013403 for ; Sun, 21 Sep 2003 00:20:13 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8L7KDwW013402; Sun, 21 Sep 2003 00:20:13 -0700 (PDT) (envelope-from gnats) Date: Sun, 21 Sep 2003 00:20:13 -0700 (PDT) Message-Id: <200309210720.h8L7KDwW013402@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Maxim Konovalov Subject: Re: kern/56976: Random panic on reading virtual memory X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maxim Konovalov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 07:20:14 -0000 The following reply was made to PR kern/56976; it has been noted by GNATS. From: Maxim Konovalov To: John Gillis Cc: bug-followup@freebsd.org Subject: Re: kern/56976: Random panic on reading virtual memory Date: Sun, 21 Sep 2003 11:12:20 +0400 (MSD) John, On Sat, 20 Sep 2003, 19:00-0400, John Gillis wrote: > > There were several bugs in PAE code committed 09/08/2003 and fixed > > after 30/08/2003. Please upgrade and let me know if the bug is still > > present. > > Okay, I have the latest kernel running, labeled as "4.9-PRERELEASE > #7". I'm having a problem though.. I have two sound cards installed in my > computer (one onboard, the other PCI). It's worked without a problem since > 4.7, but with the latest kernel, it hangs upon detection of the pcm1. This > is from 4.8 (where it worked), but it'd stop BEFORE the last line (so, I > wouldn't see the codec): > > nvidia0: mem 0xe7800000-0xe787ffff,0xe8000000-0xeFffffff, > 0xe5000000-0xe5ffffff irq 11 at device 0.0 on pci1 > pcm0: port 0xd800-0xd8ff irq 10 at device 5.0 on pci0 > wi0: mem 0xe6800000-0xe6800fff irq 11 at device 13.0 on pci0 > wi0: 802.11 address: 00:06:25:09:21:77 > wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI) > wi0: IntErsil Firmware: Primary 1.01.00, Station 1.04.02 > pcm1: port 0xd400-0xd41f irq 10 at device 14.0 on pci0 > pcm1: > > When I tried enabling PnP OS, the kernel threw up and couldn't > register mem address or something like that (sorry, no log of that). > Disabling that kld allows me to boot. > > Should I post a new PR or is this a known issue? I'll try to beat > down my VM sometime this week, so see if I get the segfault. Thanks, I believe this is a different issue and you should open a new PR. I will wait for aa week and then close this one. Thank you! -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 21 01:00:43 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B26E16A4B3 for ; Sun, 21 Sep 2003 01:00:43 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFF0743F75 for ; Sun, 21 Sep 2003 01:00:42 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8L80gFY023119 for ; Sun, 21 Sep 2003 01:00:42 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8L80gLc023117; Sun, 21 Sep 2003 01:00:42 -0700 (PDT) (envelope-from gnats) Date: Sun, 21 Sep 2003 01:00:42 -0700 (PDT) Message-Id: <200309210800.h8L80gLc023117@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: alo@iki.fi (Antti Louko) Subject: Re: kern/57044: sysctl -a panics, kern.disks shows detached umass device X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Antti Louko List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 08:00:43 -0000 The following reply was made to PR kern/57044; it has been noted by GNATS. From: alo@iki.fi (Antti Louko) To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/57044: sysctl -a panics, kern.disks shows detached umass device Date: 21 Sep 2003 07:58:39 -0000 A further note: The problem only occurs if the attached disk has fdisk partition table. But without slices and partitions, the disk is quite useless. Here is kern.geom.debugflags=1 dmesg. I added notes of sysctl commands and attachments and detachments. There is one newfs:ed filesystem on da0s1c. Sep 21 07:50:20 lexi2 root: sysctl -a Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f16c0, 262146 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f16e0, 262146 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7950, 0xc72f1680, 262146 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7950, 0xc72f1640, 262146 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d72e0, 0xc72f1660, 262146 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d72e0, 0xc72f1620, 262146 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7490, 0xc72f1600, 262146 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7490, 0xc72f15c0, 262146 Sep 21 07:51:02 lexi2 root: attach da0 Sep 21 07:51:10 lexi2 kernel: umass0: Apacer HandyDrive, rev 1.10/1.00, addr 2 Sep 21 07:51:10 lexi2 kernel: g_post_event_x(0xc02d6e00, 0xc73c6050, 2 Sep 21 07:51:10 lexi2 kernel: ref 0xc73c6050 Sep 21 07:51:10 lexi2 kernel: g_post_event_x(0xc02da4b0, 0xc7622780, 2 Sep 21 07:51:10 lexi2 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Sep 21 07:51:10 lexi2 kernel: da0: Removable Direct Access SCSI-0 device Sep 21 07:51:10 lexi2 kernel: da0: 1.000MB/s transfers Sep 21 07:51:10 lexi2 kernel: da0: 31MB (64000 512 byte sectors: 64H 32S/T 31C) Sep 21 07:51:10 lexi2 kernel: ref 0xc7622780 Sep 21 07:51:10 lexi2 kernel: g_mbrext_taste(MBREXT,da0) Sep 21 07:51:10 lexi2 kernel: mbr_taste(MBR,da0) Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 0, 0) Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 1, 0) Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 2, 0) Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 3, 0) Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 0, 1) Sep 21 07:51:10 lexi2 kernel: g_post_event_x(0xc02da4b0, 0xc7622800, 2 Sep 21 07:51:10 lexi2 kernel: ref 0xc7622800 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 1, 1) Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 2, 1) Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 3, 1) Sep 21 07:51:10 lexi2 kernel: bsd_taste(BSD,da0) Sep 21 07:51:10 lexi2 kernel: g_slice_spoiled(0xc7616180/da0) Sep 21 07:51:10 lexi2 kernel: g_wither_geom(0xc7622b80(da0)) Sep 21 07:51:10 lexi2 kernel: g_detach(0xc7616180) Sep 21 07:51:10 lexi2 kernel: g_destroy_consumer(0xc7616180) Sep 21 07:51:10 lexi2 kernel: g_destroy_geom(0xc7622b80(da0)) Sep 21 07:51:10 lexi2 kernel: dev_taste(DEV,da0) Sep 21 07:51:10 lexi2 kernel: g_mbrext_taste(MBREXT,da0s1) Sep 21 07:51:10 lexi2 kernel: g_slice_spoiled(0xc7616200/da0s1) Sep 21 07:51:10 lexi2 kernel: g_wither_geom(0xc7622b00(da0s1)) Sep 21 07:51:10 lexi2 kernel: g_detach(0xc7616200) Sep 21 07:51:10 lexi2 kernel: g_destroy_consumer(0xc7616200) Sep 21 07:51:10 lexi2 kernel: g_destroy_geom(0xc7622b00(da0s1)) Sep 21 07:51:10 lexi2 kernel: mbr_taste(MBR,da0s1) Sep 21 07:51:11 lexi2 kernel: g_slice_spoiled(0xc7410f00/da0s1) Sep 21 07:51:11 lexi2 kernel: g_wither_geom(0xc7622c00(da0s1)) Sep 21 07:51:11 lexi2 kernel: g_detach(0xc7410f00) Sep 21 07:51:11 lexi2 kernel: g_destroy_consumer(0xc7410f00) Sep 21 07:51:11 lexi2 kernel: g_destroy_geom(0xc7622c00(da0s1)) Sep 21 07:51:11 lexi2 kernel: bsd_taste(BSD,da0s1) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 0, 0) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 1, 0) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 2, 0) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 3, 0) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 4, 0) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 5, 0) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 6, 0) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 7, 0) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 0, 1) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 1, 1) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 2, 1) Sep 21 07:51:11 lexi2 kernel: g_post_event_x(0xc02da4b0, 0xc7622c00, 2 Sep 21 07:51:11 lexi2 kernel: ref 0xc7622c00 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 3, 1) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 4, 1) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 5, 1) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 6, 1) Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 7, 1) Sep 21 07:51:11 lexi2 kernel: g_slice_conf_hot(da0s1, idx: 0, off: 512, len: 276) Sep 21 07:51:11 lexi2 kernel: dev_taste(DEV,da0s1) Sep 21 07:51:11 lexi2 kernel: g_mbrext_taste(MBREXT,da0s1c) Sep 21 07:51:11 lexi2 kernel: mbr_taste(MBR,da0s1c) Sep 21 07:51:11 lexi2 kernel: g_slice_spoiled(0xc7616a00/da0s1c) Sep 21 07:51:11 lexi2 kernel: g_wither_geom(0xc7622680(da0s1c)) Sep 21 07:51:11 lexi2 kernel: g_detach(0xc7616a00) Sep 21 07:51:11 lexi2 kernel: g_destroy_consumer(0xc7616a00) Sep 21 07:51:11 lexi2 kernel: g_destroy_geom(0xc7622680(da0s1c)) Sep 21 07:51:11 lexi2 kernel: bsd_taste(BSD,da0s1c) Sep 21 07:51:11 lexi2 kernel: g_slice_spoiled(0xc7616580/da0s1c) Sep 21 07:51:11 lexi2 kernel: g_wither_geom(0xc7622b80(da0s1c)) Sep 21 07:51:11 lexi2 kernel: g_detach(0xc7616580) Sep 21 07:51:11 lexi2 kernel: g_destroy_consumer(0xc7616580) Sep 21 07:51:11 lexi2 kernel: g_destroy_geom(0xc7622b80(da0s1c)) Sep 21 07:51:11 lexi2 kernel: dev_taste(DEV,da0s1c) Sep 21 07:51:17 lexi2 root: attached da0 Sep 21 07:51:30 lexi2 root: sysctl kern.disks Sep 21 07:51:32 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f1880, 262146 Sep 21 07:51:32 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f1820, 262146 Sep 21 07:51:41 lexi2 root: detach da0 Sep 21 07:51:44 lexi2 kernel: umass0: at uhub1 port 1 (addr 2) disconnected Sep 21 07:51:44 lexi2 kernel: (da0:umass-sim0:0:0:0): lost device Sep 21 07:51:44 lexi2 kernel: (da0:umass-sim0:0:0:0): removing device entry Sep 21 07:51:44 lexi2 kernel: g_post_event_x(0xc02d6f60, 0xc7622600, 2 Sep 21 07:51:44 lexi2 kernel: umass0: detached Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc7622600(da0)) Sep 21 07:51:44 lexi2 kernel: g_orphan_provider(0xc7622780(da0), 6) Sep 21 07:51:44 lexi2 kernel: g_orphan_register(da0) Sep 21 07:51:44 lexi2 kernel: g_dev_orphan(0xc76161c0(da0)) Sep 21 07:51:44 lexi2 kernel: g_detach(0xc76161c0) Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc7622600(da0)) Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc76161c0) Sep 21 07:51:44 lexi2 kernel: g_destroy_geom(0xc7622a00(da0)) Sep 21 07:51:44 lexi2 kernel: g_slice_orphan(0xc742a5c0/da0) Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc73f5300(da0)) Sep 21 07:51:44 lexi2 kernel: g_orphan_provider(0xc7622800(da0s1), 6) Sep 21 07:51:44 lexi2 kernel: g_detach(0xc742a5c0) Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc742a5c0) Sep 21 07:51:44 lexi2 kernel: g_orphan_register(da0s1) Sep 21 07:51:44 lexi2 kernel: g_dev_orphan(0xc742a4c0(da0s1)) Sep 21 07:51:44 lexi2 kernel: g_detach(0xc742a4c0) Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc73f5300(da0)) Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc742a4c0) Sep 21 07:51:44 lexi2 kernel: g_destroy_geom(0xc7622b00(da0s1)) Sep 21 07:51:44 lexi2 kernel: g_slice_orphan(0xc742aa40/da0s1) Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc7622080(da0s1)) Sep 21 07:51:44 lexi2 kernel: g_orphan_provider(0xc7622c00(da0s1c), 6) Sep 21 07:51:44 lexi2 kernel: g_detach(0xc742aa40) Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc742aa40) Sep 21 07:51:44 lexi2 kernel: g_orphan_register(da0s1c) Sep 21 07:51:44 lexi2 kernel: g_dev_orphan(0xc76166c0(da0s1c)) Sep 21 07:51:44 lexi2 kernel: g_detach(0xc76166c0) Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc7622080(da0s1)) Sep 21 07:51:44 lexi2 kernel: g_destroy_geom(0xc7622080(da0s1)) Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc76166c0) Sep 21 07:51:44 lexi2 kernel: g_destroy_geom(0xc7622900(da0s1c)) Sep 21 07:51:46 lexi2 root: sysctl kern.disks Sep 21 07:51:48 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f16c0, 262146 Sep 21 07:51:48 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f1580, 262146 After that sysctl -a panics in g_disk_dumpconf when gp->softc is NULL. From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 21 03:40:30 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2375F16A4B3 for ; Sun, 21 Sep 2003 03:40:30 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45AF043FCB for ; Sun, 21 Sep 2003 03:40:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8LAeJFY073554 for ; Sun, 21 Sep 2003 03:40:19 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8LAeJid073553; Sun, 21 Sep 2003 03:40:19 -0700 (PDT) (envelope-from gnats) Resent-Date: Sun, 21 Sep 2003 03:40:19 -0700 (PDT) Resent-Message-Id: <200309211040.h8LAeJid073553@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joost Bekkers Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5239016A4B3 for ; Sun, 21 Sep 2003 03:35:47 -0700 (PDT) Received: from bps.jodocus.org (c115139.upc-c.chello.nl [212.187.115.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5427A43F3F for ; Sun, 21 Sep 2003 03:35:43 -0700 (PDT) (envelope-from joost@bps.jodocus.org) Received: from bps.jodocus.org (localhost [127.0.0.1]) by bps.jodocus.org (8.12.8p1/8.12.8) with ESMTP id h8LAZf1e025000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 21 Sep 2003 12:35:41 +0200 (CEST) (envelope-from joost@bps.jodocus.org) Received: (from joost@localhost) by bps.jodocus.org (8.12.8p1/8.12.8/Submit) id h8LAZfxe024999; Sun, 21 Sep 2003 12:35:41 +0200 (CEST) Message-Id: <200309211035.h8LAZfxe024999@bps.jodocus.org> Date: Sun, 21 Sep 2003 12:35:41 +0200 (CEST) From: Joost Bekkers To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/57054: let test(1) compare the mtime of a file to a string X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joost Bekkers List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 10:40:30 -0000 >Number: 57054 >Category: bin >Synopsis: let test(1) compare the mtime of a file to a string >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: Sun Sep 21 03:40:18 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Joost Bekkers >Release: FreeBSD 4.8-RELEASE i386 >Organization: >Environment: System: FreeBSD bps.jodocus.org 4.8-RELEASE FreeBSD 4.8-RELEASE #1: Sun Apr 6 10:33:50 CEST 2003 joost@bps.jodocus.org:/usr/src/sys/compile/bps i386 >Description: Enable test(1) to compare the modification time of a file to a date string as used by cvs(1) eg. test file -ntt "5 days ago" >How-To-Repeat: >Fix: the 'getdate.y' file is a copy of src/usr.bin/find/getdate.y *** Makefile.(1.6.2.1) Wed Aug 1 07:31:04 2001 --- Makefile Sun Sep 21 11:21:45 2003 *************** *** 1,7 **** # @(#)Makefile 8.1 (Berkeley) 5/31/93 ! # $FreeBSD: /repoman/r/ncvs/src/bin/test/Makefile,v 1.6.2.1 2001/08/01 05:31:04 obrien Exp $ PROG= test LINKS= ${BINDIR}/test ${BINDIR}/[ MLINKS= test.1 '[.1' --- 1,9 ---- # @(#)Makefile 8.1 (Berkeley) 5/31/93 ! # $FreeBSD: src/bin/test/Makefile,v 1.6.2.1 2001/08/01 05:31:04 obrien Exp $ + CFLAGS+=-Wall PROG= test + SRCS= test.c getdate.y LINKS= ${BINDIR}/test ${BINDIR}/[ MLINKS= test.1 '[.1' *** /dev/null Sun Sep 21 12:18:13 2003 --- getdate.y Sun Sep 21 11:54:52 2003 *************** *** 0 **** --- 1,991 ---- + %{ + /* + ** Originally written by Steven M. Bellovin while + ** at the University of North Carolina at Chapel Hill. Later tweaked by + ** a couple of people on Usenet. Completely overhauled by Rich $alz + ** and Jim Berets in August, 1990; + ** + ** This grammar has 10 shift/reduce conflicts. + ** + ** This code is in the public domain and has no copyright. + */ + /* SUPPRESS 287 on yaccpar_sccsid *//* Unused static variable */ + /* SUPPRESS 288 on yyerrlab *//* Label unused */ + + /* $FreeBSD: src/usr.bin/find/getdate.y,v 1.2.4.1 2003/01/22 03:26:34 peter Exp $ */ + + #include + #include + + /* The code at the top of get_date which figures out the offset of the + current time zone checks various CPP symbols to see if special + tricks are need, but defaults to using the gettimeofday system call. + Include if that will be used. */ + + #if defined(vms) + # include + #else /* defined(vms) */ + # include + # include + # include + #endif /* !defined(vms) */ + + #if defined (__STDC__) || defined (USG) + #include + #endif + + /* Some old versions of bison generate parsers that use bcopy. + That loses on systems that don't provide the function, so we have + to redefine it here. */ + #if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy) + #define bcopy(from, to, len) memcpy ((to), (from), (len)) + #endif + + #if defined (__STDC__) + #include + #endif + + /* NOTES on rebuilding getdate.c (particularly for inclusion in CVS + releases): + + We don't want to mess with all the portability hassles of alloca. + In particular, most (all?) versions of bison will use alloca in + their parser. If bison works on your system (e.g. it should work + with gcc), then go ahead and use it, but the more general solution + is to use byacc instead of bison, which should generate a portable + parser. I played with adding "#define alloca dont_use_alloca", to + give an error if the parser generator uses alloca (and thus detect + unportable getdate.c's), but that seems to cause as many problems + as it solves. */ + + extern struct tm *gmtime(); + extern struct tm *localtime(); + + #define yyparse getdate_yyparse + #define yylex getdate_yylex + #define yyerror getdate_yyerror + + static int yyparse (); + static int yylex (); + static int yyerror (); + + #define EPOCH 1970 + #define HOUR(x) ((time_t)(x) * 60) + #define SECSPERDAY (24L * 60L * 60L) + + + /* + ** An entry in the lexical lookup table. + */ + typedef struct _TABLE { + char *name; + int type; + time_t value; + } TABLE; + + + /* + ** Daylight-savings mode: on, off, or not yet known. + */ + typedef enum _DSTMODE { + DSTon, DSToff, DSTmaybe + } DSTMODE; + + /* + ** Meridian: am, pm, or 24-hour style. + */ + typedef enum _MERIDIAN { + MERam, MERpm, MER24 + } MERIDIAN; + + + /* + ** Global variables. We could get rid of most of these by using a good + ** union as the yacc stack. (This routine was originally written before + ** yacc had the %union construct.) Maybe someday; right now we only use + ** the %union very rarely. + */ + static char *yyInput; + static DSTMODE yyDSTmode; + static time_t yyDayOrdinal; + static time_t yyDayNumber; + static int yyHaveDate; + static int yyHaveDay; + static int yyHaveRel; + static int yyHaveTime; + static int yyHaveZone; + static time_t yyTimezone; + static time_t yyDay; + static time_t yyHour; + static time_t yyMinutes; + static time_t yyMonth; + static time_t yySeconds; + static time_t yyYear; + static MERIDIAN yyMeridian; + static time_t yyRelMonth; + static time_t yyRelSeconds; + + %} + + %union { + time_t Number; + enum _MERIDIAN Meridian; + } + + %token tAGO tDAY tDAYZONE tID tMERIDIAN tMINUTE_UNIT tMONTH tMONTH_UNIT + %token tSEC_UNIT tSNUMBER tUNUMBER tZONE tDST + + %type tDAY tDAYZONE tMINUTE_UNIT tMONTH tMONTH_UNIT + %type tSEC_UNIT tSNUMBER tUNUMBER tZONE + %type tMERIDIAN o_merid + + %% + + spec : /* NULL */ + | spec item + ; + + item : time { + yyHaveTime++; + } + | zone { + yyHaveZone++; + } + | date { + yyHaveDate++; + } + | day { + yyHaveDay++; + } + | rel { + yyHaveRel++; + } + | number + ; + + time : tUNUMBER tMERIDIAN { + yyHour = $1; + yyMinutes = 0; + yySeconds = 0; + yyMeridian = $2; + } + | tUNUMBER ':' tUNUMBER o_merid { + yyHour = $1; + yyMinutes = $3; + yySeconds = 0; + yyMeridian = $4; + } + | tUNUMBER ':' tUNUMBER tSNUMBER { + yyHour = $1; + yyMinutes = $3; + yyMeridian = MER24; + yyDSTmode = DSToff; + yyTimezone = - ($4 % 100 + ($4 / 100) * 60); + } + | tUNUMBER ':' tUNUMBER ':' tUNUMBER o_merid { + yyHour = $1; + yyMinutes = $3; + yySeconds = $5; + yyMeridian = $6; + } + | tUNUMBER ':' tUNUMBER ':' tUNUMBER tSNUMBER { + yyHour = $1; + yyMinutes = $3; + yySeconds = $5; + yyMeridian = MER24; + yyDSTmode = DSToff; + yyTimezone = - ($6 % 100 + ($6 / 100) * 60); + } + ; + + zone : tZONE { + yyTimezone = $1; + yyDSTmode = DSToff; + } + | tDAYZONE { + yyTimezone = $1; + yyDSTmode = DSTon; + } + | + tZONE tDST { + yyTimezone = $1; + yyDSTmode = DSTon; + } + ; + + day : tDAY { + yyDayOrdinal = 1; + yyDayNumber = $1; + } + | tDAY ',' { + yyDayOrdinal = 1; + yyDayNumber = $1; + } + | tUNUMBER tDAY { + yyDayOrdinal = $1; + yyDayNumber = $2; + } + ; + + date : tUNUMBER '/' tUNUMBER { + yyMonth = $1; + yyDay = $3; + } + | tUNUMBER '/' tUNUMBER '/' tUNUMBER { + if ($1 >= 100) { + yyYear = $1; + yyMonth = $3; + yyDay = $5; + } else { + yyMonth = $1; + yyDay = $3; + yyYear = $5; + } + } + | tUNUMBER tSNUMBER tSNUMBER { + /* ISO 8601 format. yyyy-mm-dd. */ + yyYear = $1; + yyMonth = -$2; + yyDay = -$3; + } + | tUNUMBER tMONTH tSNUMBER { + /* e.g. 17-JUN-1992. */ + yyDay = $1; + yyMonth = $2; + yyYear = -$3; + } + | tMONTH tUNUMBER { + yyMonth = $1; + yyDay = $2; + } + | tMONTH tUNUMBER ',' tUNUMBER { + yyMonth = $1; + yyDay = $2; + yyYear = $4; + } + | tUNUMBER tMONTH { + yyMonth = $2; + yyDay = $1; + } + | tUNUMBER tMONTH tUNUMBER { + yyMonth = $2; + yyDay = $1; + yyYear = $3; + } + ; + + rel : relunit tAGO { + yyRelSeconds = -yyRelSeconds; + yyRelMonth = -yyRelMonth; + } + | relunit + ; + + relunit : tUNUMBER tMINUTE_UNIT { + yyRelSeconds += $1 * $2 * 60L; + } + | tSNUMBER tMINUTE_UNIT { + yyRelSeconds += $1 * $2 * 60L; + } + | tMINUTE_UNIT { + yyRelSeconds += $1 * 60L; + } + | tSNUMBER tSEC_UNIT { + yyRelSeconds += $1; + } + | tUNUMBER tSEC_UNIT { + yyRelSeconds += $1; + } + | tSEC_UNIT { + yyRelSeconds++; + } + | tSNUMBER tMONTH_UNIT { + yyRelMonth += $1 * $2; + } + | tUNUMBER tMONTH_UNIT { + yyRelMonth += $1 * $2; + } + | tMONTH_UNIT { + yyRelMonth += $1; + } + ; + + number : tUNUMBER { + if (yyHaveTime && yyHaveDate && !yyHaveRel) + yyYear = $1; + else { + if($1>10000) { + yyHaveDate++; + yyDay= ($1)%100; + yyMonth= ($1/100)%100; + yyYear = $1/10000; + } + else { + yyHaveTime++; + if ($1 < 100) { + yyHour = $1; + yyMinutes = 0; + } + else { + yyHour = $1 / 100; + yyMinutes = $1 % 100; + } + yySeconds = 0; + yyMeridian = MER24; + } + } + } + ; + + o_merid : /* NULL */ { + $$ = MER24; + } + | tMERIDIAN { + $$ = $1; + } + ; + + %% + + /* Month and day table. */ + static TABLE const MonthDayTable[] = { + { "january", tMONTH, 1 }, + { "february", tMONTH, 2 }, + { "march", tMONTH, 3 }, + { "april", tMONTH, 4 }, + { "may", tMONTH, 5 }, + { "june", tMONTH, 6 }, + { "july", tMONTH, 7 }, + { "august", tMONTH, 8 }, + { "september", tMONTH, 9 }, + { "sept", tMONTH, 9 }, + { "october", tMONTH, 10 }, + { "november", tMONTH, 11 }, + { "december", tMONTH, 12 }, + { "sunday", tDAY, 0 }, + { "monday", tDAY, 1 }, + { "tuesday", tDAY, 2 }, + { "tues", tDAY, 2 }, + { "wednesday", tDAY, 3 }, + { "wednes", tDAY, 3 }, + { "thursday", tDAY, 4 }, + { "thur", tDAY, 4 }, + { "thurs", tDAY, 4 }, + { "friday", tDAY, 5 }, + { "saturday", tDAY, 6 }, + { NULL } + }; + + /* Time units table. */ + static TABLE const UnitsTable[] = { + { "year", tMONTH_UNIT, 12 }, + { "month", tMONTH_UNIT, 1 }, + { "fortnight", tMINUTE_UNIT, 14 * 24 * 60 }, + { "week", tMINUTE_UNIT, 7 * 24 * 60 }, + { "day", tMINUTE_UNIT, 1 * 24 * 60 }, + { "hour", tMINUTE_UNIT, 60 }, + { "minute", tMINUTE_UNIT, 1 }, + { "min", tMINUTE_UNIT, 1 }, + { "second", tSEC_UNIT, 1 }, + { "sec", tSEC_UNIT, 1 }, + { NULL } + }; + + /* Assorted relative-time words. */ + static TABLE const OtherTable[] = { + { "tomorrow", tMINUTE_UNIT, 1 * 24 * 60 }, + { "yesterday", tMINUTE_UNIT, -1 * 24 * 60 }, + { "today", tMINUTE_UNIT, 0 }, + { "now", tMINUTE_UNIT, 0 }, + { "last", tUNUMBER, -1 }, + { "this", tMINUTE_UNIT, 0 }, + { "next", tUNUMBER, 2 }, + { "first", tUNUMBER, 1 }, + /* { "second", tUNUMBER, 2 }, */ + { "third", tUNUMBER, 3 }, + { "fourth", tUNUMBER, 4 }, + { "fifth", tUNUMBER, 5 }, + { "sixth", tUNUMBER, 6 }, + { "seventh", tUNUMBER, 7 }, + { "eighth", tUNUMBER, 8 }, + { "ninth", tUNUMBER, 9 }, + { "tenth", tUNUMBER, 10 }, + { "eleventh", tUNUMBER, 11 }, + { "twelfth", tUNUMBER, 12 }, + { "ago", tAGO, 1 }, + { NULL } + }; + + /* The timezone table. */ + /* Some of these are commented out because a time_t can't store a float. */ + static TABLE const TimezoneTable[] = { + { "gmt", tZONE, HOUR( 0) }, /* Greenwich Mean */ + { "ut", tZONE, HOUR( 0) }, /* Universal (Coordinated) */ + { "utc", tZONE, HOUR( 0) }, + { "wet", tZONE, HOUR( 0) }, /* Western European */ + { "bst", tDAYZONE, HOUR( 0) }, /* British Summer */ + { "wat", tZONE, HOUR( 1) }, /* West Africa */ + { "at", tZONE, HOUR( 2) }, /* Azores */ + #if 0 + /* For completeness. BST is also British Summer, and GST is + * also Guam Standard. */ + { "bst", tZONE, HOUR( 3) }, /* Brazil Standard */ + { "gst", tZONE, HOUR( 3) }, /* Greenland Standard */ + #endif + #if 0 + { "nft", tZONE, HOUR(3.5) }, /* Newfoundland */ + { "nst", tZONE, HOUR(3.5) }, /* Newfoundland Standard */ + { "ndt", tDAYZONE, HOUR(3.5) }, /* Newfoundland Daylight */ + #endif + { "ast", tZONE, HOUR( 4) }, /* Atlantic Standard */ + { "adt", tDAYZONE, HOUR( 4) }, /* Atlantic Daylight */ + { "est", tZONE, HOUR( 5) }, /* Eastern Standard */ + { "edt", tDAYZONE, HOUR( 5) }, /* Eastern Daylight */ + { "cst", tZONE, HOUR( 6) }, /* Central Standard */ + { "cdt", tDAYZONE, HOUR( 6) }, /* Central Daylight */ + { "mst", tZONE, HOUR( 7) }, /* Mountain Standard */ + { "mdt", tDAYZONE, HOUR( 7) }, /* Mountain Daylight */ + { "pst", tZONE, HOUR( 8) }, /* Pacific Standard */ + { "pdt", tDAYZONE, HOUR( 8) }, /* Pacific Daylight */ + { "yst", tZONE, HOUR( 9) }, /* Yukon Standard */ + { "ydt", tDAYZONE, HOUR( 9) }, /* Yukon Daylight */ + { "hst", tZONE, HOUR(10) }, /* Hawaii Standard */ + { "hdt", tDAYZONE, HOUR(10) }, /* Hawaii Daylight */ + { "cat", tZONE, HOUR(10) }, /* Central Alaska */ + { "ahst", tZONE, HOUR(10) }, /* Alaska-Hawaii Standard */ + { "nt", tZONE, HOUR(11) }, /* Nome */ + { "idlw", tZONE, HOUR(12) }, /* International Date Line West */ + { "cet", tZONE, -HOUR(1) }, /* Central European */ + { "met", tZONE, -HOUR(1) }, /* Middle European */ + { "mewt", tZONE, -HOUR(1) }, /* Middle European Winter */ + { "mest", tDAYZONE, -HOUR(1) }, /* Middle European Summer */ + { "swt", tZONE, -HOUR(1) }, /* Swedish Winter */ + { "sst", tDAYZONE, -HOUR(1) }, /* Swedish Summer */ + { "fwt", tZONE, -HOUR(1) }, /* French Winter */ + { "fst", tDAYZONE, -HOUR(1) }, /* French Summer */ + { "eet", tZONE, -HOUR(2) }, /* Eastern Europe, USSR Zone 1 */ + { "bt", tZONE, -HOUR(3) }, /* Baghdad, USSR Zone 2 */ + #if 0 + { "it", tZONE, -HOUR(3.5) },/* Iran */ + #endif + { "zp4", tZONE, -HOUR(4) }, /* USSR Zone 3 */ + { "zp5", tZONE, -HOUR(5) }, /* USSR Zone 4 */ + #if 0 + { "ist", tZONE, -HOUR(5.5) },/* Indian Standard */ + #endif + { "zp6", tZONE, -HOUR(6) }, /* USSR Zone 5 */ + #if 0 + /* For completeness. NST is also Newfoundland Stanard, and SST is + * also Swedish Summer. */ + { "nst", tZONE, -HOUR(6.5) },/* North Sumatra */ + { "sst", tZONE, -HOUR(7) }, /* South Sumatra, USSR Zone 6 */ + #endif /* 0 */ + { "wast", tZONE, -HOUR(7) }, /* West Australian Standard */ + { "wadt", tDAYZONE, -HOUR(7) }, /* West Australian Daylight */ + #if 0 + { "jt", tZONE, -HOUR(7.5) },/* Java (3pm in Cronusland!) */ + #endif + { "cct", tZONE, -HOUR(8) }, /* China Coast, USSR Zone 7 */ + { "jst", tZONE, -HOUR(9) }, /* Japan Standard, USSR Zone 8 */ + #if 0 + { "cast", tZONE, -HOUR(9.5) },/* Central Australian Standard */ + { "cadt", tDAYZONE, -HOUR(9.5) },/* Central Australian Daylight */ + #endif + { "east", tZONE, -HOUR(10) }, /* Eastern Australian Standard */ + { "eadt", tDAYZONE, -HOUR(10) }, /* Eastern Australian Daylight */ + { "gst", tZONE, -HOUR(10) }, /* Guam Standard, USSR Zone 9 */ + { "nzt", tZONE, -HOUR(12) }, /* New Zealand */ + { "nzst", tZONE, -HOUR(12) }, /* New Zealand Standard */ + { "nzdt", tDAYZONE, -HOUR(12) }, /* New Zealand Daylight */ + { "idle", tZONE, -HOUR(12) }, /* International Date Line East */ + { NULL } + }; + + /* Military timezone table. */ + static TABLE const MilitaryTable[] = { + { "a", tZONE, HOUR( 1) }, + { "b", tZONE, HOUR( 2) }, + { "c", tZONE, HOUR( 3) }, + { "d", tZONE, HOUR( 4) }, + { "e", tZONE, HOUR( 5) }, + { "f", tZONE, HOUR( 6) }, + { "g", tZONE, HOUR( 7) }, + { "h", tZONE, HOUR( 8) }, + { "i", tZONE, HOUR( 9) }, + { "k", tZONE, HOUR( 10) }, + { "l", tZONE, HOUR( 11) }, + { "m", tZONE, HOUR( 12) }, + { "n", tZONE, HOUR(- 1) }, + { "o", tZONE, HOUR(- 2) }, + { "p", tZONE, HOUR(- 3) }, + { "q", tZONE, HOUR(- 4) }, + { "r", tZONE, HOUR(- 5) }, + { "s", tZONE, HOUR(- 6) }, + { "t", tZONE, HOUR(- 7) }, + { "u", tZONE, HOUR(- 8) }, + { "v", tZONE, HOUR(- 9) }, + { "w", tZONE, HOUR(-10) }, + { "x", tZONE, HOUR(-11) }, + { "y", tZONE, HOUR(-12) }, + { "z", tZONE, HOUR( 0) }, + { NULL } + }; + + + + + /* ARGSUSED */ + static int + yyerror(s) + char *s __unused; + { + return 0; + } + + + static time_t + ToSeconds(Hours, Minutes, Seconds, Meridian) + time_t Hours; + time_t Minutes; + time_t Seconds; + MERIDIAN Meridian; + { + if (Minutes < 0 || Minutes > 59 || Seconds < 0 || Seconds > 59) + return -1; + switch (Meridian) { + case MER24: + if (Hours < 0 || Hours > 23) + return -1; + return (Hours * 60L + Minutes) * 60L + Seconds; + case MERam: + if (Hours < 1 || Hours > 12) + return -1; + if (Hours == 12) + Hours = 0; + return (Hours * 60L + Minutes) * 60L + Seconds; + case MERpm: + if (Hours < 1 || Hours > 12) + return -1; + if (Hours == 12) + Hours = 0; + return ((Hours + 12) * 60L + Minutes) * 60L + Seconds; + default: + abort (); + } + /* NOTREACHED */ + } + + + /* Year is either + * A negative number, which means to use its absolute value (why?) + * A number from 0 to 99, which means a year from 1900 to 1999, or + * The actual year (>=100). */ + static time_t + Convert(Month, Day, Year, Hours, Minutes, Seconds, Meridian, DSTmode) + time_t Month; + time_t Day; + time_t Year; + time_t Hours; + time_t Minutes; + time_t Seconds; + MERIDIAN Meridian; + DSTMODE DSTmode; + { + static int DaysInMonth[12] = { + 31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 + }; + time_t tod; + time_t Julian; + int i; + + if (Year < 0) + Year = -Year; + if (Year < 69) + Year += 2000; + else if (Year < 100) + Year += 1900; + DaysInMonth[1] = Year % 4 == 0 && (Year % 100 != 0 || Year % 400 == 0) + ? 29 : 28; + /* Checking for 2038 bogusly assumes that time_t is 32 bits. But + I'm too lazy to try to check for time_t overflow in another way. */ + if (Year < EPOCH || Year > 2038 + || Month < 1 || Month > 12 + /* Lint fluff: "conversion from long may lose accuracy" */ + || Day < 1 || Day > DaysInMonth[(int)--Month]) + return -1; + + for (Julian = Day - 1, i = 0; i < Month; i++) + Julian += DaysInMonth[i]; + for (i = EPOCH; i < Year; i++) + Julian += 365 + (i % 4 == 0); + Julian *= SECSPERDAY; + Julian += yyTimezone * 60L; + if ((tod = ToSeconds(Hours, Minutes, Seconds, Meridian)) < 0) + return -1; + Julian += tod; + if (DSTmode == DSTon + || (DSTmode == DSTmaybe && localtime(&Julian)->tm_isdst)) + Julian -= 60 * 60; + return Julian; + } + + + static time_t + DSTcorrect(Start, Future) + time_t Start; + time_t Future; + { + time_t StartDay; + time_t FutureDay; + + StartDay = (localtime(&Start)->tm_hour + 1) % 24; + FutureDay = (localtime(&Future)->tm_hour + 1) % 24; + return (Future - Start) + (StartDay - FutureDay) * 60L * 60L; + } + + + static time_t + RelativeDate(Start, DayOrdinal, DayNumber) + time_t Start; + time_t DayOrdinal; + time_t DayNumber; + { + struct tm *tm; + time_t now; + + now = Start; + tm = localtime(&now); + now += SECSPERDAY * ((DayNumber - tm->tm_wday + 7) % 7); + now += 7 * SECSPERDAY * (DayOrdinal <= 0 ? DayOrdinal : DayOrdinal - 1); + return DSTcorrect(Start, now); + } + + + static time_t + RelativeMonth(Start, RelMonth) + time_t Start; + time_t RelMonth; + { + struct tm *tm; + time_t Month; + time_t Year; + + if (RelMonth == 0) + return 0; + tm = localtime(&Start); + Month = 12 * (tm->tm_year + 1900) + tm->tm_mon + RelMonth; + Year = Month / 12; + Month = Month % 12 + 1; + return DSTcorrect(Start, + Convert(Month, (time_t)tm->tm_mday, Year, + (time_t)tm->tm_hour, (time_t)tm->tm_min, (time_t)tm->tm_sec, + MER24, DSTmaybe)); + } + + + static int + LookupWord(buff) + char *buff; + { + register char *p; + register char *q; + register const TABLE *tp; + int i; + int abbrev; + + /* Make it lowercase. */ + for (p = buff; *p; p++) + if (isupper(*p)) + *p = tolower(*p); + + if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) { + yylval.Meridian = MERam; + return tMERIDIAN; + } + if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) { + yylval.Meridian = MERpm; + return tMERIDIAN; + } + + /* See if we have an abbreviation for a month. */ + if (strlen(buff) == 3) + abbrev = 1; + else if (strlen(buff) == 4 && buff[3] == '.') { + abbrev = 1; + buff[3] = '\0'; + } + else + abbrev = 0; + + for (tp = MonthDayTable; tp->name; tp++) { + if (abbrev) { + if (strncmp(buff, tp->name, 3) == 0) { + yylval.Number = tp->value; + return tp->type; + } + } + else if (strcmp(buff, tp->name) == 0) { + yylval.Number = tp->value; + return tp->type; + } + } + + for (tp = TimezoneTable; tp->name; tp++) + if (strcmp(buff, tp->name) == 0) { + yylval.Number = tp->value; + return tp->type; + } + + if (strcmp(buff, "dst") == 0) + return tDST; + + for (tp = UnitsTable; tp->name; tp++) + if (strcmp(buff, tp->name) == 0) { + yylval.Number = tp->value; + return tp->type; + } + + /* Strip off any plural and try the units table again. */ + i = strlen(buff) - 1; + if (buff[i] == 's') { + buff[i] = '\0'; + for (tp = UnitsTable; tp->name; tp++) + if (strcmp(buff, tp->name) == 0) { + yylval.Number = tp->value; + return tp->type; + } + buff[i] = 's'; /* Put back for "this" in OtherTable. */ + } + + for (tp = OtherTable; tp->name; tp++) + if (strcmp(buff, tp->name) == 0) { + yylval.Number = tp->value; + return tp->type; + } + + /* Military timezones. */ + if (buff[1] == '\0' && isalpha(*buff)) { + for (tp = MilitaryTable; tp->name; tp++) + if (strcmp(buff, tp->name) == 0) { + yylval.Number = tp->value; + return tp->type; + } + } + + /* Drop out any periods and try the timezone table again. */ + for (i = 0, p = q = buff; *q; q++) + if (*q != '.') + *p++ = *q; + else + i++; + *p = '\0'; + if (i) + for (tp = TimezoneTable; tp->name; tp++) + if (strcmp(buff, tp->name) == 0) { + yylval.Number = tp->value; + return tp->type; + } + + return tID; + } + + + static int + yylex() + { + register char c; + register char *p; + char buff[20]; + int Count; + int sign; + + for ( ; ; ) { + while (isspace(*yyInput)) + yyInput++; + + if (isdigit(c = *yyInput) || c == '-' || c == '+') { + if (c == '-' || c == '+') { + sign = c == '-' ? -1 : 1; + if (!isdigit(*++yyInput)) + /* skip the '-' sign */ + continue; + } + else + sign = 0; + for (yylval.Number = 0; isdigit(c = *yyInput++); ) + yylval.Number = 10 * yylval.Number + c - '0'; + yyInput--; + if (sign < 0) + yylval.Number = -yylval.Number; + return sign ? tSNUMBER : tUNUMBER; + } + if (isalpha(c)) { + for (p = buff; isalpha(c = *yyInput++) || c == '.'; ) + if (p < &buff[sizeof buff - 1]) + *p++ = c; + *p = '\0'; + yyInput--; + return LookupWord(buff); + } + if (c != '(') + return *yyInput++; + Count = 0; + do { + c = *yyInput++; + if (c == '\0') + return c; + if (c == '(') + Count++; + else if (c == ')') + Count--; + } while (Count > 0); + } + } + + #define TM_YEAR_ORIGIN 1900 + + /* Yield A - B, measured in seconds. */ + static long + difftm (a, b) + struct tm *a, *b; + { + int ay = a->tm_year + (TM_YEAR_ORIGIN - 1); + int by = b->tm_year + (TM_YEAR_ORIGIN - 1); + int days = ( + /* difference in day of year */ + a->tm_yday - b->tm_yday + /* + intervening leap days */ + + ((ay >> 2) - (by >> 2)) + - (ay/100 - by/100) + + ((ay/100 >> 2) - (by/100 >> 2)) + /* + difference in years * 365 */ + + (long)(ay-by) * 365 + ); + return (60*(60*(24*days + (a->tm_hour - b->tm_hour)) + + (a->tm_min - b->tm_min)) + + (a->tm_sec - b->tm_sec)); + } + + time_t + get_date(p, now) + char *p; + struct timeb *now; + { + struct tm *tm, gmt; + struct timeb ftz; + time_t Start; + time_t tod; + time_t nowtime; + + yyInput = p; + if (now == NULL) { + struct tm *gmt_ptr; + + now = &ftz; + (void)time (&nowtime); + + gmt_ptr = gmtime (&nowtime); + if (gmt_ptr != NULL) + { + /* Make a copy, in case localtime modifies *tm (I think + that comment now applies to *gmt_ptr, but I am too + lazy to dig into how gmtime and locatime allocate the + structures they return pointers to). */ + gmt = *gmt_ptr; + } + + if (! (tm = localtime (&nowtime))) + return -1; + + if (gmt_ptr != NULL) + ftz.timezone = difftm (&gmt, tm) / 60; + else + /* We are on a system like VMS, where the system clock is + in local time and the system has no concept of timezones. + Hopefully we can fake this out (for the case in which the + user specifies no timezone) by just saying the timezone + is zero. */ + ftz.timezone = 0; + + if(tm->tm_isdst) + ftz.timezone += 60; + } + else + { + nowtime = now->time; + } + + tm = localtime(&nowtime); + yyYear = tm->tm_year + 1900; + yyMonth = tm->tm_mon + 1; + yyDay = tm->tm_mday; + yyTimezone = now->timezone; + yyDSTmode = DSTmaybe; + yyHour = 0; + yyMinutes = 0; + yySeconds = 0; + yyMeridian = MER24; + yyRelSeconds = 0; + yyRelMonth = 0; + yyHaveDate = 0; + yyHaveDay = 0; + yyHaveRel = 0; + yyHaveTime = 0; + yyHaveZone = 0; + + if (yyparse() + || yyHaveTime > 1 || yyHaveZone > 1 || yyHaveDate > 1 || yyHaveDay > 1) + return -1; + + if (yyHaveDate || yyHaveTime || yyHaveDay) { + Start = Convert(yyMonth, yyDay, yyYear, yyHour, yyMinutes, yySeconds, + yyMeridian, yyDSTmode); + if (Start < 0) + return -1; + } + else { + Start = nowtime; + if (!yyHaveRel) + Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec; + } + + Start += yyRelSeconds; + Start += RelativeMonth(Start, yyRelMonth); + + if (yyHaveDay && !yyHaveDate) { + tod = RelativeDate(Start, yyDayOrdinal, yyDayNumber); + Start += tod; + } + + /* Have to do *something* with a legitimate -1 so it's distinguishable + * from the error return value. (Alternately could set errno on error.) */ + return Start == -1 ? 0 : Start; + } + + + #if defined(TEST) + + /* ARGSUSED */ + int + main(ac, av) + int ac; + char *av[]; + { + char buff[128]; + time_t d; + + (void)printf("Enter date, or blank line to exit.\n\t> "); + (void)fflush(stdout); + while (gets(buff) && buff[0]) { + d = get_date(buff, (struct timeb *)NULL); + if (d == -1) + (void)printf("Bad format - couldn't convert.\n"); + else + (void)printf("%s", ctime(&d)); + (void)printf("\t> "); + (void)fflush(stdout); + } + exit(0); + /* NOTREACHED */ + } + #endif /* defined(TEST) */ *** test.1.(1.11.2.5) Fri Dec 14 15:22:09 2001 --- test.1 Sun Sep 21 12:01:30 2003 *************** *** 33,39 **** .\" SUCH DAMAGE. .\" .\" @(#)test.1 8.1 (Berkeley) 5/31/93 ! .\" $FreeBSD: /repoman/r/ncvs/src/bin/test/test.1,v 1.11.2.5 2001/12/14 14:22:09 ru Exp $ .\" .Dd May 31, 1993 .Dt TEST 1 --- 33,39 ---- .\" SUCH DAMAGE. .\" .\" @(#)test.1 8.1 (Berkeley) 5/31/93 ! .\" $FreeBSD: src/bin/test/test.1,v 1.11.2.5 2001/12/14 14:22:09 ru Exp $ .\" .Dd May 31, 1993 .Dt TEST 1 *************** *** 179,184 **** --- 179,196 ---- .Ar file1 exists and is older than .Ar file2 . + .It Ar file Fl ntt Ar date_spec + True if + .Ar file + exists and is newer than + .Ar date_spec . + See cvs(1) for the format of + .Ar date_spec . + .It Ar file Fl ott Ar date_spec + True if + .Ar file + exists and is older than + .Ar date_spec . .It Ar file1 Fl ef Ar file2 True if .Ar file1 *** test.c.(1.29.2.7) Tue Sep 10 11:10:57 2002 --- test.c Sun Sep 21 12:29:39 2003 *************** *** 12,22 **** #ifndef lint static const char rcsid[] = ! "$FreeBSD: /repoman/r/ncvs/src/bin/test/test.c,v 1.29.2.7 2002/09/10 09:10:57 maxim Exp $"; #endif /* not lint */ #include #include #include #include --- 12,24 ---- #ifndef lint static const char rcsid[] = ! "$FreeBSD: src/bin/test/test.c,v 1.29.2.7 2002/09/10 09:10:57 maxim Exp $"; #endif /* not lint */ #include #include + #include + #include #include #include *************** *** 57,62 **** --- 59,66 ---- } #endif + time_t get_date __P((const char *date, struct timeb *now)); + /* test(1) accepts the following grammar: oexpr ::= aexpr | aexpr "-o" oexpr ; aexpr ::= nexpr | nexpr "-a" aexpr ; *************** *** 70,76 **** "-u"|"-g"|"-k"|"-s"|"-t"|"-z"|"-n"|"-o"|"-O"|"-G"|"-L"|"-S"; binary-operator ::= "="|"!="|"-eq"|"-ne"|"-ge"|"-gt"|"-le"|"-lt"| ! "-nt"|"-ot"|"-ef"; operand ::= */ --- 74,80 ---- "-u"|"-g"|"-k"|"-s"|"-t"|"-z"|"-n"|"-o"|"-O"|"-G"|"-L"|"-S"; binary-operator ::= "="|"!="|"-eq"|"-ne"|"-ge"|"-gt"|"-le"|"-lt"| ! "-nt"|"-ot"|"-ef"|"-ntt"|"-ott"; operand ::= */ *************** *** 93,99 **** --- 97,105 ---- FILSGID, FILSTCK, FILNT, + FILNTT, FILOT, + FILOTT, FILEQ, FILUID, FILGID, *************** *** 161,167 **** --- 167,175 ---- {"-le", INTLE, BINOP}, {"-lt", INTLT, BINOP}, {"-nt", FILNT, BINOP}, + {"-ntt",FILNTT, BINOP}, {"-ot", FILOT, BINOP}, + {"-ott",FILOTT, BINOP}, {"-ef", FILEQ, BINOP}, {"!", UNOT, BUNOP}, {"-a", BAND, BBINOP}, *************** *** 184,192 **** --- 192,202 ---- static int intcmp __P((const char *, const char *)); static int isoperand __P((void)); static int newerf __P((const char *, const char *)); + static int newerft __P((const char *, const char *)); static int nexpr __P((enum token)); static int oexpr __P((enum token)); static int olderf __P((const char *, const char *)); + static int olderft __P((const char *, const char *)); static int primary __P((enum token)); static void syntax __P((const char *, const char *)); static enum token t_lex __P((char *)); *************** *** 364,371 **** --- 374,385 ---- return intcmp(opnd1, opnd2) < 0; case FILNT: return newerf (opnd1, opnd2); + case FILNTT: + return newerft (opnd1, opnd2); case FILOT: return olderf (opnd1, opnd2); + case FILOTT: + return olderft (opnd1, opnd2); case FILEQ: return equalf (opnd1, opnd2); default: *************** *** 564,569 **** --- 578,613 ---- const char *f1, *f2; { return (newerf(f2, f1)); + } + + static int + newerft (f1, f2) + const char *f1, *f2; + { + struct stat b1; + time_t t2; + + if (stat(f1, &b1) != 0) + return 0; + if ((t2=get_date(f2,NULL))==-1) + error("Invalid date format '%s'",f2); + + return (b1.st_mtimespec.tv_sec > t2); + } + + static int + olderft (f1, f2) + const char *f1, *f2; + { + struct stat b1; + time_t t2; + + if (stat(f1, &b1) != 0) + return 0; + if ((t2=get_date(f2,NULL))==-1) + error("Invalid date format '%s'",f2); + + return (b1.st_mtimespec.tv_sec < t2); } static int >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 21 09:00:35 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A10E016A4C2 for ; Sun, 21 Sep 2003 09:00:35 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67D8B43FFB for ; Sun, 21 Sep 2003 09:00:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8LG0JFY008009 for ; Sun, 21 Sep 2003 09:00:19 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8LG0JCP008008; Sun, 21 Sep 2003 09:00:19 -0700 (PDT) (envelope-from gnats) Resent-Date: Sun, 21 Sep 2003 09:00:19 -0700 (PDT) Resent-Message-Id: <200309211600.h8LG0JCP008008@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Henri Hennebert Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1230516A4B3 for ; Sun, 21 Sep 2003 08:59:29 -0700 (PDT) Received: from cocoon.cercle.be (ppp-62-235-117-29.tiscali.be [62.235.117.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42DE543FBF for ; Sun, 21 Sep 2003 08:59:27 -0700 (PDT) (envelope-from hlh@norquay.cocoon.cercle.be) Received: from norquay.cocoon.cercle.be (localhost.cocoon.cercle.be [127.0.0.1]) by cocoon.cercle.be (8.12.10/8.12.10) with ESMTP id h8LEp4XM064207 for ; Sun, 21 Sep 2003 16:51:04 +0200 (CEST) Received: (from root@localhost)h8LEp37Q064206; Sun, 21 Sep 2003 16:51:03 +0200 (CEST) Message-Id: <200309211451.h8LEp37Q064206@norquay.cocoon.cercle.be> Date: Sun, 21 Sep 2003 16:51:03 +0200 (CEST) From: Henri Hennebert To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/57058: NO_MAILWRAPPER in make.conf not completely effective X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Henri Hennebert List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 16:00:36 -0000 >Number: 57058 >Category: conf >Synopsis: NO_MAILWRAPPER in make.conf not completely effective >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 Sep 21 09:00:18 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Henri Hennebert >Release: FreeBSD 5.1-RELEASE-p5 i386 >Organization: >Environment: System: FreeBSD norquay.cocoon.bel 5.1-RELEASE-p5 FreeBSD 5.1-RELEASE-p5 #0: Sat Sep 20 16:31:35 CEST 2003 hlh@norquay.cocoon.bel:/usr/obj/usr/src/sys/NORQUAY i386 >Description: When you declare NO_MAILWRAPPER=yes in /etc/make.conf, make installworld create symlink /usr/sbin/sendmail to /usr/sbin/mailwrapper and destroy my manual install of sendmail. >How-To-Repeat: >Fix: I believe that the SYMLINKS defined in /usr/src/usr.bin/mailwrapper/Makefile must be moved in the .if !defined(NO_MAILWRAPPER) .... .endif >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 21 12:20:17 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F58816A4B3 for ; Sun, 21 Sep 2003 12:20:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0202E43FCB for ; Sun, 21 Sep 2003 12:20:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8LJKFFY072975 for ; Sun, 21 Sep 2003 12:20:15 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8LJKFRA072974; Sun, 21 Sep 2003 12:20:15 -0700 (PDT) (envelope-from gnats) Resent-Date: Sun, 21 Sep 2003 12:20:15 -0700 (PDT) Resent-Message-Id: <200309211920.h8LJKFRA072974@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, walter@pelissero.de Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC5E816A4B3 for ; Sun, 21 Sep 2003 12:19:35 -0700 (PDT) Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FD1A43FFD for ; Sun, 21 Sep 2003 12:19:34 -0700 (PDT) (envelope-from walter@pelissero.de) Received: from daemon.home.loc (62.246.54.48) by webmail.tiscali.de (6.7.019) id 3F59F638005CB564 for FreeBSD-gnats-submit@freebsd.org; Sun, 21 Sep 2003 21:19:33 +0200 Received: from hyde.home.loc (hyde.home.loc [10.0.0.2]) by daemon.home.loc (8.12.9/8.12.8) with ESMTP id h8LJIQTx000457 for ; Sun, 21 Sep 2003 21:18:26 +0200 (CEST) (envelope-from wcp@hyde.home.loc) Received: from hyde.home.loc (localhost [127.0.0.1]) by hyde.home.loc (8.12.9/8.12.8) with ESMTP id h8LJIQ0o000542 for ; Sun, 21 Sep 2003 21:18:26 +0200 (CEST) (envelope-from wcp@hyde.home.loc) Received: (from wcp@localhost) by hyde.home.loc (8.12.9/8.12.6/Submit) id h8LJIQ7I000541; Sun, 21 Sep 2003 21:18:26 +0200 (CEST) (envelope-from wcp) Message-Id: <200309211918.h8LJIQ7I000541@hyde.home.loc> Date: Sun, 21 Sep 2003 21:18:26 +0200 (CEST) From: "Walter C. Pelissero" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/57065: core dumps with NODUMP flag X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: walter@pelissero.de List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 19:20:17 -0000 >Number: 57065 >Category: kern >Synopsis: core dumps with NODUMP flag >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: Sun Sep 21 12:20:15 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Walter C. Pelissero >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD hyde.home.loc 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #3: Sun Sep 21 21:01:59 CEST 2003 root@hyde.home.loc:/.amd_mnt/daemon/host/usr/warehouse/src/sys/compile/PCG-XG9 i386 >Description: Saving core dumps in backup tapes is something that is seldom desired. Excluding those core dump files from backups would cut on backup time and required tape space. >How-To-Repeat: >Fix: The following patch gives the choice, via a sysctl flag, to automatically create core dumps with the NODUMP flag set, thus automatically excluding those files from the next backup. --- /sys/kern/kern_sig.c.orig Mon May 19 16:41:42 2003 +++ /sys/kern/kern_sig.c Sun Sep 21 21:01:44 2003 @@ -119,6 +119,10 @@ SYSCTL_INT(_kern, OID_AUTO, coredump, CTLFLAG_RW, &do_coredump, 0, "Enable/Disable coredumps"); +static int set_nodump_flag = 0; +SYSCTL_INT(_kern, OID_AUTO, nodump_coredump, CTLFLAG_RW, + &set_nodump_flag, 0, "Enable/Disable setting of NODUMP flag on coredump files"); + /* * Signal properties and actions. * The array below categorizes the signals and their default actions @@ -1656,6 +1660,8 @@ vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, p); vattr.va_size = 0; VOP_LEASE(vp, p, cred, LEASE_WRITE); + if (set_nodump_flag) + vattr.va_flags = UF_NODUMP; VOP_SETATTR(vp, &vattr, cred, p); p->p_acflag |= ACORE; VOP_UNLOCK(vp, 0, p); >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 21 13:23:11 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FF1216A4B3; Sun, 21 Sep 2003 13:23:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E853443F85; Sun, 21 Sep 2003 13:23:10 -0700 (PDT) (envelope-from jmg@FreeBSD.org) Received: from freefall.freebsd.org (jmg@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8LKNAFY093652; Sun, 21 Sep 2003 13:23:10 -0700 (PDT) (envelope-from jmg@freefall.freebsd.org) Received: (from jmg@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8LKNARm093648; Sun, 21 Sep 2003 13:23:10 -0700 (PDT) (envelope-from jmg) Date: Sun, 21 Sep 2003 13:23:10 -0700 (PDT) From: John-Mark Gurney Message-Id: <200309212023.h8LKNARm093648@freefall.freebsd.org> To: jmg@FreeBSD.org, freebsd-bugs@FreeBSD.org, jmg@FreeBSD.org Subject: Re: kern/57065: core dumps with NODUMP flag X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 20:23:11 -0000 Synopsis: core dumps with NODUMP flag Responsible-Changed-From-To: freebsd-bugs->jmg Responsible-Changed-By: jmg Responsible-Changed-When: Sun Sep 21 13:22:43 PDT 2003 Responsible-Changed-Why: I said I'd take over this feature request http://www.freebsd.org/cgi/query-pr.cgi?pr=57065 From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 21 19:30:24 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA98D16A4B3 for ; Sun, 21 Sep 2003 19:30:24 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97B3E44014 for ; Sun, 21 Sep 2003 19:30:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8M2UKFY003790 for ; Sun, 21 Sep 2003 19:30:20 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8M2UKUA003789; Sun, 21 Sep 2003 19:30:20 -0700 (PDT) (envelope-from gnats) Resent-Date: Sun, 21 Sep 2003 19:30:20 -0700 (PDT) Resent-Message-Id: <200309220230.h8M2UKUA003789@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jonathan Chen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7969516A4B3 for ; Sun, 21 Sep 2003 19:20:04 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C0D543FBD for ; Sun, 21 Sep 2003 19:20:03 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id C3EB01364C; Mon, 22 Sep 2003 14:20:02 +1200 (NZST) Message-Id: <20030922022002.C3EB01364C@chen.org.nz> Date: Mon, 22 Sep 2003 14:20:02 +1200 (NZST) From: Jonathan Chen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/57075: rc.sendmail needs to honour ${sendmail_msp_queue_enable} on stop X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jonathan Chen List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2003 02:30:24 -0000 >Number: 57075 >Category: conf >Synopsis: rc.sendmail needs to honour ${sendmail_msp_queue_enable} on stop >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 Sep 21 19:30:20 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Jonathan Chen >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD grimoire.chen.org.nz 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Thu Sep 18 20:42:35 NZST 2003 root@grimoire.chen.org.nz:/usr/obj/usr/src/sys/GRIMOIRE i386 >Description: If we decide to use an MTA other than sendmail, and configure /etc/rc.conf and mailer.conf to reflect this, the system stop/restart arguments on rc.sendmail echos out spurious: "stop-mspq: /var/spool/clientmqueue/sm-client.pid not found" or "XXXX: No such process" /etc/rc.sendmail honours ${sendmail_msp_queue} from /etc/rc.conf for "start", but ignores it for "stop" and "restart". >How-To-Repeat: Taking Postfix MTA installation as an example. We make the necessary changes /etc/mail/mailer.conf and have the following in /etc/rc.conf (as recommended in the postfix/pkg-message): sendmail_enable="YES" sendmail_flags="-bd" sendmail_pidfile="/var/spool/postfix/pid/master.pid" sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" As root: # sh /etc/rc.sendmail start # sh /etc/rc.sendmail stop >Fix: Patches for /etc/rc.sendmail: --- rc.sendmail.orig Mon Sep 22 14:01:57 2003 +++ rc.sendmail Mon Sep 22 14:05:32 2003 @@ -122,22 +122,34 @@ stop_mspq() { - if [ -r ${sendmail_mspq_pidfile} ]; then - echo -n ' sendmail-clientmqueue' - kill -TERM `head -1 ${sendmail_mspq_pidfile}` - else - echo "$0: stop-mspq: ${sendmail_mspq_pidfile} not found" - fi + case ${sendmail_msp_queue_enable} in + [Yy][Ee][Ss]) + if [ -r ${sendmail_mspq_pidfile} ]; then + echo -n ' sendmail-clientmqueue' + kill -TERM `head -1 ${sendmail_mspq_pidfile}` + else + echo "$0: stop-mspq: ${sendmail_mspq_pidfile} not found" + fi + ;; + *) + ;; + esac } restart_mspq() { - if [ -r ${sendmail_mspq_pidfile} ]; then - echo -n ' sendmail-clientmqueue' - kill -HUP `head -1 ${sendmail_mspq_pidfile}` - else - echo "$0: restart-mspq: ${sendmail_mspq_pidfile} not found" - fi + case ${sendmail_msp_queue_enable} in + [Yy][Ee][Ss]) + if [ -r ${sendmail_mspq_pidfile} ]; then + echo -n ' sendmail-clientmqueue' + kill -HUP `head -1 ${sendmail_mspq_pidfile}` + else + echo "$0: restart-mspq: ${sendmail_mspq_pidfile} not found" + fi + ;; + *) + ;; + esac } # If no argument is given, assume we are being called at boot time. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 22 03:40:14 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB67016A4B3 for ; Mon, 22 Sep 2003 03:40:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C67543FF9 for ; Mon, 22 Sep 2003 03:40:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8MAeCFY055812 for ; Mon, 22 Sep 2003 03:40:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8MAeC2f055811; Mon, 22 Sep 2003 03:40:12 -0700 (PDT) (envelope-from gnats) Resent-Date: Mon, 22 Sep 2003 03:40:12 -0700 (PDT) Resent-Message-Id: <200309221040.h8MAeC2f055811@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Melvyn Sopacua Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79C3F16A4B3 for ; Mon, 22 Sep 2003 03:30:06 -0700 (PDT) Received: from ghost.lan.webteckies.org (node123e0.a2000.nl [24.132.35.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2829543FBD for ; Mon, 22 Sep 2003 03:30:05 -0700 (PDT) (envelope-from mdev@webteckies.org) Received: by ghost.lan.webteckies.org (Postfix, from userid 102) id 52D2C21B73; Mon, 22 Sep 2003 12:29:34 +0200 (CEST) Message-Id: <20030922102934.52D2C21B73@ghost.lan.webteckies.org> Date: Mon, 22 Sep 2003 12:29:34 +0200 (CEST) From: Melvyn Sopacua To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: Nate Lawson Subject: kern/57085: umass0 problems, with Sony Vio/USB memory stick X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2003 10:40:14 -0000 >Number: 57085 >Category: kern >Synopsis: umass0 problems, with Sony Vio/USB memory stick >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 Sep 22 03:40:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Melvyn Sopacua >Release: FreeBSD 4.8-STABLE i386 >Organization: >Environment: System: FreeBSD dreetje.thuisnetwerk.lan 4.8-STABLE FreeBSD 4.8-STABLE #5: Wed Aug 27 13:53:18 CEST 2003 root@dreetje.thuisnetwerk.lan:/usr/obj/usr/src/sys/DREETJE i386 Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered >Description: Timeouts on startup and no da0 device. dmesg.boot: Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.8-STABLE #5: Wed Aug 27 13:53:18 CEST 2003 root@dreetje.thuisnetwerk.lan:/usr/obj/usr/src/sys/DREETJE Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Pentium(R) III Mobile CPU 866MHz (861.69-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 Features=0x383f9ff real memory = 267911168 (261632K bytes) avail memory = 256331776 (250324K bytes) Preloaded elf kernel "kernel" at 0xc0434000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 9 entries at 0xc00fdf30 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 9 uhci0: port 0x1800-0x181f irq 9 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1820-0x183f irq 9 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f at device 29.2 on pci0 pci_cfgintr_search: linked (0) to configured irq 9 at 0:29:1 pci_cfgintr: 0:29 INTC routed to irq 9 usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered umass0: Sony USB Memory Stick Slot, rev 1.10/1.80, addr 2 pcib2: at device 30.0 on pci0 pci2: on pcib2 fwohci0: mem 0xd0200000-0xd0203fff,0xd0205000-0xd02057ff at device 2.0 on pci2 fwohci0: Invalid irq 255 fwohci0: Please switch PNP-OS to 'No' in BIOS pci_cfgintr_search: linked (0) to configured irq 3 at 2:5:0 pci_cfgintr: 2:2 INTA routed to irq 3 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 08:00:46:03:00:d6:36:f2 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 if_fwe0: on firewire0 if_fwe0: Fake Ethernet address: 0a:00:46:d6:36:f2 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pcic0: irq 3 at device 5.0 on pci2 pcic0: PCI Memory allocated: 0x88000000 pccard0: on pcic0 pci_cfgintr_search: linked (0) to configured irq 3 at 2:2:0 pci_cfgintr: 2:5 INTB routed to irq 3 pcic1: irq 3 at device 5.1 on pci2 pcic1: PCI Memory allocated: 0x88001000 pccard1: on pcic1 fxp0: port 0x4000-0x403f mem 0xd0204000-0xd0204fff irq 9 at device 8.0 on pci2 fxp0: Ethernet address 08:00:46:26:54:b4 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1860-0x186f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 mem 0xd0000000-0xd00003ff at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: (vendor=0x8086, dev=0x2483) at 31.3 pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff irq 9 at device 31.5 on pci0 pcm0: pci0: (vendor=0x8086, dev=0x2486) at 31.6 eisa0: on motherboard eisa0: unknown card @H@0000 (0x01000000) at slot 1 orm0: any boot >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 24 04:40:22 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBAB716A4B3 for ; Wed, 24 Sep 2003 04:40:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D76C44008 for ; Wed, 24 Sep 2003 04:40:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8OBeDFY047473 for ; Wed, 24 Sep 2003 04:40:13 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8OBeDok047472; Wed, 24 Sep 2003 04:40:13 -0700 (PDT) (envelope-from gnats) Resent-Date: Wed, 24 Sep 2003 04:40:13 -0700 (PDT) Resent-Message-Id: <200309241140.h8OBeDok047472@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vladimir Grebenschikov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFCC516A4B3 for ; Wed, 24 Sep 2003 04:37:11 -0700 (PDT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7732243FEA for ; Wed, 24 Sep 2003 04:37:09 -0700 (PDT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.22) id 1A27xR-0000G8-FN; Wed, 24 Sep 2003 15:37:21 +0400 Message-Id: Date: Wed, 24 Sep 2003 15:37:21 +0400 From: Vladimir Grebenschikov Sender: Vladimir Grebenschikov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: Poul-Henning Kamp Subject: kern/57156: GEOM-related panic while boot on latest -CURRENT (09/23/2003) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vladimir Grebenschikov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2003 11:40:23 -0000 >Number: 57156 >Category: kern >Synopsis: GEOM-related panic while boot on latest -CURRENT (09/23/2003) >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 24 04:40:13 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Vladimir Grebenschikov >Release: FreeBSD 5.1-CURRENT i386 >Organization: SWsoft >Environment: System: FreeBSD vbook.fbsd.ru 5.1-CURRENT FreeBSD 5.1-CURRENT #9: Wed Sep 24 05:03:22 MSD 2003 root@vbook.fbsd.ru:/usr/obj/usr/src/sys/VBOOK i386 >Description: After cvsup and make world I can't boot my noteboot SONY VAIO z505S It panics in GEOM: ad0: setting UDMA33 on Intel PIIX4 chip GEOM: create disk ad0 dp=0xc1d00970 ad0: ATA-5 disk at ata0-master ad0: 38154MB (78140160 sectors), 77520 C, 16 H, 63 S, 512 B ad0: 16 secs/int, 1 depth queue, UDMA33 GEOM: new disk ad0 [0] f:00 typ:6 s(CHS):0/1/1 e(CHS):969/239/63 s:63 l:14666337 [1] f:00 typ:160 s(CHS):970/0/1 e(CHS):996/239/63 s:14666400 l:408240 [2] f:80 typ:165 s(CHS):997/0/1 e(CHS):1023/239/63 s:15074640 l:41942880 [3] f:00 typ:165 s(CHS):1023/0/1 e(CHS):1023/239/63 s:57017520 l:21122640 GEOM: Configure ad0s1, start 32256 length 7509164544 end 7509196799 GEOM: Configure ad0s2, start 7509196800 length 209018880 end 7718215679 GEOM: Configure ad0s3, start 7718215680 length 21474754560 end 29192970239 GEOM: Configure ad0s4, start 29192970240 length 10814791680 end 40007761919 GEOM: Configure ad0s3a, start 0 length 134217728 end 134217727 GEOM: Configure ad0s3b, start 134217728 length 268435456 end 402653183 GEOM: Configure ad0s3c, start 0 length 21474754560 end 21474754559 GEOM: Configure ad0s3e, start 402653184 length 6442450944 end 6845104127 GEOM: Configure ad0s3f, start 6845104128 length 14629650432 end 21474754559 GEOM: Configure ad0s4c, start 0 length 10814791680 end 10814791679 GEOM: Configure ad0s4e, start 0 length 134217728 end 134217727 GEOM: Configure ad0s4f, start 134217728 length 8915517440 end 9049735167 ata1-slave: pio=0x08 wdma=0xffffffff udma=0xffffffff cable=40pin ata1-master: pio=0x09 wdma=0xffffffff udma=0xffffffff cable=40pin ad1: FAILURE - SETFEATURES status=51 error=4 ad1: FAILURE - SETFEATURES status=51 error=4 ad1: FAILURE - SETFEATURES status=51 error=4 ad1: FAILURE setting PIO1 on Intel PIIX4 chip GEOM: create disk ad1 dp=0xc1d4b770 ad1: ATA-0 disk at ata1-master ad1: 3MB (7904 sectors), 247 C, 2 H, 16 S, 512 B ad1: 1 secs/int, 1 depth queue, BIOSPIO GEOM: new disk ad1 ad2: WARNING - SETFEATURES recovered from missing interrupt [0] f:80 typ:1 s(CHS):0/1/12 e(CHS):245/1/16 s:27 l:7845 [1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 GEOM: Configure ad1s1, start 13824 length 4016640 end 4030463 ad2: WARNING - SETFEATURES recovered from missing interrupt ad2: WARNING - SETFEATURES recovered from missing interrupt ad2: setting PIO0 on Intel PIIX4 chip GEOM: create disk ad2 dp=0xc1d4b970 ad2: ATA-0 disk at ata1-slave Fatal trap 18: integer divide fault while in kernel mode instruction pointer = 0x8:0xc03fa088 stack pointer = 0x10:0xc05c5c54 frame pointer = 0x10:0xc05c5cd0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) kernel: type 18 trap, code=0 Stopped at __qdivrem+0x38: divl %ecx,%eax db> tra __qdivrem(0,0,0,0,0) at __qdivrem+0x38 __udivdi3(0,0,0,0,0) at __udivdi3+0x2e ad_attach(c1c712d4,1,c0ac6c50,c0445310,c05c5d74) at ad_attach+0x4aa ata_boot_attach(0,c02392d6,c046392c,0,c0445310) at ata_boot_attach+0x6f run_interrupt_driven_config_hooks(0,0,c0ac46f8,c0ac46f8,5c2c00) at run_interrupt_driven_config_hooks+0x2b mi_startup() at mi_startup+0xa1 begin() at begin+0x2c db> I have no ad2 installed at all. previous kernel works fine: ad0: success setting UDMA33 on Intel PIIX4 chip ad0: ATA-5 disk at ata0-master ad0: 38154MB (78140160 sectors), 77520 C, 16 H, 63 S, 512 B ad0: 16 secs/int, 1 depth queue, UDMA33 ad0: piomode=12 dmamode=34 udmamode=69 cblid=1 GEOM: new disk ad0 ad1: success setting PIO1 on Intel PIIX4 chip ad1: ATA-0 disk at ata1-master ad1: 3MB (7904 sectors), 247 C, 2 H, 16 S, 512 B ad1: 1 secs/int, 1 depth queue, PIO1 ad1: piomode=9 dmamode=-1 udmamode=-1 cblid=0 GEOM: Configure ad0s1, start 32256 length 7509164544 end 7509196799 GEOM: Configure ad0s2, start 7509196800 length 209018880 end 7718215679 GEOM: Configure ad0s3, start 7718215680 length 21474754560 end 29192970239 GEOM: Configure ad0s4, start 29192970240 length 10814791680 end 40007761919 GEOM: new disk ad1 GEOM: Configure ad0s3a, start 0 length 134217728 end 134217727 GEOM: Configure ad0s3b, start 134217728 length 268435456 end 402653183 GEOM: Configure ad0s3c, start 0 length 21474754560 end 21474754559 GEOM: Configure ad0s3e, start 402653184 length 6442450944 end 6845104127 GEOM: Configure ad0s3f, start 6845104128 length 14629650432 end 21474754559 GEOM: Configure ad0s4c, start 0 length 10814791680 end 10814791679 GEOM: Configure ad0s4e, start 0 length 134217728 end 134217727 GEOM: Configure ad0s4f, start 134217728 length 8915517440 end 9049735167 GEOM: Configure ad1s1, start 13824 length 4016640 end 4030463 ad0 - regular IDE HDD, ad1 - SONY MemoryStick (inserted and formated) There is dmesg (-v) with panic: ============================================================== OK set module_path=/boot/kernel.bad OK load kernel /boot/kernel.bad/kernel text=0x32a2d0 data=0x235fc+0x41644 syms=[0x4+0x2a510+0x4+0x34997] OK load ums /boot/kernel.bad/ums.ko text=0x2308 data=0x168+0x4 syms=[0x4+0x630+0x4+0x535] loading required module 'usb' /boot/kernel.bad/usb.ko text=0x20214 data=0xc4c+0x168 syms=[0x4+0x2db0+0x4+0x347b] OK load ukbd /boot/kernel.bad/ukbd.ko text=0x2b3c data=0x1a90+0x18b0 syms=[0x4+0x920+0x4+0x80f] OK load snd_neomagic /boot/kernel.bad/snd_neomagic.ko text=0x30bc data=0xc804 syms=[0x4+0x8d0+0x4+0x8a6] loading required module 'snd_pcm' /boot/kernel.bad/snd_pcm.ko text=0x1462c data=0x2124+0x1138 syms=[0x4+0x2b70+0x4+0x2ec2] OK boot -v /boot/kernel.bad/acpi.ko text=0x3b4b4 data=0x170c+0xec0 syms=[0x4+0x64b0+0x4+0x8024] SMAP type=01 base=0000000000000000 len=000000000009f800 SMAP type=02 base=000000000009f800 len=0000000000000800 SMAP type=02 base=00000000000e7800 len=0000000000018800 SMAP type=01 base=0000000000100000 len=000000000bef0000 SMAP type=03 base=000000000bff0000 len=000000000000f800 SMAP type=04 base=000000000bfff800 len=0000000000000800 SMAP type=02 base=00000000fffe7800 len=0000000000018800 Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-CURRENT #9: Wed Sep 24 05:03:22 MSD 2003 root@vbook.fbsd.ru:/usr/obj/usr/src/sys/VBOOK Preloaded elf kernel "/boot/kernel.bad/kernel" at 0xc05a3000. Preloaded elf module "/boot/kernel.bad/ums.ko" at 0xc05a3204. Preloaded elf module "/boot/kernel.bad/usb.ko" at 0xc05a32b0. Preloaded elf module "/boot/kernel.bad/ukbd.ko" at 0xc05a335c. Preloaded elf module "/boot/kernel.bad/snd_neomagic.ko" at 0xc05a340c. Preloaded elf module "/boot/kernel.bad/snd_pcm.ko" at 0xc05a34c4. Preloaded elf module "/boot/kernel.bad/acpi.ko" at 0xc05a3574. Calibrating clock(s) ... i8254 clock: 1193121 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz quality 0 Calibrating TSC clock ... TSC clock: 331581184 Hz CPU: Pentium II/Pentium II Xeon/Celeron (331.58-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x66a Stepping = 10 Features=0x183f9ff real memory = 201261056 (191 MB) Physical memory chunk(s): 0x0000000000001000 - 0x000000000009efff, 647168 bytes (158 pages) 0x00000000005ca000 - 0x000000000bc69fff, 191496192 bytes (46752 pages) avail memory = 189480960 (180 MB) bios32: Found BIOS32 Service Directory header at 0xc00f6c50 bios32: Entry = 0xfd7c0 (c00fd7c0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xfd7c0+0x214 pnpbios: Found PnP BIOS data at 0xc00f6c80 pnpbios: Entry = f0000:b5d4 Rev = 1.0 Other BIOS signatures found: random: mem: Pentium Pro MTRR support enabled null: npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pci_open(1): mode 1 addr port (0x0cf8) is 0x80003b54 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=71928086) pcibios: BIOS version 2.10 Using $PIR table, 7 entries at 0xc00fdf50 PCI-Only Interrupts: none Location Bus Device Pin Link IRQs embedded 0 1 A 0x60 9 embedded 0 1 B 0x61 9 embedded 0 1 C 0x62 9 embedded 0 1 D 0x63 9 embedded 0 7 D 0x63 9 embedded 0 8 A 0x60 9 embedded 0 8 B 0x61 9 embedded 0 9 A 0x62 9 embedded 0 10 A 0x61 9 embedded 0 11 A 0x60 9 embedded 0 6 A 0x60 9 AcpiOsDerivePciId: bus 0 dev 7 func 2 AcpiOsDerivePciId: bus 0 dev 10 func 0 AcpiOsDerivePciId: bus 0 dev 7 func 0 acpi0: Power Button (fixed) ACPI timer looks BAD min = 0, max = 16777212, width = 16777212 ACPI timer looks BAD min = 3, max = 9, width = 6 ACPI timer looks BAD min = 2, max = 16777214, width = 16777212 ACPI timer looks BAD min = 3, max = 16777212, width = 16777209 ACPI timer looks BAD min = 3, max = 7, width = 4 ACPI timer looks BAD min = 0, max = 16777214, width = 16777214 ACPI timer looks BAD min = 3, max = 8, width = 5 ACPI timer looks BAD min = 3, max = 16777212, width = 16777209 ACPI timer looks BAD min = 3, max = 8, width = 5 ACPI timer looks BAD min = 0, max = 8, width = 8 Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 AcpiOsDerivePciId: bus 0 dev 0 func 0 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_cpu0: on acpi0 acpi_tz0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 ---- initial configuration ------------------------ \_SB_.LNKD irq 9: [ 9] low,level,sharable 0.7.3 \_SB_.LNKA irq 9: [ 9] low,level,sharable 0.8.0 \_SB_.LNKC irq 0: [ 9] low,level,sharable 0.9.0 \_SB_.LNKB irq 9: [ 9] low,level,sharable 0.10.0 \_SB_.LNKA irq 9: [ 9] low,level,sharable 0.11.0 \_SB_.LNKB irq 9: [ 9] low,level,sharable 0.8.1 \_SB_.LNKA irq 9: [ 9] low,level,sharable 0.6.0 ---- before setting priority for links ------------ \_SB_.LNKC: interrupts: 9 penalty: 710 references: 1 priority: 0 ---- before fixup boot-disabled links ------------- \_SB_.LNKC: interrupts: 9 penalty: 710 references: 1 priority: 710 ---- after fixup boot-disabled links -------------- \_SB_.LNKC: interrupts: 9 penalty: 710 references: 1 priority: 710 ---- arbitrated configuration --------------------- \_SB_.LNKD irq 9: [ 9] low,level,sharable 0.7.3 \_SB_.LNKA irq 9: [ 9] low,level,sharable 0.8.0 \_SB_.LNKC irq 0: [ 9] low,level,sharable 0.9.0 \_SB_.LNKB irq 9: [ 9] low,level,sharable 0.10.0 \_SB_.LNKA irq 9: [ 9] low,level,sharable 0.11.0 \_SB_.LNKB irq 9: [ 9] low,level,sharable 0.8.1 \_SB_.LNKA irq 9: [ 9] low,level,sharable 0.6.0 pci0: on pcib0 pci0: physical bus=0 map[10]: type 3, range 32, base 00000000, size 26, enabled found-> vendor=0x8086, dev=0x7192, revid=0x03 bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0106, statreg=0xa200, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type 1, range 32, base fecff000, size 12, enabled map[14]: type 4, range 32, base 0000fcc0, size 6, enabled map[18]: type 1, range 32, base fed00000, size 20, enabled pcib0: matched entry for 0.6.INTA (source \_SB_.LNKA) pcib0: slot 6 INTA is routed to irq 9 found-> vendor=0x8086, dev=0x1229, revid=0x08 bus=0, slot=6, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0013, statreg=0x0290, cachelnsz=8 (dwords) lattimer=0x42 (1980 ns), mingnt=0x08 (2000 ns), maxlat=0x38 (14000 ns) intpin=a, irq=9 powerspec 2 supports D0 D1 D2 D3 current D0 found-> vendor=0x8086, dev=0x7110, revid=0x02 bus=0, slot=7, func=0 class=06-80-00, hdrtype=0x00, mfdev=1 cmdreg=0x000f, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[20]: type 4, range 32, base 0000fcb0, size 4, enabled found-> vendor=0x8086, dev=0x7111, revid=0x01 bus=0, slot=7, func=1 class=01-01-80, hdrtype=0x00, mfdev=0 cmdreg=0x0005, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[20]: type 4, range 32, base 0000fc60, size 5, enabled pcib0: matched entry for 0.7.INTD (source \_SB_.LNKD) pcib0: slot 7 INTD is routed to irq 9 found-> vendor=0x8086, dev=0x7112, revid=0x01 bus=0, slot=7, func=2 class=0c-03-00, hdrtype=0x00, mfdev=0 cmdreg=0x0005, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=d, irq=9 map[90]: type 4, range 32, base 00002180, size 4, enabled found-> vendor=0x8086, dev=0x7113, revid=0x02 bus=0, slot=7, func=3 class=06-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0003, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type 3, range 32, base fd000000, size 24, enabled map[14]: type 1, range 32, base fe400000, size 22, enabled map[18]: type 1, range 32, base feb00000, size 20, enabled pcib0: matched entry for 0.8.INTA (source \_SB_.LNKA) pcib0: slot 8 INTA is routed to irq 9 found-> vendor=0x10c8, dev=0x0005, revid=0x20 bus=0, slot=8, func=0 class=03-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0003, statreg=0x0290, cachelnsz=0 (dwords) lattimer=0x80 (3840 ns), mingnt=0x10 (4000 ns), maxlat=0xff (63750 ns) intpin=a, irq=9 powerspec 1 supports D0 D1 D2 D3 current D0 map[10]: type 3, range 32, base fe000000, size 22, enabled map[14]: type 1, range 32, base fea00000, size 20, enabled pcib0: matched entry for 0.8.INTB (source \_SB_.LNKB) pcib0: slot 8 INTB is routed to irq 9 found-> vendor=0x10c8, dev=0x8005, revid=0x20 bus=0, slot=8, func=1 class=04-01-00, hdrtype=0x00, mfdev=1 cmdreg=0x0002, statreg=0x0290, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=b, irq=9 powerspec 1 supports D0 D3 current D0 map[10]: type 1, range 32, base fecfec00, size 9, memory disabled found-> vendor=0x104d, dev=0x8009, revid=0x01 bus=0, slot=9, func=0 class=0c-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 powerspec 1 supports D0 D3 current D0 found-> vendor=0x1180, dev=0x0475, revid=0x00 bus=0, slot=10, func=0 class=06-07-00, hdrtype=0x02, mfdev=0 cmdreg=0x0000, statreg=0x0210, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 powerspec 1 supports D0 D1 D2 D3 current D0 map[10]: type 1, range 32, base fece0000, size 16, memory disabled map[14]: type 4, range 32, base 0000fca8, size 3, port disabled found-> vendor=0x127a, dev=0x2005, revid=0x01 bus=0, slot=11, func=0 class=07-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0290, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=255 powerspec 2 supports D0 D3 current D3 pci0: at device 6.0 (no driver attached) PCI-ISA bridge with incorrect subclass 0x80 PCI-ISA bridge with incorrect subclass 0x80 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xfcb0-0xfcbf at device 7.1 on pci0 ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ata0-master: stat=0x50 err=0x01 lsb=0x00 msb=0x00 ata0-slave: stat=0x00 err=0x01 lsb=0x00 msb=0x00 ata0: reset tp2 mask=03 stat0=50 stat1=00 devices=0x1 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: reset tp1 mask=03 ostat0=50 ostat1=50 ata1-master: stat=0x50 err=0x01 lsb=0x00 msb=0x00 ata1-slave: stat=0x50 err=0x01 lsb=0x00 msb=0x00 ata1: reset tp2 mask=03 stat0=50 stat1=50 devices=0x3 ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] uhci0: port 0xfc60-0xfc7f irq 9 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1: Texas Instruments UT-USB41 hub, class 9/0, rev 1.10/1.10, addr 2 uhub1: 4 ports with 4 removable, self powered ums0: Microsoft Microsoft IntelliMouse® Explorer, rev 1.10/1.14, addr 3, iclass 3/1 ums0: 5 buttons and Z dir. ukbd0: Behavior Tech. Computer Keyboard with mouse port, rev 1.00/1.00, addr 4, iclass 3/1 kbd: new array size 4 kbd1 at ukbd0 kbd1: ukbd0, generic (0), config:0x0, flags:0x1d0000 ums1: Behavior Tech. Computer Keyboard with mouse port, rev 1.00/1.00, addr 4, iclass 3/1 ums1: 3 buttons intpm0: port 0x2180-0x218f irq 9 at device 7.3 on pci0 intpm0: I/O mapped 2180 intpm0: intr IRQ 9 enabled revision 0 intsmb0: on intpm0 smbus0: on intsmb0 smb0: on smbus0 intpm0: PM I/O mapped 8000 pci0: at device 8.0 (no driver attached) pcm0: mem 0xfea00000-0xfeafffff,0xfe000000-0xfe3fffff irq 9 at device 8.1 on pci0 pcm0: buftop is 0x0027ec00 pcm0: buftop is changed to 0x0027ec00 pcm0: pcm0: Codec features headphone, 5 bit master volume, AKM 3D Audio pcm0: rec buf 0xcb864c00 pcm0: play buf 0xcb860c00 pci0: at device 9.0 (no driver attached) pci0: at device 10.0 (no driver attached) pci0: at device 11.0 (no driver attached) speaker0 port 0x61 on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0047 atkbd: keyboard ID 0x41ab (2) kbdc: RESET_KBD return code:00fa kbdc: RESET_KBD status:00aa kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x1d0000 psm0: unable to allocate IRQ psmcpnp0 irq 12 on acpi0 psm0: current command byte:0047 kbdc: TEST_AUX_PORT status:0000 kbdc: RESET_AUX return code:00fa kbdc: RESET_AUX status:00aa kbdc: RESET_AUX ID:0000 kbdc: RESET_AUX return code:00fa kbdc: RESET_AUX status:00aa kbdc: RESET_AUX ID:0000 psm: status 00 02 64 psm: status 00 00 64 psm: status 00 03 64 psm: status 00 03 64 psm: data 08 00 00 psm: status 53 02 14 psm: data 08 00 00 psm: status 00 02 64 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0-00, 2 buttons psm0: config:00000000, flags:00000000, packet size:3 psm0: syncmask:c0, syncbits:00 sio0: irq maps: 0x1 0x11 0x1 0x1 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A, console sio1: irq maps: 0x1 0x401 0x1 0x1 sio1 port 0x140-0x147,0x3e8-0x3ef irq 10 drq 0 on acpi0 sio1: type 16550A unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) acpi_cmbat0: on acpi0 acpi_acad0: on acpi0 unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) ata: ata0 already exists; skipping it ata: ata1 already exists; skipping it atkbdc: atkbdc0 already exists; skipping it sc: sc0 already exists; skipping it sio: sio0 already exists; skipping it sio: sio1 already exists; skipping it vga: vga0 already exists; skipping it Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices pmtimer0 on isa0 orm0: any boot attempt >Fix: >Release-Note: >Audit-Trail: >Unformatted: won't boot to Buslogic BT958 scsi adapter critical From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 26 10:10:23 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E0A216A4B3 for ; Fri, 26 Sep 2003 10:10:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 989D044025 for ; Fri, 26 Sep 2003 10:10:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8QHAEFY042197 for ; Fri, 26 Sep 2003 10:10:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8QHAEeW042196; Fri, 26 Sep 2003 10:10:14 -0700 (PDT) (envelope-from gnats) Resent-Date: Fri, 26 Sep 2003 10:10:14 -0700 (PDT) Resent-Message-Id: <200309261710.h8QHAEeW042196@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, walter@pelissero.de Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7001A16A4B3 for ; Fri, 26 Sep 2003 10:01:24 -0700 (PDT) Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA79143FDF for ; Fri, 26 Sep 2003 10:01:22 -0700 (PDT) (envelope-from walter@pelissero.de) Received: from daemon.home.loc (62.246.12.103) by webmail.tiscali.de (6.7.019) id 3F59F9DF007B92C3 for FreeBSD-gnats-submit@freebsd.org; Fri, 26 Sep 2003 19:01:22 +0200 Received: from hyde.home.loc (hyde.home.loc [10.0.0.2]) by daemon.home.loc (8.12.9/8.12.8) with ESMTP id h8QGlWP5000391 for ; Fri, 26 Sep 2003 18:47:32 +0200 (CEST) (envelope-from wcp@hyde.home.loc) Received: from hyde.home.loc (localhost [127.0.0.1]) by hyde.home.loc (8.12.9/8.12.8) with ESMTP id h8QGlU0o075830 for ; Fri, 26 Sep 2003 18:47:30 +0200 (CEST) (envelope-from wcp@hyde.home.loc) Received: (from wcp@localhost) by hyde.home.loc (8.12.9/8.12.6/Submit) id h8QGlU7E075829; Fri, 26 Sep 2003 18:47:30 +0200 (CEST) (envelope-from wcp) Message-Id: <200309261647.h8QGlU7E075829@hyde.home.loc> Date: Fri, 26 Sep 2003 18:47:30 +0200 (CEST) From: "Walter C. Pelissero" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/57255: usbd and multi-function devices X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: walter@pelissero.de List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 17:10:23 -0000 >Number: 57255 >Category: bin >Synopsis: usbd and multi-function devices >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 26 10:10:14 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Walter C. Pelissero >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD hyde.home.loc 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #3: Sun Sep 21 21:01:59 CEST 2003 root@hyde.home.loc:/.amd_mnt/daemon/host/usr/warehouse/src/sys/compile/PCG-XG9 i386 >Description: Usbd, as it is, lacks proper support for USB devices implementing multiple functionalities (docking stations and such). If the usbd behaviour was amended to execute all the entries in usbd.conf that match a certain device it would simplify things a bit. An example. If an USB device provides keyboard and mouse interface, you are now required to write a specific entry in usbd.conf so that on matching of that particular manufacturer and product id, usbd should execute two actions to enable keyboard and mouse. If usbd was made able to execute for all the device types implemented the corresponding entry in usbd.conf, nothing would need to be added to usbd.conf (provided actions matching ukbd and ums are already there). This approach has also the advantage of making the name of the device available to the actions, which is not possible in the case of a single entry serving multiple devices. That is, if you match manufacturer and product id, what is the name of the mouse device to use in the action? >How-To-Repeat: >Fix: The following patch will change the behaviour of usbd so that if an entry matching manufacture/product is not available, all the entries matching the implemented devices will be executed. The old behaviour is retained with the command line -s flag. --- usbd.c.orig Sun Aug 31 17:24:14 2003 +++ usbd.c Sun Aug 31 17:08:19 2003 @@ -102,6 +102,7 @@ int lineno; int verbose = 0; /* print message on what it is doing */ +int single_action = 0; typedef struct event_name_s { int type; /* event number (from usb.h) */ @@ -204,8 +205,7 @@ void print_event __P((struct usb_event *event)); void print_action __P((action_t *action, int i)); void print_actions __P((void)); -int find_action __P((struct usb_device_info *devinfo, - action_match_t *action_match)); +void execute_command __P((char *cmd)); void @@ -674,37 +674,19 @@ int -match_devname(action_t *action, struct usb_device_info *devinfo) +match_devname(regex_t *regex, char *name) { - int i; - regmatch_t match; - int error; - - for (i = 0; i < USB_MAX_DEVNAMES; i++) { - if (devinfo->udi_devnames[i][0] == '\0') - break; - - error = regexec(&action->devname_regex, devinfo->udi_devnames[i], - 1, &match, 0); - if (error == 0) { - if (verbose >= 2) - printf("%s: %s matches %s\n", __progname, - devinfo->udi_devnames[i], action->devname); - return(i); - } - } - - return(-1); + return regexec(regex, name, 0, 0, 0) == 0; } - -int -find_action(struct usb_device_info *devinfo, action_match_t *action_match) +void +execute_actions (struct usb_device_info *devinfo, int event_type) { action_t *action; char *devname = NULL; - int match = -1; + int i; + for (i = 0; i < USB_MAX_DEVNAMES && devinfo->udi_devnames[i][0] != '\0'; i++) { STAILQ_FOREACH(action, &actions, next) { if ((action->vendor == WILDCARD_INT || action->vendor == devinfo->udi_vendorNo) && @@ -719,15 +701,15 @@ (action->protocol == WILDCARD_INT || action->protocol == devinfo->udi_protocol) && (action->devname == WILDCARD_STRING || - (match = match_devname(action, devinfo)) != -1)) { - /* found match !*/ - + match_devname(&action->devname_regex, devinfo->udi_devnames[i]))) { + if (verbose >= 2) + print_action(action, 0); /* Find a devname for pretty printing. Either * the matched one or otherwise, if there is only * one devname for that device, use that. */ - if (match >= 0) - devname = devinfo->udi_devnames[match]; + if (action->devname != WILDCARD_STRING) + devname = devinfo->udi_devnames[i]; else if (devinfo->udi_devnames[0][0] != '\0' && devinfo->udi_devnames[1][0] == '\0') /* if we have exactly 1 device name */ @@ -742,16 +724,37 @@ printf("\n"); } - action_match->action = action; - action_match->devname = devname; + if (devname) { + int error; + if (verbose >= 2) + printf("%s: Setting DEVNAME='%s'\n", + __progname, devname); + error = setenv("DEVNAME", devname, 1); + if (error) + fprintf(stderr, "%s: setenv(\"DEVNAME\", + \"%s\",1) failed, %s\n", + __progname, devname, strerror(errno)); + } - return(1); + if (USB_EVENT_IS_ATTACH(event_type) && action->attach) + execute_command(action->attach); + if (USB_EVENT_IS_DETACH(event_type) && action->detach) + execute_command(action->detach); + /* We are done if either we are + * running in single action mode or we + * didn't match the device name, that + * is, we have a catch-all entry for + * the particular USB device. */ + if (single_action || action->devname == WILDCARD_STRING) + return; + /* get on to the next device name */ + break; + } } } - - return(0); } + void execute_command(char *cmd) { @@ -881,30 +884,7 @@ break; case USB_EVENT_DEVICE_ATTACH: case USB_EVENT_DEVICE_DETACH: - if (find_action(&event.u.ue_device, &action_match) == 0) - /* nothing found */ - break; - - if (verbose >= 2) - print_action(action_match.action, 0); - - if (action_match.devname) { - if (verbose >= 2) - printf("%s: Setting DEVNAME='%s'\n", - __progname, action_match.devname); - - error = setenv("DEVNAME", action_match.devname, 1); - if (error) - fprintf(stderr, "%s: setenv(\"DEVNAME\", \"%s\",1) failed, %s\n", - __progname, action_match.devname, strerror(errno)); - } - - if (USB_EVENT_IS_ATTACH(event.ue_type) && - action_match.action->attach) - execute_command(action_match.action->attach); - if (USB_EVENT_IS_DETACH(event.ue_type) && - action_match.action->detach) - execute_command(action_match.action->detach); + execute_actions(&event.u.ue_device, event.ue_type); break; case USB_EVENT_DRIVER_ATTACH: if (verbose) @@ -944,7 +924,7 @@ } } - while ((ch = getopt(argc, argv, "c:def:nt:v")) != -1) { + while ((ch = getopt(argc, argv, "c:def:nst:v")) != -1) { switch(ch) { case 'c': configfile = strdup(optarg); @@ -965,6 +945,9 @@ break; case 'n': handle_events = 0; + break; + case 's': + single_action = 1; break; case 't': itimeout = atoi(optarg); >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 26 15:35:25 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C905516A4B3; Fri, 26 Sep 2003 15:35:25 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48E6643FFD; Fri, 26 Sep 2003 15:35:25 -0700 (PDT) (envelope-from ceri@FreeBSD.org) Received: from freefall.freebsd.org (ceri@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8QMZPFY005419; Fri, 26 Sep 2003 15:35:25 -0700 (PDT) (envelope-from ceri@freefall.freebsd.org) Received: (from ceri@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8QMZPPd005415; Fri, 26 Sep 2003 15:35:25 -0700 (PDT) (envelope-from ceri) Date: Fri, 26 Sep 2003 15:35:25 -0700 (PDT) From: Ceri Davies Message-Id: <200309262235.h8QMZPPd005415@freefall.freebsd.org> To: ceri@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/57050: Add IBM USB Drive support X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 22:35:25 -0000 Old Synopsis: New Synopsis: Add IBM USB Drive support Class-Changed-From-To: sw-bug->change-request Class-Changed-By: ceri Class-Changed-When: Fri Sep 26 15:33:08 PDT 2003 Class-Changed-Why: Reassign misfiled PR. Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: ceri Responsible-Changed-When: Fri Sep 26 15:33:08 PDT 2003 Responsible-Changed-Why: Reassign misfiled PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=57050 From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 26 15:37:05 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2018516A4B3; Fri, 26 Sep 2003 15:37:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9564D4401A; Fri, 26 Sep 2003 15:37:04 -0700 (PDT) (envelope-from ceri@FreeBSD.org) Received: from freefall.freebsd.org (ceri@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8QMb4FY005641; Fri, 26 Sep 2003 15:37:04 -0700 (PDT) (envelope-from ceri@freefall.freebsd.org) Received: (from ceri@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8QMb4qc005637; Fri, 26 Sep 2003 15:37:04 -0700 (PDT) (envelope-from ceri) Date: Fri, 26 Sep 2003 15:37:04 -0700 (PDT) From: Ceri Davies Message-Id: <200309262237.h8QMb4qc005637@freefall.freebsd.org> To: ceri@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: i386/57040: ar driver with PCI card locks up when running cisco-hdlc X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 22:37:05 -0000 Old Synopsis: New Synopsis: ar driver with PCI card locks up when running cisco-hdlc Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: ceri Responsible-Changed-When: Fri Sep 26 15:35:44 PDT 2003 Responsible-Changed-Why: Reassign misfiled PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=57040 From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 27 00:50:21 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33A4716A4B3 for ; Sat, 27 Sep 2003 00:50:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B313F4401F for ; Sat, 27 Sep 2003 00:50:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8R7oJFY096792 for ; Sat, 27 Sep 2003 00:50:19 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8R7oJXt096791; Sat, 27 Sep 2003 00:50:19 -0700 (PDT) (envelope-from gnats) Resent-Date: Sat, 27 Sep 2003 00:50:19 -0700 (PDT) Resent-Message-Id: <200309270750.h8R7oJXt096791@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, plasma Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E844316A4B3 for ; Sat, 27 Sep 2003 00:42:43 -0700 (PDT) Received: from freebsd.sinica.edu.tw (freebsd.sinica.edu.tw [140.109.13.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C40244022 for ; Sat, 27 Sep 2003 00:42:43 -0700 (PDT) (envelope-from plasma@freebsd.sinica.edu.tw) Received: by freebsd.sinica.edu.tw (Postfix, from userid 1026) id B5656999; Sat, 27 Sep 2003 15:42:43 +0800 (CST) Message-Id: <20030927074243.B5656999@freebsd.sinica.edu.tw> Date: Sat, 27 Sep 2003 15:42:43 +0800 (CST) From: plasma To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/57273: PATCH, fix usb keyboard repeat problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: plasma List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2003 07:50:21 -0000 >Number: 57273 >Category: kern >Synopsis: PATCH, fix usb keyboard repeat problem >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 27 00:50:19 PDT 2003 >Closed-Date: >Last-Modified: >Originator: plasma >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #4: Mon Sep 15 18:44:48 CST 2003 root@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386 >Description: Using a usb keyboard, the keystrokes will repeat itself if typing too fast. See http://docs.freebsd.org/cgi/getmsg.cgi?fetch=984685+0+current/freebsd-stable for details. >How-To-Repeat: 1. Plug a usb keyboard. 2. Do 'kbdcontrol -k /dev/kbd1 < /dev/console', activate the usb keyboard. 3. Type. Make sure you type fast enough that one key is pressed before the previous key is not released yet. >Fix: Apply the following patch: --- /usr/src/sys/dev/usb/ukbd.c.orig Mon Mar 31 08:31:35 2003 +++ /usr/src/sys/dev/usb/ukbd.c Sat Sep 27 15:13:31 2003 @@ -732,10 +732,10 @@ for (i = 0; i < NKEYCODE; i++) { key = state->ks_odata.keycode[i]; if (key == 0) - break; + continue; for (j = 0; j < NKEYCODE; j++) { if (ud->keycode[j] == 0) - break; + continue; if (key == ud->keycode[j]) goto rfound; } @@ -748,11 +748,11 @@ for (i = 0; i < NKEYCODE; i++) { key = ud->keycode[i]; if (key == 0) - break; + continue; state->ks_ntime[i] = now + kbd->kb_delay1; for (j = 0; j < NKEYCODE; j++) { if (state->ks_odata.keycode[j] == 0) - break; + continue; if (key == state->ks_odata.keycode[j]) { state->ks_ntime[i] = state->ks_otime[j]; if (state->ks_otime[j] > now) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 27 04:00:39 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F5D416A4B3 for ; Sat, 27 Sep 2003 04:00:39 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23A8A4403F for ; Sat, 27 Sep 2003 04:00:38 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8RB0bFY016135 for ; Sat, 27 Sep 2003 04:00:38 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8RB0bZk016130; Sat, 27 Sep 2003 04:00:37 -0700 (PDT) (envelope-from gnats) Resent-Date: Sat, 27 Sep 2003 04:00:37 -0700 (PDT) Resent-Message-Id: <200309271100.h8RB0bZk016130@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ryuichiro Imura Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0944116A4B3 for ; Sat, 27 Sep 2003 03:59:56 -0700 (PDT) Received: from mail.ryu16.org (YahooBB219005044109.bbtec.net [219.5.44.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7804C44029 for ; Sat, 27 Sep 2003 03:59:54 -0700 (PDT) (envelope-from imura@ryu16.org) Received: from redeye.xt.ryu16.org (localhost [127.0.0.1]) by mail.ryu16.org (8.12.9p1/8.12.9) with ESMTP id h8RAxqwN009646 for ; Sat, 27 Sep 2003 19:59:52 +0900 (JST) (envelope-from imura@redeye.xt.ryu16.org) Received: (from imura@localhost) by redeye.xt.ryu16.org (8.12.9p1/8.12.9/Submit) id h8RAxpr1009645; Sat, 27 Sep 2003 19:59:51 +0900 (JST) (envelope-from imura) Message-Id: <200309271059.h8RAxpr1009645@redeye.xt.ryu16.org> Date: Sat, 27 Sep 2003 19:59:51 +0900 (JST) From: Ryuichiro Imura To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/57277: update BSD.usr.dist following kiconv(3) related commit. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ryuichiro Imura List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2003 11:00:39 -0000 >Number: 57277 >Category: conf >Synopsis: update BSD.usr.dist following kiconv(3) related commit. >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: Sat Sep 27 04:00:37 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Ryuichiro Imura >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: >Description: /usr/libdata/msdosfs is no longer used, because of kiconv(3) commit. It was forgotten by my patch. >How-To-Repeat: >Fix: Index: BSD.usr.dist =================================================================== RCS file: /home/ncvs/src/etc/mtree/BSD.usr.dist,v retrieving revision 1.280 diff -u -r1.280 BSD.usr.dist --- BSD.usr.dist 12 Aug 2003 14:26:57 -0000 1.280 +++ BSD.usr.dist 27 Sep 2003 10:53:23 -0000 @@ -30,8 +30,6 @@ .. lint .. - msdosfs - .. stallion .. .. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 27 05:00:36 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B04E016A4D5 for ; Sat, 27 Sep 2003 05:00:36 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB65443F93 for ; Sat, 27 Sep 2003 05:00:26 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8RC0QFY028027 for ; Sat, 27 Sep 2003 05:00:26 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8RC0Q1B028026; Sat, 27 Sep 2003 05:00:26 -0700 (PDT) (envelope-from gnats) Date: Sat, 27 Sep 2003 05:00:26 -0700 (PDT) Message-Id: <200309271200.h8RC0Q1B028026@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Ian Dowse Subject: Re: misc/57104: boot/usb: boot freezes during USB devices detection X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ian Dowse List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2003 12:00:36 -0000 The following reply was made to PR misc/57104; it has been noted by GNATS. From: Ian Dowse To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: misc/57104: boot/usb: boot freezes during USB devices detection Date: Sat, 27 Sep 2003 12:55:14 +0100 In message <20030923171546.GA365@Psyllobora>, nivit@libero.it writes: >> >Description: >> >> the boot stops during USB devices detection >> [...] > >(Waiting for an official solution), you can solve this problem, >replacing the following files with their old version: > >sys/kern/subr_taskqueue.c (1.3.2.2 -> 1.3.2.1) >sys/sys/taskqueue.h sys.orig/sys/taskqueue.h (1.1.2.3 -> 1.1.2.2) As a followup, the submitter reports that the hang is cured by the following patch. Ian Index: kern_fork.c =================================================================== RCS file: /home/iedowse/CVS/src/sys/kern/kern_fork.c,v retrieving revision 1.72.2.14 diff -u -r1.72.2.14 kern_fork.c --- kern_fork.c 26 Jun 2003 04:15:10 -0000 1.72.2.14 +++ kern_fork.c 26 Sep 2003 08:26:31 -0000 @@ -183,7 +183,7 @@ struct proc *p2, *pptr; uid_t uid; struct proc *newproc; - int ok; + int ok, s; static int curfail = 0, pidchecked = 0; static struct timeval lastfail; struct forklist *ep; @@ -544,10 +544,10 @@ */ microtime(&(p2->p_stats->p_start)); p2->p_acflag = AFORK; - (void) splhigh(); + s = splhigh(); p2->p_stat = SRUN; setrunqueue(p2); - (void) spl0(); + splx(s); /* * Now can be swapped. From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 26 18:30:26 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C854F16A4BF for ; Fri, 26 Sep 2003 18:30:26 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CD734402D for ; Fri, 26 Sep 2003 18:30:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8R1ULFY037647 for ; Fri, 26 Sep 2003 18:30:21 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8R1UL7r037646; Fri, 26 Sep 2003 18:30:21 -0700 (PDT) (envelope-from gnats) Date: Fri, 26 Sep 2003 18:30:21 -0700 (PDT) Message-Id: <200309270130.h8R1UL7r037646@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Jacob Metro" X-Mailman-Approved-At: Sat, 27 Sep 2003 06:49:05 -0700 Subject: Re: kern/56889: MODE_SENSE_BIG timeout hanging boot if CD-ROM is jumpered X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jacob Metro List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2003 01:30:27 -0000 The following reply was made to PR kern/56889; it has been noted by GNATS. From: "Jacob Metro" To: , Cc: Subject: Re: kern/56889: MODE_SENSE_BIG timeout hanging boot if CD-ROM is jumpered Date: Fri, 26 Sep 2003 20:16:33 -0500 This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C3846B.141F7980 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable As a newcomer to FREEBSD.... Using AOPEN CD-956E (standard generic CDROM) and ACER 656A (also a = standard generic CDROM) I am also getting a timeout error (the exact = same one mentioned by ATURETTA) during the beginning of the install = process. If I give the system it's 20 odd times to timeout, I'll eventually get = to the copy phase (Windows terms) and get a mount error on that device = (obviously because it can't see the cdrom anymore). I'm going to try = with another brand of CDROM drive. Everything else seems fine. One = boths drives I've tried using CS, Master, and Slave. Same issue. I''m = using the excellent book Absolute BSD and it seems to be doing a great = job helping me navigate. Thanks in advance for any help. Jacob Metro P.S. I've googled for about two hours now but only found a few = suggestions (such as change from Master to Slave and make sure your IDE = is supported) which might help me. I'm using a standard Intel IDE = (ICH4). ------=_NextPart_000_0008_01C3846B.141F7980 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
As a newcomer to = FREEBSD....
Using AOPEN CD-956E (standard generic = CDROM) and=20 ACER 656A (also a standard generic CDROM) I am also getting a timeout = error (the=20 exact same one mentioned by ATURETTA) during the beginning of the = install=20 process.
If I give the system it's 20 odd times = to timeout,=20 I'll eventually get to the copy phase (Windows terms) and get a mount = error on=20 that device (obviously because it can't see the cdrom anymore).  = I'm going=20 to try with another brand of CDROM drive.  Everything else seems=20 fine.  One boths drives I've tried using CS, Master, and = Slave.  Same=20 issue.  I''m using the excellent book Absolute BSD and it seems to = be doing=20 a great job helping me navigate.
Thanks in advance for any = help.
Jacob Metro
P.S. I've googled for about two hours = now but only=20 found a few suggestions (such as change from Master to Slave and make = sure your=20 IDE is supported) which might help me.  I'm using a standard Intel = IDE=20 (ICH4).
 
------=_NextPart_000_0008_01C3846B.141F7980-- From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 27 14:40:15 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C97F416A4B3 for ; Sat, 27 Sep 2003 14:40:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C11843FFD for ; Sat, 27 Sep 2003 14:40:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8RLeFFY020444 for ; Sat, 27 Sep 2003 14:40:15 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8RLeFSG020443; Sat, 27 Sep 2003 14:40:15 -0700 (PDT) (envelope-from gnats) Date: Sat, 27 Sep 2003 14:40:15 -0700 (PDT) Message-Id: <200309272140.h8RLeFSG020443@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: David Gilbert Subject: Re: kern/57273: PATCH, fix usb keyboard repeat problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Gilbert List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2003 21:40:15 -0000 The following reply was made to PR kern/57273; it has been noted by GNATS. From: David Gilbert To: freebsd-gnats-submit@FreeBSD.org, plasma@freebsd.sinica.edu.tw Cc: Subject: Re: kern/57273: PATCH, fix usb keyboard repeat problem Date: Sat, 27 Sep 2003 17:33:08 -0400 This happens in -CURRENT as well.