Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2016 08:44:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 206328] Crash on shutdown with swap on NFS file
Message-ID:  <bug-206328-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206328

            Bug ID: 206328
           Summary: Crash on shutdown with swap on NFS file
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: tvijlbrief@gmail.com

When swap is using an NFS file, and it is filled before shutdown, eg by usi=
ng

stress -m 4 --vm-keep

a crash occurs on a "shutdown -r" which prevents a reboot:


Jan 17 09:26:12 rpibsd syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...4 4 4 1 1 1 0 0 0 done
All buffers synced.
No strategy for buffer at 0xc1a47b30
vnode
0xc2a60240: tag none, type VBAD
    usecount 1, writecount 0, refcount 448277 mountedhere 0
    flags (VI_DOOMED)
    lock type nfs: UNLOCKED
swap_pager: I/O error - pagein failed; blkno 23904,size 4096, error 45
panic: swap_pager_force_pagein: read from swap failed
KDB: enter: panic
[ thread pid 1 tid 100001 ]
Stopped at      $d.13:  ldrb    r15, [r15, r15, ror r15]!
db>=20

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
Example is from Raspberry because I have a serial console attached, but it
also happens on a 64 bit Intel VirtualBox guest, so it is easy to reproduce=
.=20

/etc/fstab:

swan.v7f.eu:/export/all/bsd /media/swan nfs rw,bg,noauto 0 0
/media/swan/swap none          swap    sw              0 0

A "swapoff -a" before shutdown prevents the problem

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



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