[Bug 259218] Fatal trap 12: page fault while in kernel mode

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Nov 2021 22:29:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259218

--- Comment #21 from Dennis Clarke <dclarke@blastwave.org> ---
Further follow up I did try to run some pkg commands on that box and
within a few minutes it would freeze up however a SIGINFO to the serial
console reveals ever increasing load :

Loading kernel...
/boot/kernel/kernel text=0xfecb0 text=0xb49980 text=0x5f6920 data=0xb0
data=0x10e08c+0x332244 syms=[0x4+0xed0a0+0x4+0x184b6c]
Loading configured modules...
/boot/kernel/cryptodev.ko text=0x20a0 text=0x2113 data=0x228+0x8
syms=[0x4+0x8c0+0x4+0xa94]
/boot/entropy size=0x1000
/etc/hostid size=0x25
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
---<<BOOT>>---
MP Configuration Table version 1.4 found at 0x4f0c00
APIC: Using the MADT enumerator.
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.0-CURRENT #2 main-n250207-3b5331dd8d4-dirty: Fri Oct 29 16:54:01 GMT
2021
    root@esther:/usr/obj/usr/src/i386.i386/sys/GENERIC i386
FreeBSD clang version 12.0.1 (git@github.com:llvm/llvm-project.git
llvmorg-12.0.1-0-gfed41342a82f)
WARNING: WITNESS option enabled, expect reduced performance.
.
.
.
Setting up harvesting:
PURE_NEHEMIAH,[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
Setting hostname: esther.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
/usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
/usr/local/lib/perl5/5.32/mach/CORE
lo0: link state changed to UP
re0: link state changed to UP
re0: link state changed to DOWN
re0: link state changed to UP
Starting Network: lo0 re0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:30:18:b0:29:b6
        inet 172.16.35.59 netmask 0xffffffc0 broadcast 172.16.35.63
        media: Ethernet autoselect (1000baseT <full-duplex,master>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting devd.
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 172.16.35.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Updating motd:.
Clearing /tmp.
Creating and/or trimming log files.
Updating /var/run/os-release done.
Starting syslogd.
No core dumps found.
Mounting late filesystems:.
Security policy loaded: MAC/ntpd (mac_ntpd)
Starting ntpd.
Configuring vt: blanktime.
Performing sanity check on sshd configuration.
Starting sshd.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.
Starting background file system checks in 60 seconds.

Sun Nov  7 05:10
FreeBSD/i386 (esther) (ttyu0)

login: root
Password:
Nov  7 05:11:08 esther login[729]: ROOT LOGIN (root) ON ttyu0
Last login: Sun Nov  7 01:52:30 on ttyu0
FreeBSD 14.0-CURRENT (GENERIC) #2 main-n250207-3b5331dd8d4-dirty: Fri Oct 29
16:54:01 GMT 2021

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

To change this login announcement, see motd(5).
You have mail.
esther# ls log
readme.jitterbug        readme.pkg              readme.src
esther# cat log/readme.pkg 

from Steve Wills 

 pkg upgrade -Ffy 
 pkg upgrade -fy 
 pkg autoremove -y
 pkg clean -ya


esther# 
esther# 
esther# pkg upgrade -Ffy 
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (69 candidates): 100%
Processing candidates (69 candidates): 100%
Checking integrity... done (0 conflicting)
The following 69 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        boost-libs: 1.72.0_5 -> 1.72.0_6
        git: 2.33.0 -> 2.33.1
        libnghttp2: 1.45.1 -> 1.46.0

Installed packages to be REINSTALLED:
        bitmap-1.0.9
        ca_root_nss-3.71
        curl-7.79.1
        expat-2.4.1
        fontconfig-2.13.94_1,1
        freetype2-2.11.0
        gdb-11.1_1
        gettext-runtime-0.21
        gettext-tools-0.21
        gmp-6.2.1
        icu-70.1,1
        indexinfo-0.3.1
        libICE-1.0.10,1
        libSM-1.2.3,1
        libX11-1.7.2,1
        libXau-1.0.9
        libXaw-1.0.14,2
        libXdmcp-1.1.3
        libXext-1.3.4,1
        libXft-2.3.3
        libXmu-1.1.3,1
        libXpm-3.5.13
        libXrender-0.9.10_2
        libXt-1.2.1,1
        libffi-3.3_1
        libiconv-1.16
        libpthread-stubs-0.4
        libssh2-1.9.0_3,3
        libtextstyle-0.21
        libxcb-1.14_1
        mpc-1.2.1
        mpdecimal-2.5.1
        mpfr-4.1.0_1
        p5-Authen-SASL-2.16_1
        p5-CGI-4.53
        p5-Clone-0.45
        p5-Digest-HMAC-1.04
        p5-Encode-Locale-1.05
        p5-Error-0.17029
        p5-GSSAPI-0.28_1
        p5-HTML-Parser-3.76_1
        p5-HTML-Tagset-3.20_1
        p5-HTTP-Date-6.05
        p5-HTTP-Message-6.33
        p5-IO-HTML-1.004
        p5-IO-Socket-INET6-2.72_1
        p5-IO-Socket-SSL-2.072
        p5-LWP-MediaTypes-6.04
        p5-Mozilla-CA-20211001
        p5-Net-SSLeay-1.90
        p5-Socket6-0.29
        p5-TimeDate-2.33,1
        p5-URI-5.10
        pcre2-10.37
        perl5-5.32.1_1
        pkg-1.17.3
        png-1.6.37_1
        python38-3.8.12_1
        readline-8.1.1
        source-highlight-3.1.9_1
        vim-8.2.3458
        xauth-1.1
        xbitmaps-1.1.2
        xlogo-1.0.5
        xorgproto-2021.4
        xterm-369

Number of packages to be upgraded: 3
Number of packages to be reinstalled: 66
esther# pkg upgrade -fy 
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (69 candidates): 100%
Processing candidates (69 candidates): 100%
Checking integrity... done (0 conflicting)
The following 69 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        boost-libs: 1.72.0_5 -> 1.72.0_6
        git: 2.33.0 -> 2.33.1
        libnghttp2: 1.45.1 -> 1.46.0

Installed packages to be REINSTALLED:
        bitmap-1.0.9
        ca_root_nss-3.71
        curl-7.79.1
        expat-2.4.1
        fontconfig-2.13.94_1,1
        freetype2-2.11.0
        gdb-11.1_1
        gettext-runtime-0.21
        gettext-tools-0.21
        gmp-6.2.1
        icu-70.1,1
        indexinfo-0.3.1
        libICE-1.0.10,1
        libSM-1.2.3,1
        libX11-1.7.2,1
        libXau-1.0.9
        libXaw-1.0.14,2
        libXdmcp-1.1.3
        libXext-1.3.4,1
        libXft-2.3.3
        libXmu-1.1.3,1
        libXpm-3.5.13
        libXrender-0.9.10_2
        libXt-1.2.1,1
        libffi-3.3_1
        libiconv-1.16
        libpthread-stubs-0.4
        libssh2-1.9.0_3,3
        libtextstyle-0.21
        libxcb-1.14_1
        mpc-1.2.1
        mpdecimal-2.5.1
        mpfr-4.1.0_1
        p5-Authen-SASL-2.16_1
        p5-CGI-4.53
        p5-Clone-0.45
        p5-Digest-HMAC-1.04
        p5-Encode-Locale-1.05
        p5-Error-0.17029
        p5-GSSAPI-0.28_1
        p5-HTML-Parser-3.76_1
        p5-HTML-Tagset-3.20_1
        p5-HTTP-Date-6.05
        p5-HTTP-Message-6.33
        p5-IO-HTML-1.004
        p5-IO-Socket-INET6-2.72_1
        p5-IO-Socket-SSL-2.072
        p5-LWP-MediaTypes-6.04
        p5-Mozilla-CA-20211001
        p5-Net-SSLeay-1.90
        p5-Socket6-0.29
        p5-TimeDate-2.33,1
        p5-URI-5.10
        pcre2-10.37
        perl5-5.32.1_1
        pkg-1.17.3
        png-1.6.37_1
        python38-3.8.12_1
        readline-8.1.1
        source-highlight-3.1.9_1
        vim-8.2.3458
        xauth-1.1
        xbitmaps-1.1.2
        xlogo-1.0.5
        xorgproto-2021.4
        xterm-369

Number of packages to be upgraded: 3
Number of packages to be reinstalled: 66
[1/69] Reinstalling xorgproto-2021.4...
[1/69] Extracting xorgproto-2021.4: 100%
[2/69] Reinstalling perl5-5.32.1_1...
[2/69] Extracting perl5-5.32.1_1: 100%
[3/69] Reinstalling libpthread-stubs-0.4...
[3/69] Extracting libpthread-stubs-0.4: 100%
[4/69] Reinstalling libXdmcp-1.1.3...
[4/69] Extracting libXdmcp-1.1.3: 100%
[5/69] Reinstalling libXau-1.0.9...
[5/69] Extracting libXau-1.0.9: 100%
[6/69] Reinstalling p5-TimeDate-2.33,1...
[6/69] Extracting p5-TimeDate-2.33,1: 100%
[7/69] Reinstalling libxcb-1.14_1...
[7/69] Extracting libxcb-1.14_1: 100%
[8/69] Reinstalling libICE-1.0.10,1...
[8/69] Extracting libICE-1.0.10,1: 100%
[9/69] Reinstalling png-1.6.37_1...
[9/69] Extracting png-1.6.37_1: 100%
[10/69] Reinstalling p5-URI-5.10...
[10/69] Extracting p5-URI-5.10: 100%
[11/69] Reinstalling p5-LWP-MediaTypes-6.04...
[11/69] Extracting p5-LWP-MediaTypes-6.04: 100%
[12/69] Reinstalling p5-IO-HTML-1.004...
[12/69] Extracting p5-IO-HTML-1.004: 100%
[13/69] Reinstalling p5-HTTP-Date-6.05...
[13/69] Extracting p5-HTTP-Date-6.05: 100%
[14/69] Reinstalling p5-Encode-Locale-1.05...
[14/69] Extracting p5-Encode-Locale-1.05: 100%
[15/69] Reinstalling p5-Clone-0.45...
[15/69] Extracting p5-Clone-0.45: 100%
[16/69] Reinstalling libX11-1.7.2,1...
[16/69] Extracting libX11-1.7.2,1: 100%
[17/69] Reinstalling libSM-1.2.3,1...
[17/69] Extracting libSM-1.2.3,1: 100%
[18/69] Reinstalling indexinfo-0.3.1...
[18/69] Extracting indexinfo-0.3.1: 100%
[19/69] Reinstalling p5-Socket6-0.29...
[19/69] Extracting p5-Socket6-0.29: 100%
[20/69] Reinstalling p5-HTTP-Message-6.33...
[20/69] Extracting p5-HTTP-Message-6.33: 100%
[21/69] Reinstalling p5-HTML-Tagset-3.20_1...
[21/69] Extracting p5-HTML-Tagset-3.20_1: 100%
[22/69] Reinstalling libXt-1.2.1,1...
[22/69] Extracting libXt-1.2.1,1: 100%
[23/69] Reinstalling libXext-1.3.4,1...
[23/69] Extracting libXext-1.3.4,1: 100%
[24/69] Reinstalling icu-70.1,1...
[24/69] Extracting icu-70.1,1: 100%
[25/69] Reinstalling gettext-runtime-0.21...
[25/69] Extracting gettext-runtime-0.21: 100%
[26/69] Reinstalling freetype2-2.11.0...
[26/69] Extracting freetype2-2.11.0: 100%
[27/69] Reinstalling expat-2.4.1...
[27/69] Extracting expat-2.4.1: 100%
[28/69] Reinstalling readline-8.1.1...
[28/69] Extracting readline-8.1.1: 100%
[29/69] Reinstalling p5-Net-SSLeay-1.90...
[29/69] Extracting p5-Net-SSLeay-1.90: 100%
[30/69] Reinstalling p5-Mozilla-CA-20211001...
[30/69] Extracting p5-Mozilla-CA-20211001: 100%
[31/69] Reinstalling p5-IO-Socket-INET6-2.72_1...
[31/69] Extracting p5-IO-Socket-INET6-2.72_1: 100%
[32/69] Reinstalling p5-HTML-Parser-3.76_1...
[32/69] Extracting p5-HTML-Parser-3.76_1: 100%
[33/69] Reinstalling p5-GSSAPI-0.28_1...
[33/69] Extracting p5-GSSAPI-0.28_1: 100%
[34/69] Reinstalling p5-Digest-HMAC-1.04...
[34/69] Extracting p5-Digest-HMAC-1.04: 100%
[35/69] Reinstalling mpdecimal-2.5.1...
[35/69] Extracting mpdecimal-2.5.1: 100%
[36/69] Reinstalling libssh2-1.9.0_3,3...
[36/69] Extracting libssh2-1.9.0_3,3: 100%
[37/69] Upgrading libnghttp2 from 1.45.1 to 1.46.0...
[37/69] Extracting libnghttp2-1.46.0: 100%
[38/69] Reinstalling libffi-3.3_1...
[38/69] Extracting libffi-3.3_1: 100%
[39/69] Reinstalling libXrender-0.9.10_2...
[39/69] Extracting libXrender-0.9.10_2: 100%
[40/69] Reinstalling libXpm-3.5.13...
[40/69] Extracting libXpm-3.5.13: 100%
[41/69] Reinstalling libXmu-1.1.3,1...
[41/69] Extracting libXmu-1.1.3,1: 100%
[42/69] Reinstalling gmp-6.2.1...
[42/69] Extracting gmp-6.2.1: 100%
[43/69] Reinstalling fontconfig-2.13.94_1,1...
[43/69] Extracting fontconfig-2.13.94_1,1: 100%
Running fc-cache to build fontconfig cache...
Font directories:
        /usr/local/share/fonts
        /usr/local/lib/X11/fonts
/usr/local/share/fonts: skipping, no such directory
/usr/local/lib/X11/fonts: skipping, no such directory
/var/db/fontconfig: cleaning cache directory
fc-cache: succeeded
[44/69] Reinstalling ca_root_nss-3.71...
[44/69] Extracting ca_root_nss-3.71: 100%
[45/69] Upgrading boost-libs from 1.72.0_5 to 1.72.0_6...
[45/69] Extracting boost-libs-1.72.0_6:  75%
load: 10.29  cmd: pkg 747 [runnable] 1253.05r 124.04u 131.78s 0% 275308k
mi_switch+0x1ca critical_exit_preempt+0x5d uma_zfree_arg+0x44f bucket_free+0x6a
cache_alloc+0x45a cache_alloc_retry+0x18 uma_zalloc_arg+0x159
vm_page_alloc_noobj_domain+0x97 vm_page_alloc_noobj+0x3b allocbuf+0x6c7
geteblk+0x78 softdep_process_journal+0x1e8 jwait+0xac
softdep_update_inodeblock+0x18f ffs_update+0x291 ffs_truncate+0x541
ufs_setattr+0x674 VOP_SETATTR_APV+0x2d 
load: 12.13  cmd: pkg 747 [runnable] 1820.46r 124.04u 131.78s 0% 275308k
mi_switch+0x1ca critical_exit_preempt+0x5d uma_zfree_arg+0x44f bucket_free+0x6a
cache_alloc+0x45a cache_alloc_retry+0x18 uma_zalloc_arg+0x159
vm_page_alloc_noobj_domain+0x97 vm_page_alloc_noobj+0x3b allocbuf+0x6c7
geteblk+0x78 softdep_process_journal+0x1e8 jwait+0xac
softdep_update_inodeblock+0x18f ffs_update+0x291 ffs_truncate+0x541
ufs_setattr+0x674 VOP_SETATTR_APV+0x2d 
load: 12.29  cmd: pkg 747 [runnable] 2746.55r 124.04u 131.78s 0% 275308k
mi_switch+0x1ca critical_exit_preempt+0x5d uma_zfree_arg+0x44f bucket_free+0x6a
cache_alloc+0x45a cache_alloc_retry+0x18 uma_zalloc_arg+0x159
vm_page_alloc_noobj_domain+0x97 vm_page_alloc_noobj+0x3b allocbuf+0x6c7
geteblk+0x78 softdep_process_journal+0x1e8 jwait+0xac
softdep_update_inodeblock+0x18f ffs_update+0x291 ffs_truncate+0x541
ufs_setattr+0x674 VOP_SETATTR_APV+0x2d 

load: 12.30  cmd: pkg 747 [runnable] 9713.15r 124.04u 131.78s 0% 275308k
mi_switch+0x1ca critical_exit_preempt+0x5d uma_zfree_arg+0x44f bucket_free+0x6a
cache_alloc+0x45a cache_alloc_retry+0x18 uma_zalloc_arg+0x159
vm_page_alloc_noobj_domain+0x97 vm_page_alloc_noobj+0x3b allocbuf+0x6c7
geteblk+0x78 softdep_process_journal+0x1e8 jwait+0xac
softdep_update_inodeblock+0x18f ffs_update+0x291 ffs_truncate+0x541
ufs_setattr+0x674 VOP_SETATTR_APV+0x2d 

load: 12.30  cmd: pkg 747 [runnable] 45533.10r 124.04u 131.78s 0% 275308k
mi_switch+0x1ca critical_exit_preempt+0x5d uma_zfree_arg+0x44f bucket_free+0x6a
cache_alloc+0x45a cache_alloc_retry+0x18 uma_zalloc_arg+0x159
vm_page_alloc_noobj_domain+0x97 vm_page_alloc_noobj+0x3b allocbuf+0x6c7
geteblk+0x78 softdep_process_journal+0x1e8 jwait+0xac
softdep_update_inodeblock+0x18f ffs_update+0x291 ffs_truncate+0x541
ufs_setattr+0x674 VOP_SETATTR_APV+0x2d 


load: 12.41  cmd: pkg 747 [runnable] 46715.76r 124.04u 131.78s 0% 275308k
mi_switch+0x1ca critical_exit_preempt+0x5d uma_zfree_arg+0x44f bucket_free+0x6a
cache_alloc+0x45a cache_alloc_retry+0x18 uma_zalloc_arg+0x159
vm_page_alloc_noobj_domain+0x97 vm_page_alloc_noobj+0x3b allocbuf+0x6c7
geteblk+0x78 softdep_process_journal+0x1e8 jwait+0xac
softdep_update_inodeblock+0x18f ffs_update+0x291 ffs_truncate+0x541
ufs_setattr+0x674 VOP_SETATTR_APV+0x2d 


At this point I have to pull power as the system will never recover.

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