[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Crash in tostringbuff when -D_FORTIFY_SOURCE=2 is not defined in Lua 5.4
- From: Andrew Gierth <andrew@...>
- Date: Tue, 18 Aug 2020 22:42:48 +0100
>>>>> "Philippe" == Philippe Verdy <verdyp@gmail.com> writes:
Philippe> could this be related to
Philippe> /* maximum length of the conversion of a number to a string */
Philippe> #define MAXNUMBER2STR 50
No.
It's to do with the fact that the lua value is a tagged union which can
be either a 64-bit integer or 64-bit double. Optimization code which
is taking advantage of the fact that the type is known at the callsite
to produce specialized variants of the called function was confusing the
types and passing them in incorrect registers as a result.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96040
--
Andrew.