Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jul 2003 09:25:34 -0600
From:      "Stephane Raimbault" <segr@hotmail.com>
To:        "Bosko Milekic" <bmilekic@technokratis.com>
Cc:        current@freebsd.org
Subject:   Re: FreeBSD 5.1-R kernel panic
Message-ID:  <Law10-OE291iJbv19dB0000c998@hotmail.com>
References:  <bg0p70$214g$1@FreeBSD.csie.NCTU.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C3567C.87B07DD0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit

Hi Bosko,

My kernel panic'd again this morning.  I had removed all the USB devices
from my kernel and had set my /etc/rc.conf to usbd_enable="NO" and the
kernel panic'd again.

I have attached both my kernel config file and the trace of the panic.  Let
me know if I can provide any further information to help analyze this
problem.

Thanks,
Stephane Raimbault.

----- Original Message ----- 
From: "Bosko Milekic" <bmilekic@technokratis.com>
Newsgroups: mailing.freebsd.current
Sent: Sunday, July 27, 2003 8:56
Subject: Re: FreeBSD 5.1-R kernel panic


>
> On Sat, Jul 26, 2003 at 10:48:21PM -0600, Stephane Raimbault wrote:
> > Well, I had compiled "options DDB" into the kernel and today the kernel
> > panic'd... here is what I got.  I ran the following in the db> prompt.
> > "trace", "show reg", "ps".  Let me know if this is the kind of
information
> > you need, and if there is anything else I need to provide... can I
> > re-compile the kernel without the "options DDB" now, or should I provide
the
> > same info next time in panic's to confirm it's the same problem?
> >
> > Thanks,
> > Stephane.
> >
> > I've attached the file debug.txt which contains the panic info.  Let me
know
> > if you need it in a different format.
> >
> > Thanks again,
> > Stephane Raimbault.
>
>   Are you using USB?
>
>   Approximately 2 weeks ago, some changes were introduced into the USB
>   code which could in some scenarios mean a depletion of kmem_map.  I've
>   glanced at usb_mem.c and it appears that the USB code 'caches'
>   everything that it allocates into a couple of lists it maintains
>   locally.  This prevents UMA from seeing the freed memory and, from the
>   point of view of the VM, the memory is never reclaimed.
>
>   I am unsure as to whether or not the memory allocated by the USB stuff
>   needs to be type stable so I can't really fix this.  I urge the USB
>   authors to glance there.
>
>   If you are using USB, try turning it off to see if the panic persists.
>   If not, then we'll have to look elsewhere.
>
> Regards,
> -- 
> Bosko Milekic  *  bmilekic@technokratis.com  *  bmilekic@FreeBSD.org
> TECHNOkRATIS Consulting Services  *  http://www.technokratis.com/
> _______________________________________________
> 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"


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003

------=_NextPart_000_000B_01C3567C.87B07DD0
Content-Type: text/plain;
	name="debug2.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="debug2.txt"

panic: kmem_malloc(4096): kmem_map too small: 275251200 total allocated
cpuid =3D 2; lapic.id =3D 01000000
Debugger("panic")
Stopped at      Debugger+0x55:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c04d1139,1000000,c04e2d72,e97f18a0,1) at Debugger+0x55
panic(c04e2d72,1000,10680000,e97f18cc,6b6) at panic+0x11f
kmem_malloc(c082f0b0,1000,2,e97f1920,c0437b86) at kmem_malloc+0xf7
page_alloc(c082ab40,1000,e97f1913,2,d2042be0) at page_alloc+0x27
slab_zalloc(c082ab40,2,caf2a124,0,e97f1954) at slab_zalloc+0x106
uma_zone_slab(c082ab40,2,c0412888,caf2a124,c082aca0) at =
uma_zone_slab+0xd8
uma_zalloc_bucket(c082ab40,2,c04e3fcd,586,98000) at =
uma_zalloc_bucket+0x15d
uma_zalloc_arg(c082ab40,0,2,cb87cab0,c082ab40) at uma_zalloc_arg+0x230
malloc(48,c0524fe0,2,e97f1a58,0) at malloc+0x58
cache_enter(cbce47fc,d3e665b4,e97f1c4c,e97f1a48,e97f1a4c) at =
cache_enter+0x93
ufs_lookup(e97f1b0c,e97f1b48,c0330ba0,e97f1b0c,e97f1c38) at =
ufs_lookup+0xdf8
ufs_vnoperate(e97f1b0c,e97f1c38,e97f1c4c,1030002,d2042be0) at =
ufs_vnoperate+0x18
vfs_cache_lookup(e97f1b8c,e97f1ba8,c03356a2,e97f1b8c,20002) at =
vfs_cache_lookup+0x2f0
ufs_vnoperate(e97f1b8c,20002,d2042be0,d2042be0,d2042be0) at =
ufs_vnoperate+0x18
lookup(e97f1c24,0,c04d5482,a4,d2042be0) at lookup+0x302
namei(e97f1c24,8344e48,60,0,d2042be0) at namei+0x1ee
lstat(d2042be0,e97f1d10,c04e84ac,3fb,2) at lstat+0x52
syscall(82d002f,82d002f,bfbf002f,8344f00,8344f48) at syscall+0x24e
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (190, FreeBSD ELF32, lstat), eip =3D 0x280bba23, esp =3D =
0xbfbffaec, ebp =3D 0xbfbffb88 ---
db> show reg
cs                 0x8
ds                0x10
es          0xd2040010
fs                0x18
ss                0x10
eax               0x12
ecx              0x3fd
edx                  0
ebx                  0
esp         0xe97f1858
ebp         0xe97f1864
esi              0x100
edi         0xd2042be0
eip         0xc045d4c5  Debugger+0x55
efl              0x286
dr0                  0
dr1                  0
dr2                  0
dr3                  0
dr4         0xffff0ff0
dr5              0x400
dr6         0xffff0ff0
dr7              0x400
Debugger+0x55:  xchgl   %ebx,in_Debugger.0
db> ps
  pid   proc     addr    uid  ppid  pgrp  flag   stat  wmesg    wchan  =
cmd
56961 cbef53c0 e9371000   80 13415 13415 0000100 norm[SLPQ   lockf =
d4294740][SLP] httpd
56960 d277d000 e98ed000    0 56952 56808 0004000 norm[CPU 2] find
56958 d27353c0 e94e2000    0 56956 56808 0004000 norm[SLPQ  piperd =
caee7e70][SLP] cat
56956 cb5f2b40 e927e000    0 56946 56808 0000000 norm[SLPQ    wait =
cb5f2b40][SLP] sh
56955 d3d4db40 e9a6a000    0 56946 56808 0004000 norm[SLPQ  piperd =
cbf9d9a0][SLP] sort
56954 d1e5d960 e9607000    0 56946 56808 0004000 norm[SLPQ  piperd =
caee7dc0][SLP] sed
56953 caeee1e0 e9193000    0 56946 56808 0004000 norm[SLPQ  piperd =
cbf9dc60][SLP] xargs
56952 d13e5960 e9354000    0 56946 56808 0000000 norm[SLPQ    wait =
d13e5960][SLP] sh
56946 cbe25780 e9260000    0 56943 56808 0004000 norm[SLPQ    wait =
cbe25780][SLP] sh
56945 d1e613c0 e965e000    0 56944 56808 0004000 norm[SLPQ  piperd =
caee6210][SLP] cat
56944 d277d1e0 e98ee000    0 56937 56808 0000000 norm[SLPQ    wait =
d277d1e0][SLP] sh
56943 d203d000 e9770000    0 56937 56808 0000000 norm[SLPQ    wait =
d203d000][SLP] sh
56937 d1f64d20 e96ec000    0 56936 56808 0004000 norm[SLPQ    wait =
d1f64d20][SLP] sh
56936 cc066780 e9c01000    0 56823 56808 0004000 norm[SLPQ    wait =
cc066780][SLP] sh
56861 d1b5e780 e95f8000   80 13415 13415 0000100 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
56825 d1366780 e940c000    0 56824 56808 0004000 norm[SLPQ  piperd =
caee7a50][SLP] cat
56824 d3d481e0 e99d8000    0 56812 56808 0000000 norm[SLPQ    wait =
d3d481e0][SLP] sh
56823 d13e5780 e9353000    0 56812 56808 0000000 norm[SLPQ    wait =
d13e5780][SLP] sh
56812 d1820960 e94fc000    0 56808 56808 0004000 norm[SLPQ    wait =
d1820960][SLP] sh
56808 cbe25000 e9258000    0 56803 56808 0004000 norm[SLPQ    wait =
cbe25000][SLP] sh
56803 d1f62d20 e96e4000    0   439   439 0000000 norm[SLPQ  piperd =
cbf9d4d0][SLP] cron
56799 cb5f2780 e927c000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
56711 cbefab40 e93d3000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
56710 d203d780 e9774000   80 13415 13415 0000101 norm[CVQ  select =
c058c494][SLP] httpd
56708 d203db40 e9776000   80 13415 13415 0000100 norm[CVQ  select =
c058c494][SLP] httpd
56659 d1e60780 e9658000   80 13415 13415 0000100 norm[CVQ  select =
c058c494][SLP] httpd
56657 d1820780 e94fb000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
56554 d1b60960 e9601000   80 13415 13415 0000101 norm[CVQ  select =
c058c494][SLP] httpd
56433 cbe29b40 e9329000   80 13415 13415 0000101 norm[SLPQ   lockf =
d49a57c0][SLP] httpd
56432 d3496b40 e98b3000   80 13415 13415 0000101 norm[SLPQ   lockf =
d14e5280][SLP] httpd
56430 d2735d20 e9825000   80 13415 13415 0000101 norm[SLPQ   lockf =
d27a77c0][SLP] httpd
56427 d2739780 e9868000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
56270 d1b603c0 e95fe000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
56232 d13e55a0 e9351000   80 13415 13415 0000101 norm[SLPQ   lockf =
cc321600][SLP] httpd
56205 d27355a0 e94e3000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
56175 d1f625a0 e96e0000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
56085 cbef5000 e936f000   80 13415 13415 0000101 norm[CVQ  select =
c058c494][SLP] httpd
56084 d1a50d20 e9575000   80 13415 13415 0000101 norm[SLPQ   lockf =
d5706700][SLP] httpd
55963 d2043780 e9801000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
55946 d3d4d5a0 e99f2000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
55939 cb1f8960 e91b5000   80 13415 13415 0000101 norm[CVQ  select =
c058c494][SLP] httpd
55820 d4a9c1e0 e9b66000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
55532 d277d5a0 e98f0000    0   422   422 0000100 norm[CVQ  select =
c058c494][SLP] sendmail
55437 d1a50000 e956e000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
54009 d1fd4d20 e975e000    0   422   422 0000100 norm[SLPQ  connec =
d4ddf936][SLP] sendmail
53420 cb531b40 e9246000   80 13415 13415 0000101 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
52574 d277b780 e98e0000    0   422   422 0000100 norm[SLPQ  connec =
d6c11136][SLP] sendmail
50598 d34971e0 e98b6000    0   422   422 0000100 norm[SLPQ  connec =
cb59eb36][SLP] sendmail
48663 d13e95a0 e93d9000    0   422   422 0000100 norm[SLPQ  connec =
d6c10236][SLP] sendmail
47666 d1821000 e94ff000   80 13415 13415 0000100 norm[SLPQ  nanslp =
c058af0c][SLP] httpd
46260 cc063d20 e9bfc000    0   422   422 0000100 norm[SLPQ  connec =
d6d27136][SLP] sendmail
43252 d3d48d20 e99de000    0   422   422 0000100 norm[SLPQ  connec =
d1fab936][SLP] sendmail
39524 d27393c0 e9857000    0   422   422 0000100 norm[SLPQ  connec =
d314b136][SLP] sendmail
35487 d1e61960 e9661000    0   422   422 0000100 norm[SLPQ  connec =
d5502136][SLP] sendmail
30563 caa9f960 e6f13000    0   422   422 0000100 norm[SLPQ  connec =
d5627736][SLP] sendmail
59813 d2735000 e94e0000   80     1 59813 0000001 norm[CVQ  select =
c058c494][SLP] php
19308 cbef5d20 e9376000    0     1 19308 0004002 norm[SLPQ   ttyin =
cae57c10][SLP] getty
13415 d1fd7b40 e9765000    0     1 13415 0000001 norm[CVQ  select =
c058c494][SLP] httpd
  522 cb531960 e9245000    0     1   521 0000000 norm[CVQ  select =
c058c494][SLP] snmpd
  495 cb1fb000 e91df000   80     1   495 0000101 norm[CVQ  select =
c058c494][SLP] php
  493 cb1fb1e0 e91e0000   80     1   493 0000100 norm[CVQ  select =
c058c494][SLP] php
  491 cb1f8780 e91b4000   80     1   491 0000101 norm[CVQ  select =
c058c494][SLP] php
  483 cb1f81e0 e91a5000   80     1   483 0000101 norm[CVQ  select =
c058c494][SLP] php
  476 caeeeb40 e9198000   80     1   476 0000100 norm[CVQ  select =
c058c494][SLP] php
  439 caa9fd20 e6f3c000    0     1   439 0000000 norm[SLPQ  nanslp =
c058af0c][SLP] cron
  425 caee8780 e918e000   25     1   425 0000100 norm[SLPQ   pause =
caeda000][SLP] sendmail
  422 caee8b40 e9190000    0     1   422 0000100 norm[CVQ  select =
c058c494][SLP] sendmail
  416 cae673c0 e6f40000    0     1   416 0000100 norm[CVQ  select =
c058c494][SLP] sshd
  282 caa9fb40 e6f3b000    0     1   282 0000000 norm[CVQ  select =
c058c494][SLP] syslogd
   43 cae67b40 e6f44000    0     0     0 0000204 norm[SLPQ  nfsidl =
c059302c][SLP] nfsiod 3
   42 caa61b40 e69bf000    0     0     0 0000204 norm[SLPQ  nfsidl =
c0593028][SLP] nfsiod 2
   41 caa61d20 e69c0000    0     0     0 0000204 norm[SLPQ  nfsidl =
c0593024][SLP] nfsiod 1
   40 caa9d000 e6f06000    0     0     0 0000204 norm[SLPQ  nfsidl =
c0593020][SLP] nfsiod 0
   39 caa9d1e0 e6f07000    0     0     0 0000204 norm[SLPQ  vlruwt =
caa9d1e0][SLP] vnlru
   38 caa9d3c0 e6f08000    0     0     0 0000204 norm[SLPQ  syncer =
c058a8c0][SLP] syncer
   37 caa9d5a0 e6f09000    0     0     0 0000204 norm[SLPQ  psleep =
c058c85c][SLP] bufdaemon
   36 caa9d780 e6f0a000    0     0     0 000020c norm[SLPQ  pgzero =
c0594708][SLP] pagezero
    9 caa9d960 e6f0b000    0     0     0 0000204 norm[SLPQ  psleep =
c0594734][SLP] vmdaemon
    8 caa9db40 e6f0c000    0     0     0 0000204 norm[SLPQ  psleep =
c0594720][SLP] pagedaemon
   35 caa9dd20 e6f0d000    0     0     0 0000204 new [IWAIT] irq8: rtc
   34 caa9f000 e6f0e000    0     0     0 0000204 new [IWAIT] irq0: clk
   33 caa9f1e0 e6f0f000    0     0     0 0000204 norm[IWAIT] irq6: fdc0
   32 ca9485a0 e6988000    0     0     0 0000204 new [IWAIT] irq3: sio1
   31 ca948780 e6989000    0     0     0 0000204 new [IWAIT] irq4: sio0
   30 ca948960 e698a000    0     0     0 0000204 norm[IWAIT] swi0: =
tty:sio
   29 ca948b40 e698b000    0     0     0 0000204 norm[IWAIT] irq15: ata1
   28 ca948d20 e698c000    0     0     0 0000204 new [IWAIT] irq14: ata0
   27 caa61000 e698d000    0     0     0 0000204 norm[IWAIT] irq18: asr0
   26 caa611e0 e6993000    0     0     0 0000204 norm[IWAIT] irq17: em1
   25 caa613c0 e6994000    0     0     0 0000204 norm[IWAIT] irq16: em0
    7 caa615a0 e6995000    0     0     0 0000204 norm[SLPQ  actask =
c06bb0cc][SLP] acpi_task2
    6 caa61780 e6996000    0     0     0 0000204 norm[SLPQ  actask =
c06bb0cc][SLP] acpi_task1
    5 caa61960 e6997000    0     0     0 0000204 norm[SLPQ  actask =
c06bb0cc][SLP] acpi_task0
   24 c6a7a1e0 e4f56000    0     0     0 0000204 new [IWAIT] irq9: acpi0
   23 c6a7a3c0 e4f57000    0     0     0 0000204 norm[IWAIT] swi3: =
cambio
   22 c6a7a5a0 e4f58000    0     0     0 0000204 new [IWAIT] swi2: =
camnet
   21 c6a7a780 e4f59000    0     0     0 0000204 new [IWAIT] swi5:+
   20 c6a7a960 e4f5a000    0     0     0 0000204 new [IWAIT] swi6: task =
queue
   19 c6a7ab40 e4f5b000    0     0     0 0000204 norm[IWAIT] swi6: =
acpitaskq
   18 c6a7ad20 e4f83000    0     0     0 0000204 norm[SLPQ   sleep =
c0577100][SLP] random
    4 ca948000 e6985000    0     0     0 0000204 norm[SLPQ  g_down =
c0583e38][SLP] g_down
    3 ca9481e0 e6986000    0     0     0 0000204 norm[SLPQ    g_up =
c0583e34][SLP] g_up
    2 ca9483c0 e6987000    0     0     0 0000204 norm[SLPQ  g_events =
c0583e2c][SLP] g_event
   17 c6a73000 e4eff000    0     0     0 0000204 new [IWAIT] swi4: vm
   16 c6a731e0 e4f4e000    0     0     0 000020c norm[IWAIT] swi7: =
tty:sio clock
   15 c6a733c0 e4f4f000    0     0     0 0000204 norm[IWAIT] swi1: net
   14 c6a735a0 e4f50000    0     0     0 000020c norm[CPU 0] idle: cpu0
   13 c6a73780 e4f51000    0     0     0 000020c norm[CPU 1] idle: cpu1
   12 c6a73960 e4f52000    0     0     0 000020c norm[Can run] idle: =
cpu2
   11 c6a73b40 e4f53000    0     0     0 000020c norm[CPU 3] idle: cpu3
    1 c6a73d20 e4f54000    0     0     1 0004200 norm[SLPQ    wait =
c6a73d20][SLP] init
   10 c6a7a000 e4f55000    0     0     0 0000204 norm[CVQ  ktrace =
c05873b4][SLP] ktrace
    0 c0583f20 c06eb000    0     0     0 0000200 norm[SLPQ   sched =
c0583f20][SLP] swapper
db> panic
panic: from debugger
cpuid =3D 2; lapic.id =3D 01000000
boot() called on cpu#2
Uptime: 2d0h27m41s
Terminate ACPI
panic: absolutely cannot call smp_ipi_shootdown with interrupts already =
disabled
cpuid =3D 2; lapic.id =3D 01000000
boot() called on cpu#2
Uptime: 2d0h27m41s
Terminate ACPI
Automatic reboot in 15 seconds - press a key on the console to abort

------=_NextPart_000_000B_01C3567C.87B07DD0
Content-Type: text/plain;
	name="kernel.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="kernel.txt"

#
# CUSTOM -- Custom kernel
#
#

include SMP

ident           CUSTOM

# Debugging for use in -current
options        DDB                     #Enable the kernel debugger

# USB support
nodevice          uhci            # UHCI PCI->USB interface
nodevice          ohci            # OHCI PCI->USB interface
nodevice          usb             # USB Bus (required)
#device         udbp            # USB Double Bulk Pipe devices
nodevice          ugen            # Generic
nodevice          uhid            # "Human Interface Devices"
nodevice          ukbd            # Keyboard
nodevice          ulpt            # Printer
nodevice          umass           # Disks/Mass storage - Requires scbus =
and da
nodevice          ums             # Mouse
nodevice          urio            # Diamond Rio 500 MP3 player
nodevice          uscanner        # Scanners
# USB Ethernet, requires mii
nodevice          aue             # ADMtek USB ethernet
nodevice          axe             # ASIX Electronics USB ethernet
nodevice          cue             # CATC USB ethernet
nodevice          kue             # Kawasaki LSI USB ethernet

------=_NextPart_000_000B_01C3567C.87B07DD0--



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