Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2006 08:59:55 -0500
From:      "Larry Rosenman" <ler@lerctr.org>
To:        <Freebsd-amd64@freebsd.org>
Subject:   RE: Random Crash/Dump/6.2-PRE (30/Sep/2006 sources)....
Message-ID:  <004701c6ed3d$8e0f4070$0202fea9@SURGIENT.COM>
In-Reply-To: <000001c6ed3a$1e31e3f0$0202fea9@SURGIENT.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
Larry Rosenman wrote:
> Gavin Atkinson wrote:
>> What is line 378 of this file on your system?  As far as I can tell,
>> it's not actually part of pmap_remove_pages().  With the corefile,
>> using kgdb to print the panicstr (with "p panicstr") may be of use,
>> to confirm it is connected. 
>> 
>> Gavin
> 
> PMAP_INLINE pt_entry_t *
> vtopte(vm_offset_t va)
> {
>         u_int64_t mask = ((1ul << (NPTEPGSHIFT + NPDEPGSHIFT +
> NPDPEPGSHIFT + NP
> ML4EPGSHIFT)) - 1);
> 
>         return (PTmap + ((va >> PAGE_SHIFT) & mask)); }
> 
> Line 378 is the first line of that function.
> 
> (kgdb) p panicstr
> $1 = 0xffffffff80657ee0 "page fault"
> (kgdb)
> 
> I have the core and kernel saved off, as well as the sources.....

My offer of a shell account and access to the dump/kernel/whatever
Still stands.  

Here's the bt again:
$ cat script.0
Script started on Mon Oct  2 05:59:35 2006
# kgdb kernel.0 vmcore.0
[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 "amd64-marcel-freebsd".

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xffff800000004200
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xffffffff80448c6b
stack pointer           = 0x10:0xffffffffb5f0aa70
frame pointer           = 0x10:0x840
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 82598 (exim-4.63-0)
trap number             = 12
panic: page fault
cpuid = 0
Uptime: 1d10h4m44s
Dumping 4095 MB (3 chunks)
  chunk 0: 1MB (152 pages) ... ok
  chunk 1: 3071MB (786032 pages) 3055 3039 3023 3007 2991 2975 2959 2943
2927 2911 2895 2879 2863 2847 2831 2815 2799 2783 2767 2751 2735 2719 2703
2687 2671 2655 2639 2623 2607 2591 2575 2559 2543 2527 2511 2495 2479 2463
2447 2431 2415 2399 2383 2367 2351 2335 2319 2303 2287 2271 2255 2239 2223
2207 2191 2175 2159 2143 2127 2111 2095 2079 2063 2047 2031 2015 1999 1983
1967 1951 1935 1919 1903 1887 1871 1855 1839 1823 1807 1791 1775 1759 1743
1727 1711 1695 1679 1663 1647 1631 1615 1599 1583 1567 1551 1535 1519 1503
1487 1471 1455 1439 1423 1407 1391 1375 1359 1343 1327 1311 1295 1279 1263
1247 1231 1215 1199 1183 1167 1151 1135 1119 1103 1087 1071 1055 1039 1023
1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719
703 687 671 655 639 623 607 591 575 559 543 527 511 495 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 ... ok
  chunk 2: 1024MB (262144 pages) 1009 993 977 961 945 929 913 897 881 865
849 833 817 801 785 769 753 737 721 705 689 673 657 641 625 609 593 577 561
545 529 513 497 481 465 449 433 417 401 385 369 353 337 321 305 289 273 257
241 225 209 193 177 161 145 129 113 97 81 65 49 33 17 1

#0  doadump () at pcpu.h:172
172     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:172
#1  0x0000000000000004 in ?? ()
#2  0xffffffff802abcd7 in boot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:409
#3  0xffffffff802ac371 in panic (fmt=0xffffff0061c20000 "Xs\021\217")
    at /usr/src/sys/kern/kern_shutdown.c:565
#4  0xffffffff8044e1bf in trap_fatal (frame=0xffffff0061c20000,
    eva=18446742976598209368) at /usr/src/sys/amd64/amd64/trap.c:660
#5  0xffffffff8044e4df in trap_pfault (frame=0xffffffffb5f0a9c0, usermode=0)
    at /usr/src/sys/amd64/amd64/trap.c:573
#6  0xffffffff8044e80d in trap (frame=
      {tf_rdi = -140737488355328, tf_rsi = -140737488338432, tf_rdx = 0,
tf_rcx = 8650752, tf_r8 = 178, tf_r9 = -1096448638976, tf_rax = 0, tf_rbx =
-2131593008, tf_rbp = 2112, tf_r10 = 1249540, tf_r11 = 132564, tf_r12 =
-1096474529440, tf_r13 = -140462610448384, tf_r14 = 140737488355328, tf_r15
= 0, tf_trapno = 12, tf_addr = -140737488338432, tf_flags = -2104448720,
tf_err = 0, tf_rip = -2142991253, tf_cs = 8, tf_rflags = 66050, tf_rsp =
-1242518912, tf_ss = 16})
    at /usr/src/sys/amd64/amd64/trap.c:352
#7  0xffffffff80439a3b in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:168
#8  0xffffffff80448c6b in pmap_remove_pages (pmap=0xffffff00b5067160, sva=0,
    eva=140737488355328) at /usr/src/sys/amd64/amd64/pmap.c:378
#9  0xffffffff80407364 in vmspace_exit (td=0xffffff0061c20000) at
vm_map.h:251
---Type <return> to continue, or q <return> to quit---
#10 0xffffffff8028d59d in exit1 (td=0xffffff0061c20000, rv=0)
    at /usr/src/sys/kern/kern_exit.c:295
#11 0xffffffff8028e5ee in sys_exit (td=0xffff800000000000,
    uap=0xffff800000004200) at /usr/src/sys/kern/kern_exit.c:99
#12 0xffffffff8044f081 in syscall (frame=
      {tf_rdi = 0, tf_rsi = 6311936, tf_rdx = 23, tf_rcx = 48, tf_r8 =
-1242518944, tf_r9 = 140737488349032, tf_rax = 1, tf_rbx = 0, tf_rbp =
6291740, tf_r10 = 140737488347824, tf_r11 = 4, tf_r12 = 0, tf_r13 = 0,
tf_r14 = 0, tf_r15 = 0, tf_trapno = 12, tf_addr = 6262784, tf_flags = 1,
tf_err = 2, tf_rip = 34384922508, tf_cs = 43, tf_rflags = 514, tf_rsp =
140737488349160, tf_ss = 35})
    at /usr/src/sys/amd64/amd64/trap.c:792
#13 0xffffffff80439bd8 in Xfast_syscall ()
    at /usr/src/sys/amd64/amd64/exception.S:270
#14 0x000000080180478c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) #

Script done on Mon Oct  2 05:59:55 2006
$


-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 512-248-2683             E-Mail: ler@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004701c6ed3d$8e0f4070$0202fea9>