kernel panic at giant_poll (kern_conf.c:385)

From: Pietro Cerutti <gahr_at_FreeBSD.org>
Date: Tue, 04 Mar 2008 12:27:04 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear all,

FreeBSD gahrtop.localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #8: Mon Mar  3
14:07:47 CET 2008
root_at_gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034  i386

vmcore and kernel.symbols available at:
http://www.gahr.ch/FreeBSD/misc/crash17/vmcore.17
http://www.gahr.ch/FreeBSD/misc/crash17/kernel.symbols

(if you get a page not found, 's|www.gahr.ch|213.142.182.66|', DNS are
still refreshing after relocation...)

Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x60
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc055d43b
stack pointer           = 0x28:0xe757ca68
frame pointer           = 0x28:0xe757ca84
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         = 399 (moused)
trap number             = 12
panic: page fault
cpuid = 1
Uptime: 54m21s
Physical memory: 2031 MB
Dumping 83 MB: 68 52 36 20 4

(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc0592a86 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:417
#2  0xc0592ec8 in panic (fmt=0x104 <Address 0x104 out of bounds>) at
/usr/src/sys/kern/kern_shutdown.c:571
#3  0xc07f5b8a in trap_fatal (frame=0xe757ca28, eva=40) at
/usr/src/sys/i386/i386/trap.c:898
#4  0xc07f5ef9 in trap_pfault (frame=0xe757ca28, usermode=0, eva=96) at
/usr/src/sys/i386/i386/trap.c:811
#5  0xc07f68db in trap (frame=0xe757ca28) at
/usr/src/sys/i386/i386/trap.c:489
#6  0xc07dd1fb in calltrap () at /usr/src/sys/i386/i386/exception.s:146
#7  0xc055d43b in giant_poll (dev=0xc4c09e00, events=64, td=0xc4e6b220)
at /usr/src/sys/kern/kern_conf.c:385
#8  0xc05161d5 in devfs_poll_f (fp=0xc4e715e4, events=64,
cred=0xc4ace500, td=0xc4e6b220) at /usr/src/sys/fs/devfs/devfs_vnops.c:842
#9  0xc05c9fca in kern_select (td=0xc4e6b220, nd=20, fd_in=0xbfbfea70,
fd_ou=0x0, fd_ex=0x0, tvp=0xe757cc6c) at file.h:265
#10 0xc05ca41c in select (td=0xc4e6b220, uap=0xe757ccf8) at
/usr/src/sys/kern/sys_generic.c:758
#11 0xc07f6142 in syscall (frame=0xe757cd38) at
/usr/src/sys/i386/i386/trap.c:1034
#12 0xc07dd260 in Xint0x80_syscall () at
/usr/src/sys/i386/i386/exception.s:203
#13 0x00000033 in ?? ()
(kgdb) up 7
#7  0xc055d43b in giant_poll (dev=0xc4c09e00, events=64, td=0xc4e6b220)
at /usr/src/sys/kern/kern_conf.c:385
385             retval = dev->si_devsw->d_gianttrick->
(kgdb) list
380     giant_poll(struct cdev *dev, int events, struct thread *td)
381     {
382             int retval;
383
384             mtx_lock(&Giant);
385             retval = dev->si_devsw->d_gianttrick->
386                 d_poll(dev, events, td);
387             mtx_unlock(&Giant);
388             return (retval);
389     }
(kgdb) set print pretty
(kgdb) print *dev
$2 = {
  si_priv = 0xc4c09e00,
  si_flags = 0,
  si_atime = {
    tv_sec = 1204568256,
    tv_nsec = 0
  },
  si_ctime = {
    tv_sec = 0,
    tv_nsec = 0
  },
  si_mtime = {
    tv_sec = 0,
    tv_nsec = 0
  },
  si_uid = 0,
  si_gid = 5,
  si_mode = 420,
  si_cred = 0x0,
  si_drv0 = 0,
  si_refcount = 3,
  si_list = {
    le_next = 0x0,
    le_prev = 0xc0871a58
  },
  si_clone = {
    le_next = 0x0,
    le_prev = 0x0
  },
  si_children = {
    lh_first = 0x0
  },
  si_siblings = {
    le_next = 0x0,
    le_prev = 0x0
  },
  si_parent = 0x0,
  si_name = 0xc4c09e78 "ums0",
  si_drv1 = 0x0,
  si_drv2 = 0x0,
  si_devsw = 0x0,
  si_iosize_max = 65536,
  si_usecount = 1,
  si_threadcount = 1,
  __si_u = {
- ---Type <return> to continue, or q <return> to quit---
    __sit_tty = 0x0,
    __sid_snapdata = 0x0
  },
  __si_namebuf = "ums0", '\0' <repeats 59 times>
}

Please note that dev->si_devsw is NULL, and kern_conf.c:385 tries to
dereference it.



- --
Pietro Cerutti
gahr_at_FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEAREKAAYFAkfNMggACgkQwMJqmJVx947l6gCaAo9sUW3uoFs+cnxMwtz5d9gF
VDoAoLw+0SE9O9Bs5jydXNi1h8mfNw84
=dGbh
-----END PGP SIGNATURE-----
Received on Tue Mar 04 2008 - 11:06:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:28 UTC