Bug 213239 - [panic] Fatal trap 12: page fault while in kernel mode (flowcleaner/FLOWTABLE)
Summary: [panic] Fatal trap 12: page fault while in kernel mode (flowcleaner/FLOWTABLE)
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
Depends on:
Reported: 2016-10-06 11:25 UTC by Markus Kohlmeyer
Modified: 2019-02-01 22:30 UTC (History)
3 users (show)

See Also:

core.txt.0 (203.00 KB, text/plain)
2016-10-06 11:25 UTC, Markus Kohlmeyer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Kohlmeyer 2016-10-06 11:25:17 UTC
Created attachment 175461 [details]

I'm getting panics with trap 12 every 10-14 hours on various processes with 11.0-STABLE
This time i preserved the crash dump so i attached the core.txt.0 which should provide some needed info

If you need more info or if i can do anything else to help tracking this down, just let me know (but keep in mind that this is a production system, yes i know...)
Comment 1 Palle Girgensohn freebsd_committer 2016-10-06 14:31:10 UTC
I see this is in the vnet code somehow, are you using VIMAGE?

See this PR. It helped us, if you're lucky it is the same problem:


The "First tentative patch for this issue" has been running for 10+ months in our productions systems and helped us remedy our problem. Can't say it was a trap 12, so maybe I'm out on a whim here.
Comment 2 Markus Kohlmeyer 2016-10-06 15:32:49 UTC
Sorry, no i'm not using VIMAGE or any other virtualization options and i've not even have any corresponding options my kernel config as can be seen at the end of the core.txt.0 file.

Also i never had a panic with FreeBSD >= 6.2 <= 10.3 so this is the first time for me :(
Comment 3 Markus Kohlmeyer 2016-10-08 13:18:26 UTC
After getting the third panic on flowcleaner i've gone the try&error route and removed FLOWTABLE from the kernel config, which seems to be the solution for my panics. No more panics for the last two days.
Comment 4 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-02-01 22:30:14 UTC
flowtable feature was removed in base r321618, closing as OBE. If there are any plans to fix this in 11-STABLE, please reopen PR.

Also assigning to net@ to reach potentially interested developers.