[ANN] Lua 5.4.0 now available

classic Classic list List threaded Threaded
26 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[ANN] Lua 5.4.0 now available

Luiz Henrique de Figueiredo
Lua 5.4.0 has been frozen and is now the current version of Lua.

Lua 5.4.0 is available at
        http://www.lua.org/ftp/lua-5.4.0.tar.gz

The checksums are
        MD5 dbf155764e5d433fc55ae80ea7060b60  -
        SHA1 8cdbffa8a214a23d190d7c45f38c19518ae62e89  -

The reference manual is available at
        http://www.lua.org/manual/5.4/

For installation and building instructions, see
        http://www.lua.org/manual/5.4/readme.html

The complete source code of Lua 5.4.0 is available for browsing at
        http://www.lua.org/source/5.4/

We thank everyone for their feedback on Lua 5.4.

All feedback welcome. Thanks.
--lhf
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Dibyendu Majumdar
On Mon, 29 Jun 2020 at 19:39, Luiz Henrique de Figueiredo
<[hidden email]> wrote:

>
> Lua 5.4.0 has been frozen and is now the current version of Lua.
>
> Lua 5.4.0 is available at
>         http://www.lua.org/ftp/lua-5.4.0.tar.gz
>
> The checksums are
>         MD5     dbf155764e5d433fc55ae80ea7060b60  -
>         SHA1    8cdbffa8a214a23d190d7c45f38c19518ae62e89  -
>
> The reference manual is available at
>         http://www.lua.org/manual/5.4/
>
> For installation and building instructions, see
>         http://www.lua.org/manual/5.4/readme.html
>
> The complete source code of Lua 5.4.0 is available for browsing at
>         http://www.lua.org/source/5.4/
>
> We thank everyone for their feedback on Lua 5.4.
>
> All feedback welcome. Thanks.

Congratulations!
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Thijs Schreijer
In reply to this post by Luiz Henrique de Figueiredo


> On 29 Jun 2020, at 20:39, Luiz Henrique de Figueiredo <[hidden email]> wrote:
>
> Lua 5.4.0 has been frozen and is now the current version of Lua.
>

Congrats on the new release!

Thijs
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Rich Thanki
Congratulations on the neat evolution of one of the neatest computational tools out there!

> On 29 Jun 2020, at 23:26, Thijs Schreijer <[hidden email]> wrote:
>
>
>
>> On 29 Jun 2020, at 20:39, Luiz Henrique de Figueiredo <[hidden email]> wrote:
>>
>> Lua 5.4.0 has been frozen and is now the current version of Lua.
>>
>
> Congrats on the new release!
>
> Thijs
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Paul E. Merrell, J.D.
In reply to this post by Luiz Henrique de Figueiredo
On Mon, Jun 29, 2020 at 11:39 AM Luiz Henrique de Figueiredo
<[hidden email]> wrote:
>
> Lua 5.4.0 has been frozen and is now the current version of Lua.

Congratulations!

Is this release identical to RC6?

Best regards,

Paul

--
[Notice not included in the above original message:  The U.S. National
Security Agency neither confirms nor denies that it intercepted this
message.]
                                                ¯\_(ツ)_/¯
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Luiz Henrique de Figueiredo
> Is this release identical to RC6?

Yes. Freezing means promoting the last rc to final. The same tarball,
just renamed.
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Paul E. Merrell, J.D.
On Tue, Jun 30, 2020 at 3:20 AM Luiz Henrique de Figueiredo
<[hidden email]> wrote:
>
> > Is this release identical to RC6?
>
> Yes. Freezing means promoting the last rc to final. The same tarball,
> just renamed.

Thanks, Luiz.

Best regards,

Paul

--
[Notice not included in the above original message:  The U.S. National
Security Agency neither confirms nor denies that it intercepted this
message.]
                                                ¯\_(ツ)_/¯
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

actboy168@gmail.com
In reply to this post by Luiz Henrique de Figueiredo
I have a crash in arch linux.

# gcc --version
gcc (GCC) 10.1.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# ./lua -e "tostring(1.0)"
Segmentation fault (core dumped)

This is stacktrace.

#0  0x00007fffff517a61 in __vsnprintf_internal () from /usr/lib/libc.so.6
#1  0x00007fffff4f0ae6 in snprintf () from /usr/lib/libc.so.6
#2  0x0000000008012110 in tostringbuff.part.0.isra ()
#3  0x00000000080121a4 in addnum2buff ()
#4  0x0000000008012ac6 in luaO_pushvfstring ()
#5  0x0000000008009f41 in lua_pushfstring ()
#6  0x00000000080207c1 in luaL_tolstring ()
#7  0x0000000008024a1d in luaB_tostring ()
#8  0x000000000800dc85 in luaD_call ()
#9  0x000000000801b5b8 in luaV_execute ()
#10 0x000000000800dde7 in luaD_callnoyield ()
#11 0x000000000800d08b in luaD_rawrunprotected ()
#12 0x000000000800e15e in luaD_pcall ()
#13 0x000000000800ad5a in lua_pcallk ()
#14 0x000000000800787f in docall ()
#15 0x0000000008007ef4 in dostring ()
#16 0x0000000008008322 in pmain ()
#17 0x000000000800dc85 in luaD_call ()
#18 0x000000000800dde7 in luaD_callnoyield ()
#19 0x000000000800d08b in luaD_rawrunprotected ()
#20 0x000000000800e15e in luaD_pcall ()
#21 0x000000000800ad5a in lua_pcallk ()
#22 0x000000000800763b in main ()


On Tue, Jun 30, 2020 at 2:39 AM Luiz Henrique de Figueiredo <[hidden email]> wrote:
Lua 5.4.0 has been frozen and is now the current version of Lua.

Lua 5.4.0 is available at
        http://www.lua.org/ftp/lua-5.4.0.tar.gz

The checksums are
        MD5     dbf155764e5d433fc55ae80ea7060b60  -
        SHA1    8cdbffa8a214a23d190d7c45f38c19518ae62e89  -

The reference manual is available at
        http://www.lua.org/manual/5.4/

For installation and building instructions, see
        http://www.lua.org/manual/5.4/readme.html

The complete source code of Lua 5.4.0 is available for browsing at
        http://www.lua.org/source/5.4/

We thank everyone for their feedback on Lua 5.4.

All feedback welcome. Thanks.
--lhf


--
-- actboy168
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Eretnek Hippi Messiás
hi there! :)

does `env LC_ALL=C ./lua -e "tostring(1.0)"` work?

just a wild guess...

good luck, have fun, and all the bests! :)

Sent with ProtonMail Secure Email.
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Franz Fellner
On Wed Jul  1 04:03:56 2020, Eretnek Hippi =?UTF-8?b?TWVzc2nDoXM=?= <[hidden email]> wrote:
> hi there! :)
hi there, too!

> does `env LC_ALL=C ./lua -e "tostring(1.0)"` work?

I am able to reproduce the crash.
Also on archlinux.
I also thought it might be a locale issue.
I localized my system to de_DE where decimals are seperated by semicolon (1,1 instead of 1.1)
So I already tested LC_ALL="C" which unfortunately also crashes:

$ ./src/lua -e "tostring(1.0)"
zsh: bus error (core dumped)  ./src/lua -e "tostring(1.0)"

$ LC_ALL="C" ./src/lua -e "tostring(1.0)"
zsh: bus error (core dumped)  LC_ALL="C" ./src/lua -e "tostring(1.0)"

Reagrds
Franz
Reply | Threaded
Open this post in threaded view
|

RE: [ANN] Lua 5.4.0 now available

Thijs Schreijer
In reply to this post by Luiz Henrique de Figueiredo

> -----Oorspronkelijk bericht-----
> Van: Luiz Henrique de Figueiredo [mailto:[hidden email]]
> Verzonden: Monday, June 29, 2020 8:39 PM
> Aan: [hidden email]
> Onderwerp: [ANN] Lua 5.4.0 now available
>
> Lua 5.4.0 has been frozen and is now the current version of Lua.
>
> Lua 5.4.0 is available at
> http://www.lua.org/ftp/lua-5.4.0.tar.gz
>
> The checksums are
> MD5 dbf155764e5d433fc55ae80ea7060b60  -
> SHA1 8cdbffa8a214a23d190d7c45f38c19518ae62e89  -
>
> The reference manual is available at
> http://www.lua.org/manual/5.4/
>
> For installation and building instructions, see
> http://www.lua.org/manual/5.4/readme.html
>
> The complete source code of Lua 5.4.0 is available for browsing at
>         http://www.lua.org/source/5.4/
>
> We thank everyone for their feedback on Lua 5.4.
>
> All feedback welcome. Thanks.
> --lhf


The download page still has: "All versions are available for download. The current version is Lua 5.3 and its current release is Lua 5.4.0."

"current release" was updated
"current version" was not

See https://www.lua.org/download.html

Thijs
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Luiz Henrique de Figueiredo
> The download page still has: "All versions are available for download. The current version is Lua 5.3 and its current release is Lua 5.4.0."
>
> "current release" was updated
> "current version" was not
>
> See https://www.lua.org/download.html

It's fixed now. You may have to reload the page.
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Roberto Ierusalimschy
In reply to this post by actboy168@gmail.com
> I have a crash in arch linux.
>
> [...]

We don't have access to an arch linux platform. Can you try to gather
more information? (For instance, compile Lua with -g, try different
numbers, etc.)

Many thanks,

-- Roberto
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Pierre Chapuis
On Wed, Jul 1, 2020, at 15:26, Roberto Ierusalimschy wrote:

> We don't have access to an arch linux platform. Can you try to gather
> more information? (For instance, compile Lua with -g, try different
> numbers, etc.)

I can reproduce and it. Different numbers also crash.

Doing this prevents the crash (!)

    --- src/lobject.old.c   2020-07-01 16:35:34.525256170 +0200
    +++ src/lobject.c   2020-07-01 16:34:38.293400900 +0200
    @@ -346,6 +346,7 @@
       if (ttisinteger(obj))
         len = lua_integer2str(buff, MAXNUMBER2STR, ivalue(obj));
       else {
    +    fprintf(stderr, "%p\n", buff);
         len = lua_number2str(buff, MAXNUMBER2STR, fltvalue(obj));
         if (buff[strspn(buff, "-0123456789")] == '\0') {  /* looks like an int? */
           buff[len++] = lua_getlocaledecpoint();

Here is the stacktrace in GDB  with -g and Valgrind output:

https://gist.github.com/catwell/2834a61cca8118b6d5fc4786e7ebed8e

--
Pierre Chapuis
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Pierre Chapuis
It honestly looks like a GCC bug. Building with any optimization level
other than the default of O2 (I tried with O0, O1, O3 and Os) prevents
the crash.

--
Pierre Chapuis
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Roberto Ierusalimschy
In reply to this post by Pierre Chapuis
> Doing this prevents the crash (!)
>
>     --- src/lobject.old.c   2020-07-01 16:35:34.525256170 +0200
>     +++ src/lobject.c   2020-07-01 16:34:38.293400900 +0200
>     @@ -346,6 +346,7 @@
>        if (ttisinteger(obj))
>          len = lua_integer2str(buff, MAXNUMBER2STR, ivalue(obj));
>        else {
>     +    fprintf(stderr, "%p\n", buff);
>          len = lua_number2str(buff, MAXNUMBER2STR, fltvalue(obj));
>          if (buff[strspn(buff, "-0123456789")] == '\0') {  /* looks like an int? */
>            buff[len++] = lua_getlocaledecpoint();

If you add this print in 'addnum2buff' instead, does the crash also
disapear?


> Here is the stacktrace in GDB  with -g and Valgrind output:
>
> https://gist.github.com/catwell/2834a61cca8118b6d5fc4786e7ebed8e

It is strange that the parameter 'obj' appears twice:

    #3  0x00005555555661a4 in tostringbuff (obj=0x7fffffffd830, obj=0x7fffffffd830, buff=<optimized out>) at lobject.c:346

Another strange thing is the value of 'buff', 0x3ff0000000000000. (Not
very "random"...)

-- Roberto
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Gé Weijers
In reply to this post by Pierre Chapuis
On Wed, Jul 1, 2020 at 7:51 AM Pierre Chapuis <[hidden email]> wrote:
>
> It honestly looks like a GCC bug. Building with any optimization level
> other than the default of O2 (I tried with O0, O1, O3 and Os) prevents
> the crash.
>

I built GCC 10.1.0 from source on Debian 10. I can reproduce the
problem now. Looking at the 10.1.0 release notes I saw that the
compiler implements more aggressive automatic inlining. I rebuilt the
Lua interpreter with the "-fno-inline" flag and the crash went away.
It's a workaround, but you may want to run the test suite, who knows
what other problems are lurking in a Lua interpreter built with gcc
10.1.

There are downsides to living on the bleeding edge, gcc 10.1.0 was
released on May 7. I have never used Arch Linux, if possible I'd
suggest rolling back the compiler to gcc 8 or 9.

I'll build the tip of the release/gcc-10 branch. That'll take a good
while on my slow machine. Perhaps this issue has been fixed, there are
lots of bug fix commits in that branch post 10.1.



--

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Pierre Chapuis
> There are downsides to living on the bleeding edge, gcc 10.1.0 was
> released on May 7. I have never used Arch Linux, if possible I'd
> suggest rolling back the compiler to gcc 8 or 9.

There is a package for gcc8 in the distribution, and clang is available
as well.

There is already a package for Lua 5.4 in the [staging] repository and
it does not have that issue.
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Pierre Chapuis
In reply to this post by Roberto Ierusalimschy
On Wed, Jul 1, 2020, at 18:42, Roberto Ierusalimschy wrote:

> > Doing this prevents the crash (!)
> >
> >     --- src/lobject.old.c   2020-07-01 16:35:34.525256170 +0200
> >     +++ src/lobject.c   2020-07-01 16:34:38.293400900 +0200
> >     @@ -346,6 +346,7 @@
> >        if (ttisinteger(obj))
> >          len = lua_integer2str(buff, MAXNUMBER2STR, ivalue(obj));
> >        else {
> >     +    fprintf(stderr, "%p\n", buff);
> >          len = lua_number2str(buff, MAXNUMBER2STR, fltvalue(obj));
> >          if (buff[strspn(buff, "-0123456789")] == '\0') {  /* looks like an int? */
> >            buff[len++] = lua_getlocaledecpoint();
>
> If you add this print in 'addnum2buff' instead, does the crash also
> disapear?

No. It prints something (e.g. 0x7ffdb5514fb0) and then it crashes.
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Lua 5.4.0 now available

Ką Mykolas
Disasm might be nice of the relevant section

On Wed, Jul 1, 2020, 19:58 Pierre Chapuis <[hidden email]> wrote:
On Wed, Jul 1, 2020, at 18:42, Roberto Ierusalimschy wrote:
> > Doing this prevents the crash (!)
> >
> >     --- src/lobject.old.c   2020-07-01 16:35:34.525256170 +0200
> >     +++ src/lobject.c   2020-07-01 16:34:38.293400900 +0200
> >     @@ -346,6 +346,7 @@
> >        if (ttisinteger(obj))
> >          len = lua_integer2str(buff, MAXNUMBER2STR, ivalue(obj));
> >        else {
> >     +    fprintf(stderr, "%p\n", buff);
> >          len = lua_number2str(buff, MAXNUMBER2STR, fltvalue(obj));
> >          if (buff[strspn(buff, "-0123456789")] == '\0') {  /* looks like an int? */
> >            buff[len++] = lua_getlocaledecpoint();
>
> If you add this print in 'addnum2buff' instead, does the crash also
> disapear?

No. It prints something (e.g. 0x7ffdb5514fb0) and then it crashes.
12