Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2002 22:33:35 -0600
From:      Scott Lamb <slamb@slamb.org>
To:        freebsd-net@freebsd.org
Subject:   netgraph kernel panic
Message-ID:  <20020104043335.GA87710@cairo.zsat.net>

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

FreeBSD 4.5-PRERELEASE (as of a few days ago) is crashing consistently
when I try to initiate a PPTP connection to with mpd-netgraph 3.3 (from
ports).

mpd ups the interface happily:

    mpd: [vpn] IPCP: rec'd Configure Ack #3 link 0 (Ack-
    Sent)
    mpd:  IPADDR a.b.c.d
    mpd: [vpn] IPCP: state change Ack-Sent --> Opened
    mpd: [vpn] IPCP: LayerUp
    mpd:   a.b.c.d -> a.b.c.e
    mpd: [vpn] IFACE: Up event
    mpd: [vpn] exec: /sbin/ifconfig ng0 a.b.c.d a.b.c.e netmask 0xffffffff -link0
    mpd: [vpn] exec: /sbin/route add a.b.0.0 a.b.c.e -netmask 0xffff0000
    mpd: [vpn] IFACE: Up event

...then crashes immediately afterward with "fatal trap 12: page fault
while in kernel mode". I saved the kernel core file. The panic looks
like this:

    Fatal trap 12: page fault while in kernel mode
    fault virtual address   = 0x70
    fault code              = supervisor read, page not present
    instruction pointer     = 0x8:0xc01ca6b8
    stack pointer           = 0x10:0xc03f1d58
    frame pointer           = 0x10:0xc03f1d7c
    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         = Idle
    interrupt mask          = net tty bio cam
    trap number             = 12
    panic: page fault

    syncing disks...

    Fatal trap 12: page fault while in kernel mode
    fault virtual address   = 0x30
    fault code              = supervisor read, page not present
    instruction pointer     = 0x8:0xc0303f72
    stack pointer           = 0x10:0xc03f1b2c
    frame pointer           = 0x10:0xc03f1b40
    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         = Idle
    interrupt mask          = net tty bio cam
    trap number             = 12
    panic: page fault
    Uptime: 24s

The stack trace looks like this:

    #0  0xc01c78c2 in dumpsys ()
    #1  0xc01c76e3 in boot ()
    #2  0xc01c7ab8 in poweroff_wait ()
    #3  0xc036c4c6 in trap_fatal ()
    #4  0xc036c199 in trap_pfault ()
    #5  0xc036bd83 in trap ()
    #6  0xc0303f72 in mfs_strategy ()
    #7  0xc01ecc6a in bwrite ()
    #8  0xc01f2286 in vop_stdbwrite ()
    #9  0xc01f20e1 in vop_defaultop ()
    #10 0xc01ecfba in bawrite ()
    #11 0xc01ffcd0 in spec_fsync ()
    #12 0xc0303e2a in mfs_fsync ()
    #13 0xc03022ff in ffs_sync ()
    #14 0xc01f703b in sync ()
    #15 0xc01c7496 in boot ()
    #16 0xc01c7ab8 in poweroff_wait ()
    #17 0xc036c4c6 in trap_fatal ()
    #18 0xc036c199 in trap_pfault ()
    #19 0xc036bd83 in trap ()
    #20 0xc01ca6b8 in tsleep ()
    #21 0xc01e7c75 in sb_lock ()
    #22 0xc01e5698 in sosend ()
    #23 0xc0225201 in ng_ksocket_rcvdata ()
    #24 0xc021ef71 in ng_send_data ()
    #25 0xc022c4e3 in ng_pptpgre_xmit ()
    #26 0xc022c04c in ng_pptpgre_rcvdata ()
    #27 0xc021ef71 in ng_send_data ()
    #28 0xc0228638 in ng_ppp_output ()
    #29 0xc0228186 in ng_ppp_rcvdata ()
    #30 0xc021ef71 in ng_send_data ()
    #31 0xc0221f26 in ng_bpf_rcvdata ()
    #32 0xc021ef71 in ng_send_data ()
    #33 0xc0224085 in ng_iface_output ()
    #34 0xc02376df in ip_output ()
    #35 0xc02390d6 in rip_output ()
    #36 0xc023952b in rip_send ()
    #37 0xc01e5bb3 in sosend ()
    #38 0xc0225201 in ng_ksocket_rcvdata ()
    #39 0xc021ef71 in ng_send_data ()
    #40 0xc022c4e3 in ng_pptpgre_xmit ()
    #41 0xc022cb24 in ng_pptpgre_send_ack_timeout ()
    #42 0xc01cd515 in softclock ()

The kernel I'm running has all the NETGRAPH options from LINT compiled
in (minus NETGRAPH_MPPC_COMPRESSION, which was commented out).

I'd appreciate any help. (And have other data...my mpd configuration,
etc. I don't have a full symbol table, though...my system didn't quite
match up with what the Developer's Handbook said to expect. /sys/compile
and /usr/sys/compile have only an empty ".keepit" after doing the "make
buildkernel" / "make installkernel" thing. I did compile with the
DEBUG=-g line uncommented in my kernel config file.

Thanks a lot,
Scott Lamb

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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