From owner-freebsd-stable Sat Apr 6 19:25:30 2002 Delivered-To: freebsd-stable@freebsd.org Received: from HAL9000.wox.org (12-232-222-90.client.attbi.com [12.232.222.90]) by hub.freebsd.org (Postfix) with ESMTP id 4EB3F37B404 for ; Sat, 6 Apr 2002 19:25:01 -0800 (PST) Received: (from das@localhost) by HAL9000.wox.org (8.11.6/8.11.6) id g373QDv16789 for freebsd-stable@freebsd.org; Sat, 6 Apr 2002 19:26:13 -0800 (PST) (envelope-from das) Date: Sat, 6 Apr 2002 19:26:13 -0800 From: David Schultz To: freebsd-stable@freebsd.org Subject: 4.5 hangs on shutdown with X running on 2 virtual terminals Message-ID: <20020406192613.A1341@HAL9000.wox.org> Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG My 4.5-RELEASE box hangs on about every 3 out of 4 shutdowns, immediately following the message syslogd: exiting on signal 15 The box is still pingable, but unresponsive to the keyboard except to break to the debugger. The apparent cause of the problem is the addition of a line to /etc/X11/xdm/Xservers, which runs another X display on ttyv9: :0 local /usr/X11R6/bin/X :0 ttyv8 :1 local /usr/X11R6/bin/X :1 ttyv9 I'm expecting the solution to be ``Don't start X that way, you idiot,'' but that wouldn't explain why the lockups are random. In any case, I'm including a backtrace and other info just in case this is a real bug. Thanks in advance for any help with this one. das@HAL9000:/usr/crash# uname -a FreeBSD HAL9000.wox.org 4.5-RELEASE-p2 FreeBSD 4.5-RELEASE-p2 #0: Sat Apr 6 05:26:22 PST 2002 das@HAL9000.wox.org:/usr/obj/usr/src/sys/HAL9000.debug i386 das@HAL9000:/usr/crash# X -version das@HAL9000:/usr/crash# gdb -k GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd". (kgdb) symbol-file /usr/obj/usr/src/sys/HAL9000/kernel.debug Reading symbols from /usr/obj/usr/src/sys/HAL9000/kernel.debug...done. (kgdb) exec-file kernel.0 (kgdb) core-file vmcore.0 IdlePTD at phsyical address 0x00346000 initial pcb at physical address 0x002affc0 panicstr: from debugger panic messages: --- panic: from debugger syncing disks... 28 3 2 2 done Uptime: 7m33s dumping to dev #ad/0x20009, offset 32 dump ata0: resetting devices .. done 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 --- #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:474 474 if (dumping++) { (kgdb) bt #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:474 #1 0xc013fba7 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:313 #2 0xc013ffa1 in panic (fmt=0xc0249a24 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:582 #3 0xc0120c9d in db_panic (addr=-1071468396, have_addr=0, count=-1, modif=0xcdcb3af8 "") at /usr/src/sys/ddb/db_command.c:435 #4 0xc0120c3d in db_command (last_cmdp=0xc027ae94, cmd_table=0xc027acd4, aux_cmd_tablep=0xc02ab4d8) at /usr/src/sys/ddb/db_command.c:333 #5 0xc0120d02 in db_command_loop () at /usr/src/sys/ddb/db_command.c:457 #6 0xc0122e1f in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_trap.c:71 #7 0xc022ae36 in kdb_trap (type=3, code=0, regs=0xcdcb3c00) at /usr/src/sys/i386/i386/db_interface.c:158 #8 0xc02375c0 in trap (frame={tf_fs = -1071972336, tf_es = -1055064048, tf_ds = 16, tf_edi = 0, tf_esi = -1070857696, tf_ebp = -842318776, tf_isp = -842318804, tf_ebx = 134, tf_edx = 0, tf_ecx = 32, tf_eax = 38, tf_trapno = 3, tf_err = 0, tf_eip = -1071468396, tf_cs = 8, tf_eflags = 582, tf_esp = -1071183105, tf_ss = -1071196759}) at /usr/src/sys/i386/i386/trap.c:574 #9 0xc022b094 in Debugger (msg=0xc026d5a9 "manual escape to debugger") at machine/cpufunc.h:67 #10 0xc0226c0a in scgetc (sc=0xc02c5dc0, flags=2) at /usr/src/sys/dev/syscons/syscons.c:3148 #11 0xc0223481 in sckbdevent (thiskbd=0xc02be920, event=0, arg=0xc02c5dc0) at /usr/src/sys/dev/syscons/syscons.c:616 #12 0xc021acf6 in atkbd_intr (kbd=0xc02be920, arg=0x0) at /usr/src/sys/dev/kbd/atkbd.c:462 #13 0xc0242418 in atkbd_isa_intr (arg=0xc02be920) at /usr/src/sys/isa/atkbd_isa.c:140 #14 0xc013de4a in add_interrupt_randomness (vsc=0xc02c54ac) at /usr/src/sys/kern/kern_random.c:245 #15 0xc022d042 in vec1 () #16 0xc0223e9a in scioctl (dev=0xc11e6200, cmd=536901126, data=0xcdcb3ea8 "\n", flag=7, p=0xcbfe28a0) at /usr/src/sys/dev/syscons/syscons.c:955 #17 0xc0178326 in spec_ioctl (ap=0xcdcb3de4) at /usr/src/sys/miscfs/specfs/spec_vnops.c:306 #18 0xc0178051 in spec_vnoperate (ap=0xcdcb3de4) at /usr/src/sys/miscfs/specfs/spec_vnops.c:119 #19 0xc01d3ee5 in ufs_vnoperatespec (ap=0xcdcb3de4) at /usr/src/sys/ufs/ufs/ufs_vnops.c:2441 #20 0xc01748cb in vn_ioctl (fp=0xc146c140, com=536901126, data=0xcdcb3ea8 "\n", p=0xcbfe28a0) at vnode_if.h:429 #21 0xc014edda in ioctl (p=0xcbfe28a0, uap=0xcdcb3f80) at /usr/src/sys/sys/file.h:177 #22 0xc0237ef5 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 5, tf_esi = 256, tf_ebp = -1077936932, tf_isp = -842317868, tf_ebx = -1, tf_edx = -1, tf_ecx = 4, tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 673282160, tf_cs = 31, tf_eflags = 659, tf_esp = -1077937056, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1157 #23 0xc022bbe5 in Xint0x80_syscall () #24 0x806b680 in ?? () #25 0x80bdebe in ?? () #26 0x806b2ad in ?? () (kgdb) quit syscons settings in /etc/rc.conf: # Console allscreens_flags="80x50" blanktime="300" font8x8="cp437-8x8" keymap="us.iso" moused_enable="YES" moused_flags="-z 4" saver="blank" scrnmap="NO" kernel config: machine i386 cpu I686_CPU ident HAL9000 maxusers 0 makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options DDB options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options UFS_DIRHASH #Improve performance on big directories options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem #options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=0 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor #options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies options KBD_INSTALL_CDEV # install a CDEV entry in /dev options SC_HISTORY_SIZE=1000 # Bigger scroll buffer device isa #device eisa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID # Static device numbering #options EXT2FS # Linux filesystem # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 flags 0x1 device psm0 at atkbdc? irq 12 #device joy0 at isa? port IO_GAME device vga0 at isa? options VESA #options VESA_DEBUG=2 # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? flags 0x100 # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) device apm0 at nexus? #flags 0x20 # Advanced Power Management # Serial (COM) ports; sio0 required to make modem work device sio0 at isa? port IO_COM1 flags 0x10 irq 4 #device sio1 at isa? port IO_COM2 irq 3 #device sio2 at isa? disable port IO_COM3 irq 5 #device sio3 at isa? disable port IO_COM4 irq 9 # Parallel port #device ppc0 at isa? irq 7 #device ppbus # Parallel port bus (required) #device lpt # Printer #device plip # TCP/IP over parallel #device ppi # Parallel port interface device #device vpo # Requires scbus and da # PCI Ethernet NICs. #device de # DEC/Intel DC21x4x (``Tulip'') #device fxp # Intel EtherExpress PRO/100B (82557, 82558) #device tx # SMC 9432TX (83c170 ``EPIC'') #device vx # 3Com 3c590, 3c595 (``Vortex'') #device wx # Intel Gigabit Ethernet Card (``Wiseman'') # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support #device dc # DEC/Intel 21143 and various workalikes #device pcn # AMD Am79C79x PCI 10/100 NICs #device rl # RealTek 8129/8139 #device sf # Adaptec AIC-6915 (``Starfire'') device sis # Silicon Integrated Systems SiS 900/SiS 7016 #device ste # Sundance ST201 (D-Link DFE-550TX) #device tl # Texas Instruments ThunderLAN #device vr # VIA Rhine, Rhine II #device wb # Winbond W89C840F #device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # Pseudo devices - the number indicates how many units to allocate. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support #pseudo-device sl 1 # Kernel SLIP # Can be dynamically loaded if needed #pseudo-device ppp 1 # Kernel PPP #pseudo-device tun # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) #pseudo-device md # Memory "disks" #pseudo-device gif 4 # IPv6 and IPv4 tunneling #pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter # USB support #device uhci # UHCI PCI->USB interface #device ohci # OHCI PCI->USB interface #device usb # USB Bus (required) #device ugen # Generic #device uhid # "Human Interface Devices" #device ukbd # Keyboard #device ulpt # Printer #device umass # Disks/Mass storage - Requires scbus and da #device ums # Mouse #device uscanner # Scanners # USB Ethernet, requires mii #device aue # ADMtek USB ethernet #device cue # CATC USB ethernet #device kue # Kawasaki LSI USB ethernet # Ta da! Sound support. device pcm # PCI card # Firewall, NAT. options IPFIREWALL # firewall support #options IPV6FIREWALL #options IPDIVERT options IPFIREWALL_VERBOSE #enable logging to syslogd(8) options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message