Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Sep 2022 21:58:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266284] tests/usr.bin/tail/tail:follow_stdin is flaky
Message-ID:  <bug-266284-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 266284
           Summary: tests/usr.bin/tail/tail:follow_stdin is flaky
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: markj@FreeBSD.org

This test fails occasionally in CI, also locally for me.  tail(1) crashes w=
hen
the test fails, so it appears to be a real bug.  The crash doesn't happen w=
hen
ASLR is disabled.

Program terminated with signal SIGBUS, Bus error.
Object-specific hardware error.
#0  rlines (fp=3D0x1d9c41e5d630, fn=3D0x1d941c249630 "stdin", off=3D10,
sbp=3D0x1d9c3d0a89b8) at /root/freebsd/usr.bin/tail/forward.c:219
219     /root/freebsd/usr.bin/tail/forward.c: No such file or directory.
(gdb) bt
#0  rlines (fp=3D0x1d9c41e5d630, fn=3D0x1d941c249630 "stdin", off=3D10,
sbp=3D0x1d9c3d0a89b8) at /root/freebsd/usr.bin/tail/forward.c:219
#1  forward (fp=3D0x1d9c41e5d630, fn=3D0x1d941c249630 "stdin",
style=3Dstyle@entry=3DRLINES, off=3Doff@entry=3D10, sbp=3Dsbp@entry=3D0x1d9=
c3d0a89b8) at
/root/freebsd/usr.bin/tail/forward.c:167
#2  0x00001d941c24b5c9 in follow (files=3Dfiles@entry=3D0x1d9c3d0a89a8,
style=3D1149239296, off=3D2564102) at /root/freebsd/usr.bin/tail/forward.c:=
330
#3  0x00001d941c24d632 in main (argc=3D0, argv=3D<optimized out>) at
/root/freebsd/usr.bin/tail/tail.c:276

"info proc map"'s output has the following suspicious-looking line:

0x1d9c44800000     0x1d9c44a73000   0x273000 0x1d9c3e400000  r-- ----
/tmp/infile

--=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-266284-227>