Your message dated Sat, 26 Aug 2017 09:34:27 +0000 with message-id <e1dlxu3-00053w...@fasolo.debian.org> and subject line Bug#872556: fixed in glibc 2.24-17 has caused the Debian Bug report #872556, regarding libc0.1: clock() has wrong scaling factor on hurd 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 ow...@bugs.debian.org immediately.) -- 872556: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872556 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
--- Begin Message ---Package: libc0.1 Version: 2.24-14 Severity: normal Control: affects -1 src:ffmpeg Hi, The clock() function on hurd has the wrong scaling factor. It generates only 100 clock ticks per second, even though CLOCKS_PER_SEC is 1000000. I has written a small testcase (attached) which illustrates the difference: amd64: CLOCKS_PER_SEC = 1000000 clock() = 444 sleeping for 1 second... clock() = 1000464 hurd-i386: CLOCKS_PER_SEC = 1000000 clock() = 0 sleeping for 1 second... clock() = 100 I raised this issue on debian-hurd here: https://lists.debian.org/debian-hurd/2017/07/msg00054.html While I appreciate that hurd's clock may not be able to be as precise as on Linux, but it should still return values which corresponds in some way to CLOCKS_PER_SEC. As far as I can tell, this bug is caused by the Debian patch: debian/patches/hurd-i386/unsubmitted-clock_t_centiseconds.diff The patch header contains a description about applications failing with high precision. IMHO those applications are broken. Their bugs should not be worked around in libc and that patch should be dropped. This was originally found after debugging ffmpeg. I believe the FTBFS on hurd is caused by this bug. Thanks, James#include <time.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> static void busy_wait(int seconds) { struct timespec start, current; if (clock_gettime(CLOCK_MONOTONIC, &start) != 0) abort(); for (;;) { if (clock_gettime(CLOCK_MONOTONIC, ¤t) != 0) abort(); if (current.tv_sec - start.tv_sec > seconds || (current.tv_sec - start.tv_sec == seconds && current.tv_nsec >= start.tv_nsec)) break; } } int main(void) { printf("CLOCKS_PER_SEC = %ld\n", CLOCKS_PER_SEC); printf("clock() = %ld\n", clock()); printf("sleeping for 1 second...\n"); busy_wait(1); printf("clock() = %ld\n", clock()); return 0; }signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---Source: glibc Source-Version: 2.24-17 We believe that the bug you reported is fixed in the latest version of glibc, 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 872...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Aurelien Jarno <aure...@debian.org> (supplier of updated glibc 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 ftpmas...@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Sat, 26 Aug 2017 11:09:24 +0200 Source: glibc Binary: libc-bin libc-dev-bin libc-l10n glibc-doc glibc-source locales locales-all nscd multiarch-support libc6 libc6-dev libc6-dbg libc6-pic libc6-udeb libc6.1 libc6.1-dev libc6.1-dbg libc6.1-pic libc6.1-udeb libc0.3 libc0.3-dev libc0.3-dbg libc0.3-pic libc0.3-udeb libc0.1 libc0.1-dev libc0.1-dbg libc0.1-pic libc0.1-udeb libc6-i386 libc6-dev-i386 libc6-sparc libc6-dev-sparc libc6-sparc64 libc6-dev-sparc64 libc6-s390 libc6-dev-s390 libc6-amd64 libc6-dev-amd64 libc6-powerpc libc6-dev-powerpc libc6-ppc64 libc6-dev-ppc64 libc6-mips32 libc6-dev-mips32 libc6-mipsn32 libc6-dev-mipsn32 libc6-mips64 libc6-dev-mips64 libc0.1-i386 libc0.1-dev-i386 libc6-x32 libc6-dev-x32 libc6-xen libc0.3-xen libc6.1-alphaev67 Architecture: source Version: 2.24-17 Distribution: unstable Urgency: medium Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Changed-By: Aurelien Jarno <aure...@debian.org> Description: glibc-doc - GNU C Library: Documentation glibc-source - GNU C Library: sources libc-bin - GNU C Library: Binaries libc-dev-bin - GNU C Library: Development binaries libc-l10n - GNU C Library: localization files libc0.1 - GNU C Library: Shared libraries libc0.1-dbg - GNU C Library: detached debugging symbols libc0.1-dev - GNU C Library: Development Libraries and Header Files libc0.1-dev-i386 - GNU C Library: 32bit development libraries for AMD64 libc0.1-i386 - GNU C Library: 32bit shared libraries for AMD64 libc0.1-pic - GNU C Library: PIC archive library libc0.1-udeb - GNU C Library: Shared libraries - udeb (udeb) libc0.3 - GNU C Library: Shared libraries libc0.3-dbg - GNU C Library: detached debugging symbols libc0.3-dev - GNU C Library: Development Libraries and Header Files libc0.3-pic - GNU C Library: PIC archive library libc0.3-udeb - GNU C Library: Shared libraries - udeb (udeb) libc0.3-xen - GNU C Library: Shared libraries [Xen version] libc6 - GNU C Library: Shared libraries libc6-amd64 - GNU C Library: 64bit Shared libraries for AMD64 libc6-dbg - GNU C Library: detached debugging symbols libc6-dev - GNU C Library: Development Libraries and Header Files libc6-dev-amd64 - GNU C Library: 64bit Development Libraries for AMD64 libc6-dev-i386 - GNU C Library: 32-bit development libraries for AMD64 libc6-dev-mips32 - GNU C Library: o32 Development Libraries for MIPS libc6-dev-mips64 - GNU C Library: 64bit Development Libraries for MIPS64 libc6-dev-mipsn32 - GNU C Library: n32 Development Libraries for MIPS64 libc6-dev-powerpc - GNU C Library: 32bit powerpc development libraries for ppc64 libc6-dev-ppc64 - GNU C Library: 64bit Development Libraries for PowerPC64 libc6-dev-s390 - GNU C Library: 32bit Development Libraries for IBM zSeries libc6-dev-sparc - GNU C Library: 32bit Development Libraries for SPARC libc6-dev-sparc64 - GNU C Library: 64bit Development Libraries for UltraSPARC libc6-dev-x32 - GNU C Library: X32 ABI Development Libraries for AMD64 libc6-i386 - GNU C Library: 32-bit shared libraries for AMD64 libc6-mips32 - GNU C Library: o32 Shared libraries for MIPS libc6-mips64 - GNU C Library: 64bit Shared libraries for MIPS64 libc6-mipsn32 - GNU C Library: n32 Shared libraries for MIPS64 libc6-pic - GNU C Library: PIC archive library libc6-powerpc - GNU C Library: 32bit powerpc shared libraries for ppc64 libc6-ppc64 - GNU C Library: 64bit Shared libraries for PowerPC64 libc6-s390 - GNU C Library: 32bit Shared libraries for IBM zSeries libc6-sparc - GNU C Library: 32bit Shared libraries for SPARC libc6-sparc64 - GNU C Library: 64bit Shared libraries for UltraSPARC libc6-udeb - GNU C Library: Shared libraries - udeb (udeb) libc6-x32 - GNU C Library: X32 ABI Shared libraries for AMD64 libc6-xen - GNU C Library: Shared libraries [Xen version] libc6.1 - GNU C Library: Shared libraries libc6.1-alphaev67 - GNU C Library: Shared libraries (EV67 optimized) libc6.1-dbg - GNU C Library: detached debugging symbols libc6.1-dev - GNU C Library: Development Libraries and Header Files libc6.1-pic - GNU C Library: PIC archive library libc6.1-udeb - GNU C Library: Shared libraries - udeb (udeb) locales - GNU C Library: National Language (locale) data [support] locales-all - GNU C Library: Precompiled locale data multiarch-support - Transitional package to ensure multiarch compatibility nscd - GNU C Library: Name Service Cache Daemon Closes: 872556 873097 Changes: glibc (2.24-17) unstable; urgency=medium . [ Samuel Thibault ] * patches/hurd-i386/unsubmitted-clock_t_centiseconds.diff: Drop clock() part from patch, it always uses CLOCKS_PER_SEC which is always 1000000. Should fix ffmpeg build. Closes: Bug#872556. . [ Aurelien Jarno ] * debian/patches/any/submitted-intl-tstgettext.diff: new patch to fix the intl/tst-gettext with newer gettext versions. Closes: #873097. Checksums-Sha1: f6c46558374d8fdd3bf99c026cd3f3ae92bca9ae 8226 glibc_2.24-17.dsc 6aed7015e788172a6cfdb6aff99556c6e3c6957c 1036004 glibc_2.24-17.debian.tar.xz 2bf65b2b5a4e6a12a6d667e2bd8eeaa513743cbd 7076 glibc_2.24-17_source.buildinfo Checksums-Sha256: 8f8db58051f431525439dae692242124befba9cfab64b406ec8964818ba46a43 8226 glibc_2.24-17.dsc a66991c3d29bb30e57ef8eaeb1732b3694689cb8d4eb999ccb018076a02c5940 1036004 glibc_2.24-17.debian.tar.xz 11590b8ca36d8a1e2fac67c5121662759fd50ea78eb036d938fc3e8031e3b1e3 7076 glibc_2.24-17_source.buildinfo Files: b41e283269f3f642eed2fadc09037704 8226 libs required glibc_2.24-17.dsc 9b7fa8a93e89729add1591d0482900ed 1036004 libs required glibc_2.24-17.debian.tar.xz c56c1f97b7d46a2decccc64180533587 7076 libs required glibc_2.24-17_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEd0YmQqnvlP0Pdxltupx4Bh3djJsFAlmhO1AACgkQupx4Bh3d jJvKrQ/+I6VDRgfi5an67Pp4C4L2ths1Iw6RLZRWRszUwuSZgbbQBRiIs+bZj8nm IUpSd2F1KDw9jpsOmtmvlEJn9dTEeTayg64CM0rf3xaw8SyZsPf8oRucqQHAT01s 7dk++VuRw6Q1e+QeretXpdTfCXIxEuABIeMd3xEK4QXEUupEGrHI4/n7121xDMyT O9RJSjmmOBC6cqht42s37e4WfNPIBiAum6htvv/5rBP9VWBlPssBaCi6ezzENMku ZZ4QeH7lKQbzT84valGyhyA4Mnl9INQAKHluaQZXoAps9N0dQaU0vH2CJk6AhQuq owFvVA6wNvuj1M/PzWiXW1BO5uGPTFePswSB6SAhyMMO5+iCu5ogyUZJ7smdw0js ECmJ2MhDUHCoflH1652Fw8PitUiOU3D/8Ylw2lF5TjgOs7BBtiL2I0fBr9xQolSP liH/e46Xrw1GWki0syiT6mT8DzbT+ltGjEUvsIEIlyyqMrFSVlNHPxekbnwthQUY OhR+reQ/xO02tBCIOED7Hte+GzyJe/xPk/srgx9XBbMX/6G2XOuKB9b/QjPzmqmS QRGkictXU6veQQdY84Gc7uN1/r6iInD7/miGFXciIRRsa2i0UjDdwZhME5Vdkzmv WEf/DXhhLahvX2jsDwPbjTvSH/9c6gz/BcVyGRvZmd0V7rCK3uU= =HKFi -----END PGP SIGNATURE-----
--- End Message ---