Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180851 - nfs lockd craches
Summary: nfs lockd craches
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-04 13:48 UTC by roma1390
Modified: 2007-11-28 03:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roma1390 2007-06-04 13:48:27 UTC
.

Reproducible: Always

Steps to Reproduce:
Comment 1 roma1390 2007-06-04 13:49:05 UTC
[6459713.435506] portmap: server lserver not responding, timed out
[6459713.435567] lockd: couldn't create RPC handle for lserver
[6459748.331530] portmap: server lserver not responding, timed out
[6459748.331626] lockd: couldn't create RPC handle for lserver
[6459748.331645] BUG: unable to handle kernel NULL pointer dereference at virtua
l address 00000003
[6459748.331653]  printing eip:
[6459748.331656] c0178d3f
[6459748.331659] *pde = 00000000
[6459748.331665] Oops: 0002 [#1]
[6459748.331668] PREEMPT SMP 
[6459748.331674] Modules linked in: cifs isofs zlib_inflate nls_iso8859_1 nls_cp
437 vfat fat tun sr_mod bridge llc snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_hda_intel snd_hda_codec
 snd_pcm snd_timer snd soundcore snd_page_alloc eeprom lm85 hwmon_vid 
rtc dm_mod usbmouse eth1394 usbhid ff_memless serio_raw pcspkr ohci1394 ieee1394
 sky2 ehci_hcd i2c_i801 uhci_hcd
[6459748.331761] CPU:    0
[6459748.331762] EIP:    0060:[<c0178d3f>]    Not tainted VLI
[6459748.331764] EFLAGS: 00010202   (2.6.19-gentoo-r5-20070321-00 #2)
[6459748.331774] EIP is at __locks_delete_block+0xa/0x31
[6459748.331779] eax: e48f30c4   ebx: ffffffff   ecx: ffffffff   edx: e48f30d0
[6459748.331784] esi: 00000000   edi: e48f3000   ebp: ec03cc80   esp: f6ad9f68
[6459748.331788] ds: 007b   es: 007b   ss: 0068
[6459748.331793] Process lockd (pid: 8130, ti=f6ad8000 task=f74f6ab0 task.ti=f6a
d8000)
[6459748.331798] Stack: e48f30c4 c017adcd dfac22c0 dfac22c0 c024853d f734d82c e9
113380 e48f302c 
[6459748.331816]        dfac22c0 c0248eca 0000013c 00000150 00000004 dfac22c0 7f
ffffff ffff4d58 
[6459748.331833]        00000000 c0249199 c0583bd0 01000000 7fffffff f5d91000 7f
ffffff f5d91000 
[6459748.331851] Call Trace:
[6459748.331856]  [<c017adcd>] posix_unblock_lock+0x37/0x49
[6459748.331865]  [<c024853d>] nlmsvc_unlink_block+0x2d/0x7c
[6459748.331875]  [<c0248eca>] nlmsvc_grant_blocked+0x32/0x175
[6459748.331886]  [<c0249199>] nlmsvc_retry_blocked+0x41/0x84
[6459748.331896]  [<c0247d8e>] lockd+0x13f/0x23b
[6459748.331906]  [<c0247c4f>] lockd+0x0/0x23b
[6459748.331914]  [<c0103d9b>] kernel_thread_helper+0x7/0x10
[6459748.331925]  =======================
Comment 2 roma1390 2007-06-04 13:49:20 UTC
[6459748.331928] Code: 74 0d 89 f0 8b 1c 24 8b 74 24 04 83 c4 08 c3 89 c8 ff d3 
85 c0 b8 01 00 00 00 0f 45 f0 89 f0 eb e3 53 8d 50 0c 8b 48 0c 8b 5a 04 <89> 59 
04 89 0b 89 52 04 89 50 0c 8d 50 04 8b 48 04 8b 5a 04 89 
[6459748.332029] EIP: [<c0178d3f>] __locks_delete_block+0xa/0x31 SS:ESP 0068:f6a
d9f68
[6459748.332039]  <4>lockd_down: lockd failed to exit, clearing pid
[6461154.847655] nfsd: last server has exited
[6461154.847660] nfsd: unexporting all filesystems
[6461157.228885] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery
 directory
[6461157.228913] NFSD: unable to find recovery directory /var/lib/nfs/v4recovery
[6461157.228918] NFSD: starting 90-second grace period
[6461195.593326] ------------[ cut here ]------------
[6461195.593333] kernel BUG at fs/lockd/host.c:288!
[6461195.593337] invalid opcode: 0000 [#2]
[6461195.593339] PREEMPT SMP 
[6461195.593344] Modules linked in: cifs isofs zlib_inflate nls_iso8859_1 nls_cp
437 vfat fat tun sr_mod bridge llc snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_hda_intel snd_hda_codec
 snd_pcm snd_timer snd soundcore snd_page_alloc eeprom lm85 hwmon_vid 
rtc dm_mod usbmouse eth1394 usbhid ff_memless serio_raw pcspkr ohci1394 ieee1394
 sky2 ehci_hcd i2c_i801 uhci_hcd
[6461195.593404] CPU:    0
[6461195.593405] EIP:    0060:[<c0247618>]    Not tainted VLI
[6461195.593407] EFLAGS: 00010286   (2.6.19-gentoo-r5-20070321-00 #2)
[6461195.593416] EIP is at nlm_release_host+0x67/0x9a
[6461195.593421] eax: d27d51d4   ebx: d27d5140   ecx: c02485c7   edx: f734da9c
[6461195.593426] esi: e9113380   edi: ec03cd14   ebp: c024a5d7   esp: c3df5f48
[6461195.593430] ds: 007b   es: 007b   ss: 0068
[6461195.593434] Process lockd (pid: 4002, ti=c3df4000 task=f00e2ab0 task.ti=c3d
f4000)
[6461195.593437] Stack: 00000046 ec03cd24 f734d800 c02462d8 ec03cd24 c02485d7 df
ac22c0 ec03cd24 
[6461195.593446]        e9113380 c024858c c030275c fffffffe c024856c ec03cc80 e9
113380 e9113380 
[6461195.593454]        dfac22c0 c024868a ec03cd24 ec03cc80 00000000 ec03cc80 c0
24a5d7 00000000 
[6461195.593463] Call Trace:
[6461195.593467]  [<c02462d8>] nlm_release_call+0xb/0x1a
[6461195.593473]  [<c02485d7>] nlmsvc_free_block+0x4b/0x71
[6461195.593479]  [<c024858c>] nlmsvc_free_block+0x0/0x71
[6461195.593483]  [<c030275c>] kref_put+0x32/0x9e
[6461195.593488]  [<c024856c>] nlmsvc_unlink_block+0x5c/0x7c
[6461195.593494]  [<c024868a>] nlmsvc_traverse_blocks+0x7e/0x8f
[6461195.593499]  [<c024a5d7>] nlmsvc_is_client+0x0/0x1e
[6461195.593504]  [<c024a3dd>] nlm_traverse_files+0x55/0x118
[6461195.593510]  [<c0247e53>] lockd+0x204/0x23b
[6461195.593515]  [<c0247c4f>] lockd+0x0/0x23b
[6461195.593520]  [<c0103d9b>] kernel_thread_helper+0x7/0x10
Comment 3 roma1390 2007-06-04 13:49:35 UTC
[6461195.593526]  =======================
[6461195.593528] Code: 01 00 00 39 83 0c 01 00 00 75 49 8d 83 14 01 00 00 39 83 
14 01 00 00 75 05 83 c4 08 5b c3 0f 0b 24 01 d9 b8 50 c0 83 c4 08 5b c3 <0f> 0b 
20 01 d9 b8 50 c0 eb ac 8b 40 1c c7 04 24 30 b9 50 c0 89 
[6461195.593571] EIP: [<c0247618>] nlm_release_host+0x67/0x9a SS:ESP 0068:c3df5f
48
[6461195.593576]  <4>lockd_down: lockd failed to exit, clearing pid
[6461227.110222] nfsd: last server has exited
[6461227.110225] nfsd: unexporting all filesystems
[6461239.594691] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery
 directory
[6461239.594704] NFSD: unable to find recovery directory /var/lib/nfs/v4recovery
[6461239.594710] NFSD: starting 90-second grace period
[6461290.516749] BUG: unable to handle kernel paging request at virtual address 
00800009
[6461290.516756]  printing eip:
[6461290.516758] c0178d3f
[6461290.516760] *pde = 00000000
[6461290.516763] Oops: 0002 [#3]
[6461290.516765] PREEMPT SMP 
[6461290.516768] Modules linked in: cifs isofs zlib_inflate nls_iso8859_1 nls_cp
437 vfat fat tun sr_mod bridge llc snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_hda_intel snd_hda_codec
 snd_pcm snd_timer snd soundcore snd_page_alloc eeprom lm85 hwmon_vid 
rtc dm_mod usbmouse eth1394 usbhid ff_memless serio_raw pcspkr ohci1394 ieee1394
 sky2 ehci_hcd i2c_i801 uhci_hcd
[6461290.516808] CPU:    0
[6461290.516809] EIP:    0060:[<c0178d3f>]    Not tainted VLI
[6461290.516811] EFLAGS: 00010202   (2.6.19-gentoo-r5-20070321-00 #2)
[6461290.516818] EIP is at __locks_delete_block+0xa/0x31
[6461290.516821] eax: e48f30c4   ebx: 005f0180   ecx: 00800005   edx: e48f30d0
[6461290.516824] esi: 00000000   edi: e48f3000   ebp: ec03cc80   esp: ea8c7f68
[6461290.516827] ds: 007b   es: 007b   ss: 0068
[6461290.516830] Process lockd (pid: 4386, ti=ea8c6000 task=c8598030 task.ti=ea8
c6000)
[6461290.516832] Stack: e48f30c4 c017adcd dfac22c0 dfac22c0 c024853d f5df2070 c0
4c8d2b e48f302c 
[6461290.516841]        dfac22c0 c0248eca 0000013c 00000150 00000004 dfac22c0 7f
ffffff 6091dfbd 
[6461290.516849]        00000000 c0249199 c0583bd0 01000000 7fffffff f5df2000 7f
ffffff f5df2000 
[6461290.516858] Call Trace:
[6461290.516861]  [<c017adcd>] posix_unblock_lock+0x37/0x49
[6461290.516867]  [<c024853d>] nlmsvc_unlink_block+0x2d/0x7c
[6461290.516871]  [<c04c8d2b>] svc_process+0x3fb/0x63d
[6461290.516878]  [<c0248eca>] nlmsvc_grant_blocked+0x32/0x175
[6461290.516885]  [<c0249199>] nlmsvc_retry_blocked+0x41/0x84
[6461290.516891]  [<c0247d8e>] lockd+0x13f/0x23b
[6461290.516897]  [<c0247c4f>] lockd+0x0/0x23b
[6461290.516901]  [<c0103d9b>] kernel_thread_helper+0x7/0x10

Comment 4 roma1390 2007-06-04 13:49:42 UTC
[6461290.516908]  =======================
[6461290.516910] Code: 74 0d 89 f0 8b 1c 24 8b 74 24 04 83 c4 08 c3 89 c8 ff d3 
85 c0 b8 01 00 00 00 0f 45 f0 89 f0 eb e3 53 8d 50 0c 8b 48 0c 8b 5a 04 <89> 59 
04 89 0b 89 52 04 89 50 0c 8d 50 04 8b 48 04 8b 5a 04 89 
[6461290.516953] EIP: [<c0178d3f>] __locks_delete_block+0xa/0x31 SS:ESP 0068:ea8
c7f68
[6461290.516959]  

this host has uptime about 75 days.
$ uname -a
Linux hostas 2.6.19-gentoo-r5-20070321-00 #2 SMP PREEMPT Wed Mar 21 15:04:31 EET 2007 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz GenuineIntel GNU/Linux

exported nfs server.

nfs isn't often used. Las day I desited to install debian using nfs from host lserver to exported nfs share.

exported from /etc/exports:
/home/debian    lserver(rw,no_root_squash,secure,async,nohide)

on lserver mounted with
gentoo_host:/home/debian /r nfs rw,v3,rsize=32768,wsize=32768,hard,udp,lock,addr=gentoo_host 0 0

after install in lserver done:
cd /r
mkdir old
pivot_root . old
chroot . /bin/bash

after some time gentoo_host drop first BUG.
later i desided to restart/start lockd

then was second NULL pointer.

dmesg of lserver:
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 OK
lockd: server 192.168.2.19 OK
lockd: server 192.168.2.19 OK
lockd: server 192.168.2.19 OK
lockd: server 192.168.2.19 OK
lockd: server 192.168.2.19 OK
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
lockd: server 192.168.2.19 not responding, still trying
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-06-04 13:59:12 UTC
emerge --info? nfs-utils version?
Comment 6 roma1390 2007-06-04 22:24:15 UTC
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.5-r2, 2.6.19-gentoo-r5-20070322-00 i686)
=================================================================
System uname: 2.6.19-gentoo-r5-20070322-00 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 03 Jun 2007 23:30:01 +0000
ccache version 2.3 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mcpu=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-mcpu=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise /usr/portage/local/layman/zugaina"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acpi aim alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 bzlib cdparanoia cdr cli cracklib crypt cscope ctype cups curl dbus divx4linux dlloader dmx dri dts dvd dvdread encode esd exif ffmpeg flac flash fortran ftp gcj gd gdbm ggi gif glitz glut gmp gpm graphviz gs gtk gtk2 hal iconv icq idn ieee1394 imagemagick imlib ipv6 isdnlog java jbig jikes jpeg lcms libcaca libg++ libwww logrotate lzo mad matroska midi mikmod mmap mmx mng motif mozilla mp3 mpeg msn mudflap multitarget mysql mythtv nas ncurses network nptl nptlonly nvidia ogg openal opengl openmp pam pcre pdf pdflib perl php plotutils png portaudio posix ppds pppd python qt qt3 qt4 quicktime readline reflection samba sasl scpd sdl session shorten slang slp sndfile sox speex spell spl sse sse2 ssl svg sysfs szip tcltk tcpd test theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vddx videos vidix vim-with-x vorbis win32codecs wmf x86 xanim xcb xine xml xml2 xorg xosd xpm xprint xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvdummy fbdev nvidia vesa vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 roma1390 2007-06-04 22:24:45 UTC
nfs-utils-1.0.6-r6
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-06-04 22:28:36 UTC
Well, upgrade nfs-utils to 1.0.12 at least (latest stable). Ditto for your kernel.  If you still have problems, try w/ gentoo-sources-2.6.21-r2 and latest ~arch nfs-utils and report back.
Comment 9 Jan Bruvoll 2007-11-28 03:16:20 UTC
Hi,

we're running nfs-utils-1.1.0-r1 with kernel 2.6.22-gentoo-r2, and we experience random, yet regular crashes (at least every two weeks) with similar symptoms as mentioned above.
Comment 10 Jan Bruvoll 2007-11-28 03:17:09 UTC
nfs1 jan # emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r2 i686)
=================================================================
System uname: 2.6.22-gentoo-r2 i686 Intel(R) Xeon(R) CPU 5140 @ 2.33GHz
Timestamp of tree: Tue, 27 Nov 2007 22:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no/ "
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY