Install PP2P => Fatal trap 12 : page fault while in kernel mode



  • I tried to set up a VPN server using PPTP.  When i saved the config, all connections where lost.  When i want to reboot the pfsense router, the following error appears during the start up:

    Starting OpenNTP time client…done.
    Starting DHCP service...done.
    Starting DNS forwarder...done.
    Configuring firewal......done.
    Configuring PPTP VPN service...

    Fatal trap 12: page fault while in kernel mode
    cpuid = 2; apic id = 02
    fault virtual address = 0x4
    fault code = supervisor write, page not present
    instruction pointer = 0x20:0xc0b1adaf
    stack pointer = 0x28:0xe85259f8
    frame pointer = 0x28:0xe8535a18
    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 = 247 (initial thread)
    trap number = 12
    panic = page fault
    cpuid = 2
    Uptime : 59s
    Cannot dump. Device not defined or unavailable.
    Automatic reboot in 15 seconds - press a key on the console to abort

    Euhm…help?! :-)



  • Can you please show me your <interfaces>section in the config.
    Mostly i want to know what kind of interfaces you have assigned.</interfaces>



  • @ermal:

    Can you please show me your <interfaces>section in the config.
    Mostly i want to know what kind of interfaces you have assigned.</interfaces>

    I can't even boot up the router, so viewing the config file is quite difficult right now :)  I'm trying to start up using a ubuntu cd and then i want to edit the config file, like the xml file in my backup (and yes…quite foolish...an old backup :s)

    I hope when i set everything back as it was, it will work:

    <pptpd><mode><redir><localip></localip></redir></mode></pptpd>





  • Ermal,

    Do you have any idea how i can edit it?  I can't startup pfsense, so i can't vi/nano it over there.  And with a ubuntu 10.10 cd in it, i can't reach the HD?



  • Just choose single user mode when pfSense gets rebooted and you can do viconfig from there or vi/nano the file i gave you the patch.
    With viconfig just delete the pptpd section on config and reboot and than you can make the change i gave you in a easier environemnt.



  • First of all, thanks for your great (and quick) help!

    I've tried the "viconfig" command in the single user mode, but i get some errors:

    ex/vi : Error : /var/tmp/vi.recover : Read-only file system
    ex/vi : Error : Modifications not recoverable if the session fails
    ex/vi : Error : /cf/conf/config.xml : Read-only file system
    ex/vi : Error : Unable to create temporary file : Read-only file system
    override rw-r–r-- root/wheel for /tmp/config.cache?

    If i just do enter, yes or y, well...i got the # promt and that's it...



  • Anyone that can help me? :)



  • Try fsck /
    and mount -u / or mount -fu /



  • Before editing try /etc/rc.conf_mount_rw



  • I can see the /etc/inc/vpn.inc file using vi, but i can't search or anything…even backspace or delete give me some strange characters?


Locked