Package: lua5.3
Version: 5.3.3-1
Severity: important

Based on a more complex script that was generating incorrect numerical
results, I have created a fairly simple example lua script (which I will 
subsequently
attach to this bug report) which demonstrates the bug.

In this script I initialize 9 different arrays of
various sizes, and then calculate the numerical inverses of elements
of two of those arrays.  The inverses are not calculated properly (the
result just prints out as 1.0) if 9 arrays are initialized, but if I
remove any one of the array initializations that are not relevant to
the inverse calculation, the correct inverse result is printed.  For
the (incorrect) nine-array case, the printout shows the array value
that is inverted is correct so it is lua's ability to divide that gets
clobbered by the intialization of 9 arrays in this example,
and not the array value itself that is being inverted.

This bug makes lua5.3 largely unusable for any complex task that involves
arrays so I have set the Severity level to important.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.16.0-2-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lua5.3 depends on:
ii  libc6         2.27-3
ii  libreadline7  7.0-5

lua5.3 recommends no packages.

lua5.3 suggests no packages.

-- no debconf information

Reply via email to