Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 15:48:18 +0100
From:      Rogier Mulhuijzen <rmulhuijzen@Transfer-Solutions.com>
To:        freebsd-current@freebsd.org
Subject:   Panic w/crash dump (looks like atomic.h problem)
Message-ID:  <5.0.2.1.0.20010118152851.00a52ec0@tfrsolcom>

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

[-- Attachment #1 --]
Got a nice crash while running XMMS under X11 and running a 'make world -j 
128 -DNOCLEAN' on ttyv0

Current was cvsupped on the 17th in the morning (Central European Time) IIRC.

Attached: 	script(1) output of gdb kernel trace
		Kernel config file
		dmesg(8) output

I'm not an expert on tracing panics, I just followed the instructions in 
the FAQ, so feel free to ask me to look at stuff.

	DocWilco


[-- Attachment #2 --]
Script started on Thu Jan 18 16:09:58 2001
[ root@:/usr/src/sys/compile/VENUS ] # exitgdb -kls -lgdb -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) symol  bol0-  -file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) exec-file /var/crash/kernel.0
(kgdb) core-file /var/crash/vmcore.0
IdlePTD 5267456
initial pcb at 315ce0
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x6c
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xc01c057f
stack pointer	        = 0x10:0xc7ff1d54
frame pointer	        = 0x10:0xc7ff1d5c
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		= 427 (xmms)
panic: from debugger
panic: from debugger
Uptime: 5m51s

dumping to dev ad0s2b, offset 262144
dump ata0: resetting devices .. done
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  dumpsys () at ../../kern/kern_shutdown.c:477
477		if (dumping++) {
(kgdb) where
#0  dumpsys () at ../../kern/kern_shutdown.c:477
#1  0xc0186c2a in boot (howto=260) at ../../kern/kern_shutdown.c:320
#2  0xc0186ff9 in panic (fmt=0xc029c374 "from debugger")
    at ../../kern/kern_shutdown.c:570
#3  0xc0142451 in db_panic (addr=-1071905409, have_addr=0, count=-1, 
    modif=0xc7ff1bc4 "") at ../../ddb/db_command.c:433
#4  0xc01423f1 in db_command (last_cmdp=0xc02dbe34, cmd_table=0xc02dbc94, 
    aux_cmd_tablep=0xc02ff6dc) at ../../ddb/db_command.c:333
#5  0xc01424b6 in db_command_loop () at ../../ddb/db_command.c:455
#6  0xc0144683 in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71
#7  0xc0272f72 in kdb_trap (type=12, code=0, regs=0xc7ff1d14)
    at ../../i386/i386/db_interface.c:164
#8  0xc027ec0c in trap_fatal (frame=0xc7ff1d14, eva=108)
    at ../../i386/i386/trap.c:948
#9  0xc027e975 in trap_pfault (frame=0xc7ff1d14, usermode=0, eva=108)
    at ../../i386/i386/trap.c:867
#10 0xc027e12c in trap (frame={tf_fs = -939589608, tf_es = -1071972336, 
      tf_ds = -939786224, tf_edi = 0, tf_esi = 0, tf_ebp = -939582116, 
      tf_isp = -939582144, tf_ebx = 108, tf_edx = 8, tf_ecx = -940174016, 
      tf_eax = 8, tf_trapno = 12, tf_err = 2, tf_eip = -1071905409, tf_cs = 8, 
      tf_eflags = 66118, tf_esp = 0, tf_ss = -1057531392})
    at ../../i386/i386/trap.c:442
#11 0xc01c057f in vref (vp=0x0) at machine/atomic.h:332
#12 0xc0f7aa82 in ?? ()
---Type <return> to continue, or q <return> to quit---
#13 0xc0f7b933 in ?? ()
#14 0xc0f7de1c in ?? ()
#15 0xc0f7abb5 in ?? ()
#16 0xc01c8acc in vn_read (fp=0xc105e9c0, uio=0xc7ff1ee4, cred=0xc1047600, 
    flags=0, p=0xc7f61540) at vnode_if.h:279
#17 0xc019b9ba in dofileread (p=0xc7f61540, fp=0xc105e9c0, fd=9, 
    buf=0x8223c00, nbyte=512, offset=-1, flags=0) at ../../sys/file.h:141
#18 0xc019b8c2 in read (p=0xc7f61540, uap=0xc7ff1f80)
    at ../../kern/sys_generic.c:118
#19 0xc027f131 in syscall2 (frame={tf_fs = -1078001617, tf_es = -1078001617, 
      tf_ds = -1078001617, tf_edi = 9, tf_esi = 0, tf_ebp = -1079198116, 
      tf_isp = -939581484, tf_ebx = 674684816, tf_edx = 136476160, 
      tf_ecx = 674676832, tf_eax = 3, tf_trapno = 22, tf_err = 2, 
      tf_eip = 674396448, tf_cs = 31, tf_eflags = 659, tf_esp = -1079198160, 
      tf_ss = 47}) at ../../i386/i386/trap.c:1153
#20 0xc02738e3 in Xint0x80_syscall ()
#21 0x2835ddfe in ?? ()
#22 0x2834d66e in ?? ()
#23 0x28348bf9 in ?? ()
#24 0x285b08d6 in ?? ()
#25 0x0 in ?? ()
(kgdb) up 10
#10 0xc027e12c in trap (frame={tf_fs = -939589608, tf_es = -1071972336, 
      tf_ds = -939786224, tf_edi = 0, tf_esi = 0, tf_ebp = -939582116, 
      tf_isp = -939582144, tf_ebx = 108, tf_edx = 8, tf_ecx = -940174016, 
      tf_eax = 8, tf_trapno = 12, tf_err = 2, tf_eip = -1071905409, tf_cs = 8, 
      tf_eflags = 66118, tf_esp = 0, tf_ss = -1057531392})
    at ../../i386/i386/trap.c:442
442				(void) trap_pfault(&frame, FALSE, eva);
(kgdb) frame frame->tf_ebp frame->tf_eip
#0  0xc01c057f in vref (vp=0x0) at machine/atomic.h:332
332		return (atomic_cmpset_int((volatile u_int *)dst, (u_int)exp,
(kgdb) list
327	#if !defined(WANT_FUNCTIONS)
328	static __inline int
329	atomic_cmpset_ptr(volatile void *dst, void *exp, void *src)
330	{
331	
332		return (atomic_cmpset_int((volatile u_int *)dst, (u_int)exp,
333		    (u_int)src));
334	}
335	
336	static __inline void *
(kgdb) print dst
$1 = (u_int *) 0x2836df90
(kgdb) print exp
No symbol "exp" in current context.
(kgdb) print src
$2 = 0
(kgdb) up
#1  0xc0f7aa82 in ?? ()
(kgdb) up
#2  0xc0f7b933 in ?? ()
(kgdb) up
#3  0xc0f7de1c in ?? ()
(kgdb) up
#4  0xc0f7abb5 in ?? ()
(kgdb) up
#5  0xc01c8acc in vn_read (fp=0xc105e9c0, uio=0xc7ff1ee4, cred=0xc1047600, 
    flags=0, p=0xc7f61540) at vnode_if.h:279
279		rc = VCALL(vp, VOFFSET(vop_read), &a);
(kgdb) up
#6  0xc019b9ba in dofileread (p=0xc7f61540, fp=0xc105e9c0, fd=9, 
    buf=0x8223c00, nbyte=512, offset=-1, flags=0) at ../../sys/file.h:141
141		error = (*fp->f_ops->fo_read)(fp, uio, cred, flags, p);
(kgdb) up
#7  0xc019b8c2 in read (p=0xc7f61540, uap=0xc7ff1f80)
    at ../../kern/sys_generic.c:118
118		error = dofileread(p, fp, uap->fd, uap->buf, uap->nbyte, (off_t)-1, 0);
(kgdb) up
#8  0xc027f131 in syscall2 (frame={tf_fs = -1078001617, tf_es = -1078001617, 
      tf_ds = -1078001617, tf_edi = 9, tf_esi = 0, tf_ebp = -1079198116, 
      tf_isp = -939581484, tf_ebx = 674684816, tf_edx = 136476160, 
      tf_ecx = 674676832, tf_eax = 3, tf_trapno = 22, tf_err = 2, 
      tf_eip = 674396448, tf_cs = 31, tf_eflags = 659, tf_esp = -1079198160, 
      tf_ss = 47}) at ../../i386/i386/trap.c:1153
1153		error = (*callp->sy_call)(p, args);
(kgdb) up
#9  0xc02738e3 in Xint0x80_syscall ()
(kgdb) up
#10 0x2835ddfe in ?? ()
(kgdb) up
#11 0x2834d66e in ?? ()
(kgdb) up
#12 0x28348bf9 in ?? ()
(kgdb) up
#13 0x285b08d6 in ?? ()
(kgdb) up
#14 0x0 in ?? ()
(kgdb) up
Initial frame selected; you cannot go up.
(kgdb) quit
[ root@:/usr/src/sys/compile/VENUS ] # exit
exit

Script done on Thu Jan 18 16:16:35 2001

[-- Attachment #3 --]
machine		i386
ident		VENUS
maxusers	32
#makeoptions	CONF_CFLAGS="-fno-builtin -mcpu=pentiumpro -march=pentiumpro"
makeoptions	CONF_CFLAGS="-O -pipe"
options 	BLKDEV_IOSIZE=8192
options 	PQ_NOOPT
options 	INCLUDE_CONFIG_FILE     
cpu		I686_CPU		
options 	NO_F00F_HACK		
options 	COMPAT_43
options 	USER_LDT		
options 	SYSVSHM
options 	SYSVSEM
options 	SYSVMSG
options 	UCONSOLE
options 	USERCONFIG		
options 	VISUAL_USERCONFIG	
options 	INET			
options 	INET6			
options 	IPSEC			
options 	IPSEC_ESP		
options		NETGRAPH
device		ether			
device		vlan			
device		loop	1		
device		bpf			
#device		tap			
#device		tun			
device		gif			
device		faith			
device		stf			
options 	IPFIREWALL		
options 	IPFIREWALL_VERBOSE	
options 	IPFIREWALL_FORWARD	
options 	IPV6FIREWALL		
options 	IPV6FIREWALL_VERBOSE
options 	IPDIVERT		
options 	IPSTEALTH		
options 	TCP_DROP_SYNFIN		
options 	TCP_RESTRICT_RST	
options 	DUMMYNET
options 	BRIDGE
options 	FFS			
options		DEVFS
options 	FFS_ROOT		
options	FFS_EXTATTR
options 	ENABLE_VFS_IOOPT
device		random
options 	P1003_1B
options 	_KPOSIX_PRIORITY_SCHEDULING
options 	_KPOSIX_VERSION=199309L
options 	HZ=100
device		pty		
#device		vn		
options 	MSGBUF_SIZE=40960
device		isa
#options 	COMPAT_OLDISA	
options 	AUTO_EOI_1
options 	MAXMEM="(128*1024)"
#options 	NTIMECOUNTER=20
device		pci
#options 	COMPAT_OLDPCI	
device		atkbdc	1
device		atkbd
device		psm
options 	PSM_HOOKRESUME		
options 	PSM_RESETAFTERSUSPEND	
device		vga
options 	VGA_ALT_SEQACCESS
options 	VGA_SLOW_IOACCESS	
device		splash
device		sc	1
options 	MAXCONS=12		
device		npx
device		ata
device		atadisk		
device		atapicd		
options		SOFTUPDATES
options 	ATA_STATIC_ID
options 	ATA_ENABLE_ATAPI_DMA
options 	ATA_ENABLE_TAGS
device		fdc
device		sio
device		xe
#device		pcm
device		midi
#device		seq
#device		sbc
device		apm
device		pmtimer			
#both NEWCARD and OLDCARD
device		pcic
#just OLDCARD
device		card
#just NEWCARD
#device		pccard
#device		cardbus
#device		pccbb
#resume normal schtuff
options 	PCIC_RESUME_RESET	
options 	POWERFAIL_NMI	
#device		smbus		
#device		intpm
#device		ichsmb
#device		smb
#device		iicbus		
#device		iicbb
#device		ic
#device		iic
#device		iicsmb		
#device		pcf
options		PPC_PROBE_CHIPSET 
options 	DONTPROBE_1284	
device		ppc
device		ppbus
device		lpt
#device		uhci
#device		usb
#device		udbp
#device		ugen
#device		uhid
#device		ukbd
#device		ulpt
#device		umass
#device		umodem
#device		ums
#device		urio
#device		aue
#device		cue
#device		kue
device          acpica
#options         ACPI_DEBUG
options		DIAGNOSTIC
options         MUTEX_DEBUG
options         WITNESS
options         WITNESS_DDB
#options         WITNESS_SKIPSPIN
options         DDB   


[-- Attachment #4 --]
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #1: Thu Jan 18 13:58:27 CET 2001
    root@venus.drwilco.net:/usr/src/sys/compile/VENUS
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (233.29-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134217728 (131072K bytes)
avail memory = 125612032 (122668K bytes)
Preloaded elf kernel "kernel" at 0xc04e6000.
Preloaded elf module "splash_bmp.ko" at 0xc04e609c.
Preloaded elf module "vesa.ko" at 0xc04e6140.
Preloaded splash_image_data "/boot/modules/saturn800.bmp" at 0xc04e61dc.
Preloaded elf module "ums.ko" at 0xc04e6234.
Preloaded elf module "usb.ko" at 0xc04e62d0.
Preloaded elf module "snd_driver.ko" at 0xc04e636c.
Preloaded elf module "snd_via82c686.ko" at 0xc04e6410.
Preloaded elf module "snd_pcm.ko" at 0xc04e64b8.
Preloaded elf module "snd_t4dwave.ko" at 0xc04e6558.
Preloaded elf module "snd_solo.ko" at 0xc04e65fc.
Preloaded elf module "snd_sbc.ko" at 0xc04e669c.
Preloaded elf module "snd_sb16.ko" at 0xc04e673c.
Preloaded elf module "snd_sb8.ko" at 0xc04e67dc.
Preloaded elf module "snd_neomagic.ko" at 0xc04e687c.
Preloaded elf module "snd_mss.ko" at 0xc04e6920.
Preloaded elf module "snd_maestro.ko" at 0xc04e69c0.
Preloaded elf module "snd_gusc.ko" at 0xc04e6a64.
Preloaded elf module "snd_ess.ko" at 0xc04e6b04.
Preloaded elf module "snd_es1888.ko" at 0xc04e6ba4.
Preloaded elf module "snd_es137x.ko" at 0xc04e6c48.
Preloaded elf module "snd_emu10k1.ko" at 0xc04e6cec.
Preloaded elf module "snd_ds1.ko" at 0xc04e6d90.
Preloaded elf module "snd_csapcm.ko" at 0xc04e6e30.
Preloaded elf module "snd_csa.ko" at 0xc04e6ed4.
Preloaded elf module "snd_ad1816.ko" at 0xc04e6f74.
KLD file snd_driver.ko is missing dependencies
Pentium Pro MTRR support enabled
VESA: v2.0, 2496k memory, flags:0x0, mode table:0xc03b82e2 (1000022)
VESA: MagicGraph 256 AV 44K PRELIMINARY
    ACPI-0299: *** Warning: Invalid table signature found
    ACPI-0170: *** Error: AcpiLoadTables: Could not load RSDT: AE_BAD_SIGNATURE
    ACPI-0202: *** Error: AcpiLoadTables: Could not load tables: AE_BAD_SIGNATURE
ACPI: table load failed: AE_BAD_SIGNATURE
Using $PIR table, 6 entries at 0xc00f0f80
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: <Intel 82443BX host to PCI bridge (AGP disabled)> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <display, VGA> at 4.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 5.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfe60-0xfe6f at device 5.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xffe0-0xffff irq 11 at device 5.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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
ums0: Logitech USB Mouse, rev 1.10/6.10, addr 2, iclass 3/1
ums0: 4 buttons and Z dir.
pci0: <bridge, PCI-unknown> at 5.3 (no driver attached)
pci0: <simple comms> at 9.0 (no driver attached)
pcic-pci0: <Toshiba ToPIC97 PCI-CardBus Bridge> at device 11.0 on pci0
pcic-pci1: <Toshiba ToPIC97 PCI-CardBus Bridge> at device 11.1 on pci0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
fdc0: <NEC 765 or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: Polling mode
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
pcm0: <OPL3-SAx (YMF719)> at port 0x530-0x537,0x538-0x539 irq 5 drq 1 flags 0xc110 on isa0
pmtimer0 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 drq 3 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sbc0: <SoundBlaster Pro> at port 0x220-0x22f irq 5 drq 0 on isa0
sbc0: alloc_resource
device_probe_and_attach: sbc0 attach returned 6
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <12 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
DUMMYNET initialized (010116)
IPv6 packet filtering initialized, unlimited logging
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, unlimited logging
BRIDGE 990810, have 5 interfaces
IPsec: Initialized Security Association Processing.
pccard: card inserted, slot 0
ata1-slave: ata_command: timeout waiting for intr
ata1-slave: identify failed
ad0: 4126MB <TOSHIBA MK4310MAT> [8944/15/63] at ata0-master UDMA33
acd0: CDROM <CD-224E> at ata1-master using WDMA2
Mounting root from ufs:/dev/ad0s2a
pid 261 (ldconfig), uid 0: exited on signal 11 (core dumped)
xe0 at port 0x2e8-0x2ef iomem 0xd0000-0xd0fff irq 10 slot 0 on pccard0
xe0: Xircom CEM56, bonding version 0x55, 100Mbps capable, with modem
xe0: DingoID = 0x444b, RevisionID = 0x1, VendorID = 0
xe0: Ethernet address 00:10:a4:b4:e4:b5
BRIDGE 990810, have 6 interfaces
-- index 6  type 6 phy 0 addrl 6 addr 00.10.a4.b4.e4.b5
xe0: watchdog timeout; resetting card

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