Wind River Support Network

HomeDefectsLIN10-5726
Fixed

LIN10-5726 : Building bjam-native locks up build if an NFS dir is part of $PATH and NFS server is unavailable

Created: Apr 11, 2019    Updated: May 18, 2019
Resolved Date: Apr 17, 2019
Found In Version: 10.17.41.1
Fix Version: 10.17.41.16
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Userspace

Description

Building bjam-native package locks up build if an NFS dir is part of $PATH and NFS server is unavailable.

Steps to Reproduce

On the build host:
$ mkdir $HOME/bin
$ export PATH=$HOME/bin:$PATH
$ cd $HOME/bin/
$ ln -s /net/ala-cvl1-lx1/ala-cvl1-lx13/common/lx7
$ ll
lrwxrwxrwx 1 nmarguet users 43 Apr 16 02:06 lx7 -> /net/ala-cvl1-lx1/ala-cvl1-lx13/common/lx7/
$ mount|grep ala-cvl1-lx13
ala-cvl1-lx1:/ala-cvl1-lx13 on /net/ala-cvl1-lx1/ala-cvl1-lx13 type nfs (rw,nosuid,nodev,intr,sloppy,vers=4,addr=147.11.153.19,clientaddr=128.224.198.78)

Note that the NFS directory ala-cvl1-lx1:/ala-cvl1-lx13 is mounted with default option 'hard', which will cause indefinite retries when accessed; 'man nfs' shows with option 'hard', requests are tried indefinitely:

       soft / hard    Determines the recovery behavior of the NFS client after
		      an NFS request times out.	 If neither option  is	speci-
		      fied  (or if the hard option is specified), NFS requests
		      are retried indefinitely.	


On the NFS server (ala-cvl1-lx1:/ala-cvl1-lx13)
$ cat /etc/exports
/ala-cvl1-lx13 *(rw,sync,no_subtree_check)
$ ls /ala-cvl1-lx13/common/lx7/
(this directory exists)
Stop the NFS server:
$ sudo service nfs-kernel-server stop

On the build host:
$ /lx6/wrlinux-6/wrlinux/configure --enable-reconfig --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc_small --enable-bootimage=cpio.gz --enable-rm-work=yes --enable-rm-oldimgs=yes --enable-checkout-all-layers --with-layer=examples/lemon_layer --with-rcpl-version=0026
$ make -C build bjam-native.rebuild
(stuck in the compile task for ever)

Note that 'ls' also hangs listing the same directory:
$ ls
(hanging here)
(even Ctrl-C does not stop this)
Live chat
Online