Re: hydra and t632

Efraim Flashner <[email protected]> Thu, 22 Oct 2020 10:00:10 +0300
Newsgroups gmane.comp.version-control.rcs.bugs
Message-ID <20201022070010.GU9117@E5400>
--+mSjbC2tVdWE/Wop
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 21, 2020 at 03:21:55PM -0400, Thien-Thi Nguyen wrote:
> () Efraim Flashner <[email protected]>
> () Wed, 21 Oct 2020 21:38:50 +0300
>=20
>    I didn't see any stalling at all so I changed it to 50s and
>    it still finished immediately. I thought there might not be a
>    tty in the build environment but I see in the setup code
>    there is a /dev/tty. It looks like it's bind-mounted from
>    outside the build chroot.
>=20
> This tells me that maybe: (a) we are misusing =E2=80=98timeout=E2=80=99; =
or (b)
> =E2=80=98timeout=E2=80=99 is not doing its job.  Do any of the following =
command
> lines result in different behavior?

I inserted time in the build environment for some extra data

>   timeout --foreground 50s        (original)

0.37user 0.14system 0:00.68elapsed 75%CPU (0avgtext+0avgdata 27368maxreside=
nt)k
512inputs+1360outputs (0major+17509minor)pagefaults 0swaps
command "time" "make" "check" "KEEPD=3D1" "VERBOSE=3D1" "TESTS=3Dt632" fail=
ed with status 2

>   timeout 50s                     (no --foreground)

0.32user 0.14system 0:00.49elapsed 95%CPU (0avgtext+0avgdata 27372maxreside=
nt)k
288inputs+1456outputs (1major+17503minor)pagefaults 0swaps
command "time" "make" "check" "KEEPD=3D1" "VERBOSE=3D1" "TESTS=3Dt632" fail=
ed with status 2

>   LANG=3DC timeout --foreground 50s (w/ LANG=3DC)

0.39user 0.12system 0:00.68elapsed 76%CPU (0avgtext+0avgdata 27372maxreside=
nt)k
416inputs+1424outputs (2major+17514minor)pagefaults 0swaps
command "time" "make" "check" "KEEPD=3D1" "VERBOSE=3D1" "TESTS=3Dt632" fail=
ed with status 2

>   LANG=3DC timeout                  (w/ LANG=3DC, no --foreground)

0.35user 0.10system 0:00.48elapsed 93%CPU (0avgtext+0avgdata 27372maxreside=
nt)k
344inputs+1360outputs (2major+16840minor)pagefaults 0swaps
command "time" "make" "check" "KEEPD=3D1" "VERBOSE=3D1" "TESTS=3Dt632" fail=
ed with status 2

And with timeout removed completely:

Command exited with non-zero status 2
0.37user 0.13system 0:00.63elapsed 80%CPU (0avgtext+0avgdata 27372maxreside=
nt)k
192inputs+1552outputs (1major+17323minor)pagefaults 0swaps
// output from t632.d/signal-handling-out-and-err:
t632.d/x,v  -->  t632.d/x
revision 1.1 (locked)
writable t632.d/x exists; remove it? [ny](n):
co: checkout aborted

>=20
> The reason for =E2=80=98LANG=3DC=E2=80=99 cases is to see if the number p=
arsing is
> sensitive to locale in some weird way (IIRC i saw something
> about that changing in the more recent coreutils NEWS file).
>=20
> Another possiblity is (c) =E2=80=98co=E2=80=99 is not detecting the TTY, =
but that
> is doubtful since t632.d/signal-handling-out-and-err has the line
>=20
>   writable t632.d/x exists; remove it? [ny](n):=20
>=20
> which shows =E2=80=98co=E2=80=99 initiating user-interaction, which it on=
ly does
> if it has detected the TTY.

How does it detect the TTY? It could be that it detects the TTY but it's
not actually useable.

=46rom the build environment:
output of "which tty":
/gnu/store/57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32/bin/tty

output of "ls -la /dev/tt*":
ls: cannot access '/dev/tt*': No such file or directory

>=20
> Hmmm...  i'm hoping for (a), but fear (b) to be the root cause.
>=20


--=20
Efraim Flashner   <[email protected]>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--+mSjbC2tVdWE/Wop
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl+RLfYACgkQQarn3Mo9
g1FjKRAAqQS9z292PZ6ADH4sHlCyK+gbcRLyuok17Xb7MqmkaKt0YCb/WKxwI3LF
7xiAkZl0o+PzOnxSeeGKi+GZhd2ACHgra5TfZxdvVZjFt0B/yo/v7x6Z9r+ue3By
2EQXTMoiCQXJem87AX9lbvpsv5Nuxn8oq0gb7HOp0MW49lw2UKt/yFYWFzZ7cKzX
t/2OlV8Nvv97e87jZyCxNNWP6OM8GuVuAhoti7LvFAXhoJQasnZ5H88/rpC2UQi/
xvqGbo9ynySH8RzNmMM6wCX6sSGBR9yjSJSCvU3VnzIIW0c8ng60RXwozFfgpoVy
nak5ueo/2k1fYDIrZrOqUGwUVJ4/VI7hpZRXV6e+EQzFkoYgWBRGWhxSOtCXwn5H
5vCxFruKoVOTtX2hZl2HhS0rVlgjxkqRMYfArtkUAvwGEZGEX7lMNJD7uSq03Xq+
tsK4mgW+/Qbnn83v9y5qJmL66JU0N9C6DoWQJRUYDuOtHozzKTIyjTqDI60FveDa
69XqEdjvRoFGiwapTppklNvltLcnMIN+zZu6fE+m5KS/E2NGPSlfZjAZC82o7zAO
KmVzIyz5lhEvyK3MAV/05UTu/m9/oDZCzhopD98xCd9DGHS/AEGLELZKt3vfoZnR
Hh/tJ2dvH1+7zHx7HpAERgLvewHs0TmbnL3nUjE3neITODL0jRc=
=1ek7
-----END PGP SIGNATURE-----

--+mSjbC2tVdWE/Wop--