Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2001 13:21:52 +0200
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        current@FreeBSD.org, jhb@FreeBSD.org
Subject:   -CURRENT often panices when exiting from X server to VESA_800x600  console
Message-ID:  <3C149AD0.EF66AF8B@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

My -CURRENT box often panices when exiting from X server to console
running in VESA_800x600 mode. I was observing this weird behaviour for
quite some time now. Also I've noted that the chances of system going
down is directly related to the presence of disk activity during the
mode change - if there is a havy disk activity during this period then
those chances are quite high. Therefore, I suspecting that there are
some locking problems, but as my knowelege in this area is almost
non-existent I would like to ask somebody to look at the attached
crash log and let me know if there are any ideas. Please also don't
hesitate to ask if any additional debugging is necessary.

Thanks!

-Maxim
[-- Attachment #2 --]
Script started on Mon Dec 10 13:08:04 2001
root@notebook# gdb -k /sys/i386/compile/NOTEBOOK/kernel.debug vmcore.0
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"...
IdlePTD 3547136
initial pcb at 2abac0
panicstr: bwrite: buffer is not busy???
panic messages:
---
Fatal trap 12: page fault while in vm86 mode
fault virtual address	= 0xc0ddc
fault code		= user read, page not present
instruction pointer	= 0xc000:0xddc
stack pointer	        = 0x0:0xfa4
frame pointer	        = 0x0:0xfe6
code segment		= base 0x440012, limit 0x10001, type 0xd
			= DPL 0, pres 0, def32 0, gran 0
processor eflags	= interrupt enabled, resume, vm86, IOPL = 0
current process		= 28610 (XF86_SVGA)
trap number		= 12
panic: page fault

syncing disks... panic: bwrite: buffer is not busy???
Uptime: 3h31m19s
pfs_vncache_unload(): 1 entries remaining

dumping to dev ad0s1b, offset 72192
dump ata0: resetting devices .. done
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 succeeded
Automatic reboot in 15 seconds - press a key on the console to abort
Rebooting...
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #124: Sat Dec  8 03:20:40 EET 2001
    root@notebook:/usr/src/sys/i386/compile/NOTEBOOK
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0346000.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc03460a8.
Preloaded elf module "/boot/kernel/snd_ess.ko" at 0xc0346154.
Preloaded elf module "/boot/kernel/snd_sbc.ko" at 0xc0346200.
Timecounter "i8254"  frequency 1193395 Hz
CPU: Pentium/P55C (quarter-micron) (266.59-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x581  Stepping = 1
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 67108864 (65536K bytes)
avail memory = 61853696 (60404K bytes)
Intel Pentium detected, installing workaround for F00F bug
VESA: v1.2, 1984k memory, flags:0x0, mode table:0xc00c4e78 (c0004e78)
VESA: S3 Incorporated. 86CM65
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcic0: <TI PCI-1131 PCI-CardBus Bridge> mem 0x7fffe000-0x7fffefff irq 11 at device 12.0 on pci0
pcic0: TI113X PCI Config Reg: [speaker enable][CSC serial isa irq]
pccard0: <PC Card bus (classic)> on pcic0
pcic1: <TI PCI-1131 PCI-CardBus Bridge> mem 0x7ffff000-0x7fffffff irq 11 at device 12.1 on pci0
pcic1: TI113X PCI Config Reg: [speaker enable][CSC serial isa irq]
pccard1: <PC Card bus (classic)> on pcic1
pci0: <display, VGA> at device 13.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 14.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Generic PCI ATA controller> port 0xb140-0xb14f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 14.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pcic-: pcic0 already exists, skipping it
pcic-: pcic1 already exists, skipping it
sc-: sc0 already exists, skipping it
vga-: vga0 already exists, skipping it
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
pmtimer0 on isa0
sio0 at port 0x2f8-0x2ff irq 3 on isa0
sio0: type 16550A
unknown: <PNP0700> can't assign resources
sbc0: <ESS ES1878> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 on isa0
pcm0: <ESS 18xx DSP> on sbc0
unknown: <PNP0303> can't assign resources
unknown: <PNP0f13> can't assign resources
unknown: <CPQae48> can't assign resources
ad0: 4887MB <IBM-DPLA-25120> [10592/15/63] at ata0-master BIOSDMA
acd0: CDROM <COMPAQ CRD-S311> at ata0-slave PIO3
Mounting root from ufs:/dev/ad0s1a
pccard: card inserted, slot 0
WARNING: / was not properly dismounted
/: lost blocks 98 files 12
/: reload pending error: blocks 98 files 12
ed0 at port 0x280-0x29f irq 11 slot 0 on pccard0
ed0: address 00:80:c8:88:86:b1, type NE2000 (16 bit) 
Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
Waiting (max 60 seconds) for system process `syncer' to stop...stopped

syncing disks... 7 7 2 2 
done
Uptime: 2m57s
Rebooting...
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #124: Sat Dec  8 03:20:40 EET 2001
    root@notebook:/usr/src/sys/i386/compile/NOTEBOOK
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0346000.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc03460a8.
Preloaded elf module "/boot/kernel/snd_ess.ko" at 0xc0346154.
Preloaded elf module "/boot/kernel/snd_sbc.ko" at 0xc0346200.
Timecounter "i8254"  frequency 1193394 Hz
CPU: Pentium/P55C (quarter-micron) (266.59-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x581  Stepping = 1
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 67108864 (65536K bytes)
avail memory = 61853696 (60404K bytes)
Intel Pentium detected, installing workaround for F00F bug
VESA: v1.2, 1984k memory, flags:0x0, mode table:0xc00c4e78 (c0004e78)
VESA: S3 Incorporated. 86CM65
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcic0: <TI PCI-1131 PCI-CardBus Bridge> mem 0x7fffe000-0x7fffefff irq 11 at device 12.0 on pci0
pcic0: TI113X PCI Config Reg: [speaker enable][CSC serial isa irq]
pccard0: <PC Card bus (classic)> on pcic0
pcic1: <TI PCI-1131 PCI-CardBus Bridge> mem 0x7ffff000-0x7fffffff irq 11 at device 12.1 on pci0
pcic1: TI113X PCI Config Reg: [speaker enable][CSC serial isa irq]
pccard1: <PC Card bus (classic)> on pcic1
pci0: <display, VGA> at device 13.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 14.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Generic PCI ATA controller> port 0xb140-0xb14f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 14.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pcic-: pcic0 already exists, skipping it
pcic-: pcic1 already exists, skipping it
sc-: sc0 already exists, skipping it
vga-: vga0 already exists, skipping it
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
pmtimer0 on isa0
sio0 at port 0x2f8-0x2ff irq 3 on isa0
sio0: type 16550A
unknown: <PNP0700> can't assign resources
sbc0: <ESS ES1878> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 on isa0
pcm0: <ESS 18xx DSP> on sbc0
unknown: <PNP0303> can't assign resources
unknown: <PNP0f13> can't assign resources
unknown: <CPQae48> can't assign resources
ad0: 4887MB <IBM-DPLA-25120> [10592/15/63] at ata0-master BIOSDMA
acd0: CDROM <COMPAQ CRD-S311> at ata0-slave PIO3
Mounting root from ufs:/dev/ad0s1a
pccard: card inserted, slot 0
ed0 at port 0x280-0x29f irq 11 slot 0 on pccard0
ed0: address 00:80:c8:88:86:b1, type NE2000 (16 bit) 
Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
Waiting (max 60 seconds) for system process `syncer' to stop...stopped

syncing disks... 18 18 1 1 
done
Uptime: 25m55s
Rebooting...
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #0: Mon Dec 10 12:46:12 EET 2001
    root@notebook:/usr/src/sys/i386/compile/NOTEBOOK
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0343000.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc03430a8.
Preloaded elf module "/boot/kernel/snd_ess.ko" at 0xc0343154.
Preloaded elf module "/boot/kernel/snd_sbc.ko" at 0xc0343200.
Timecounter "i8254"  frequency 1193394 Hz
CPU: Pentium/P55C (quarter-micron) (266.59-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x581  Stepping = 1
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 67108864 (65536K bytes)
avail memory = 61865984 (60416K bytes)
Intel Pentium detected, installing workaround for F00F bug
VESA: v1.2, 1984k memory, flags:0x0, mode table:0xc00c4e78 (c0004e78)
VESA: S3 Incorporated. 86CM65
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcic0: <TI PCI-1131 PCI-CardBus Bridge> mem 0x7fffe000-0x7fffefff irq 11 at device 12.0 on pci0
pcic0: TI113X PCI Config Reg: [speaker enable][CSC serial isa irq]
pccard0: <PC Card bus (classic)> on pcic0
pcic1: <TI PCI-1131 PCI-CardBus Bridge> mem 0x7ffff000-0x7fffffff irq 11 at device 12.1 on pci0
pcic1: TI113X PCI Config Reg: [speaker enable][CSC serial isa irq]
pccard1: <PC Card bus (classic)> on pcic1
pci0: <display, VGA> at device 13.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 14.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Generic PCI ATA controller> port 0xb140-0xb14f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 14.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pcic-: pcic0 already exists, skipping it
pcic-: pcic1 already exists, skipping it
sc-: sc0 already exists, skipping it
vga-: vga0 already exists, skipping it
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
pmtimer0 on isa0
sio0 at port 0x2f8-0x2ff irq 3 on isa0
sio0: type 16550A
unknown: <PNP0700> can't assign resources
sbc0: <ESS ES1878> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 on isa0
pcm0: <ESS 18xx DSP> on sbc0
unknown: <PNP0303> can't assign resources
unknown: <PNP0f13> can't assign resources
unknown: <CPQae48> can't assign resources
ad0: 4887MB <IBM-DPLA-25120> [10592/15/63] at ata0-master BIOSDMA
acd0: CDROM <COMPAQ CRD-S311> at ata0-slave PIO3
Mounting root from ufs:/dev/ad0s1a
pccard: card inserted, slot 0
ed0 at port 0x280-0x29f irq 11 slot 0 on pccard0
ed0: address 00:80:c8:88:86:b1, type NE2000 (16 bit) 


Fatal trap 12: page fault while in vm86 mode
fault virtual address	= 0xc0ddc
fault code		= user read, page not present
instruction pointer	= 0xc000:0xddc
stack pointer	        = 0x0:0xfa4
frame pointer	        = 0x0:0xfe6
code segment		= base 0xe10005, limit 0x10002, type 0x19
			= DPL 0, pres 0, def32 0, gran 0
processor eflags	= interrupt enabled, resume, vm86, IOPL = 0
current process		= 556 (XF86_SVGA)
trap number		= 12
panic: page fault

syncing disks... panic: bwrite: buffer is not busy???
Uptime: 14m31s
pfs_vncache_unload(): 1 entries remaining

dumping to dev ad0s1b, offset 72192
dump ata0: resetting devices .. done
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  dumpsys () at ../../../kern/kern_shutdown.c:492
492		if (!dodump)
(kgdb) up
#1  0xc016f6b0 in boot (howto=260) at ../../../kern/kern_shutdown.c:335
335			dumpsys();
(kgdb) up
#2  0xc016fae7 in panic (fmt=0xc0265798 "bwrite: buffer is not busy???")
    at ../../../kern/kern_shutdown.c:634
634		boot(bootopt);
(kgdb) up
#3  0xc01a11bb in bwrite (bp=0xc1df14a8) at ../../../kern/vfs_bio.c:672
672			panic("bwrite: buffer is not busy???");
(kgdb) up
#4  0xc01a177e in bawrite (bp=0xc1df14a8) at ../../../kern/vfs_bio.c:985
985		(void) BUF_WRITE(bp);
(kgdb) up
#5  0xc01fec84 in ffs_fsync (ap=0xc0366ea0) at ../../../ufs/ffs/ffs_vnops.c:217
217						(void) bawrite(bp);
(kgdb) up
#6  0xc01fd2e6 in ffs_sync (mp=0xc0a71800, waitfor=2, cred=0xc05d0b00, td=0xc02c0b24)
    at vnode_if.h:441
441		rc = VCALL(vp, VOFFSET(vop_fsync), &a);
(kgdb) up
#7  0xc01adc36 in sync (td=0xc02c0b24, uap=0x0) at ../../../kern/vfs_syscalls.c:657
657				VFS_SYNC(mp, MNT_NOWAIT,
(kgdb) up
#8  0xc016f2b6 in boot (howto=256) at ../../../kern/kern_shutdown.c:244
244			sync(thread0, NULL);
(kgdb) up
#9  0xc016fae7 in panic (fmt=0xc02751de "%s") at ../../../kern/kern_shutdown.c:634
634		boot(bootopt);
(kgdb) up
#10 0xc0242bee in trap_fatal (frame=0xc0366fa8, eva=789980) at ../../../i386/i386/trap.c:950
950			panic("%s", trap_msg[type]);
(kgdb) up
#11 0xc0242945 in trap_pfault (frame=0xc0366fa8, usermode=0, eva=789980)
    at ../../../i386/i386/trap.c:864
864			trap_fatal(frame, eva);
(kgdb) up
#12 0xc02422d8 in trap (frame={tf_fs = 0, tf_es = 0, tf_ds = 0, tf_edi = 17248, tf_esi = 16008, 
      tf_ebp = 4070, tf_isp = -1070174252, tf_ebx = 64, tf_edx = 980, tf_ecx = 24144, tf_eax = 0, 
      tf_trapno = 12, tf_err = 4, tf_eip = 3548, tf_cs = 49152, tf_eflags = 721478, tf_esp = 4004, 
      tf_ss = 0}) at ../../../i386/i386/trap.c:416
416				(void) trap_pfault(&frame, FALSE, eva);
(kgdb) up
#13 0xddc in ?? ()
(kgdb) up
Cannot access memory at address 0xfe6.
(kgdb) quit
root@notebook# exit

Script done on Mon Dec 10 13:09:36 2001

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C149AD0.EF66AF8B>