ncplogin panic [backtrace with module symbols loaded]

m.ehinger at ltur.de m.ehinger at ltur.de
Wed Aug 2 08:08:37 UTC 2006


Hi,

here is mine backtrace with module symbols loaded.

Thanks,

Maik

Kernel Source:           /usr/obj/usr/src/sys/GENERIC
Getting KLD information and locations...
Traceback (most recent call last):
  File "kld_deb.py", line 139, in ?
    a = int(j[5], 16)
ValueError: invalid literal for int(): file
source /tmp/kgdb.asf.6179
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".
Ready to go.  Enter 'tr' to connect to the remote target
with /dev/cuad0, 'tr /dev/cuad1' to connect to a different port
or 'trf portno' to connect to the remote target with the firewire
interface.  portno defaults to 5556.

Type 'getsyms' after connection to load kld symbols.

If you're debugging a local system, you can use 'kldsyms' instead
to load the kld symbols.  That's a less obnoxious interface.

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
fault virtual address          = 0x0
fault code                     = supervisor write, page not present
instruction pointer            = 0x20:0xc068a3fc
stack pointer                    = 0x28:0xdcebc8dc
frame pointer                    = 0x28:0xdcebc8e4
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                      = 772 (ncplogin)
trap number                    = 12
panic: page fault
Uptime: 16m46s
Dumping 494 MB (2 chunks)
  chunk 0: 1MB (159 pages) ... ok
  chunk 1: 495MB (126511 pages) 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95
79 63 47 31 15

#0  doadump () at pcpu.h:165
165                      __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) getsm yms
During symbol reading, Incomplete CFI data; unspecified registers at 0xc0666959.
Id Refs Address    Size     Name
 1   18 0xc0400000 6e15d0   kernel
 2    1 0xc0ae2000 5f60     snd_ich.ko
 3    2 0xc0ae8000 22b88    sound.ko
 4    2 0xc0b0b000 fd68     drm.ko
 5    1 0xc0b1b000 615c     i915.ko
 6    1 0xc0b22000 5984c    acpi.ko
 7    1 0xc3574000 16000    linux.ko
 8    1 0xc369b000 4000     logo_saver.ko
 9    1 0xc3816000 8000     ncp.ko
10    1 0xc381e000 3000     libmchain.ko
Select the list above with the mouse, paste into the screen
and then press ^D.  Yes, this is annoying.
 1   18 0xc0400000 6e15d0   kernel
 2    1 0xc0ae2000 5f60     snd_ich.ko
 3    2 0xc0ae8000 22b88    sound.ko
 4    2 0xc0b0b000 fd68     drm.ko
 5    1 0xc0b1b000 615c     i915.ko
 6    1 0xc0b22000 5984c    acpi.ko
 7    1 0xc3574000 16000    linux.ko
 8    1 0xc369b000 4000     logo_saver.ko
 9    1 0xc3816000 8000     ncp.ko
10    1 0xc381e000 3000     libmchain.ko
^Dadd symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/acpi/acpi/acpi.ko.debug" at
             .text_addr = 0xc0b32de0
             .data_addr = 0xc0b661a0
             .bss_addr = 0xc0b684e0
add symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/drm/drm/drm.ko.debug" at
             .text_addr = 0xc0b0e68c
             .data_addr = 0xc0b18100
             .bss_addr = 0xc0b18b24
add symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/drm/i915/i915.ko.debug" at
             .text_addr = 0xc0b1c1b4
             .data_addr = 0xc0b1fd80
             .bss_addr = 0xc0b1fff4
add symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/libmchain/libmchain.ko.debug" at
             .text_addr = 0xc381e60c
             .data_addr = 0xc38200b8
             .bss_addr = 0xc3820150
add symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/linux/linux.ko.debug" at
             .text_addr = 0xc357ab44
             .data_addr = 0xc3588000
             .bss_addr = 0xc35896c0
add symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/ncp/ncp.ko.debug" at
             .text_addr = 0xc3817e40
             .data_addr = 0xc381d280
             .bss_addr = 0xc381db80
add symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/sound/sound/sound.ko.debug" at
             .text_addr = 0xc0af0c30
             .data_addr = 0xc0aff4c0
             .bss_addr = 0xc0b02d80
add symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/sound/driver/ich/snd_ich.ko.debug" at
             .text_addr = 0xc0ae3b08
             .data_addr = 0xc0ae6960
             .bss_addr = 0xc0ae6bdc
add symbol table from file "/usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/syscons/logo/logo_saver.ko.debug" at
             .text_addr = 0xc369b784
             .data_addr = 0xc369cb60
             .bss_addr = 0xc369edcc

(kgdb) whe   bt
#0  doadump () at pcpu.h:165
During symbol reading, Incomplete CFI data; unspecified registers at 0xc0666959.
#1  0xc0666e3a in boot (howto=0x104) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc06670d0 in panic (fmt=0xc08cbf3d "%s") at /usr/src/sys/kern/kern_shutdown.c:565
#3  0xc0876534 in trap_fatal (frame=0xdcebc89c, eva=0x0) at /usr/src/sys/i386/i386/trap.c:836
#4  0xc087629b in trap_pfault (frame=0xdcebc89c, usermode=0x0, eva=0x0) at /usr/src/sys/i386/i386/trap.c:744
#5  0xc0875ed9 in trap (frame=
      {tf_fs = 0x360008, tf_es = 0x28, tf_ds = 0xf6520028, tf_edi = 0x0, tf_esi = 0xc33f9a80, tf_ebp = 0xdcebc8e4, tf_isp =
0xdcebc8c8, tf_ebx = 0xc363a8a8, tf_edx = 0xc33f9a80, tf_ecx = 0xc363a858, tf_eax = 0x0, tf_trapno = 0xc, tf_err = 0x2, tf_eip =
0xc068a3fc, tf_cs = 0x20, tf_eflags = 0x10246, tf_esp = 0xc363a858, tf_ss = 0x1})
    at /usr/src/sys/i386/i386/trap.c:434
#6  0xc086465a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc068a3fc in selrecord (selector=0xc33f9a80, sip=0xc363a8a8) at /usr/src/sys/kern/sys_generic.c:1105
#8  0xc06a1b0f in sopoll (so=0xc363a858, events=0x1, active_cred=0x0, td=0xc33f9a80)
    at /usr/src/sys/kern/uipc_socket.c:2059
#9  0xc3818de5 in ncp_poll (so=0xc363a858, events=0x1) at /usr/src/sys/modules/ncp/../../netncp/ncp_sock.c:192
#10 0xc381b74a in ncp_request_int (rqp=0xc3498080) at /usr/src/sys/modules/ncp/../../netncp/ncp_rq.c:270
#11 0xc38195ee in ncp_ncp_connect (conn=0xc37e7b00) at /usr/src/sys/modules/ncp/../../netncp/ncp_ncp.c:122
#12 0xc3818456 in ncp_conn_reconnect (ncp=0xc37e7b00) at /usr/src/sys/modules/ncp/../../netncp/ncp_conn.c:333
#13 0xc381aa57 in ncp_ioctl (dev=0xc37e7500, cmd=0x0, data=0xc32ae030 "@ì¿¿èë¿¿strings", flag=0x3, td=0xc33f9a80)
    at /usr/src/sys/modules/ncp/../../netncp/ncp_mod.c:121
#14 0xc063dd7a in giant_ioctl (dev=0xc37e7500, cmd=0x80084e64, data=0xc32ae030 "@ì¿¿èë¿¿strings", fflag=0x3,
    td=0xc33f9a80) at /usr/src/sys/kern/kern_conf.c:288
#15 0xc061bb07 in devfs_ioctl_f (fp=0xc36d6000, com=0x80084e64, data=0xc32ae030, cred=0xc3427e00, td=0xc33f9a80)
    at /usr/src/sys/fs/devfs/devfs_vnops.c:407
#16 0xc06891c5 in ioctl (td=0xc33f9a80, uap=0xdcebcd04) at file.h:264
#17 0xc087684b in syscall (frame=
      {tf_fs = 0x3b, tf_es = 0x3b, tf_ds = 0x3b, tf_edi = 0x3, tf_esi = 0x0, tf_ebp = 0xbfbfebc8, tf_isp = 0xdcebcd64, tf_ebx =
0x28085790, tf_edx = 0xffffffff, tf_ecx = 0x28155d80, tf_eax = 0x36, tf_trapno = 0xc, tf_err = 0x2, tf_eip = 0x281472c3, tf_cs =
0x33, tf_eflags = 0x212, tf_esp = 0xbfbfeb9c, tf_ss = 0x3b}) at /usr/src/sys/i386/i386/trap.c:981
#18 0xc08646af in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200
#19 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)

(kgdb) i l *0xc068a3fc
0xc068a3fc is in selrecord (/usr/src/sys/kern/sys_generic.c:1105).
1100                      * it alone as we've already added pointed it at us and added it to
1101                      * our list.
1102                      */
1103                     if (sip->si_thread == NULL) {
1104                                 sip->si_thread = selector;
1105                                 TAILQ_INSERT_TAIL(&selector->td_selq, sip, si_thrlist);
1106                     } else if (sip->si_thread != selector) {
1107                                 sip->si_flags |= SI_COLL;
1108                     }
1109

(kgdb) up 9
#9  0xc3818de5 in ncp_poll (so=0xc363a858, events=0x1) at /usr/src/sys/modules/ncp/../../netncp/ncp_sock.c:192
warning: Source file is more recent than executable.

192              return so->so_proto->pr_usrreqs->pru_sopoll(so, events, cred, td);
(kgdb)



More information about the freebsd-stable mailing list