Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    I need help to read a backtrace (bt), my pfsense makes kernel panic

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 670 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      erode
      last edited by stephenw10

      Hi everybody how are you? I am having kernel panic in my pfsense, the error it gives is the following:

      Panic String: bpf_mcopy

      It does it once a week, the hardware I have is the following:

      ThinkSystem SR250
      RAM: DDR4 16gb ecc
      CPU: Intel(R) Xeon(R) E-2224 CPU @ 3.40GHz
      Network cards: Broadcom NetXtreme PCIe 1Gb 4-Port RJ45 Ethernet Adapter PCI-E
      Emulex VFA5.2 2x10GbE SFP + PCIe Adapter

      And coredump is as follows:

      amd64
      12.2-STABLE
      FreeBSD 12.2-STABLE fd0f54f44b5c(RELENG_2_5_0) pfSense
      
      Crash report details:
      
      No PHP errors found.
      
      Filename: /var/crash/info.0
      Dump header from device: /dev/ada0p3
        Architecture: amd64
        Architecture Version: 4
        Dump Length: 101376
        Blocksize: 512
        Compression:none
        Dumptime: Tue Feb 8 12:38:47 2022
        Hostname: jd.domain.com.ar
        Magic: FreeBSD Text Dump
        Version String: FreeBSD 12.2-STABLE fd0f54f44b5c(RELENG_2_5_0) pfSense
        Panic String: bpf_mcopy
        Dump Parity: 3354687337
        Bounds: 0
        Dump Status: good
      
      Filename: /var/crash/textdump.tar.0
      ddb.txt06000014000014200507207 7067 ustarrootwheeldb:0:kdb.enter.default> run lockinfo
      db:1:lockinfo> show locks
      No such command; use "help" to list available commands
      db:1:lockinfo> show alllocks
      No such command; use "help" to list available commands
      db:1:lockinfo> show lockedvnods
      Locked vnodes
      db:0:kdb.enter.default> show pcpu
      cpuid = 3
      dynamic pcpu = 0xfffffe0080d99380
      curthread = 0xfffff80140906000: pid 51869 tid 100576 "openvpn"
      curpcb = 0xfffff801409065a0
      fpcurthread=0xfffff80140906000:pid 51869 "openvpn"
      idlethread = 0xfffff80005617740: tid 100006 "idle: cpu3"
      curpmap = 0xfffff802e19a0138
      tssp=0xffffffff83717758
      commontssp=0xffffffff83717758
      rsp0 = 0xfffffe009333dbc0
      kcr3 = 0x800000018eb296b5
      ucr3 = 0x800000018e96beb5
      scr3 = 0x3ae00ef02
      gs32p = 0xffffffff8371df70
      ldt = 0xffffffff8371dfb0
      tss = 0xffffffff8371dfa0
      tlb gene=58597308
      curvnet = 0xfffff80005090b80
      db:0:kdb.enter.default> bt
      Tracing pid 51869 tid 100576 td 0xfffff80140906000
      kdb_enter() at kdb_enter+0x37/frame 0xfffffe009333cff0
      vpanic() at vpanic+0x197/frame 0xfffffe009333d040
      panic() at panic+0x43/frame 0xfffffe009333d0a0
      bpf_buffer_append_mbuf() at bpf_buffer_append_mbuf+0x64/frame 0xfffffe009333d0d0
      catchpacket() at catchpacket+0x4fd/frame 0xfffffe009333d170
      bpf_mtap2() at bpf_mtap2+0x1f0/frame 0xfffffe009333d270
      ether_vlan_mtap() at ether_vlan_mtap+0xa3/frame 0xfffffe009333d3b0
      oce_multiq_transmit() at oce_multiq_transmit+0x112/frame 0xfffffe009333d410
      oce_multiq_start() at oce_multiq_start+0x76/frame 0xfffffe009333d440
      vlan_transmit() at vlan_transmit+0xda/frame 0xfffffe009333d4b0
      ether_output_frame() at ether_output_frame+0xb4/frame 0xfffffe009333d4e0
      ether_output() at ether_output+0x676/frame 0xfffffe009333d560
      ip_output() at ip_output+0x131c/frame 0xfffffe009333d6a0
      ip_forward() at ip_forward+0x366/frame 0xfffffe009333d770
      ip_input() at ip_input+0x7db/frame 0xfffffe009333d820
      netisr_dispatch_src() at netisr_dispatch_src+0xca/frame 0xfffffe009333d870
      tunwrite() at tunwrite+0x31f/frame 0xfffffe009333d8b0
      devfs_write_f() at devfs_write_f+0xda/frame 0xfffffe009333d920
      dofilewrite() at dofilewrite+0xb0/frame 0xfffffe009333d970
      sys_writev() at sys_writev+0x6e/frame 0xfffffe009333d9c0
      amd64_syscall() at amd64_syscall+0x387/frame 0xfffffe009333daf0
      fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe009333daf0
      --- syscall (121, FreeBSD ELF64, sys_writev), rip = 0x80088e75a, rsp = 0x7fffffffcb48, rbp = 0x7fffffffcb80 ---
      

      I have two identical computers since I was configuring it in CARP, and in both it does the same thing to me, randomly once a week, at different times. Any idea what it could be? I have more data from the dump, like the ps and the boot log.

      From already thank you very much!!

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @erode
        last edited by

        @erode
        Any reason for not updating to the current version?

        E 1 Reply Last reply Reply Quote 0
        • E
          erode @viragomann
          last edited by

          @viragomann hi! im in the current version:

          2.5.2-RELEASE (amd64)
          built on Fri Jul 02 15:33:00 EDT 2021
          FreeBSD 12.2-STABLE

          The system is on the latest version.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            This is a duplicate thread. Please continue here:
            https://forum.netgate.com/topic/168212/panic-string-bpf_mcopy/12

            Steve

            1 Reply Last reply Reply Quote 0
            • stephenw10S stephenw10 locked this topic on
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.