Your message dated Sat, 05 Mar 2016 10:39:27 +0000
with message-id <[email protected]>
and subject line Bug#813598: fixed in gnutls28 3.4.10-1
has caused the Debian Bug report #813598,
regarding gnutls28: FTBFS[kfreebsd]: tests/mini-loss-time race
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
813598: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813598
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gnutls28
Version: 3.4.8-3
Severity: important

Hi,

gnutls28 tests/mini-loss-time fails about 20% of the time when I try it
on kfreebsd-amd64.  I think probably introduced by this commit:
https://gitlab.com/gnutls/gnutls/commit/e2a3ad31c487cbce997a08dddc55db639b60c024

The failure happens at ~60 seconds elapsed, when some (expected) timeout
is reached.  The child always exits first, and closes fds:

(49946 101730 = child)
49946 101730 mini-loss-time 60.187211 CALL  close(0x4)                      
49946 101730 mini-loss-time 60.187244 RET   close 0                         
49946 101730 mini-loss-time 60.187346 CALL  close(0x3)                      
49946 101730 mini-loss-time 60.187363 RET   close 0                         
49946 101730 mini-loss-time 60.187830 CALL  exit(0)                         

The parent receives SIGCHLD, and some wait() call on the child pid
returns:

(49871 102302 = parent)
49871 102302 mini-loss-time 60.188448 RET   select -1 errno 4 Interrupted 
system call
49871 102302 mini-loss-time 60.188572 PSIG  SIGCHLD caught handler=0x401570 
mask=0x0 code=CLD_EXITED
49871 102302 mini-loss-time 60.188594 CALL  wait4(0xffffffff,0x7fffffffdd44,0,0)
49871 102302 mini-loss-time 60.188657 RET   wait4 49946/0xc31a              
49871 102302 mini-loss-time 60.188673 CALL  sigreturn(0x7fffffffdd70)       
49871 102302 mini-loss-time 60.188689 RET   sigreturn JUSTRETURN            
49871 102302 mini-loss-time 60.188713 CALL  clock_gettime(0,0x7fffffffe320) 
49871 102302 mini-loss-time 60.188808 RET   clock_gettime 0                 
49871 102302 mini-loss-time 60.188831 CALL  clock_gettime(0,0x7fffffffe320) 
49871 102302 mini-loss-time 60.188847 RET   clock_gettime 0                 

In the successful case, the parent exits now.

In the failure case, the parent tries to read something from an fd
first, I guess a pipe that was just closed at the other end
(maybe the server didn't time out quite yet?) :

(50000 101614 = parent)
50000 101614 mini-loss-time 59.273668 CALL  recvfrom(0x5,0x624833,0x415c,0,0,0)
50000 101614 mini-loss-time 59.273686 RET   recvfrom -1 errno 54 Connection 
reset by peer

leading to GNUTLS_E_PUSH_ERROR rather than expected GNUTLS_E_TIMEDOUT.

The attached ktrace dumps can be compared using vimdiff to help
study this.  I haven't tested on GNU/Linux.

If I lower the server timeout to 29 seconds, I haven't seen this failure
any more.

--- tests/mini-loss-time.c.orig
+++ tests/mini-loss-time.c
@@ -196,7 +196,7 @@
 
        gnutls_init(&session, GNUTLS_SERVER | GNUTLS_DATAGRAM);
        gnutls_dtls_set_mtu(session, 1500);
-       gnutls_dtls_set_timeouts(session, 1 * 1000, 30 * 1000);
+       gnutls_dtls_set_timeouts(session, 1 * 1000, 29 * 1000);
 
        /* avoid calling all the priority functions, since the defaults
         * are adequate.

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Attachment: kdump.ok.gz
Description: application/gzip

Attachment: kdump.fail.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Source: gnutls28
Source-Version: 3.4.10-1

We believe that the bug you reported is fixed in the latest version of
gnutls28, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <[email protected]> (supplier of updated gnutls28 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 05 Mar 2016 08:45:52 +0100
Source: gnutls28
Binary: libgnutls28-dev libgnutls30 gnutls-bin gnutls-doc guile-gnutls 
libgnutlsxx28 libgnutls-openssl27
Architecture: all source
Version: 3.4.10-1
Distribution: experimental
Urgency: medium
Maintainer: Debian GnuTLS Maintainers <[email protected]>
Changed-By: Andreas Metzler <[email protected]>
Closes: 813598 816148
Description: 
 gnutls-bin - GNU TLS library - commandline utilities
 gnutls-doc - GNU TLS library - documentation and examples
 guile-gnutls - GNU TLS library - GNU Guile bindings
 libgnutls28-dev - GNU TLS library - development files
 libgnutls30 - GNU TLS library - main runtime library
 libgnutls-openssl27 - GNU TLS library - OpenSSL wrapper
 libgnutlsxx28 - GNU TLS library - C++ runtime library
Changes:
 gnutls28 (3.4.10-1) experimental; urgency=medium
 .
   * Pull 40_src-added-systemkey-args-to-BUILT_SOURCES.patch from upstream GIT
     master to fix FTBFS with parallel builds. Closes: #816148
   * New upstream version.
   * Pull 41_tests-mini-loss-time-ensure-client-timeouts.diff from upstream
     master branch to fix occasional testsuite error. Closes: #813598
Checksums-Sha1: 
 7ddb8b25e64edace7ca634bf55df762362f4a1d9 2900 gnutls28_3.4.10-1.dsc
 faf74e01f2d19b68c8ae07ddb13c86cc630ea339 6645892 gnutls28_3.4.10.orig.tar.xz
 608f939fb663ee83177f58ba358dbb957bb81aac 87616 gnutls28_3.4.10-1.debian.tar.xz
 9e9874575ac4c9bdc125848889fea2ecf20cca6e 3933150 gnutls-doc_3.4.10-1_all.deb
Checksums-Sha256: 
 a8fc9e331c70b3ca95c67d743ffc78c8efe707b63fefa4ddda1f6b8725ab55a8 2900 
gnutls28_3.4.10-1.dsc
 6a32c2b4acbd33ff7eefcbd1357009da04c94c60146ef61320b6c076b1bdf59f 6645892 
gnutls28_3.4.10.orig.tar.xz
 ebd4e095c92d173d55895c7da560ff4fdd679e5898dfa4064dc19e2c1fbe1666 87616 
gnutls28_3.4.10-1.debian.tar.xz
 67b35b1ca2022e10a99638f555a69692cbd626744e30274da56aa474e3ec016a 3933150 
gnutls-doc_3.4.10-1_all.deb
Files: 
 5ec9e9295791940eb08e7b2669f6b59a 2900 libs optional gnutls28_3.4.10-1.dsc
 fe9a0dc5adf205122f01a3e7dac5f8dd 6645892 libs optional 
gnutls28_3.4.10.orig.tar.xz
 b9f51898e59766af3e6acc2e945c627e 87616 libs optional 
gnutls28_3.4.10-1.debian.tar.xz
 72fdd1fba9a2ec2fc06b35a13a5be90b 3933150 doc optional 
gnutls-doc_3.4.10-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJW2pPhAAoJEKVPAYVDghSEFigP/3UgF9DVHp4Fk7g10aH9WDJr
qa68rymYfjD+yzK+IJ2OEcu3rgdV6ofugkQ0w52xtuMaIGPjKNk/uPTaKO0VRWGw
OUpcMZnadL/yDpEBWayIv1UKzRd8k/6wX6bEoY/ayKfm3Ok6Rwt2nLoJ/M+psrH+
6JEhrakAe5kFXv/zzgJUagITk9N/p1Q4k5yfMA/tteINLeIr9k9Jz8sqCs0x5ULh
wZNMgFxofZA+8ubS3NyEWauaOJVA/KjOx0K0mmrY8D9akHdJxh1hmguhMKzTywkF
UHN6UmjEUO9RwH+QORxWexLuyauFQ8BVxxAa0lEmpXHf+6rX/qaQi9Clrt+2ofCv
ciUuj61Z2avVAbEF8pvnGRYo5NCPpn1Tv3Wj3TzJ57+x7hxN7PGukwJe+ZwEsJUy
EemrRn6x7dWCikafichkHZ801tewuwwALOe3Qn43z+OL03P9GlkMvPPFeAj+tbrT
ilHAwvedtxKGb5TtVY2A5ypp3I6g2oZI//mkVPlqQ+FAVw2X1cTtvgbbTwvd3e5S
XzRUUIYVFJ2FyTEjuWRCBj4RgdRUyG0F5xD4An9AWdTMiRTD5TxMU7IngmpmX25p
5oPutSCcnicqNEFXxysyL2Bg2BeQejsF2gfcEm3VHWKcayBshZwLhu2ajU0BnsK6
NI25yN3CC99+8Fh0xmAW
=dC7U
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to