Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 11:05:25 +0200 (CEST)
From:      Michael Reifenberger <root@nihil.plaut.de>
To:        <freebsd-stable@freebsd.org>
Subject:   panic on -stable during ppp->dial (PPP NETGRAPH PPPoE)
Message-ID:  <20010711105639.H35319-200000@nihil>

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

[-- Attachment #1 --]
Hi,
on a pentium 233 IPC with a dual fxp (Intel Pro 100+) card,
with this ppp configuration:

...
tdsl:
 set device PPPoE:fxp1
...

and the attached kernel configuration file (mike)
I get the following panic:

IdlePTD 4132864
initial pcb at 335c40
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x0
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc014cf86
stack pointer           = 0x10:0xc94f6cbc
frame pointer           = 0x10:0xc94f6cd4
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         = 230 (ppp)
interrupt mask          = net
trap number             = 12
panic: page fault

...

(kgdb) bt
#0  dumpsys () at ../../kern/kern_shutdown.c:472
#1  0xc01842d7 in boot (howto=256) at ../../kern/kern_shutdown.c:312
#2  0xc0184654 in poweroff_wait (junk=0xc02de6af, howto=-943078816)
    at ../../kern/kern_shutdown.c:559
#3  0xc0290031 in trap_fatal (frame=0xc94f6c7c, eva=0) at ../../i386/i386/trap.c:951
#4  0xc028fd09 in trap_pfault (frame=0xc94f6c7c, usermode=0, eva=0) at ../../i386/i386/trap.c:844
#5  0xc028f8c3 in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 6422528,
      tf_esi = -1065923840, tf_ebp = -917541676, tf_isp = -917541720, tf_ebx = -1057174016,
      tf_edx = -1057174016, tf_ecx = -1065923840, tf_eax = 0, tf_trapno = 12, tf_err = 0,
      tf_eip = -1072377978, tf_cs = 8, tf_eflags = 66118, tf_esp = -1057174016,
      tf_ss = -1065923840}) at ../../i386/i386/trap.c:443
#6  0xc014cf86 in fxp_start (ifp=0xc0fcce00) at ../../dev/fxp/if_fxp.c:896
#7  0xc01c759c in ether_output_frame (ifp=0xc0fcce00, m=0xc0774b00)
    at ../../net/if_ethersubr.c:399
#8  0xc01d697c in ng_ether_rcv_lower (node=0xc0fd9400, m=0xc0774b00, meta=0x0)
    at ../../netgraph/ng_ether.c:629
#9  0xc01d68a5 in ng_ether_rcvdata (hook=0xc0fe54e0, m=0xc0774b00, meta=0x0)
    at ../../netgraph/ng_ether.c:595
#10 0xc01d3b89 in ng_send_data (hook=0xc0fe5520, m=0xc0774b00, meta=0x0)
    at ../../netgraph/ng_base.c:1648
#11 0xc01d8439 in sendpacket (sp=0xc10b1b00) at ../../netgraph/ng_pppoe.c:1451
#12 0xc01d76ee in pppoe_start (sp=0xc10b1b00) at ../../netgraph/ng_pppoe.c:754
#13 0xc01d7574 in ng_pppoe_rcvmsg (node=0xc10b1b40, msg=0xc10b1ac0, retaddr=0xc0fe54a0 "[8]:",
    rptr=0xc94f6e28) at ../../netgraph/ng_pppoe.c:660
#14 0xc01d30ad in ng_send_msg (here=0xc10b1bc0, msg=0xc10b1ac0, address=0xc0fb9640 ".:tun0",
    rptr=0xc94f6e28) at ../../netgraph/ng_base.c:1180
#15 0xc01d86a4 in ngc_send (so=0xc86a9c00, flags=0, m=0xc0772800, addr=0xc0fb9650, control=0x0,
    p=0xc7c9c260) at ../../netgraph/ng_socket.c:242
#16 0xc01a260b in sosend (so=0xc86a9c00, addr=0xc0fb9650, uio=0xc94f6ed0, top=0xc0772800,
    control=0x0, flags=0, p=0xc7c9c260) at ../../kern/uipc_socket.c:611
#17 0xc01a5e7f in sendit (p=0xc7c9c260, s=2, mp=0xc94f6f10, flags=0)
    at ../../kern/uipc_syscalls.c:583
#18 0xc01a5f82 in sendto (p=0xc7c9c260, uap=0xc94f6f80) at ../../kern/uipc_syscalls.c:636
#19 0xc02902dd in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077941571,
      tf_esi = -1077941578, tf_ebp = -1077941064, tf_isp = -917540908, tf_ebx = 672875720,
      tf_edx = -1077941580, tf_ecx = -1077941580, tf_eax = 133, tf_trapno = 12, tf_err = 2,
      tf_eip = 673118132, tf_cs = 31, tf_eflags = 518, tf_esp = -1077941668, tf_ss = 47})
    at ../../i386/i386/trap.c:1150
...
(kgdb) up
#6  0xc014cf86 in fxp_start (ifp=0xc0fcce00) at ../../dev/fxp/if_fxp.c:896
896                     txp = sc->cbl_last->next;
(kgdb) l
891                     IF_DEQUEUE(&ifp->if_snd, mb_head);
892
893                     /*
894                      * Get pointer to next available tx desc.
895                      */
896                     txp = sc->cbl_last->next;
897
898                     /*
899                      * Go through each of the mbufs in the chain and initialize
900                      * the transmit buffer descriptors with the physical address
(kgdb) p sc
$1 = (struct fxp_softc *) 0xc0fcce00
(kgdb) p sc->cbl_last
$2 = (struct fxp_cb_tx *) 0x0

Anything else I can debug?

Bye!
----
Michael Reifenberger
^.*Plaut.*$, IT, R/3 Basis, GPS

[-- Attachment #2 --]
#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
# For more information read the handbook part System Administration -> 
# Configuring the FreeBSD Kernel -> The Configuration File. 
# The handbook is available in /usr/share/doc/handbook or online as
# latest version from the FreeBSD World Wide Web server 
# <URL:http://www.FreeBSD.ORG/>;
#
# An exhaustive list of options and more detailed explanations of the 
# device lines is present in the ./LINT configuration file. If you are 
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
#	$Id: GENERIC,v 1.132 1998/11/26 23:13:11 n_hibma Exp $
machine         i386
cpu		I586_CPU
cpu		I686_CPU
ident		mike
maxusers	128
options		PQ_CACHESIZE=512
#options         PQ_LARGECACHE           # color for 512k/16k cache
makeoptions	DEBUG="-g"

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		FFS_ROOT		#FFS usable as root device [keep this!]
options		MFS			#Memory Filesystem
options		MFS_ROOT		#MFS usable as root device, "MFS" req'ed
options		NFS			#Network Filesystem
options		NFS_ROOT		#NFS usable as root device, "NFS" req'ed
options		MSDOSFS			#MSDOS Filesystem
#options	MSDOSFS_ROOT		#CD-ROM usable as root. "CD9660" req'ed
options		CD9660		#ISO 9660 Filesystem
options		CD9660_ROOT		#CD-ROM usable as root. "CD9660" req'ed
options		PROCFS			#Process filesystem
options		COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
#options		SCSI_DELAY=2000	#Be pessimistic about Joe SCSI device
options		UCONSOLE		#Allow users to grab the console
#options		FAILSAFE		#Be conservative
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor
#options		DDB
#options		DDB_UNATTENDED
options		KTRACE
options		SOFTUPDATES
options		P1003_1B
options		_KPOSIX_PRIORITY_SCHEDULING
options		_KPOSIX_VERSION=199309L
#options		PPS_SYNC
#options		COMPAT_LINUX_THREADS
#options         INVARIANTS
#options         INVARIANT_SUPPORT   
#options		AHC_ALLOW_MEMIO
#options         MAXDSIZ="(512*1024*1024)"
#options         DFLDSIZ="(512*1024*1024)" 
#options		VINUMDEBUG
#options		MSGBUF_SIZE=16384

options		PNPBIOS
options		CLK_USE_TSC_CALIBRATION
options		CLK_USE_I8254_CALIBRATION


#config		kernel	root on da0

device	isa0
device	pci0

device	fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
device		fd1	at fdc0 drive 1

device     ata0
device         atadisk0
device         atapicd0
device         atapist0
device     ata1    at isa? port IO_WD1 irq 14
device     ata2    at isa? port IO_WD1 irq 15 
#device         wdc0    at isa? port IO_WD1 irq 14 flags 0xb0ffb0ff
#device         wd0     at wdc0 drive 0

# A single entry for any of these devices (ncr, ahb, ahc) is
# sufficient for any number of installed devices.
#device	ncr0
#device	ahb0
device	ahc0
#device	isp0

device	scbus0
device		da0
device		sa0
device		pass0
device		cd0	#Only need one of these, the code dynamically grows
#device		pt0 at scbus?    # SCSI processor type

device      atkbdc0 at isa? port IO_KBD
device          atkbd0  at atkbdc? irq 1
device          psm0    at atkbdc? irq 12
device          vga0    at isa? port ?
options		VESA
#pseudo-device   splash
device          sc0     at isa?


device		npx0	at nexus? port IO_NPX irq 13

#
# Laptop support (see LINT for more options)
#
#device		apm0    at nexus? # Advanced Power Management

device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
#device		sio2	at isa? disable port "IO_COM3" irq 11
#device		sio3	at isa? disable port "IO_COM4" irq 9

device      ppbus0
device      ppc0 at isa? port? flags 0x40 irq 7
device          lpt0 at ppbus?
device          ppi0 at ppbus?    
#device          pps0 at ppbus?    

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
#device dc0
device fxp0
#device tl0
#device tx0
#device vx0
#device xl0

#device ed0 at isa? port 0x280 irq 10 iomem 0xd8000
#device ep0 at isa? port 0x300 irq 10
#device ep0

device	miibus0

#options		IPFIREWALL
#options		IPFIREWALL_FORWARD
#options		IPFIREWALL_VERBOSE
#options		IPFIREWALL_VERBOSE_LIMIT=100
#options		IPDIVERT

options		IPFILTER
options		IPFILTER_LOG
options		IPSTEALTH

options		NETGRAPH
options		NETGRAPH_PPPOE
options		NETGRAPH_ETHER
options		NETGRAPH_SOCKET
options		NETGRAPH_BPF

pseudo-device	loop
pseudo-device	ether
pseudo-device	sppp	4
pseudo-device	tun	4
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	vn
pseudo-device	snp	3

device sbc0
device	pcm0
#device		pca0 at isa? port IO_TIMER1

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options		KTRACE		#kernel tracing

# This provides support for System V shared memory.
#
options         SYSVSHM
#options        SHMMAXPGS=102400      #400M
#options         SHMMAXPGS=262144      #1G
#options         SHMMNI=100
#options         SHMSEG=10
#options         SEMMNS=200
#options         SEMMNI=70
#new
options         SYSVSEM
options         SYSVMSG    

#  The `bpfilter' pseudo-device enables the Berkeley Packet Filter.  Be
#  aware of the legal and administrative consequences of enabling this
#  option.  The number of devices determines the maximum number of
#  simultaneous BPF clients programs runnable.
pseudo-device	bpf	4	#Berkeley packet filter


# USB support
#device    uhci0
#device    ohci0
#device    usb0
#
# for the moment we have to specify the priorities of the device
# drivers explicitly by the ordering in the list below. This will
# be changed in the future.
#
#device		umass0
#device		ums0
#device        ukbd0
#device        ulpt0
#device        uhid0
#device        ugen0
#
#options       USB_DEBUG
#options       USBVERBOSE

device		ifpi
#device		isic
#options		ELSA_QS1PCI
# ISDN Protocol Stack
# -------------------
# 
# Q.921 / layer 2 - i4b passive cards D channel handling
pseudo-device	"i4bq921"
#
# Q.931 / layer 3 - i4b passive cards D channel handling
pseudo-device	"i4bq931"
#
# layer 4 - i4b common passive and active card handling
pseudo-device	"i4b"
#
# ISDN devices
# ------------
#
# userland driver to do ISDN tracing (for passive cards only)
pseudo-device   "i4btrc"	2
#
# userland driver to control the whole thing
pseudo-device   "i4bctl"
#
# userland driver for access to raw B channel
pseudo-device   "i4brbch"       2
#
# userland driver for telephony
pseudo-device   "i4btel"        2
#
# network driver for IP over raw HDLC ISDN
pseudo-device   "i4bipr"	2
# enable VJ header compression detection for ipr i/f
options		IPR_VJ
#
# network driver for sync PPP over ISDN
pseudo-device	"i4bisppp"	2
#Netgraph
#pseudo-device	"i4bing"	2

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