Your message dated Sat, 20 Jul 2024 01:49:48 +0000
with message-id <e1suzek-003nzw...@fasolo.debian.org>
and subject line Bug#1075717: fixed in mawk 1.3.4.20240622-2
has caused the Debian Bug report #1075717,
regarding mawk: rand() incorrect results on i386 - returns negative numbers and 
ignores srand()
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.)


-- 
1075717: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075717
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mawk
Version: 1.3.4.20240622-1
Severity: normal

Dear Maintainer,

Running mawk produces wrong output from rand() on i386:

  $ echo | mawk 'BEGIN {srand(10);} {print rand()};'
  0.158578
  $ echo | mawk 'BEGIN {srand(10);} {print rand()};'
  -0.276944
  $ echo | mawk 'BEGIN {srand(10);} {print rand()};'
  -0.387807
  $ echo | mawk 'BEGIN {srand(10);} {print rand()};'
  0.470306

The result of rand() should never be negative; and it should be
deterministic after calling srand().

This occurs on i386 (tested in sbuild --arch=i386 as part of debugging a
reproducible build problem of package openscad).

The expected output is the same value between 0 and 1, for example:

  $ echo | mawk 'BEGIN {srand(10);} {print rand()};'
  0.559536
  $ echo | mawk 'BEGIN {srand(10);} {print rand()};'
  0.559536
  $ echo | mawk 'BEGIN {srand(10);} {print rand()};'
  0.559536

The longer story, for completeness: I am the maintainer for openscad, and I
see openscad sometimes failing to build reproducibly on (only) i386 during
the past year. The root cause seems to be a test script that calls awk and
behaves unexpectedly due to getting a negative number out of rand().

The problem does not seem to occur on amd64 or arm64. Openscad doesn't build
on armhf, so not sure if the problem in mawk is specific to i386 or may be
specific to 32-bit for example.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to C.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages mawk depends on:
ii  libc6  2.38-13

mawk recommends no packages.

mawk suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: mawk
Source-Version: 1.3.4.20240622-2
Done: Boyuan Yang <by...@debian.org>

We believe that the bug you reported is fixed in the latest version of
mawk, 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 1075...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Boyuan Yang <by...@debian.org> (supplier of updated mawk 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: Fri, 19 Jul 2024 21:33:53 -0400
Source: mawk
Architecture: source
Version: 1.3.4.20240622-2
Distribution: unstable
Urgency: medium
Maintainer: Boyuan Yang <by...@debian.org>
Changed-By: Boyuan Yang <by...@debian.org>
Closes: 1075717
Changes:
 mawk (1.3.4.20240622-2) unstable; urgency=medium
 .
   * debian/patches/0001-aclocal.m4-Avoid-arc4random-for-now.patch:
     Add patch to avoid using arc4random as suggested upstream.
     (Closes: #1075717)
Checksums-Sha1:
 718fe6738ff58ac42c17c83b8f22a9e891478035 2969 mawk_1.3.4.20240622-2.dsc
 8c35cbb186dd94620ef770194eac9f8612bfa7cf 414190 mawk_1.3.4.20240622.orig.tar.gz
 88d85cfdfbe8e627d3a25457ec0ac526dca29d3d 729 
mawk_1.3.4.20240622.orig.tar.gz.asc
 e47462447f0daaa4ed82c5921d474b326ec4528b 16136 
mawk_1.3.4.20240622-2.debian.tar.xz
 34d41e3cc05bf907f204eecfc620351fa9027668 6089 
mawk_1.3.4.20240622-2_amd64.buildinfo
Checksums-Sha256:
 cc95afc29fa8e4406f42cd3887de7a10b9d70a84d70341d4e7c962438686db2f 2969 
mawk_1.3.4.20240622-2.dsc
 4e917e87a7a9fbaf76995784a4b0b5dc0dd954b977d0983030f78f6a07b1a765 414190 
mawk_1.3.4.20240622.orig.tar.gz
 1c66d8d18bf562d492a3b33a379c51ec80e111f8203a9546969fd7e436cb7041 729 
mawk_1.3.4.20240622.orig.tar.gz.asc
 66d5c0f334acce8cd329f3807252d19c53b6b3cecbbf4d42d7c239f54f3ad296 16136 
mawk_1.3.4.20240622-2.debian.tar.xz
 340dc5559a01ef05c3069d95eb732c2b47c62f20b34416dcfb2ed167c9d77a2b 6089 
mawk_1.3.4.20240622-2_amd64.buildinfo
Files:
 9c330969ca90d5d31091a7ab3f193fa2 2969 interpreters required 
mawk_1.3.4.20240622-2.dsc
 4a6c8fcb0187e2206518c34d9f10f22f 414190 interpreters required 
mawk_1.3.4.20240622.orig.tar.gz
 fe4d037d772ad669dc37027e771dc571 729 interpreters required 
mawk_1.3.4.20240622.orig.tar.gz.asc
 9917227d6656abb449e027dc21892755 16136 interpreters required 
mawk_1.3.4.20240622-2.debian.tar.xz
 41cd131ab6b90105398a491b59867b7e 6089 interpreters required 
mawk_1.3.4.20240622-2_amd64.buildinfo

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

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmabFPsACgkQwpPntGGC
Ws6LsRAAqks6QP+kacOJivCYC5Sj7xJR8EEED+/GQwThhkxIIW9dzgsfj+Nj3KXt
Rr21UNZDltonKUNdnwBxCHHGi33aH/mG6tjszQnZsKlmdDWQCq1UAJCfNMyFiihl
VWdwlcPIK3Z2i2Y2oLlYJyc6lSJy5fo1QqBD+jfwOwTcm2xHGA77R0Zpjuh619JW
62PaJNPTrl1FP7HEjoMbwQsBsTMo/nrWAomz9vRfmjQaa/1+Vrhvn3/OZ0rQNjAW
Wp7I5ZiqTJh+7aB8Y9W/f7mmIOZtpEwJWbB/yLo4JPHUHXBzSMzdAtWr+CwYFMjH
pFWVT2OEVFsX04RdDh3JQ+b6MhL8w6+u5a7U7E5+gKoyAc7QLyQOH+Zh6an9obm2
HstA2pNpc0QdOQLH39Mi3X9QQpA2//6tfedR3Im54R31e4paIowGtPKyceEc8qYA
x23RkGbgGkc3BSpG+8qA1pmQKXXz2/2fNL9Kecqt00GpjknprdhTlhck7/lgRJzu
1lKiGwALzeQjT6qwgjHTWGOAXKY0lDIxYfEDX7w9AFbHTny1v7iTTR0XICYt7S2H
skbEzo8DhMvz8MR1LHYLXOpmfNunYTwtpVjOtxoRXOn/iun9LcXS3746oWna8kfr
AN4ZgnacVTADh5DhgOqttTRN5jUuBnLIwLNJD3aBHruww8xT/Yc=
=W2u7
-----END PGP SIGNATURE-----

Attachment: pgpeLAiA28nGU.pgp
Description: PGP signature


--- End Message ---

Reply via email to