[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Stack overflow in luaO_pushvfstring
- From: Stefan <ste@...>
- Date: Tue, 7 Jul 2020 03:51:40 +0200
Am 07.07.2020 um 02:43 schrieb Andrew Gierth:
> Here is a module that might be of some use when testing these things.
> Compile as usual for a loadable C module and:
>
> lua -l stackchk -e 'print(stackchk())'
>
> should print the size of the stack frame for lua->lua calls in bytes. On
> versions other than 5.4 this should return 0, since previously the C
> stack wasn't used for such calls; on amd64 with clang -O2 I get a value
> of 224.
>
> I'm curious to know what kind of values people get on other
> compilers/platforms.
Linux db 5.7.0-1-amd64 #1 SMP Debian 5.7.6-1 (2020-06-24) x86_64
gcc (Debian 9.3.0-14) 9.3.0
=> 192
Windows 7 64-bit / MSVC 19.26.28806 for x64 (I hope the flags are right)
=> 480