Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. Re: HEADSUP: geom_vinum committed [Fatal trap 12 (g_event)]
      (Christian Hiris)
   2. RE: kernel trap 19 with interrupts disabled: system hang
      (Bruce Evans)
   3. NDISulator info please (adam@adamretter.eclipse.co.uk)
   4. Re: NDISulator info please (Michael Nottebrock)
   5. RE: kernel trap 19 with interrupts disabled: system hang
      (Don Bowman)
   6. Re: HEADSUP: geom_vinum committed [Fatal trap 12 (g_event)]
      (Lukas Ertl)
   7. RE: kernel trap 19 with interrupts disabled: system hang
      (Don Bowman)
   8. Re: panic: kmem_malloc(4096) on an SMP box (Robert Watson)
   9. Re: panic: kmem_malloc(4096) on an SMP box (Sven Willenberger)
  10. Compiler error in -current (Sean McNeil)
  11. Netgraph malloc(9) trouble... (Poul-Henning Kamp)
  12. localcru: negative time of 2360 usec for pid 33672
      (fork_exit) (Don Bowman)
  13. Re: Compiler error in -current (Liam J. Foy)
  14. Re: Netgraph malloc(9) trouble...  (Poul-Henning Kamp)
  15. Re: Device polling (Jon Noack)
  16. Re: Device polling (Ruslan Ermilov)
  17. [current tinderbox] failure on amd64/amd64 (FreeBSD Tinderbox)
  18. Re: Device polling (Robert Watson)
  19. Re: [current tinderbox] failure on amd64/amd64 (David Malone)
  20. [current tinderbox] failure on i386/i386 (FreeBSD Tinderbox)
  21. Kernel compile error (Beecher Rintoul)
  22. -current XFree86 CPU hogging (David Thiel)
  23. [current tinderbox] failure on i386/pc98 (FreeBSD Tinderbox)


----------------------------------------------------------------------

Message: 1
Date: Sun, 13 Jun 2004 15:18:59 +0200
From: Christian Hiris <4711@chello.at>
Subject: Re: HEADSUP: geom_vinum committed [Fatal trap 12 (g_event)]
To: freebsd-current@freebsd.org
Cc: Lukas Ertl <le@FreeBSD.org>
Message-ID: <200406131519.11988.4711@chello.at>
Content-Type: text/plain; charset="iso-8859-1"

On Saturday 12 June 2004 23:28, Lukas Ertl wrote:
> Dear hackers,
>
> I've just committed a first geomified version of vinum, surprisingly
> called geom_vinum.
>
> Bug reports, suggestions, critics and flames are happily awaited, even
> more so when they have patches attached. :-)
>
> Thanks,
> le

First - many, many thanks for such a nice surprise :-)) and your work!

I really must gave our brand new geomified gvinum module a first try on a test
 
machine. This machine holds on an existing vinum striped volume, which was 
created by old, ungeomfied vinum.

First fsck and mounting the filesystem went fine and I could read data from 
the vinum volume's ufs2 filesystem.

Unmounting the filesystem then panics the machine. I rebooted, did a 'fsck -t 

ufs /dev/gvinum/vinum0', which results in a Fatal trap 12. So next I 
recompiled kernel with the geom_subr.c.diff patch and debugging symbols. 

After installing the new kernels I tried fscking again: Sometimes fsck on the 

gvinum volume's filesystem works and i can mount the filesystem, but mostly 
I'm lost in the fatal trap before fsck could issue any of it's messages. The 

old vinum kld still works fine, even after the panics of the geomified kld.


Some of the output and config data:   


Vinum config:
matrix020# cat /etc/vinum.config
# Vinum configuration of matrix020.matrix.net, saved at Sat May 29 22:46:40 
2004
drive vinumdrive1 device /dev/da1s1h
drive vinumdrive0 device /dev/da0s1h
volume vinum0
plex name vinum0.p0 org striped 558s vol vinum0
sd name vinum0.p0.s0 drive vinumdrive0 plex vinum0.p0 len 35840340s 
driveoffset 265s plexoffset 0s
sd name vinum0.p0.s1 drive vinumdrive1 plex vinum0.p0 len 35840340s 
driveoffset 265s plexoffset 558s


Console Output:  
Sun Jun 13 13:20:36 CEST 2004
FOO: sd vinum0.p0.s1 is up
FOO: sd vinum0.p0.s0 is up
(from 'gvinum start')

FOO: sd vinum0.p0.s1 is up
FOO: plex vinum0.p0 is up
FOO: sd vinum0.p0.s0 is up
FOO: plex vinum0.p0 is up
(from 'fsck -t ufs /dev/gvinum/vinum0')


ddb output:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xe
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc051bafc
stack pointer           = 0x10:0xd7e65c7c
frame pointer           = 0x10:0xd7e65c88
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         = 2 (g_event)
kernel: type 12 trap, code=0
Stopped at      redo_rank+0x70: cmpl    $0,0xc(%edx)
db> trace
redo_rank(c2398e80,c1e63d80,d7e65cb0,c051b783,c1e63d80) at redo_rank+0x70
g_detach(c1e63d80,c2398e80,4,0,d7e65cd8) at g_detach+0x67
g_wither_geom(c2398e80,6,c20fc660,1,c06eb40d) at g_wither_geom+0xab
g_slice_spoiled(c1e63d80) at g_slice_spoiled+0x30
g_spoil_event(c1e09400,0) at g_spoil_event+0x30
one_event(d7e65d20,c051a58d,4b0,320,c1bf1898) at one_event+0x192
g_run_events(4b0,320,c1bf1898,c051a56c,d7e65d34) at g_run_events+0x9
g_event_procbody(0,d7e65d48) at g_event_procbody+0x21
fork_exit(c051a56c,0,d7e65d48) at fork_exit+0x71
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xd7e65d7c, ebp = 0 ---
db>  show registers
cs                 0x8
ds          0xd7e60010
es                0x10
fs          0xd7e60018
ss                0x10
eax         0xc22fac18
ecx         0xc22fcd00
edx                0x2
ebx                0x1
esp         0xd7e65c7c
ebp         0xd7e65c88
esi         0xc22fcd00
edi         0xc2398e80
eip         0xc051bafc  redo_rank+0x70
efl            0x10202
dr0                  0
dr1                  0
dr2                  0
dr3                  0
dr4         0xffff0ff0
dr5              0x400
dr6         0xffff0ff0
dr7              0x400
redo_rank+0x70: cmpl    $0,0xc(%edx)
db> ps
  pid   proc     uarea   uid  ppid  pgrp  flag   stat  wmesg    wchan  cmd
  699 c22d7000 df092000    0   679   699 0004002 [SLPQ g_waitidle 0xc0764ec0]

[SLP] fsck_ffs
  679 c20856e0 df036000    0   663   679 0004002 [SLPQ pause 0xc2085718][SLP] 

csh
  678 c2085898 df037000   92   604   678 0004000 [SLPQ select 0xc0774584][SLP]
 
gdmgreeter
  670 c22d76e0 df096000    0     1   670 0004002 [SLPQ ttyin 0xc1cb5c10][SLP] 

getty
  669 c22d7898 df097000    0     1   669 0004002 [SLPQ ttyin 0xc1cb5e10][SLP] 

getty
  668 c22d7a50 df098000    0     1   668 0004002 [SLPQ ttyin 0xc1ced010][SLP] 

getty
  667 c22d7c08 df099000    0     1   667 0004002 [SLPQ ttyin 0xc1ced210][SLP] 

getty
  666 c22d7dc0 df09a000    0     1   666 0004002 [SLPQ ttyin 0xc1ced410][SLP] 

getty
  665 c22d9000 df09b000    0     1   665 0004002 [SLPQ ttyin 0xc1ced610][SLP] 

getty
  664 c2082dc0 df031000    0     1   664 0004002 [SLPQ ttyin 0xc1ced810][SLP] 

getty
  663 c1e761b8 dd9ca000    0     1   663 0004102 [SLPQ wait 0xc1e761b8][SLP] 

login
  653 c2085000 df032000    0     1   653 0000000 [SLPQ select 0xc0774584][SLP]
 
inetd
  626 c1e76c08 dd9d0000    0     1   626 0000000 [SLPQ select 0xc0774584][SLP]
 
moused
  609 c2082c08 df00f000    0   604   609 0004000 [SLPQ select 0xc0774584][SLP]
 
XFree86
  604 c2082a50 df00e000    0   601   604 0000100 [SLPQ piperd 0xc1eac2f0][SLP]
 
gdm-binary
  601 c1e76dc0 dd9d1000    0     1   601 0000100 [SLPQ select 0xc0774584][SLP]
 
gdm-binary
  600 c1e76a50 dd9cf000   80   540   540 0000100 [SLPQ accept 0xc1f59c92][SLP]
 
httpd
  599 c20821b8 df009000   80   540   540 0000100 [SLPQ accept 0xc1f59c92][SLP]
 
httpd
  598 c2085370 df034000   80   540   540 0000100 [SLPQ accept 0xc1f59c92][SLP]
 
httpd
  597 c1c8ac08 d9487000   80   540   540 0000100 [SLPQ accept 0xc1f59c92][SLP]
 
httpd
  596 c2082000 df008000   80   540   540 0000100 [SLPQ accept 0xc1f59c92][SLP]
 
httpd
  589 c2082898 df00d000   88   551    51 000c102 (threaded)  mysqld
   thread 0xc1e78840 ksegrp 0xc1bf2e80 [SLPQ kserel 0xc1bf2edc][SLP]
   thread 0xc20ff2c0 ksegrp 0xc1bf2680 [SLPQ kserel 0xc1bf26dc][SLP]
   thread 0xc20fb2c0 ksegrp 0xc1bf2e80 [SLPQ select 0xc0774584][SLP]
   thread 0xc20fbc60 ksegrp 0xc1bf2700 [SLPQ sigwait 0xdf05cc2c][SLP]
   thread 0xc1e789a0 ksegrp 0xc1bf2780 [SLPQ ksesigwait 0xc2082998][SLP]
  551 c2082528 df00b000    0     1    51 0004002 [SLPQ wait 0xc2082528][SLP] 

sh
  540 c20826e0 df00c000    0     1   540 0000000 [SLPQ select 0xc0774584][SLP]
 
httpd
  534 c20851b8 df033000   80     1   533 000c002 (threaded)  java
   thread 0xc22db160 ksegrp 0xc1bf2c00 [RUNQ][kse 0xc1ba5480]
   thread 0xc22db2c0 ksegrp 0xc1bf2c00 [SLPQ accept 0xc202cdce][SLP]
   thread 0xc22db420 ksegrp 0xc1bf2c00 [SLPQ accept 0xc235203a][SLP]
   thread 0xc20fb420 ksegrp 0xc1bf2c00 [SLPQ accept 0xc23523ee][SLP]
   thread 0xc1e78b00 ksegrp 0xc1bf2800 [SLPQ ksesigwait 0xc20852b8][SLP]
  507 c1c8a1b8 d9481000    0     1   507 0000000 [SLPQ nanslp 0xc076a91c][SLP]
 
cron
  487 c1c8a6e0 d9484000    0     1   487 0000100 [SLPQ select 0xc0774584][SLP]
 
sshd
  337 c1c8a898 d9485000    0     1   337 0000000 [SLPQ select 0xc0774584][SLP]
 
rpcbind
  322 c1c8aa50 d9486000    0     1   322 0000000 [RUNQ] syslogd
  199 c1e76000 dd987000    0     1   199 0000000 [SLPQ pause 0xc1e76038][SLP] 

adjkerntz
   50 c1e76370 dd9cb000    0     0     0 0000204 [SLPQ - 0xc077c00c][SLP] 
nfsiod 3
   49 c1e76528 dd9cc000    0     0     0 0000204 [SLPQ - 0xc077c008][SLP] 
nfsiod 2
   48 c1e766e0 dd9cd000    0     0     0 0000204 [SLPQ - 0xc077c004][SLP] 
nfsiod 1
   47 c1e76898 dd9ce000    0     0     0 0000204 [SLPQ - 0xc077c000][SLP] 
nfsiod 0
   46 c1bf1a50 d944f000    0     0     0 0000204 [SLPQ syncer 0xc076a6a4][SLP]
 
syncer
   45 c1bf1c08 d9450000    0     0     0 0000204 [SLPQ vlruwt 0xc1bf1c08][SLP]
 
vnlru
   44 c1bf1dc0 d9451000    0     0     0 0000204 [SLPQ psleep 0xc0774b70][SLP]
 
bufdaemon
   43 c1c87000 d9456000    0     0     0 000020c [SLPQ pgzero 0xc07827e8][SLP]
 
pagezero
   42 c1c871b8 d9457000    0     0     0 0000204 [SLPQ psleep 0xc0782840][SLP]
 
vmdaemon
   41 c1c87370 d9458000    0     0     0 0000204 [SLPQ psleep 0xc078282c][SLP]
 
pagedaemon
   40 c1c87528 d9459000    0     0     0 0000204 [IWAIT] swi0: tty:sio
   39 c1c876e0 d947b000    0     0     0 0000204 [SLPQ idle 0xc1c69c00][SLP] 

aic_recovery0
    9 c1c87898 d947c000    0     0     0 0000204 [SLPQ idle 0xc1c69c00][SLP] 

aic_recovery0
   38 c1c87a50 d947d000    0     0     0 0000204 [SLPQ usbtsk 0xc076292c][SLP]
 
usbtask
   37 c1c87c08 d947e000    0     0     0 0000204 [SLPQ usbevt 0xc1c9f210][SLP]
 
usb0
    8 c1c87dc0 d947f000    0     0     0 0000204 [SLPQ actask 0xc088c4cc][SLP]
 
acpi_task2
    7 c1c8a000 d9480000    0     0     0 0000204 [SLPQ actask 0xc088c4cc][SLP]
 
acpi_task1
    6 c1be6528 d9422000    0     0     0 0000204 [SLPQ actask 0xc088c4cc][SLP]
 
acpi_task0
   36 c1be66e0 d9423000    0     0     0 0000204 [IWAIT] swi5:+
    5 c1be6898 d9424000    0     0     0 0000204 [SLPQ - 0xc1c45180][SLP] 
taskqueue
   35 c1be6a50 d9425000    0     0     0 0000204 [IWAIT] swi7: acpitaskq
   34 c1be6c08 d9426000    0     0     0 0000204 [IWAIT] swi6:+
   33 c1be6dc0 d9448000    0     0     0 0000204 [IWAIT] swi7: task queue
   32 c1bf1000 d9449000    0     0     0 0000204 [IWAIT] swi3: cambio
   31 c1bf11b8 d944a000    0     0     0 0000204 [IWAIT] swi2: camnet
   30 c1bf1370 d944b000    0     0     0 0000204 [RUNQ] yarrow
    4 c1bf1528 d944c000    0     0     0 0000204 [SLPQ - 0xc0765050][SLP] 
g_down
    3 c1bf16e0 d944d000    0     0     0 0000204 [SLPQ - 0xc076504c][SLP] g_up

    2 c1bf1898 d944e000    0     0     0 0000204 [CPU 0] g_event
   29 c1ba81b8 d7e45000    0     0     0 0000204 [IWAIT] swi4: vm
   28 c1ba8370 d7e46000    0     0     0 000020c [RUNQ] swi8: tty:sio clock
   27 c1ba8528 d7e47000    0     0     0 0000204 [IWAIT] swi1: net
   26 c1ba86e0 d7e69000    0     0     0 0000204 [IWAIT] irq15: ata1
   25 c1ba8898 d7e6a000    0     0     0 0000204 [IWAIT] irq14: ata0
   24 c1ba8a50 d7e6b000    0     0     0 0000204 [IWAIT] irq13:
   23 c1ba8c08 d7e6c000    0     0     0 0000204 [IWAIT] irq12:
   22 c1ba8dc0 d7e6d000    0     0     0 0000204 [IWAIT] irq11:
   21 c1be6000 d941f000    0     0     0 0000204 [IWAIT] irq10: pcm0
   20 c1be61b8 d9420000    0     0     0 0000204 [IWAIT] irq9: ahc0 bktr0++
   19 c1be6370 d9421000    0     0     0 0000204 [IWAIT] irq8: rtc
   18 c1b9f000 d7df9000    0     0     0 0000204 [IWAIT] irq7: ppc0
   17 c1b9f1b8 d7e3c000    0     0     0 0000204 [IWAIT] irq6:
   16 c1b9f370 d7e3d000    0     0     0 0000204 [IWAIT] irq5: xl0 uhci0+
   15 c1b9f528 d7e3e000    0     0     0 0000204 [IWAIT] irq4: sio0
   14 c1b9f6e0 d7e3f000    0     0     0 0000204 [IWAIT] irq3: sio1
   13 c1b9f898 d7e40000    0     0     0 0000204 [IWAIT] irq1: atkbd0
   12 c1b9fa50 d7e41000    0     0     0 0000204 [IWAIT] irq0: clk
   11 c1b9fc08 d7e42000    0     0     0 000020c [Can run] idle: cpu0
    1 c1b9fdc0 d7e43000    0     0     1 0004200 [SLPQ wait 0xc1b9fdc0][SLP] 

init
   10 c1ba8000 d7e44000    0     0     0 0000204 [SLPQ ktrace 0xc07688b8][SLP]
 
ktrace
    0 c0765140 c0c1f000    0     0     0 0000200 [SLPQ sched 0xc0765140][SLP] 

swapper
db> panic
panic: from debugger
cpuid = 0;
Debugger("panic")


Fatal trap 3: breakpoint instruction fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer     = 0x8:0xc06983a2
stack pointer           = 0x10:0xd7e65a64
frame pointer           = 0x10:0xd7e65a68
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = IOPL = 0
current process         = 2 (g_event)
Stopped at      redo_rank+0x70: cmpl    $0,0xc(%edx)
db> panic
panic: from debugger
cpuid = 0;
Uptime: 4m24s


Hardware:
The vinum striped volume resides on da0 and da1. They are connected to   
ahc0, an Adaptec 2940 Ultra2 SCSI adapter.

Type '?' for a list of commands, 'help' for more detailed help.
OK boot /boot/kernel/kernel.debug
/boot/kernel/kernel.debug text=0x309d24 data=0x528ac+0x3f930 
syms=[0x4+0x503a0+0
x4+0x6259c]
/boot/kernel/acpi.ko text=0x39d0c data=0x19e4+0x116c 
syms=[0x4+0x6810+0x4+0x8a33
]
Copyright (c) 1992-2004 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.2-CURRENT #2: Sun Jun 13 12:08:06 CEST 2004
    pfnu@matrix010.matrix.net:/usr/obj/usr/src/sys/MATRIX020
Preloaded elf kernel "/boot/kernel/kernel.debug" at 0xc089d000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc089d1fc.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (851.94-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,
PA
T,PSE36,MMX,FXSR,SSE>
real memory  = 671072256 (639 MB)
avail memory = 647147520 (617 MB)
random: <entropy source, Software, Yarrow>
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS P3B_F> on motherboard
acpi0: [GIANT-LOCKED]
pcibios: BIOS version 2.10
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
cpu0: <ACPI CPU (3 Cx states)> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 4 INTD is routed to irq 5
pcib0: slot 9 INTA is routed to irq 5
pcib0: slot 10 INTA is routed to irq 9
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xe4000000-0xe7ffffff at
 
d
evice 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib0: slot 1 INTA is routed to irq 11
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 
0xd800-0xd80f,0x376,0x170-0x177,0x
3f6,0x1f0-0x1f7 at device 4.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 0xd400-0xd41f irq 5 at 

dev
ice 4.2 on pci0
uhci0: [GIANT-LOCKED]
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: IBM Corporation product 0x310b, rev 2.00/1.60, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
intpm0: <Intel 82371AB Power management controller> port 0xe800-0xe80f irq 9 

at
device 4.3 on pci0
intpm0: I/O mapped e800
intpm0: intr IRQ 9 enabled revision 0
intpm0: [GIANT-LOCKED]
intsmb0: <Intel PIIX4 SMBUS Interface> on intpm0
smbus0: <System Management Bus> on intsmb0
intpm0: PM I/O mapped e400
atapci1: <SiI 0680 UDMA133 controller> port 
0xa800-0xa80f,0xb000-0xb003,0xb400-0
xb407,0xb800-0xb803,0xd000-0xd007 mem 0xde800000-0xde8000ff irq 5 at device 
9.0
on pci0
ata2: at 0xde800000 on atapci1
ata3: at 0xde800000 on atapci1
ahc0: <Adaptec 2940 Ultra2 SCSI adapter> port 0xa400-0xa4ff mem 
0xde000000-0xde0
00fff irq 9 at device 10.0 on pci0
ahc0: [GIANT-LOCKED]
aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
pcm0: <Creative CT5880-E> port 0xa000-0xa03f at device 11.0 on pci0
pcm0: <SigmaTel STAC9708/11 AC97 Codec>
pcib0: slot 11 INTA is routed to irq 10
pcm0: [GIANT-LOCKED]
xl0: <3Com 3c980C Fast Etherlink XL> port 0x9800-0x987f mem 
0xdd800000-0xdd80007
f at device 13.0 on pci0
pcib0: slot 13 INTA is routed to irq 5
miibus0: <MII bus> on xl0
xlphy0: <3c905C 10/100 internal PHY> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:04:75:ec:d2:89
xl0: [GIANT-LOCKED]
bktr0: <BrookTree 878> mem 0xe1000000-0xe1000fff at device 14.0 on pci0
pcib0: slot 14 INTA is routed to irq 9
bktr0: [GIANT-LOCKED]
bktr0: Hauppauge Model 61334 B2
bktr0: Detected a MSP3410D-B4 at 0x80
bktr0: Hauppauge WinCast/TV, Philips FR1216 PAL FM tuner, msp3400c stereo.
pci0: <multimedia> at device 14.1 (no driver attached)
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <Option ROMs> at iomem 0xd0000-0xd3fff,0xc0000-0xcffff on isa0
pmtimer0 on isa0
fdc0: cannot reserve I/O port range (6 ports)
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 851935190 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to 

de
ny, logging limited to 3 packets/entry by default
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ata0-master: FAILURE - SETFEATURES SET TRANSFER MODE no interrupt
ata0-master: FAILURE - SETFEATURES SET TRANSFER MODE no interrupt
acd0: CDRW <LITE-ON LTR-52327S> at ata0-master BIOSPIO
ad2: 76351MB <SAMSUNG SP0802N> [155127/16/63] at ata1-master UDMA33
ad4: 78167MB <Maxtor 6Y080P0> [158816/16/63] at ata2-master UDMA133
ad6: 78167MB <Maxtor 6Y080P0> [158816/16/63] at ata3-master UDMA133
ar0: 78167MB <ATA RAID1 array> [9964/255/63] status: READY subdisks:
 disk0 READY on ad4 at ata2-master
 disk1 READY on ad6 at ata3-master
Waiting 5 seconds for SCSI devices to settle
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DDYS-T18350N SA2A> Fixed Direct Access SCSI-3 device
da0: 80.000MB/s transfers (40.000MHz, offset 63, 16bit), Tagged Queueing 
Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <IBM DDYS-T18350N SA2A> Fixed Direct Access SCSI-3 device
da1: 80.000MB/s transfers (40.000MHz, offset 63, 16bit), Tagged Queueing 
Enabled
da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
cd0 at ata0 bus 0 target 0 lun 0
cd0: <LITE-ON LTR-52327S QS04> Removable CD-ROM SCSI-0 device
cd0: 3.300MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ar0s1a
Pre-seeding PRNG: kickstart.
Loading configuration files.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
swapon: adding /dev/ar0s2b as swap device
Starting file system checks:
/dev/ar0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ar0s1a: clean, 938738 free (6098 frags, 116580 blocks, 0.6% 
fragmentation)
/dev/ar0s3d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ar0s3d: clean, 18465221 free (20069 frags, 2305644 blocks, 0.1% 
fragmentati
on)
/dev/ar0s4d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ar0s4d: clean, 11804928 free (832 frags, 1475512 blocks, 0.0% 
fragmentation
)

-- 
Christian Hiris <4711@chello.at> | OpenPGP KeyID 0x941B6B0B 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040613/
bfd5ab6a/attachment-0001.bin

------------------------------

Message: 2
Date: Sun, 13 Jun 2004 23:45:19 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: RE: kernel trap 19 with interrupts disabled: system hang
To: Don Bowman <don@sandvine.com>
Cc: "'current@freebsd.org'" <current@FreeBSD.org>
Message-ID: <20040613232622.D1173@gamplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sun, 13 Jun 2004, Don Bowman wrote:

>  ... OK, this did the trick, i got into db.
> ...
> The system was locked up, so when i pressed the key
> sequence to enter the debugger, it timed out stopping
> the other cpus. Everybody is in sched_switch and idle???
> ...
> siointr1(c554d800) at siointr1+0xd0
> db> t 0
> sched_switch(c074bfa0) at sched_switch+0x60
> mi_switch(1,0,1,c0c21d2c,c0562ba4) at mi_switch+0x1a0
> sleepq_switch(c074bde0,0,c0c21d54,c054dd12,c074bde0) at sleepq_switch+0x135

> sleepq_timedwait(c074bde0,0,23,0,0) at sleepq_timedwait+0xc
> msleep(c074bde0,0,44,c06ecd01,2710) at msleep+0x40a
> scheduler(0,c1ec00,c1e000,0,c0436065) at scheduler+0x167
> mi_startup() at mi_startup+0x96
> begin() at begin+0x2c
> db> t 1
> sched_switch(c53e0540) at sched_switch+0x60
> mi_switch(1,0,0,ed097c18,c0562b60) at mi_switch+0x1a0
> [... 4 CPUs at sched_switch+0x60]

sched_switch holds sched_lock which masks interrupts.  This accounts for
the processes not being stoppable.  I don't see how they can spin in
sched_switch() or even all stop at the same place.  Perhaps they called
somewhere that is looping and the traceback isn't showing everything.
This is most likely for cpu_switch().  OTOH, IIRC there is a bug in
stopping CPUs that breaks seeing where they are stopped.  Try looking
at where they reported to be when they are stopped for entering ddb
while the system is running normally.

Bruce

------------------------------

Message: 3
Date: Sun, 13 Jun 2004 15:14:26 +0100
From: <adam@adamretter.eclipse.co.uk>
Subject: NDISulator info please
To: <freebsd-current@freebsd.org>
Message-ID: <006f01c45150$bc4c3140$f51010ac@funkalicious>
Content-Type: text/plain;	charset="iso-8859-1"

Hi,

Can someone point me to the NDISulator webpage or mailing list or any
collection of relevant information. Im finding it particularly hard to find
any solid information about it.

Thanks

Adam.


------------------------------

Message: 4
Date: Sun, 13 Jun 2004 16:45:09 +0200
From: Michael Nottebrock <michaelnottebrock@gmx.net>
Subject: Re: NDISulator info please
To: freebsd-current@FreeBSD.org
Cc: adam@adamretter.eclipse.co.uk
Message-ID: <200406131645.13865.michaelnottebrock@gmx.net>
Content-Type: text/plain; charset="iso-8859-1"

On Sunday 13 June 2004 16:14, adam@adamretter.eclipse.co.uk wrote:
> Hi,
>
> Can someone point me to the NDISulator webpage or mailing list or any
> collection of relevant information.

man 4 ndis

-- 
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040613/
e7dad5c3/attachment-0001.bin

------------------------------

Message: 5
Date: Sun, 13 Jun 2004 10:51:58 -0400
From: Don Bowman <don@sandvine.com>
Subject: RE: kernel trap 19 with interrupts disabled: system hang
To: 'Bruce Evans' <bde@zeta.org.au>, Don Bowman <don@sandvine.com>
Cc: "'current@freebsd.org'" <current@FreeBSD.org>
Message-ID:
	<FE045D4D9F7AED4CBFF1B3B813C85337051D8FAB@mail.sandvine.com>
Content-Type: text/plain;	charset="iso-8859-1"

From: Bruce Evans [mailto:bde@zeta.org.au]
> On Sun, 13 Jun 2004, Don Bowman wrote:
> 
> >  ... OK, this did the trick, i got into db.
> > ...

It trapped again, and i've got it in db this time.
3 are in sched_switch, and one is in 
smp_tlb_shootdown

suggestions on how to proceed?

kernel trap 19 with interrupts disabled
NMI ... going to debugger
timeout stopping cpus
kernel: type 19 trap, code=0
Stopped at      smp_tlb_shootdown+0x3e: movl    smp_tlb_wait,%eax
db> 
db> t 0
sched_switch(c074bfa0) at sched_switch+0x60
mi_switch(1,0,1,c0c21d2c,c0562ba4) at mi_switch+0x1a0
sleepq_switch(c074bde0,0,c0c21d54,c054dd12,c074bde0) at sleepq_switch+0x135
sleepq_timedwait(c074bde0,0,23,0,0) at sleepq_timedwait+0xc
msleep(c074bde0,0,44,c06ecd01,2710) at msleep+0x40a
scheduler(0,c1ec00,c1e000,0,c0436065) at scheduler+0x167
mi_startup() at mi_startup+0x96
begin() at begin+0x2c
db> t 1
sched_switch(c53e0540) at sched_switch+0x60
mi_switch(1,0,0,ed097c18,c0562b60) at mi_switch+0x1a0
sleepq_switch(c53dfdc0,0,ed097c3c,c054dd2a,c53dfdc0) at sleepq_switch+0x135
sleepq_wait_sig(c53dfdc0,c074fed0,100,0,c53dfe2c) at sleepq_wait_sig+0xc
msleep(c53dfdc0,c53dfe2c,15c,c06dde84,0) at msleep+0x422
kern_wait(c53e0540,ffffffff,ed097c94,0,ed097c98) at kern_wait+0x7b5
wait4(c53e0540,ed097d14,4,2,286) at wait4+0x1f
syscall(2f,2f,2f,bfbfeef8,bfbfeef8) at syscall+0x283
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (7, FreeBSD ELF32, wait4), eip = 0x80518cb, esp = 0xbfbfeddc,
ebp = 0xbfbfedf8 ---
db> t 2
sched_switch(c54ab7e0) at sched_switch+0x60
mi_switch(1,0,0,eec7accc,c0562ba4) at mi_switch+0x1a0
sleepq_switch(c074bce4,0,eec7acf4,c054dd12,c074bce4) at sleepq_switch+0x135
sleepq_timedwait(c074bce4,0,0,0,0) at sleepq_timedwait+0xc
msleep(c074bce4,0,4c,c06c7155,64) at msleep+0x40a
g_event_procbody(0,eec7ad48) at g_event_procbody+0x52
fork_exit(c05156dc,0,eec7ad48) at fork_exit+0x71
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xeec7ad7c, ebp = 0 ---
db> t 3
smp_tlb_shootdown(f6,e75ad000,e75cd000) at smp_tlb_shootdown+0x3e
smp_invlpg_range(e75ad000,e75cd000) at smp_invlpg_range+0x1c
pmap_invalidate_range(c077dd80,e75ad000,e75cd000,de54c3e8,eec7dc58) at
pmap_invalidate_range+0xbf
pmap_qremove(e75ad000,20,de54c3e8,ca646660,0) at pmap_qremove+0x3d
cluster_callback(de54c3e8,eec7dc94,c0662c51,c54db000,ca646660) at
cluster_callback+0x2b
bufdone(de54c3e8) at bufdone+0x113
bufdonebio(de54c3e8) at bufdonebio+0x3f
biodone(de54c3e8,ca646660,ca646660,4,eec7dccc) at biodone+0x86
g_dev_done(ca646660) at g_dev_done+0x5b
biodone(ca646660,c0714ebc,c06dab63,c06dab63,30000) at biodone+0x86
g_io_schedule_up(c54ab930) at g_io_schedule_up+0xda
g_up_procbody(0,eec7dd48) at g_up_procbody+0x1a
fork_exit(c051569c,0,eec7dd48) at fork_exit+0x71
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xeec7dd7c, ebp = 0 ---
db> show pcpu 0
cpuid        = 0
curthread    = 0xc54ab930: pid 3 "g_up"
curpcb       = 0xeec7dda0
fpcurthread  = none
idlethread   = 0xc53e0a80: pid 14 "idle: cpu0"
APIC ID      = 0
currentldt   = 0x28
db> show pcpu 1
cpuid        = 1
curthread    = 0xc53e0930: pid 13 "idle: cpu1"
curpcb       = 0xed0a0da0
fpcurthread  = none
idlethread   = 0xc53e0930: pid 13 "idle: cpu1"
APIC ID      = 1
currentldt   = 0x28
db> show pcpu 2
cpuid        = 2
curthread    = 0xc53e07e0: pid 12 "idle: cpu2"
curpcb       = 0xed09dda0
fpcurthread  = none
idlethread   = 0xc53e07e0: pid 12 "idle: cpu2"
APIC ID      = 6
currentldt   = 0x28
db> show pcpu 3
cpuid        = 3
curthread    = 0xc53e0690: pid 11 "idle: cpu3"
curpcb       = 0xed09ada0
fpcurthread  = none
idlethread   = 0xc53e0690: pid 11 "idle: cpu3"
APIC ID      = 7
currentldt   = 0x28
db> 

------------------------------

Message: 6
Date: Sun, 13 Jun 2004 16:57:11 +0200 (CEST)
From: Lukas Ertl <le@FreeBSD.org>
Subject: Re: HEADSUP: geom_vinum committed [Fatal trap 12 (g_event)]
To: Christian Hiris <4711@chello.at>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040613164837.O39575@leelou.in.tern>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Sun, 13 Jun 2004, Christian Hiris wrote:

> Unmounting the filesystem then panics the machine. I rebooted, did a 'fsck -
t
> ufs /dev/gvinum/vinum0', which results in a Fatal trap 12. So next I
> recompiled kernel with the geom_subr.c.diff patch and debugging symbols.

If it's possible for you please turn on INVARIANTS in your kernel, I've 
spread lots of KASSERTs around the code.

> # Vinum configuration of matrix020.matrix.net, saved at Sat May 29 22:46:40

> 2004
> drive vinumdrive1 device /dev/da1s1h
> drive vinumdrive0 device /dev/da0s1h
> volume vinum0
> plex name vinum0.p0 org striped 558s vol vinum0
> sd name vinum0.p0.s0 drive vinumdrive0 plex vinum0.p0 len 35840340s
> driveoffset 265s plexoffset 0s
> sd name vinum0.p0.s1 drive vinumdrive1 plex vinum0.p0 len 35840340s
> driveoffset 265s plexoffset 558s

It would be also helpful if you could send me the on-disk config in 
private mail.  Use something like:

dd if=/dev/da1s1h skip=8 count=6 | tr -d '\000-\011\200-\377'

to get it.

> Stopped at      redo_rank+0x70: cmpl    $0,0xc(%edx)
> db> trace
> redo_rank(c2398e80,c1e63d80,d7e65cb0,c051b783,c1e63d80) at redo_rank+0x70
> g_detach(c1e63d80,c2398e80,4,0,d7e65cd8) at g_detach+0x67
> g_wither_geom(c2398e80,6,c20fc660,1,c06eb40d) at g_wither_geom+0xab
> g_slice_spoiled(c1e63d80) at g_slice_spoiled+0x30
> g_spoil_event(c1e09400,0) at g_spoil_event+0x30
> one_event(d7e65d20,c051a58d,4b0,320,c1bf1898) at one_event+0x192
> g_run_events(4b0,320,c1bf1898,c051a56c,d7e65d34) at g_run_events+0x9
> g_event_procbody(0,d7e65d48) at g_event_procbody+0x21

Hm, I haven't seen this one before.  It would be most helpful if you could 
get a crashdump and a backtrace from gdb -k to debug this.

cheers,
le

-- 
Lukas Ertl                         http://homepage.univie.ac.at/l.ertl/
le@FreeBSD.org                     http://people.freebsd.org/~le/

------------------------------

Message: 7
Date: Sun, 13 Jun 2004 12:01:22 -0400
From: Don Bowman <don@sandvine.com>
Subject: RE: kernel trap 19 with interrupts disabled: system hang
To: Don Bowman <don@sandvine.com>, 'Bruce Evans' <bde@zeta.org.au>
Cc: "'current@freebsd.org'" <current@FreeBSD.org>
Message-ID:
	<FE045D4D9F7AED4CBFF1B3B813C85337051D8FAD@mail.sandvine.com>
Content-Type: text/plain;	charset="iso-8859-1"

From: Don Bowman 
> It trapped again, and i've got it in db this time.
> 3 are in sched_switch, and one is in 
> smp_tlb_shootdown
> 

 ... and here it is with line numbers. This is from 
cvs as of june 10.

(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
#1  0xc04509f6 in db_fncall (dummy1=0, dummy2=0, dummy3=-1066661999, 
    dummy4=0xeec7da80 "����\001") at /usr/src/sys/ddb/db_command.c:551
#2  0xc0450804 in db_command (last_cmdp=0xc0733940, cmd_table=0x0, 
    aux_cmd_tablep=0xc06f7924, aux_cmd_tablep_end=0xc06f793c)
    at /usr/src/sys/ddb/db_command.c:348
#3  0xc04508dc in db_command_loop () at /usr/src/sys/ddb/db_command.c:475
#4  0xc0453075 in db_trap (type=19, code=0) at /usr/src/sys/ddb/db_trap.c:73
#5  0xc0682557 in kdb_trap (type=19, code=0, regs=0xeec7dbb0)
    at /usr/src/sys/i386/i386/db_interface.c:226
#6  0xc0694ed5 in trap (frame=
      {tf_fs = 24, tf_es = 786448, tf_ds = 16, tf_edi = -413478912, tf_esi =
-1065886336, tf_ebp = -288891916, tf_isp = -288891940, tf_ebx = 3, tf_edx =
0, tf_ecx = 786678, tf_eax = 2, tf_trapno = 19, tf_err = 0, tf_eip =
-1066868634, tf_cs = 8, tf_eflags = 151, tf_esp = -413347840, tf_ss =
-288891896})
    at /usr/src/sys/i386/i386/trap.c:606
#7  0xc068e066 in smp_tlb_shootdown (vector=246, addr1=0, addr2=0)
    at machine/cpufunc.h:305
#8  0xc068e1d0 in smp_invlpg_range (addr1=3881488384, addr2=3881619456)
    at /usr/src/sys/i386/i386/mp_machdep.c:1030
#9  0xc0690643 in pmap_invalidate_range (pmap=0xc077dd80, sva=3881488384, 
    eva=3881619456) at /usr/src/sys/i386/i386/pmap.c:640
#10 0xc0690c25 in pmap_qremove (sva=3881488384, count=0)
    at /usr/src/sys/i386/i386/pmap.c:976
#11 0xc058acdb in cluster_callback (bp=0xde54c3e8)
    at /usr/src/sys/kern/vfs_cluster.c:534
#12 0xc058719f in bufdone (bp=0xde54c3e8) at
/usr/src/sys/kern/vfs_bio.c:3141
#13 0xc0586ffb in bufdonebio (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:3071
#14 0xc0586e56 in biodone (bp=0xde54c3e8) at
/usr/src/sys/kern/vfs_bio.c:2995
#15 0xc051354b in g_dev_done (bp2=0xca646660)
    at /usr/src/sys/geom/geom_dev.c:360
#16 0xc0586e56 in biodone (bp=0xca646660) at
/usr/src/sys/kern/vfs_bio.c:2995
#17 0xc0515472 in g_io_schedule_up (tp=0xc54ab930)
    at /usr/src/sys/geom/geom_io.c:405
#18 0xc05156b6 in g_up_procbody () at /usr/src/sys/geom/geom_kern.c:92
#19 0xc0531a7d in fork_exit (callout=0xc051569c <g_up_procbody>, arg=0x0, 
    frame=0xeec7dd48) at /usr/src/sys/kern/kern_fork.c:816
(kgdb) up 8
#8  0xc068e1d0 in smp_invlpg_range (addr1=3881488384, addr2=3881619456)
    at /usr/src/sys/i386/i386/mp_machdep.c:1030
1030			smp_tlb_shootdown(IPI_INVLRNG, addr1, addr2);
(kgdb) p/x addr1
$1 = 0xe75ad000
(kgdb) p/x addr2
$2 = 0xe75cd000
(kgdb) l
1025	
1026	void
1027	smp_invlpg_range(vm_offset_t addr1, vm_offset_t addr2)
1028	{
1029		if (smp_started) {
1030			smp_tlb_shootdown(IPI_INVLRNG, addr1, addr2);
1031	#ifdef COUNT_XINVLTLB_HITS
1032			ipi_range++;
1033			ipi_range_size += (addr2 - addr1) / PAGE_SIZE;
1034	#endif
(kgdb) p smp_started
$3 = 1
(kgdb) up
#9  0xc0690643 in pmap_invalidate_range (pmap=0xc077dd80, sva=3881488384, 
    eva=3881619456) at /usr/src/sys/i386/i386/pmap.c:640
640			smp_invlpg_range(sva, eva);
(kgdb) p/x sva
$4 = 0xe75ad000
(kgdb) p/x eva
$5 = 0xe75cd000
(kgdb) l
635		 * XXX critical sections disable interrupts again
636		 */
637		if (pmap == kernel_pmap || pmap->pm_active == all_cpus) {
638			for (addr = sva; addr < eva; addr += PAGE_SIZE)
639				invlpg(addr);
640			smp_invlpg_range(sva, eva);
641		} else {
642			cpumask = PCPU_GET(cpumask);
643			other_cpus = PCPU_GET(other_cpus);
644			if (pmap->pm_active & cpumask)
(kgdb) p pmap
$6 = 0xc077dd80
(kgdb) p kernel_pmap
No symbol "kernel_pmap" in current context.
(kgdb) p/x     pmap->pm_active
$7 = 4294967295
(kgdb) p/x pmap->pm_active
$8 = 0xffffffff
(kgdb) p all_cpus
$9 = 15
(kgdb) p kernel_pmap
No symbol "kernel_pmap" in current context.
(kgdb) p &kernel_pmap_sture
No symbol "kernel_pmap_sture" in current context.
(kgdb) p &kernel_pmap_store
$10 = (struct pmap *) 0xc077dd80
(kgdb) p *m   /x *pmap
$11 = {pm_pdir = 0xc0c1e000, pm_pvlist = {tqh_first = 0xe92c7498, 
    tqh_last = 0xe93539b0}, pm_active = 0xffffffff, pm_stats = {
    resident_count = 0x574c, wired_count = 0x5748}, pm_list = {le_next =
0x0, 
    le_prev = 0xc074c278}}
(kgdb) up
#10 0xc0690c25 in pmap_qremove (sva=3881488384, count=0)
    at /usr/src/sys/i386/i386/pmap.c:976
976		pmap_invalidate_range(kernel_pmap, sva, va);
(kgdb) l
971		va = sva;
972		while (count-- > 0) {
973			pmap_kremove(va);
974			va += PAGE_SIZE;
975		}
976		pmap_invalidate_range(kernel_pmap, sva, va);
977	}
978	
979	/***************************************************
980	 * Page table page management routines.....
(kgdb) p/x va
$12 = 0x0
(kgdb) p/x sva
$13 = 0xe75ad000
(kgdb) p/x count
$14 = 0x0
(kgdb) up
#11 0xc058acdb in cluster_callback (bp=0xde54c3e8)
    at /usr/src/sys/kern/vfs_cluster.c:534
534		pmap_qremove(trunc_page((vm_offset_t) bp->b_data),
bp->b_npages);
(kgdb) l
529		 * Must propogate errors to all the components.
530		 */
531		if (bp->b_ioflags & BIO_ERROR)
532			error = bp->b_error;
533	
534		pmap_qremove(trunc_page((vm_offset_t) bp->b_data),
bp->b_npages);
535		/*
536		 * Move memory from the large cluster buffer into the
component
537		 * buffers and mark IO as done on these.
538		 */
(kgdb) p bp->b_npages
$15 = 32
(kgdb) p  /x bp->b_data
There is no member named b_data.
(kgdb) p/x *bp
$16 = {b_io = {bio_cmd = 0x2, bio_dev = 0xc5982d00, bio_disk = 0x0, 
    bio_offset = 0x5ffa74000, bio_bcount = 0x20000, bio_data = 0xe75ad000, 
    bio_flags = 0x4, bio_error = 0x0, bio_resid = 0x0, bio_done =
0xc0586fbc, 
    bio_driver1 = 0x0, bio_driver2 = 0x0, bio_caller1 = 0x0, 
    bio_caller2 = 0xde54c3e8, bio_queue = {tqe_next = 0x0, tqe_prev = 0x0}, 
    bio_attribute = 0x0, bio_from = 0x0, bio_to = 0x0, bio_length = 0x0, 
    bio_completed = 0x0, bio_children = 0x2ce7, bio_inbed = 0x0, 
    bio_parent = 0x0, bio_t0 = {sec = 0x0, frac = 0x0}, bio_task = 0x0, 
    bio_task_arg = 0x0, bio_pblkno = 0x0}, b_op = 0xc071a588, 
  b_magic = 0x10b10b10, b_iodone = 0x0, b_blkno = 0x2ffd3a0, 
  b_offset = 0xbc0000, b_vnbufs = {tqe_next = 0x0, tqe_prev = 0x0}, 
  b_left = 0x0, b_right = 0x0, b_vflags = 0x0, b_freelist = {
    tqe_next = 0xde54bec0, tqe_prev = 0xc0764bec}, b_qindex = 0x0, 
  b_flags = 0x64000224, b_xflags = 0x0, b_lock = {lk_interlock = 0xc075032c,

    lk_flags = 0x400, lk_sharecount = 0x0, lk_waitcount = 0x0, 
    lk_exclusivecount = 0x1, lk_prio = 0x50, lk_wmesg = 0xc06e0fd3, 
    lk_timo = 0x0, lk_lockholder = 0xfffffffe, lk_newlock = 0x0}, 
  b_bufsize = 0x20000, b_runningbufspace = 0x0, b_kvabase = 0xe75ad000, 
  b_kvasize = 0x20000, b_lblkno = 0x2f0, b_vp = 0xc80e2924, 
  b_object = 0xc89ea294, b_dirtyoff = 0x0, b_dirtyend = 0x20000, 
  b_rcred = 0x0, b_wcred = 0x0, b_saveaddr = 0xe75ad000, b_pager = {
    pg_reqpage = 0x0}, b_cluster = {cluster_head = {tqh_first = 0xde84a298, 
      tqh_last = 0xde7b91b8}, cluster_entry = {tqe_next = 0xde84a298, 
      tqe_prev = 0xde7b91b8}}, b_pages = {0xc46ecb58, 0xc10db4a0,
0xc3278fe8, 
    0xc504a230, 0xc2f30a78, 0xc3fba9c0, 0xc1fd3208, 0xc14cfe50, 0xc2ec9c98, 
    0xc195f1e0, 0xc3c94128, 0xc1769f70, 0xc4352fb8, 0xc4ec0900, 0xc4252848, 
    0xc31ad090, 0xc18549d8, 0xc2363b20, 0xc24f1668, 0xc347f5b0, 0xc2136df8, 
    0xc2d19740, 0xc363a188, 0xc4f4d5d0, 0xc34f1a18, 0xc3756c60, 0xc1c2dba8, 
    0xc2bc02f0, 0xc4518a38, 0xc51abd80, 0xc1a0b9c8, 0xc18cc210}, 
  b_npages = 0x20, b_dep = {lh_first = 0x0}}
(kgdb) up
#12 0xc058719f in bufdone (bp=0xde54c3e8) at
/usr/src/sys/kern/vfs_bio.c:3141
3141			(*biodone) (bp);
(kgdb) l
3136	
3137		/* call optional completion function if requested */
3138		if (bp->b_iodone != NULL) {
3139			biodone = bp->b_iodone;
3140			bp->b_iodone = NULL;
3141			(*biodone) (bp);
3142			splx(s);
3143			return;
3144		}
3145		if (LIST_FIRST(&bp->b_dep) != NULL)
(kgdb) p/x *bp
$17 = {b_io = {bio_cmd = 0x2, bio_dev = 0xc5982d00, bio_disk = 0x0, 
    bio_offset = 0x5ffa74000, bio_bcount = 0x20000, bio_data = 0xe75ad000, 
    bio_flags = 0x4, bio_error = 0x0, bio_resid = 0x0, bio_done =
0xc0586fbc, 
    bio_driver1 = 0x0, bio_driver2 = 0x0, bio_caller1 = 0x0, 
    bio_caller2 = 0xde54c3e8, bio_queue = {tqe_next = 0x0, tqe_prev = 0x0}, 
    bio_attribute = 0x0, bio_from = 0x0, bio_to = 0x0, bio_length = 0x0, 
    bio_completed = 0x0, bio_children = 0x2ce7, bio_inbed = 0x0, 
    bio_parent = 0x0, bio_t0 = {sec = 0x0, frac = 0x0}, bio_task = 0x0, 
    bio_task_arg = 0x0, bio_pblkno = 0x0}, b_op = 0xc071a588, 
  b_magic = 0x10b10b10, b_iodone = 0x0, b_blkno = 0x2ffd3a0, 
  b_offset = 0xbc0000, b_vnbufs = {tqe_next = 0x0, tqe_prev = 0x0}, 
  b_left = 0x0, b_right = 0x0, b_vflags = 0x0, b_freelist = {
    tqe_next = 0xde54bec0, tqe_prev = 0xc0764bec}, b_qindex = 0x0, 
  b_flags = 0x64000224, b_xflags = 0x0, b_lock = {lk_interlock = 0xc075032c,

    lk_flags = 0x400, lk_sharecount = 0x0, lk_waitcount = 0x0, 
    lk_exclusivecount = 0x1, lk_prio = 0x50, lk_wmesg = 0xc06e0fd3, 
    lk_timo = 0x0, lk_lockholder = 0xfffffffe, lk_newlock = 0x0}, 
  b_bufsize = 0x20000, b_runningbufspace = 0x0, b_kvabase = 0xe75ad000, 
  b_kvasize = 0x20000, b_lblkno = 0x2f0, b_vp = 0xc80e2924, 
  b_object = 0xc89ea294, b_dirtyoff = 0x0, b_dirtyend = 0x20000, 
  b_rcred = 0x0, b_wcred = 0x0, b_saveaddr = 0xe75ad000, b_pager = {
    pg_reqpage = 0x0}, b_cluster = {cluster_head = {tqh_first = 0xde84a298, 
      tqh_last = 0xde7b91b8}, cluster_entry = {tqe_next = 0xde84a298, 
      tqe_prev = 0xde7b91b8}}, b_pages = {0xc46ecb58, 0xc10db4a0,
0xc3278fe8, 
    0xc504a230, 0xc2f30a78, 0xc3fba9c0, 0xc1fd3208, 0xc14cfe50, 0xc2ec9c98, 
    0xc195f1e0, 0xc3c94128, 0xc1769f70, 0xc4352fb8, 0xc4ec0900, 0xc4252848, 
    0xc31ad090, 0xc18549d8, 0xc2363b20, 0xc24f1668, 0xc347f5b0, 0xc2136df8, 
    0xc2d19740, 0xc363a188, 0xc4f4d5d0, 0xc34f1a18, 0xc3756c60, 0xc1c2dba8, 
    0xc2bc02f0, 0xc4518a38, 0xc51abd80, 0xc1a0b9c8, 0xc18cc210}, 
  b_npages = 0x20, b_dep = {lh_first = 0x0}}
(kgdb) p s
No symbol "s" in current context.
(kgdb) l
3146			buf_complete(bp);
3147	
3148		if (bp->b_flags & B_VMIO) {
3149			int i;
3150			vm_ooffset_t foff;
3151			vm_page_t m;
3152			vm_object_t obj;
3153			int iosize;
3154			struct vnode *vp = bp->b_vp;
3155	
(kgdb) disass splbio
No symbol "splbio" in current context.
(kgdb) p biodone
$18 = (void (*)(struct buf *)) 0
(kgdb) up
#13 0xc0586ffb in bufdonebio (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:3071
3071		bufdone(bp->bio_caller2);
(kgdb) l
3066	bufdonebio(struct bio *bp)
3067	{
3068	
3069		/* Device drivers may or may not hold giant, hold it here.
*/
3070		mtx_lock(&Giant);
3071		bufdone(bp->bio_caller2);
3072		mtx_unlock(&Giant);
3073	}
3074	
3075	void
(kgdb) p bp->biocol  aller2
There is no member named biocaller2.
(kgdb) p bp->biio  o_caller2
---Can't read userspace from dump, or kernel process---

(kgdb) up
#14 0xc0586e56 in biodone (bp=0xde54c3e8) at
/usr/src/sys/kern/vfs_bio.c:2995
2995			bp->bio_done(bp);
(kgdb) l
2990		bp->bio_flags |= BIO_DONE;
2991		if (bp->bio_done == NULL)
2992			wakeup(bp);
2993		mtx_unlock(&bdonelock);
2994		if (bp->bio_done != NULL)
2995			bp->bio_done(bp);
2996	}
2997	
2998	/*
2999	 * Wait for a BIO to finish.
(kgdb) up
#15 0xc051354b in g_dev_done (bp2=0xca646660)
    at /usr/src/sys/geom/geom_dev.c:360
360		biodone(bp);
(kgdb) l
355			g_trace(G_T_BIO, "g_dev_done(%p/%p) resid %ld
completed %jd",
356			    bp2, bp, bp->bio_resid,
(intmax_t)bp2->bio_completed);
357		}
358		bp->bio_resid = bp->bio_bcount - bp2->bio_completed;
359		g_destroy_bio(bp2);
360		biodone(bp);
361	}
362	
363	static void
364	g_dev_strategy(struct bio *bp)
(kgdb) p bp2
$19 = (struct bio *) 0xca646660
(kgdb) p/x *bp2
$20 = {bio_cmd = 0x2, bio_dev = 0x0, bio_disk = 0x0, bio_offset =
0x5ffa74000, 
  bio_bcount = 0x20000, bio_data = 0xe75ad000, bio_flags = 0x4, 
  bio_error = 0x0, bio_resid = 0x0, bio_done = 0xc05134f0, bio_driver1 =
0x0, 
  bio_driver2 = 0x0, bio_caller1 = 0x0, bio_caller2 = 0x0, bio_queue = {
    tqe_next = 0x0, tqe_prev = 0xc074bc00}, bio_attribute = 0x0, 
  bio_from = 0xc55edf00, bio_to = 0xc59c9400, bio_length = 0x20000, 
  bio_completed = 0x20000, bio_children = 0x1, bio_inbed = 0x1, 
  bio_parent = 0xde54c3e8, bio_t0 = {sec = 0x7e6f, frac =
0xb57a45f62e0379c0}, 
  bio_task = 0x0, bio_task_arg = 0x0, bio_pblkno = 0x0}
(kgdb) p/x *bp
$21 = {bio_cmd = 0x2, bio_dev = 0xc5982d00, bio_disk = 0x0, 
  bio_offset = 0x5ffa74000, bio_bcount = 0x20000, bio_data = 0xe75ad000, 
  bio_flags = 0x4, bio_error = 0x0, bio_resid = 0x0, bio_done = 0xc0586fbc, 
  bio_driver1 = 0x0, bio_driver2 = 0x0, bio_caller1 = 0x0, 
  bio_caller2 = 0xde54c3e8, bio_queue = {tqe_next = 0x0, tqe_prev = 0x0}, 
  bio_attribute = 0x0, bio_from = 0x0, bio_to = 0x0, bio_length = 0x0, 
  bio_completed = 0x0, bio_children = 0x2ce7, bio_inbed = 0x0, 
  bio_parent = 0x0, bio_t0 = {sec = 0x0, frac = 0x0}, bio_task = 0x0, 
  bio_task_arg = 0x0, bio_pblkno = 0x0}
(kgdb) p/x bp2->bio_completed
$22 = 0x20000
(kgdb) up
#16 0xc0586e56 in biodone (bp=0xca646660) at
/usr/src/sys/kern/vfs_bio.c:2995
2995			bp->bio_done(bp);
(kgdb) l
2990		bp->bio_flags |= BIO_DONE;
2991		if (bp->bio_done == NULL)
2992			wakeup(bp);
2993		mtx_unlock(&bdonelock);
2994		if (bp->bio_done != NULL)
2995			bp->bio_done(bp);
2996	}
2997	
2998	/*
2999	 * Wait for a BIO to finish.
(kgdb) up
#17 0xc0515472 in g_io_schedule_up (tp=0xc54ab930)
    at /usr/src/sys/geom/geom_io.c:405
405				biodone(bp);
(kgdb) l
400			}
401			bp = g_bioq_first(&g_bio_run_up);
402			if (bp != NULL) {
403				g_bioq_unlock(&g_bio_run_up);
404				mtx_lock(&mymutex);
405				biodone(bp);
406				mtx_unlock(&mymutex);
407				continue;
408			}
409			msleep(&g_wait_up, &g_bio_run_up.bio_queue_lock,
(kgdb) up
#18 0xc05156b6 in g_up_procbody () at /usr/src/sys/geom/geom_kern.c:92
92			g_io_schedule_up(tp);
(kgdb) l
87		struct thread *tp = FIRST_THREAD_IN_PROC(p);
88	
89		mtx_assert(&Giant, MA_NOTOWNED);
90		tp->td_base_pri = PRIBIO;
91		for(;;) {
92			g_io_schedule_up(tp);
93		}
94	}
95	
96	struct kproc_desc g_up_kp = {
(kgdb) up  p/x *tp
$23 = {td_proc = 0xc54d6a50, td_ksegrp = 0xc54d7000, td_plist = {
    tqe_next = 0x0, tqe_prev = 0xc54d6a60}, td_kglist = {tqe_next = 0x0, 
    tqe_prev = 0xc54d701c}, td_slpq = {tqe_next = 0x0, tqe_prev =
0xeeca2c1c}, 
  td_lockq = {tqe_next = 0x0, tqe_prev = 0xf5413b90}, td_runq = {
    tqe_next = 0x0, tqe_prev = 0x0}, td_selq = {tqh_first = 0x0, 
    tqh_last = 0x0}, td_sleepqueue = 0xc542a4e0, td_turnstile = 0xc5552280, 
  td_tid = 0x3, td_flags = 0x0, td_inhibitors = 0x0, td_pflags = 0x0, 
  td_last_kse = 0xc5458820, td_kse = 0xc5458820, td_dupfd = 0x0, 
  td_wchan = 0x0, td_wmesg = 0x0, td_lastcpu = 0x0, td_oncpu = 0x0, 
  td_locks = 0x0, td_blocked = 0x0, td_ithd = 0x0, td_lockname = 0x0, 
  td_contested = {lh_first = 0x0}, td_sleeplocks = 0x0, 
  td_intr_nesting_level = 0x0, td_pinned = 0x0, td_mailbox = 0x0, 
  td_ucred = 0xc53d5180, td_standin = 0x0, td_prticks = 0x0, td_upcall =
0x0, 
  td_sticks = 0x4383, td_uuticks = 0x0, td_usticks = 0x0, td_intrval = 0x0, 
  td_oldsigmask = {__bits = {0x0, 0x0, 0x0, 0x0}}, td_sigmask = {__bits = {
      0x0, 0x0, 0x0, 0x0}}, td_siglist = {__bits = {0x0, 0x0, 0x0, 0x0}}, 
  td_waitset = 0x0, td_umtx = {tqe_next = 0x0, tqe_prev = 0x0}, 
  td_generation = 0x6a92b5, td_sigstk = {ss_sp = 0x0, ss_size = 0x0, 
    ss_flags = 0x0}, td_kflags = 0x0, td_base_pri = 0x4c, td_priority =
0x4c, 
  td_pcb = 0xeec7dda0, td_state = 0x4, td_retval = {0x0, 0x0}, 
  td_slpcallout = {c_links = {sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0,

        tqe_prev = 0xde4b3908}}, c_time = 0x1ee0045, c_arg = 0xc54ab930, 
    c_func = 0x0, c_flags = 0x8}, td_frame = 0xeec7dd48, 
  td_kstack_obj = 0xc104318c, td_kstack = 0xeec7c000, td_kstack_pages = 0x2,

  td_altkstack_obj = 0x0, td_altkstack = 0x0, td_altkstack_pages = 0x0, 
  td_critnest = 0x1, td_md = {md_savecrit = 0x246}, td_sched = 0xc54aba80}
(kgdb) up
#19 0xc0531a7d in fork_exit (callout=0xc051569c <g_up_procbody>, arg=0x0, 
    frame=0xeec7dd48) at /usr/src/sys/kern/kern_fork.c:816
816		callout(arg, frame);
(kgdb) p/x *arg
Attempt to dereference a generic pointer.
(kgdb) p arg
$24 = (void *) 0x0
(kgdb) p frame
$25 = (struct trapframe *) 0xeec7dd48
(kgdb) p/x *frame
$26 = {tf_fs = 0x0, tf_es = 0x0, tf_ds = 0x0, tf_edi = 0x0, tf_esi = 0x0, 
  tf_ebp = 0x0, tf_isp = 0x0, tf_ebx = 0x0, tf_edx = 0x1, tf_ecx = 0x0, 
  tf_eax = 0x0, tf_trapno = 0x0, tf_err = 0x0, tf_eip = 0x0, tf_cs = 0x0, 
  tf_eflags = 0x0, tf_esp = 0x0, tf_ss = 0x0}
(kgdb) up
Initial frame selected; you cannot go up.
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
#1  0xc04509f6 in db_fncall (dummy1=0, dummy2=0, dummy3=-1066661999, 
    dummy4=0xeec7da80 "����\001") at /usr/src/sys/ddb/db_command.c:551
#2  0xc0450804 in db_command (last_cmdp=0xc0733940, cmd_table=0x0, 
    aux_cmd_tablep=0xc06f7924, aux_cmd_tablep_end=0xc06f793c)
    at /usr/src/sys/ddb/db_command.c:348
#3  0xc04508dc in db_command_loop () at /usr/src/sys/ddb/db_command.c:475
#4  0xc0453075 in db_trap (type=19, code=0) at /usr/src/sys/ddb/db_trap.c:73
#5  0xc0682557 in kdb_trap (type=19, code=0, regs=0xeec7dbb0)
    at /usr/src/sys/i386/i386/db_interface.c:226
#6  0xc0694ed5 in trap (frame=
      {tf_fs = 24, tf_es = 786448, tf_ds = 16, tf_edi = -413478912, tf_esi =
-1065886336, tf_ebp = -288891916, tf_isp = -288891940, tf_ebx = 3, tf_edx =
0, tf_ecx = 786678, tf_eax = 2, tf_trapno = 19, tf_err = 0, tf_eip =
-1066868634, tf_cs = 8, tf_eflags = 151, tf_esp = -413347840, tf_ss =
-288891896})
    at /usr/src/sys/i386/i386/trap.c:606
#7  0xc068e066 in smp_tlb_shootdown (vector=246, addr1=0, addr2=0)
    at machine/cpufunc.h:305
#8  0xc068e1d0 in smp_invlpg_range (addr1=3881488384, addr2=3881619456)
    at /usr/src/sys/i386/i386/mp_machdep.c:1030
#9  0xc0690643 in pmap_invalidate_range (pmap=0xc077dd80, sva=3881488384, 
    eva=3881619456) at /usr/src/sys/i386/i386/pmap.c:640
#10 0xc0690c25 in pmap_qremove (sva=3881488384, count=0)
    at /usr/src/sys/i386/i386/pmap.c:976
#11 0xc058acdb in cluster_callback (bp=0xde54c3e8)
    at /usr/src/sys/kern/vfs_cluster.c:534
#12 0xc058719f in bufdone (bp=0xde54c3e8) at
/usr/src/sys/kern/vfs_bio.c:3141
#13 0xc0586ffb in bufdonebio (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:3071
#14 0xc0586e56 in biodone (bp=0xde54c3e8) at
/usr/src/sys/kern/vfs_bio.c:2995
#15 0xc051354b in g_dev_done (bp2=0xca646660)
    at /usr/src/sys/geom/geom_dev.c:360
#16 0xc0586e56 in biodone (bp=0xca646660) at
/usr/src/sys/kern/vfs_bio.c:2995
#17 0xc0515472 in g_io_schedule_up (tp=0xc54ab930)
    at /usr/src/sys/geom/geom_io.c:405
#18 0xc05156b6 in g_up_procbody () at /usr/src/sys/geom/geom_kern.c:92
#19 0xc0531a7d in fork_exit (callout=0xc051569c <g_up_procbody>, arg=0x0, 
    frame=0xeec7dd48) at /usr/src/sys/kern/kern_fork.c:816
(kgdb) quit



------------------------------

Message: 8
Date: Sun, 13 Jun 2004 12:00:58 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: panic: kmem_malloc(4096) on an SMP box
To: Gleb Smirnoff <glebius@cell.sick.ru>
Cc: current@freebsd.org
Message-ID:
	<Pine.NEB.3.96L.1040613115916.2234B-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sun, 13 Jun 2004, Gleb Smirnoff wrote:

>   Today we have evidenced a panic on a DELL PowerEdge 1400 with two
> processors on board: 
> 
> panic: kmem_malloc(4096): kmem_map too small: 209715200 total allocated
> cpuid = 0;
> 
> I have dump saved, so I'll be glad to feed anyone with information to
> help fix this issue. 

Just to confirm -- what date -CURRENT are you using?  As you probably saw
on the list, there have been a couple of memory leaks and other resource
leaks introduced and then fixed in the past two weeks as changes were made
to network memory allocation and locking.  It's not impossible to imagine
this is the result of one of those leaks, assuming it's from the date
range affected by the leaks, so we should rule that out up front...

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Senior Research Scientist, McAfee Research

> 
> backtrace:
> (kgdb) bt
> #0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
> #1  0xc0446a05 in db_fncall (dummy1=0, dummy2=0, dummy3=0, dummy4=0xdbd1a67c
 "")
>     at /usr/src/sys/ddb/db_command.c:551
> #2  0xc0446752 in db_command (last_cmdp=0xc06a3ea0, cmd_table=0x0, 
>     aux_cmd_tablep=0xc0674b88, aux_cmd_tablep_end=0xc0674b8c)
>     at /usr/src/sys/ddb/db_command.c:348
> #3  0xc0446895 in db_command_loop () at /usr/src/sys/ddb/db_command.c:475
> #4  0xc04499f5 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_trap.c:73

> #5  0xc060e8cc in kdb_trap (type=3, code=0, regs=0xdbd1a7d0)
>     at /usr/src/sys/i386/i386/db_interface.c:159
> #6  0xc0623e28 in trap (frame=
>       {tf_fs = -1068498920, tf_es = -1067057136, tf_ds = -1067122672, tf_edi
 = -1067022542, tf_esi = 1, tf_ebp = -607016932, tf_isp = -607016964, tf_ebx =
 0, tf_edx = 0, tf_ecx = -1061076992, tf_eax = 18, tf_trapno = 3, tf_err = 0, 
tf_eip = -1067389995, tf_cs = 8, tf_eflags = 658, tf_esp = -1067002619, tf_ss 
= -1067087802})
>     at /usr/src/sys/i386/i386/trap.c:579
> #7  0xc060ebd5 in Debugger (msg=0x0) at machine/cpufunc.h:56
> #8  0xc04e34b6 in panic (
>     fmt=0xc0668732 "kmem_malloc(%ld): kmem_map too small: %ld total allocate
d")
>     at /usr/src/sys/kern/kern_shutdown.c:532
> #9  0xc05d2cbb in kmem_malloc (map=0xc0c3a0a0, size=4096, flags=258)
>     at /usr/src/sys/vm/vm_kern.c:324
> #10 0xc05e4367 in page_alloc (zone=0xc1ee9580, bytes=0, pflag=0x0, wait=0)
>     at /usr/src/sys/vm/uma_core.c:892
> #11 0xc05e3ffd in slab_zalloc (zone=0xc1ee9580, wait=258)
>     at /usr/src/sys/vm/uma_core.c:789
> #12 0xc05e570a in uma_zone_slab (zone=0xc1ee9580, flags=2)
>     at /usr/src/sys/vm/uma_core.c:1772
> #13 0xc05e594f in uma_zalloc_bucket (zone=0xc1ee9580, flags=2)
>     at /usr/src/sys/vm/uma_core.c:1875
> #14 0xc05e55ad in uma_zalloc_arg (zone=0xc1ee9580, udata=0x0, flags=2)
>     at /usr/src/sys/vm/uma_core.c:1699
> #15 0xc05bae4c in ffs_vget (mp=0xc1dfcc00, ino=3111815, flags=2, vpp=0xdbd1a
a4c)
>     at /usr/src/sys/vm/uma.h:270
> #16 0xc05c2bb2 in ufs_lookup (ap=0xdbd1ab10) at /usr/src/sys/ufs/ufs/ufs_loo
kup.c:599
> #17 0xc05c9d98 in ufs_vnoperate (ap=0x0) at /usr/src/sys/ufs/ufs/ufs_vnops.c
:2819
> #18 0xc0535191 in vfs_cache_lookup (ap=0x0) at vnode_if.h:82
> #19 0xc05c9d98 in ufs_vnoperate (ap=0x0) at /usr/src/sys/ufs/ufs/ufs_vnops.c
:2819
> #20 0xc053a292 in lookup (ndp=0xdbd1ac28) at vnode_if.h:52
> #21 0xc0539c7e in namei (ndp=0xdbd1ac28) at /usr/src/sys/kern/vfs_lookup.c:1
79
> #22 0xc0546bd2 in lstat (td=0xc1d08840, uap=0xdbd1ad14)
>     at /usr/src/sys/kern/vfs_syscalls.c:2059
> #23 0xc06247b0 in syscall (frame=
>       {tf_fs = 134545455, tf_es = 134545455, tf_ds = -1078001617, tf_edi = 1
34570496, tf_esi = 134570568, tf_ebp = -1077941080, tf_isp = -607015564, tf_eb
x = 672438156, tf_edx = 134561792, tf_ecx = 134561792, tf_eax = 190, tf_trapno
 = 0, tf_err = 2, tf_eip = 671910239, tf_cs = 31, tf_eflags = 582, tf_esp = -1
077941236, tf_ss = 47})
>     at /usr/src/sys/i386/i386/trap.c:1004
> #24 0x280c895f in ?? ()
> ---Can't read userspace from dump, or kernel process---
> 
> -- 
> Totus tuus, Glebius.
> GLEBIUS-RIPN GLEB-RIPE
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
> 


------------------------------

Message: 9
Date: Sun, 13 Jun 2004 12:07:02 -0400
From: Sven Willenberger <sven@dmv.com>
Subject: Re: panic: kmem_malloc(4096) on an SMP box
To: current@freebsd.org
Cc: Gleb Smirnoff <glebius@cell.sick.ru>
Message-ID: <40CC7BA6.8010308@dmv.com>
Content-Type: text/plain; charset=us-ascii; format=flowed



Gleb Smirnoff wrote:

>   Today we have evidenced a panic on a DELL PowerEdge 1400
> with two processors on board:
> 
> panic: kmem_malloc(4096): kmem_map too small: 209715200 total allocated
> cpuid = 0; 
> 

On our 2G RAM supermicro systems the following in the kernel config file 
worked:

options			VM_KMEM_SIZE_SCALE="2"
options			VM_KMEM_SIZE_MAX="(512*1024*1024)"


If you are using 4G+ you may want to increase  MAX and perhaps reduce 
scaling and also add:

options			KVA_PAGES=512

Sven




------------------------------

Message: 10
Date: Sun, 13 Jun 2004 09:23:06 -0700
From: Sean McNeil <sean@mcneil.com>
Subject: Compiler error in -current
To: freebsd-current@freebsd.org
Message-ID: <1087143786.59857.0.camel@server.mcneil.com>
Content-Type: text/plain

There is a missing close quote for a string:

/usr/src/usr.bin/truss/amd64-fbsd.c:34:3: missing terminating "
character



------------------------------

Message: 11
Date: Sun, 13 Jun 2004 18:39:45 +0200
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
Subject: Netgraph malloc(9) trouble...
To: current@freebsd.org
Message-ID: <87190.1087144785@critter.freebsd.dk>


panic: malloc(9)/free(9) confusion.
Probably freeing with wrong type, but maybe not here.
Debugger("panic")
Stopped at      Debugger+0x45:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c061e146) at Debugger+0x45
panic(c061c849,c061c813,c0530c81,0,1) at panic+0xbb
free(c0bc9cc0,c06520c0,0,c0bc9cc0,0) at free+0x116
ngmn_rcvmsg(c0aeea00,c0bc9d00,0,0,0) at ngmn_rcvmsg+0x2d1
ng_generic_msg(c0aeea00,c0bc9d00,0,7d1,c0aeea58) at ng_generic_msg+0x11d8
ng_apply_item(c0aeea00,c0bc9d00) at ng_apply_item+0x312
ng_snd_item(c0bc9d00,0,0,c0b502e0,3d) at ng_snd_item+0x703
ngc_send(c0e364f0,0,c0bab400,c0b6f120,0) at ngc_send+0x110
sosend(c0e364f0,c0b6f120,c7fedc54,c0bab400,0) at sosend+0x4a1
kern_sendit(c0be4000,3,c7fedccc,0,0) at kern_sendit+0x128
sendit(c0be4000,3,c7fedccc,0,804f03d) at sendit+0x141
sendto(c0be4000,c7fedd14,6,c,202) at sendto+0x4d
syscall(2f,2f,2f,bfbfe297,bfbfe292) at syscall+0x217

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

------------------------------

Message: 12
Date: Sun, 13 Jun 2004 12:53:48 -0400
From: Don Bowman <don@sandvine.com>
Subject: localcru: negative time of 2360 usec for pid 33672
	(fork_exit)
To: "'current@freebsd.org'" <current@freebsd.org>
Message-ID:
	<FE045D4D9F7AED4CBFF1B3B813C85337051D8FAE@mail.sandvine.com>
Content-Type: text/plain;	charset="iso-8859-1"

if you run the below test program, periodically
you will get:
localcru: negative time of 2360 usec for pid 33672 (fork_exit)

come out. On stable, you can set 'kern.timecounter.method=1'
to workaround this problem. Is there a fix for this on current?

$ cat fork_exit.c 
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/resource.h>

char buf[16384];

static int
doit()
{
    int fd;
    char fname[] = "/tmp/fe/template.XXXXXXXXXX";
    memset(buf,random(), sizeof(buf));
    fd = open(mktemp(fname), O_RDWR|O_CREAT|O_TRUNC, 0666);
    if (fd > 0)
    {
        write(fd, buf, sizeof(buf));
    }
    exit(0);

}

int
main(int argc, char **argv)
{
    unsigned int i;
    int s;
    mkdir("/tmp/fe", 0777);
    for (i = 0; ; i++)
    {
        if (fork() == 0)
        {
            doit();
        }
        if ((i % 1000) == 0)
        {
            while (waitpid(-1, &s, WNOHANG) > 0)
                ;
            system("rm /tmp/fe/*");
        }
    }
    return 0;
}


------------------------------

Message: 13
Date: Sun, 13 Jun 2004 17:53:42 +0100
From: "Liam J. Foy" <liamfoy@sepulcrum.org>
Subject: Re: Compiler error in -current
To: Sean McNeil <sean@mcneil.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040613175342.0dde76ae.liamfoy@sepulcrum.org>
Content-Type: text/plain; charset=US-ASCII

On Sun, 13 Jun 2004 09:23:06 -0700
Sean McNeil <sean@mcneil.com> wrote:

> There is a missing close quote for a string:
> 
> /usr/src/usr.bin/truss/amd64-fbsd.c:34:3: missing terminating "
> character
This patch should solve it:

--- /usr/src/usr.bin/truss/amd64-fbsd.c	Sat Jun 12 23:49:06 2004
+++ /hd3/amd64-fbsd.c	Sun Jun 13 17:51:57 2004
@@ -31,7 +31,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-  "$FreeBSD: src/usr.bin/truss/amd64-fbsd.c,v 1.1 2004/06/12 22:49:06 dwmalon
e Exp $
+  "$FreeBSD: src/usr.bin/truss/amd64-fbsd.c,v 1.1 2004/06/12 22:49:06 dwmalon
e Exp $";
 #endif /* not lint */
 
 /*

Maybe a commiter could like to commit this.

Thanks,
> 
> 
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


-- 
-Liam Foy
http://liamfoy.kerneled.org
"Do only what only you can do."

------------------------------

Message: 14
Date: Sun, 13 Jun 2004 19:15:24 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: Netgraph malloc(9) trouble... 
Cc: current@freebsd.org
Message-ID: <87400.1087146924@critter.freebsd.dk>


Ok, found it, looks like ancient damage.

Poul-Henning

In message <87190.1087144785@critter.freebsd.dk>, Poul-Henning Kamp writes:
>
>panic: malloc(9)/free(9) confusion.
>Probably freeing with wrong type, but maybe not here.
>Debugger("panic")
>Stopped at      Debugger+0x45:  xchgl   %ebx,in_Debugger.0
>db> trace
>Debugger(c061e146) at Debugger+0x45
>panic(c061c849,c061c813,c0530c81,0,1) at panic+0xbb
>free(c0bc9cc0,c06520c0,0,c0bc9cc0,0) at free+0x116
>ngmn_rcvmsg(c0aeea00,c0bc9d00,0,0,0) at ngmn_rcvmsg+0x2d1
>ng_generic_msg(c0aeea00,c0bc9d00,0,7d1,c0aeea58) at ng_generic_msg+0x11d8
>ng_apply_item(c0aeea00,c0bc9d00) at ng_apply_item+0x312
>ng_snd_item(c0bc9d00,0,0,c0b502e0,3d) at ng_snd_item+0x703
>ngc_send(c0e364f0,0,c0bab400,c0b6f120,0) at ngc_send+0x110
>sosend(c0e364f0,c0b6f120,c7fedc54,c0bab400,0) at sosend+0x4a1
>kern_sendit(c0be4000,3,c7fedccc,0,0) at kern_sendit+0x128
>sendit(c0be4000,3,c7fedccc,0,804f03d) at sendit+0x141
>sendto(c0be4000,c7fedd14,6,c,202) at sendto+0x4d
>syscall(2f,2f,2f,bfbfe297,bfbfe292) at syscall+0x217
>
>-- 
>Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
>phk@FreeBSD.ORG         | TCP/IP since RFC 956
>FreeBSD committer       | BSD since 4.3-tahoe
>Never attribute to malice what can adequately be explained by incompetence.
>_______________________________________________
>freebsd-current@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-current
>To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

------------------------------

Message: 15
Date: Sun, 13 Jun 2004 13:07:28 -0500
From: Jon Noack <noackjr@alumni.rice.edu>
Subject: Re: Device polling
To: Magnus Carlebj?rk<magnus@carlebjork.se>
Cc: freebsd-current@freebsd.org
Message-ID: <40CC97E0.5010003@alumni.rice.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 06/11/04 03:05, Magnus Carlebj�rk wrote:
> Hi. I have been using Luigi's polling code extensively i several multiproces
sor
> systems for over a year now, and it works flawlessly and efficiently. Nicely

> done Luigi!
> 
> In the beginning of /usr/src/sys/kern/kern_poll.c there are a few lines thas

> says that polling is incompatible with SMP. This is not true, polling IS
> compatible with SMP, it just does not utilize all of it's features.

I just tested this on my SMP all-in-one home server (Web, Mail, NFS, 
Samba, Squid, etc.).  It's been up for over 24 hours with no apparent 
issues.  The machine is used pretty heavily, with NFS mounted home 
directories and CVS mirror (see below) -- a CVS update of the src tree 
over NFS has done a good job of breaking fragile setups in the past. 
Everything seemed OK.  That said, peak performance (as tested by iperf) 
took a nosedive: with 32-bit em adapters (gige), tcp bandwidth dropped 
from over 360Mbps to around 200 Mbps.  If anyone has any suggestions for 
more in-depth testing, I'd be willing to try them.  If I have the time I 
may also try the latest netperf patch and see how that affects things.

> I'm getting tired of having the builkernel break everytime because of this
> define in kern_poll.c. Would it be possible to change that so that is just p
uts
> a note in the syslog instead?

Create an update script that automatically applies a patch after the 
CVSup.  Alternatively, use CVSup to mirror the repository and then check 
out the src directory (with regular CVS from the local mirror).  That 
way you can make local changes and still keep updated.  I was introduced 
to this latter method recently (on this list) and it works quite well. 
See the CVSup page in the Handbook and 
/usr/share/examples/cvsup/cvs-supfile.

Jon


------------------------------

Message: 16
Date: Sun, 13 Jun 2004 21:13:15 +0300
From: Ruslan Ermilov <ru@FreeBSD.org>
Subject: Re: Device polling
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: Magnus Carlebj?rk <magnus@carlebjork.se>
Message-ID: <20040613181315.GB54104@ip.net.ua>
Content-Type: text/plain; charset="us-ascii"

On Sun, Jun 13, 2004 at 01:07:28PM -0500, Jon Noack wrote:
[...]
> I just tested this on my SMP all-in-one home server (Web, Mail, NFS, 
> Samba, Squid, etc.).  It's been up for over 24 hours with no apparent 
> issues.  The machine is used pretty heavily, with NFS mounted home 
> directories and CVS mirror (see below) -- a CVS update of the src tree 
> over NFS has done a good job of breaking fragile setups in the past. 
> Everything seemed OK.  That said, peak performance (as tested by iperf) 
> took a nosedive: with 32-bit em adapters (gige), tcp bandwidth dropped 
> from over 360Mbps to around 200 Mbps.  If anyone has any suggestions for 
> more in-depth testing, I'd be willing to try them.  If I have the time I 
> may also try the latest netperf patch and see how that affects things.
> 
What are your operational polling(4) parameters?  What the HZ is set to?


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040613/
863e7993/attachment-0001.bin

------------------------------

Message: 17
Date: Sun, 13 Jun 2004 14:13:53 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on amd64/amd64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<amd64@freebsd.org>
Message-ID: <20040613181353.40A6C7303F@freebsd-current.sentex.ca>

TB --- 2004-06-13 17:42:17 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-13 17:42:17 - starting CURRENT tinderbox run for amd64/amd64
TB --- 2004-06-13 17:42:17 - checking out the source tree
TB --- 2004-06-13 17:42:17 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64
TB --- 2004-06-13 17:42:17 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-06-13 17:46:50 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-13 17:46:50 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64/sr
c
TB --- 2004-06-13 17:46:50 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
[...]
===> usr.bin/truss
cat /tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/truss/../../sys/kern/sy
scalls.master > syscalls.master
/bin/sh /tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/truss/../../sys/ker
n/makesyscalls.sh syscalls.master  /tinderbox/sandbox/CURRENT/amd64/amd64/src/
usr.bin/truss/i386.conf
sh /tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/truss/../kdump/mkioctls 
/home/tinderbox/sandbox/CURRENT/amd64/amd64/obj/amd64/tinderbox/sandbox/CURREN
T/amd64/amd64/src/i386/usr/include > ioctl.c
rm -f .depend
mkdep -f .depend -a    -I/tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/tr
uss -I. /tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/truss/main.c /tinde
rbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/truss/setup.c /tinderbox/sandbox/
CURRENT/amd64/amd64/src/usr.bin/truss/syscalls.c ioctl.c /tinderbox/sandbox/CU
RRENT/amd64/amd64/src/usr.bin/truss/amd64-fbsd.c
/tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/truss/amd64-fbsd.c:34:3: mi
ssing terminating " character
mkdep: compile failed
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/truss.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/amd64/amd64/src.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/amd64/amd64/src.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/amd64/amd64/src.
TB --- 2004-06-13 18:13:52 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-06-13 18:13:52 - ERROR: failed to build world
TB --- 2004-06-13 18:13:52 - tinderbox aborted


------------------------------

Message: 18
Date: Sun, 13 Jun 2004 14:15:44 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Device polling
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: Magnus Carlebj?rk<magnus@carlebjork.se>
Message-ID:
	<Pine.NEB.3.96L.1040613141040.9835B-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=ISO-8859-1


On Sun, 13 Jun 2004, Jon Noack wrote:

> On 06/11/04 03:05, Magnus Carlebj�rk wrote:
> > Hi. I have been using Luigi's polling code extensively i several multiproc
essor
> > systems for over a year now, and it works flawlessly and efficiently. Nice
ly
> > done Luigi!
> > 
> > In the beginning of /usr/src/sys/kern/kern_poll.c there are a few lines th
as
> > says that polling is incompatible with SMP. This is not true, polling IS
> > compatible with SMP, it just does not utilize all of it's features.
> 
> I just tested this on my SMP all-in-one home server (Web, Mail, NFS,
> Samba, Squid, etc.).  It's been up for over 24 hours with no apparent
> issues.  The machine is used pretty heavily, with NFS mounted home
> directories and CVS mirror (see below) -- a CVS update of the src tree
> over NFS has done a good job of breaking fragile setups in the past.
> Everything seemed OK.  That said, peak performance (as tested by iperf) 
> took a nosedive: with 32-bit em adapters (gige), tcp bandwidth dropped
> from over 360Mbps to around 200 Mbps.  If anyone has any suggestions for
> more in-depth testing, I'd be willing to try them.  If I have the time I
> may also try the latest netperf patch and see how that affects things. 

I have some thoughts on applying polling in a post-netperf world,
including using multiple polling threads and binding interfaces to
particular threads to reduce potential ordering problems (and possibly
also lock contention).  The 20040613 netperf patch drop appears to have
abuild nit following my merges last night; I'll regen a 20040613a patch
sometime this afternoon, which will also be post-altq-integration.  I'm
not sure it will help your environment, though -- and I've not really
explored the impact of fine-grained locking with polling as yet.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Senior Research Scientist, McAfee Research


------------------------------

Message: 19
Date: Sun, 13 Jun 2004 19:19:00 +0100
From: David Malone <dwmalone@maths.tcd.ie>
Subject: Re: [current tinderbox] failure on amd64/amd64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>
Cc: amd64@freebsd.org
Message-ID: <20040613181900.GA52145@walton.maths.tcd.ie>
Content-Type: text/plain; charset=us-ascii

On Sun, Jun 13, 2004 at 02:13:53PM -0400, FreeBSD Tinderbox wrote:
> /tinderbox/sandbox/CURRENT/amd64/amd64/src/usr.bin/truss/amd64-fbsd.c:34:3: 
missing terminating " character

My fault - Bruce has just fixed this.

	David.

------------------------------

Message: 20
Date: Sun, 13 Jun 2004 14:39:52 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on i386/i386
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<i386@freebsd.org>
Message-ID: <20040613183952.70F0F7303F@freebsd-current.sentex.ca>

TB --- 2004-06-13 18:13:53 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-13 18:13:53 - starting CURRENT tinderbox run for i386/i386
TB --- 2004-06-13 18:13:53 - checking out the source tree
TB --- 2004-06-13 18:13:53 - cd /home/tinderbox/sandbox/CURRENT/i386/i386
TB --- 2004-06-13 18:13:53 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-06-13 18:18:31 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-13 18:18:31 - cd /home/tinderbox/sandbox/CURRENT/i386/i386/src

TB --- 2004-06-13 18:18:31 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
[...]
cc -O2 -pipe  -DPTHREAD_KERNEL -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/
libc_r/../libc/include -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/u
thread  -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/../../include -D
_LOCK_DEBUG -D_PTHREADS_INVARIANTS  -c /tinderbox/sandbox/CURRENT/i386/i386/sr
c/lib/libc_r/uthread/uthread_mattr_kind_np.c
cc -O2 -pipe  -DPTHREAD_KERNEL -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/
libc_r/../libc/include -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/u
thread  -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/../../include -D
_LOCK_DEBUG -D_PTHREADS_INVARIANTS  -c /tinderbox/sandbox/CURRENT/i386/i386/sr
c/lib/libc_r/uthread/uthread_msync.c
cc -O2 -pipe  -DPTHREAD_KERNEL -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/
libc_r/../libc/include -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/u
thread  -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/../../include -D
_LOCK_DEBUG -D_PTHREADS_INVARIANTS  -c /tinderbox/sandbox/CURRENT/i386/i386/sr
c/lib/libc_r/uthread/uthread_multi_np.c
cc -O2 -pipe  -DPTHREAD_KERNEL -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/
libc_r/../libc/include -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/u
thread  -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/../../include -D
_LOCK_DEBUG -D_PTHREADS_INVARIANTS  -c /tinderbox/sandbox/CURRENT/i386/i386/sr
c/lib/libc_r/uthread/uthread_mutex.c
cc -O2 -pipe  -DPTHREAD_KERNEL -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/
libc_r/../libc/include -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/u
thread  -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/../../include -D
_LOCK_DEBUG -D_PTHREADS_INVARIANTS  -c /tinderbox/sandbox/CURRENT/i386/i386/sr
c/lib/libc_r/uthread/uthread_mutex_prioceiling.c
cc -O2 -pipe  -DPTHREAD_KERNEL -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/
libc_r/../libc/include -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/u
thread  -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/../../include -D
_LOCK_DEBUG -D_PTHREADS_INVARIANTS  -c /tinderbox/sandbox/CURRENT/i386/i386/sr
c/lib/libc_r/uthread/uthread_mutex_protocol.c
cc -O2 -pipe  -DPTHREAD_KERNEL -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/
libc_r/../libc/include -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/u
thread  -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/../../include -D
_LOCK_DEBUG -D_PTHREADS_INVARIANTS  -c /tinderbox/sandbox/CURRENT/i386/i386/sr
c/lib/libc_r/uthread/uthread_mutexattr_destroy.c
cc -O2 -pipe  -DPTHREAD_KERNEL -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/
libc_r/../libc/include -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/u
thread  -I/tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r/../../include -D
_LOCK_DEBUG -D_PTHREADS_INVARIANTS  -c /tinderbox/sandbox/CURRENT/i386/i386/sr
c/lib/libc_r/uthread/uthread_nanosleep.c
*** Signal 11

Stop in /tinderbox/sandbox/CURRENT/i386/i386/src/lib/libc_r.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/i386/i386/src/lib.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/i386/i386/src.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/i386/i386/src.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/i386/i386/src.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/i386/i386/src.
TB --- 2004-06-13 18:39:52 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-06-13 18:39:52 - ERROR: failed to build world
TB --- 2004-06-13 18:39:52 - tinderbox aborted


------------------------------

Message: 21
Date: Sun, 13 Jun 2004 11:20:36 -0800
From: Beecher Rintoul <akbeech@northwindcom.dyndns.org>
Subject: Kernel compile error
To: freebsd-current@freebsd.org
Message-ID: <200406131120.36946.akbeech@northwindcom.dyndns.org>
Content-Type: text/plain;  charset="us-ascii"

Got this error while compiling yesterday's -current:

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  

-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-fformat-extensions -std=c99  -nostdinc -I-  -I. -I/usr/src/sys 
-I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter 
-I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath 
-I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL 

-include opt_global.h -fno-common -finline-limit=8000  
-mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding 
-Werror  /usr/src/sys/net/raw_cb.c
/usr/src/sys/net/raw_cb.c: In function `raw_detach':
/usr/src/sys/net/raw_cb.c:97: warning: implicit declaration of function 
`mtx_assert'
/usr/src/sys/net/raw_cb.c:97: error: `MA_OWNED' undeclared (first use in this 

function)
/usr/src/sys/net/raw_cb.c:97: error: (Each undeclared identifier is reported 

only once
/usr/src/sys/net/raw_cb.c:97: error: for each function it appears in.)
/usr/src/sys/net/raw_cb.c:97: warning: implicit declaration of function 
`mtx_unlock'
*** Error code 1

TIA,

Beech

-- 
-------------------------------------------------------------------
Beech Rintoul - System Administrator - akbeech@northwindcom.dyndns.org
/"\   ASCII Ribbon Campaign  | NorthWind Communications
\ / - NO HTML/RTF in e-mail  | 201 East 9th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \ -----------------------------------------------------------------












------------------------------

Message: 22
Date: Sun, 13 Jun 2004 12:34:57 -0700
From: David Thiel <lx@redundancy.redundancy.org>
Subject: -current XFree86 CPU hogging
To: freebsd-current@freebsd.org
Message-ID: <20040613193457.GS797@redundancy.redundancy.org>
Content-Type: text/plain; charset=us-ascii

For quite a while in -current, I've been hitting the situation where X
suddenly takes all the CPU and becomes unresponsive. I have to ssh into
the machine and kill XFree86. Ktracing it, I see:

   651 XFree86  RET   ioctl -1 errno 16 Device busy
   651 XFree86  PSIG  SIGALRM caught handler=0x80d4318 mask=0x0 code=0x0
   651 XFree86  CALL  sigreturn(0xbfbfe340)
   651 XFree86  RET   sigreturn JUSTRETURN
   651 XFree86  CALL  ioctl(0x7,0xc0286429 ,0xbfbfe680)
   651 XFree86  RET   ioctl -1 errno 16 Device busy
   651 XFree86  PSIG  SIGALRM caught handler=0x80d4318 mask=0x0 code=0x0
   651 XFree86  CALL  sigreturn(0xbfbfe340)
   651 XFree86  RET   sigreturn JUSTRETURN
   651 XFree86  CALL  ioctl(0x7,0xc0286429 ,0xbfbfe680)
   651 XFree86  RET   ioctl -1 errno 16 Device busy

This seems similar to the problem indicated in this thread:

http://marc.theaimsgroup.com/?l=freebsd-current&m=103401443626417&w=2

but not quite. It doesn't seem to correspond to any particular activity.
This is the only machine I get it on, and I've tried multiple upgrades
and rebuilding X and such. Any ideas would be much appreciated.

Kernel config:

http://redundancy.org/DEEPTHOUGHT

Dmesg:

http://redundancy.org/dmesg.txt


------------------------------

Message: 23
Date: Sun, 13 Jun 2004 15:45:55 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on i386/pc98
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<i386@freebsd.org>
Message-ID: <20040613194555.73F847303F@freebsd-current.sentex.ca>

TB --- 2004-06-13 18:39:52 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-13 18:39:52 - starting CURRENT tinderbox run for i386/pc98
TB --- 2004-06-13 18:39:52 - checking out the source tree
TB --- 2004-06-13 18:39:52 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98
TB --- 2004-06-13 18:39:52 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-06-13 18:44:19 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-13 18:44:19 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98/src

TB --- 2004-06-13 18:44:19 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
TB --- 2004-06-13 19:39:56 - building generic kernel (COPTFLAGS=-O2 -pipe)
TB --- 2004-06-13 19:39:56 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98/src

TB --- 2004-06-13 19:39:56 - /usr/bin/make buildkernel KERNCONF=GENERIC
>>> Kernel build for GENERIC started on Sun Jun 13 19:39:56 GMT 2004
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
[...]
/tinderbox/sandbox/CURRENT/i386/pc98/src/sys/pc98/pc98/pc98gdc.c: In function 
`probe_adapters':
/tinderbox/sandbox/CURRENT/i386/pc98/src/sys/pc98/pc98/pc98gdc.c:638: error: `
KERNBASE' undeclared (first use in this function)
/tinderbox/sandbox/CURRENT/i386/pc98/src/sys/pc98/pc98/pc98gdc.c:638: error: (
Each undeclared identifier is reported only once
/tinderbox/sandbox/CURRENT/i386/pc98/src/sys/pc98/pc98/pc98gdc.c:638: error: f
or each function it appears in.)
/tinderbox/sandbox/CURRENT/i386/pc98/src/sys/pc98/pc98/pc98gdc.c: In function 
`gdc_set_origin':
/tinderbox/sandbox/CURRENT/i386/pc98/src/sys/pc98/pc98/pc98gdc.c:939: error: `
KERNBASE' undeclared (first use in this function)
/tinderbox/sandbox/CURRENT/i386/pc98/src/sys/pc98/pc98/pc98gdc.c: In function 
`gdc_set_mode':
/tinderbox/sandbox/CURRENT/i386/pc98/src/sys/pc98/pc98/pc98gdc.c:1099: error: 
`KERNBASE' undeclared (first use in this function)
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/i386/pc98/obj/pc98/tinderbox/sandbox/CURREN
T/i386/pc98/src/sys/GENERIC.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/i386/pc98/src.
*** Error code 1

Stop in /tinderbox/sandbox/CURRENT/i386/pc98/src.
TB --- 2004-06-13 19:45:55 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-06-13 19:45:55 - ERROR: failed to build generic kernel
TB --- 2004-06-13 19:45:55 - tinderbox aborted


------------------------------

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

End of freebsd-current Digest, Vol 64, Issue 21
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......

�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]