Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2010 13:13:39 +0100
From:      Glenn Camilleri <glenncam@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Kernel dump crash
Message-ID:  <c0e6d201003160513p50f6f277k88bb6e3241ca5706@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,



I have some processes and programs that are custom made to run on FreeBSD. =
I
suspect some poor implementation of tcp in these programs, but don=92t have
the real proof.



This is the info I got from the crash dump:



root@scat /usr/obj/usr/src/sys/SMP # uname -a

FreeBSD scat.setcom 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30
UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386





root@scat /usr/obj/usr/src/sys/SMP # kgdb kernel.debug /home/dump/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 ar=
e

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".



Unread portion of the kernel message buffer:





Fatal trap 12: page fault while in kernel mode

cpuid =3D 0; apic id =3D 00

fault virtual address   =3D 0x8

fault code              =3D supervisor read, page not present

instruction pointer     =3D 0x20:0xc06e0d3c

stack pointer           =3D 0x28:0xe3832910

frame pointer           =3D 0x28:0xe3832a2c

code segment            =3D base 0x0, limit 0xfffff, type 0x1b

                        =3D DPL 0, pres 1, def32 1, gran 1

processor eflags        =3D interrupt enabled, resume, IOPL =3D 0

current process         =3D 12 (swi1: net)

trap number             =3D 12

panic: page fault

cpuid =3D 0

Uptime: 6h41m17s

Dumping 1014 MB (2 chunks)

  chunk 0: 1MB (159 pages) ... ok

  chunk 1: 1014MB (259552 pages) 998 982 966 950 934 918 902 886 870 854 83=
8
822 806 790 774 758 742 726 710 694 678 662 646 630 614 598 582 566 550 534
518 502 486 470 454 438 422 406 390 374 358 342 326 310 294 278 262 246 230
214 198 182 166 150 134 118 102 86 70 54 38 22 6



#0  doadump () at pcpu.h:165

165             __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td));

(kgdb) where

#0  doadump () at pcpu.h:165

#1  0xc067550a in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:4=
09

#2  0xc0675831 in panic (fmt=3D0xc08e46e1 "%s") at
/usr/src/sys/kern/kern_shutdown.c:565

#3  0xc088e29c in trap_fatal (frame=3D0xe38328d0, eva=3D8) at
/usr/src/sys/i386/i386/trap.c:837

#4  0xc088dfdb in trap_pfault (frame=3D0xe38328d0, usermode=3D0, eva=3D8) a=
t
/usr/src/sys/i386/i386/trap.c:745

#5  0xc088dc15 in trap (frame=3D

      {tf_fs =3D -969277432, tf_es =3D -1066532824, tf_ds =3D -969277400, t=
f_edi =3D
0, tf_esi =3D -975366656, tf_ebp =3D -477943252, tf_isp =3D -477943556, tf_=
ebx =3D
4, tf_edx =3D -975366656, tf_ecx =3D -975366572, tf_eax =3D 0, tf_trapno =
=3D 12,
tf_err =3D 0, tf_eip =3D -1066529476, tf_cs =3D 32, tf_eflags =3D 66178, tf=
_esp =3D 0,
tf_ss =3D 4})

    at /usr/src/sys/i386/i386/trap.c:435

#6  0xc0879d4a in calltrap () at /usr/src/sys/i386/i386/exception.s:139

#7  0xc06e0d3c in bpf_mtap2 (bp=3D0x0, data=3D0x0, dlen=3D4, m=3D0xc5dd1600=
) at
/usr/src/sys/net/bpf.c:1374

#8  0xc06e95bb in if_simloop (ifp=3D0xc51b3800, m=3D0xc5dd1600, af=3D2, hle=
n=3D0) at
/usr/src/sys/net/if_loop.c:284

#9  0xc06e954c in looutput (ifp=3D0xc51b3800, m=3D0xc5dd1600, dst=3D0xe3832=
aac,
rt=3D0xc5440c60) at /usr/src/sys/net/if_loop.c:234

#10 0xc0717a34 in ip_output (m=3D0xc5dd1600, opt=3D0xc51b3800, ro=3D0xe3832=
aa8,
flags=3D0, imo=3D0x0, inp=3D0xc61e85a0) at /usr/src/sys/netinet/ip_output.c=
:777

#11 0xc0720c0e in tcp_output (tp=3D0xc63871d0) at
/usr/src/sys/netinet/tcp_output.c:1080

#12 0xc071eeed in tcp_input (m=3D0xc63ae100, off0=3D20) at
/usr/src/sys/netinet/tcp_input.c:2471

#13 0xc0715a89 in ip_input (m=3D0xc63ae100) at
/usr/src/sys/netinet/ip_input.c:785

#14 0xc06ef243 in netisr_processqueue (ni=3D0xc09e6878) at
/usr/src/sys/net/netisr.c:236

#15 0xc06ef442 in swi_net (dummy=3D0x0) at /usr/src/sys/net/netisr.c:349

#16 0xc065fe99 in ithread_execute_handlers (p=3D0xc4ed0860, ie=3D0xc4f25600=
) at
/usr/src/sys/kern/kern_intr.c:682

#17 0xc065ffa9 in ithread_loop (arg=3D0xc4f11140) at
/usr/src/sys/kern/kern_intr.c:765

#18 0xc065ec4d in fork_exit (callout=3D0xc065ff54 <ithread_loop>,
arg=3D0xc4f11140, frame=3D0xe3832d38) at /usr/src/sys/kern/kern_fork.c:821

#19 0xc0879dac in fork_trampoline () at
/usr/src/sys/i386/i386/exception.s:208

(kgdb)





Can you kindly advise ?



BR,

Glenn Camilleri

--=20
Best Regards,
Glenn Camilleri



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