Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Apr 2026 10:27:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 294039] databases/postgresql14-server: jemalloc crashes triggered by autovacuum
Message-ID:  <bug-294039-227-NN3MSv5dTm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-294039-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294039

--- Comment #6 from Peter Much <pmc@citylink.dinoex.sub.org> ---
I have now run the system for three days without further crash, after reverting
the FreeBSD-EN-26:03.vm efix.

Then I have re-activated FreeBSD-EN-26:03.vm, and just got another jemalloc
crash.

Since it looks to me like there are some un-zeroed pages appearing which
probably should be zeroed, I also have added two printf to the fix, in order to
get some insight into the difference in behaviour:

--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1207,6 +1207,12 @@ vm_fault_zerofill(struct faultstate *fs)
        /*
         * Zero the page if necessary and mark it valid.
         */
+        if (((fs->m->flags & PG_ZERO) == 0) && !(fs->m_needs_zeroing)) {
+          printf("PMc: KERNEL ALERT page should be zeroed, but will not\n");
+        }
+        if (((fs->m->flags & PG_ZERO) != 0) && (fs->m_needs_zeroing)) {
+          printf("PMc: KERNEL INFO page would not be zeroed, but will\n");
+        }
        if (fs->m_needs_zeroing) {
                pmap_zero_page(fs->m);
        } else {

And the output looks like this:

Apr  3 02:40:34 <kern.crit> edge kernel: [7678] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 02:40:34 <kern.crit> edge kernel: [7678] PMc: KERNEL INFO page would not
be zeroed, but will
Apr  3 02:40:34 <kern.crit> edge kernel: [7678] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 03:29:55 <kern.crit> edge kernel: [10639] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 04:49:52 <kern.crit> edge kernel: [15437] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 06:18:01 <kern.crit> edge kernel: [20725] PMc: KERNEL INFO page would
not be zeroed, but will
Apr  3 06:58:27 <kern.crit> edge kernel: [23151] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 07:01:09 <kern.crit> edge kernel: [23313] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 07:03:18 <kern.crit> edge kernel: [23442] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 07:27:09 <kern.crit> edge kernel: [24874] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 07:27:09 <kern.crit> edge kernel: [24874] PMc: KERNEL INFO page would
not be zeroed, but will
Apr  3 11:09:41 <kern.crit> edge kernel: [38225] PMc: KERNEL INFO page would
not be zeroed, but will
Apr  3 11:09:41 <kern.crit> edge kernel: [38225] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 11:09:41 <kern.crit> edge kernel: [38225] PMc: KERNEL INFO page would
not be zeroed, but will
Apr  3 11:09:41 <kern.crit> edge kernel: [38225] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 11:09:41 <kern.crit> edge kernel: [38225] PMc: KERNEL INFO page would
not be zeroed, but will
Apr  3 11:09:41 <kern.crit> edge kernel: [38225] PMc: KERNEL ALERT page should
be zeroed, but will not
Apr  3 11:09:41 <kern.info> edge kernel: [38225] pid 3380 (postgres), jid 5,
uid 770: exited on signal 11 (core dumped)


I am now adding the group that approved D53891 to this PR.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294039-227-NN3MSv5dTm>