Chris Johns created an issue: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/86



## Summary

Running the NFS test `nfs01.exe` fails with:

```
*** BEGIN OF TEST LIBBSD NFS 1 ***
*** TEST VERSION: 7.0.0.0e02798f9f29c579ebdee0c26b08ff0ba421f3fa-modified
*** TEST STATE: USER_INPUT
*** TEST BUILD: RTEMS_DEBUG RTEMS_POSIX_API
*** TEST TOOLS: 15.2.0 20250808 (RTEMS 7, Build 2026.03.04, RSB 
00a71896204f95cb583e6271cad4c192b62cce6d, Newlib a7c61498)
nexus0: <RTEMS Nexus device>
pcib0 pcibus 0
pci0: <PCI bus> on pcib0
pci0: <bridge, HOST-PCI> at device 0.0 (no driver attached)
pci0: <bridge, PCI-ISA> at device 1.0 (no driver attached)
pci0: <mass storage, ATA> at device 1.1 (no driver attached)
pci0: <bridge> at device 1.3 (no driver attached)
pci0: <display, VGA> at device 2.0 (no driver attached)
em0: <Intel(R) Legacy PRO/1000 MT 82540EM> port 0xc000-0xc03f mem 
0xfebc0000-0xfebdffff irq 11 at device 3.0 on pci0
em0: Using 1024 TX descriptors and 1024 RX descriptors
info: em0: Ethernet address: 52:54:00:12:34:56
cpu0: <legacy CPU>
info: lo0: link state changed to UP
add host 10.10.5.1: gateway em0
add net default: gateway 10.10.5.1
info: em0: link state changed to UP
mount: 10.10.5.4:/opt/src -> /nfs options:nfsv4,minorversion=1
nfs: mount: nfs -> 10.10.5.4:/opt/src (nfsv4,minorversion=1)
err: arp: 00:01:af:31:a8:5d is using my IP address 10.10.5.45 on em0!
nfs: mount args: 8
  16 addr=10 02 08 01 0a 0a 05 04 00 00 00 00 00 00 00 00
   0 nfsv4
   9 dirpath=/opt/src
   4 fstype=nfs
   7 fspath=/nfs-0
  19 hostname=10.10.5.4:/opt/src
   0 rw
   2 minorversion=1
nfs: mount: (0) Success
test path eval: /nfs
test: nfs: setup
test: nfs: opendir: /nfs
test: nfs: chdir: /nfs
test: nfs: mkdir: test-nfs01
../../testsuite/nfs01/test_main.c: 302 errno:17:File exists mkdir(test_top, 
0777) == 0
assertion "1 == 0" failed: file "../../testsuite/nfs01/test_main.c", line 302, 
function: test_setup
```

If built with `INVARIANTS` enabled the error is:

```
VNASSERT failed: old > 0 not true at ../../freebsd/sys/kern/vfs_subr.c:3454 
(_bsd_vrefact)
0x1f9bba20: type VDIR state VSTATE_CONSTRUCTED op 0x41bf18
    usecount 1, writecount 0, refcount 2 seqc users 0 mountedhere 0
    hold count flags ()
    flags (VV_VMSIZEVNLOCK)
    lock type nfs: EXCL by thread 0x4d26a0 (pid 1, rte_bsd_vrefact: wrong use 
count 0ms, tid 167837697)
        fileid 4722923 fsid 0x3a3a00ff01
test: nfs: getcwd: 2 (/nfs/test-nfs01/1/2)
emerg: refcount 0x1f9bbb2c wraparound
```

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/86
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to