lsof icon indicating copy to clipboard operation
lsof copied to clipboard

FreeBSD tests failing in CI

Open emaste opened this issue 3 years ago • 2 comments

Describe the bug case-13-classic and case-14-classic-opt are failing in Cirrus-CI on FreeBSD 14 snapshots [Tests are also failing on FreeBSD 12 and 13, but let's start with the most up-to-date]

To Reproduce Run tests via Cirrus-CI

Expected behavior Tests pass

Program output

STARTING TEST ( dialect neutral )
=============================================================================
case-00-hello ... ok
case-01-version ... ok
case-13-classic ... failed
case-14-classic-opt ... failed
case-20-exit-status ... ok
case-20-fd-only-inclusion ... ok
case-20-handle-missing-files ... ok
case-20-offset-field ... ok
case-20-repeat-count ... ok
case-21-exit-Q-status ... ok

Environment (please complete the following information):

  • Kernel: FreeBSD 14 snapshot
  • OS: FreeBSD
  • lsof Version: git ce84a35f82e8c7af4f1d370bc983001090a78a2d
  • Origin: GCP image

Additional context

Link to test run: https://cirrus-ci.com/task/6574869868445696

emaste avatar Sep 19 '22 17:09 emaste

[failed] /tmp/case-13-classic-1028.report
-----------------------------------------------------------------------------
`cat config.cc`  -I. -I.. `cat config.cflags` -c LTlib.c  -o LTlib.o
`cat config.cc`  -I. -I.. `cat config.cflags` LTbasic.c  LTlib.o `cat config.xobj` -o LTbasic
`cat config.cc`  -I. -I.. `cat config.cflags` LTnlink.c  LTlib.o `cat config.xobj` -o LTnlink
`cat config.cc`  -I. -I.. `cat config.cflags` LTsock.c  LTlib.o `cat config.xobj` -o LTsock `cat config.ldflags`
`cat config.cc`  -I. -I.. `cat config.cflags` LTszoff.c  LTlib.o `cat config.xobj` -o LTszoff
`cat config.cc`  -I. -I.. `cat config.cflags` LTunix.c  LTlib.o `cat config.xobj` -o LTunix `cat config.ldflags`
This suite has not been validated on:
     LT_BIGF LT_CC LT_DEV64 LT_DIAL_freebsd LT_KMEM LT_VERS=14000
Basic test:
LTbasic ... ERROR!!!  open lsof executable wasn't found.
            ERROR!!!  open lsof /dev/kmem usage wasn't found.
            ERROR!!!  lsof process wasn't found.
            *** Error code 1
Stop.
make: stopped in /tmp/cirrus-ci-build/tests
------------------------------------
"LTbasic ... OK" is not found in the output
"LTnlink ... OK" is not found in the output
"LTsock ... OK" is not found in the output
"LTszoff ... OK" is not found in the output
"LTunix ... OK" is not found in the output
output
.............................................................................
`cat config.cc`  -I. -I.. `cat config.cflags` -c LTlib.c  -o LTlib.o
`cat config.cc`  -I. -I.. `cat config.cflags` LTbasic.c  LTlib.o `cat config.xobj` -o LTbasic
`cat config.cc`  -I. -I.. `cat config.cflags` LTnlink.c  LTlib.o `cat config.xobj` -o LTnlink
`cat config.cc`  -I. -I.. `cat config.cflags` LTsock.c  LTlib.o `cat config.xobj` -o LTsock `cat config.ldflags`
`cat config.cc`  -I. -I.. `cat config.cflags` LTszoff.c  LTlib.o `cat config.xobj` -o LTszoff
`cat config.cc`  -I. -I.. `cat config.cflags` LTunix.c  LTlib.o `cat config.xobj` -o LTunix `cat config.ldflags`
This suite has not been validated on:
     LT_BIGF LT_CC LT_DEV64 LT_DIAL_freebsd LT_KMEM LT_VERS=14000
Basic test:
LTbasic ... ERROR!!!  open lsof executable wasn't found.
            ERROR!!!  open lsof /dev/kmem usage wasn't found.
            ERROR!!!  lsof process wasn't found.
            *** Error code 1
Stop.
make: stopped in /tmp/cirrus-ci-build/tests

emaste avatar Sep 19 '22 17:09 emaste

ERROR!!! open lsof /dev/kmem usage wasn't found. - /dev/kmem is not used any longer on FreeBSD main, so this is unsurprising. This part of the test no longer makes sense after d5555d1006e930a8ebe37551b1c22257dda95ad2

emaste avatar Sep 23 '22 16:09 emaste

Fixed in pr #271

jiegec avatar Jan 16 '23 10:01 jiegec