server reboots after upgrade to postgres13

Derrick Lobo <[email protected]> Mon, 21 Jun 2021 15:07:58 +0000
Newsgroups gmane.os.netbsd.devel.ports,gmane.os.netbsd.current,gmane.os.netbsd.ports.x86-64
Message-ID <YQXPR01MB3208E51A537CB63ED19CD56E900A9@YQXPR01MB3208.CANPRD01.PROD.OUTLOOK.COM>
We recently upgraded a few of our servers to postgres 13 and the ones that have this version have begun hanging or restarting ..

Bunch of them are on netbsd 9 while very few of them are on 7.12 netbsd9 does not provide a coredump however I noticed this on the server that has netbsd 7.12
The servers that have crash are not a specific model the only common point is postgres 13

Any input by looking at the coredump below whats causing these crash/reboot..


crash -M netbsd.0.core
Crash version 7.1.2, image version 7.1.2.
System panicked: pmap_get_physpage: out of memory
Backtrace from time of crash is available.
crash> bt
_KERNEL_OPT_NARCNET() at 0
_KERNEL_OPT_ACPI_SCANPCI() at _KERNEL_OPT_ACPI_SCANPCI+0xf
vpanic() at vpanic+0x145
snprintf() at snprintf
pmap_growkernel() at pmap_growkernel+0x32c
uvm_map_prepare() at uvm_map_prepare+0x1d1
uvm_map() at uvm_map+0x74
uvm_km_alloc() at uvm_km_alloc+0x73
pool_grow() at pool_grow+0x2f
pool_catchup() at pool_catchup+0x17
pool_get() at pool_get+0x217
allocbuf() at allocbuf+0xea
getblk() at getblk+0xfc
bio_doread.isra.4() at bio_doread.isra.4+0x19
bread() at bread+0x1a
ffs_loadvnode() at ffs_loadvnode+0xc7
vcache_get() at vcache_get+0x2fa
ufs_lookup() at ufs_lookup+0x8fc
VOP_LOOKUP() at VOP_LOOKUP+0x34
lookup_once() at lookup_once+0x18b
namei_tryemulroot() at namei_tryemulroot+0x58a
namei() at namei+0x43
fd_nameiat.isra.0() at fd_nameiat.isra.0+0x54
do_sys_statat() at do_sys_statat+0x72
sys___lstat50() at sys___lstat50+0x25
syscall() at syscall+0x9a
--- syscall (number 441) ---
7f7ff70a6f5a: