lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 09/09/2008 12:52, David Welch wrote:
Just a heads up about a possible bug.  I have a lua script with:
 os.date("%.d", 123)

which crashes when run. The lua version is Lua 5.1.4 which I downloaded from lua binaries.

WinXP Pro SP2, Lua 5.1.3 from LuaBinaries

> lua5.1 -e "print(os.date('%.d', 123))"

=> OS crash dialog (report to Microsoft, blabla)

AppName: lua5.1.exe	 AppVer: 0.0.0.0	 ModName: msvcr80.dll
ModVer: 8.0.50727.762	 Offset: 00018b85

Exception Information
Code: 0xc000000d

Corresponds to "Non valid descriptor"

In case it helps.

Now, I won't call that a Lua error, as Roberto says, "garbage in, garbage out".
But it is annoying, for sure.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --