lua-users home
lua-l archive

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


>The script isn't trying to read anything from a locked file. It's just reading values out of a table.
> However,
 whoever generated the table appears to be not able to access the file, 
and as a result, produces a malformed entry with just two strings 
instead of four.


Yes, right, I was checking the code but forget to check the data :) Thank you

----- Original Message -----

Date: Wed, 24 Oct 2012 13:55:42 +0000
From: Thomas Buergel <Thomas.Buergel@varian.com>
Subject: RE: bug report - accessing large tables from C API
To: Lua mailing list <lua-l@lists.lua.org>
Message-ID:
    <F35C9A806855DF499E6E4CB50116D14AE1996D@CR-EX2010-MBX03.vms.ad.varian.com>
    
Content-Type: text/plain; charset="us-ascii"

>> MANIFEST[2633][1] = texlive-module-HA-prosper.doc-2011.tar.xz
>> MANIFEST[2633][2] = 205064
>> MANIFEST[2633][3] = e3615a136c769fc708d1cffcebf0fc91
>> lua_gettop() = 1
>> MANIFEST[2634][1] = 
>> .texlive-module-aurical-2010.tar.xz.portage_lockfile
>> MANIFEST[2634][2] = No permission to read
>> lua_tolstring() returned NULL!
>> type on stack top is nil
>
> And your problem is exactly there.
>
> The file has been locked. The script can't open it.
> See the error message at MANIFEST[2634][2]?
> Therefore,
> MANIFEST[2634][2] = <nil>

Actually, it looks to me that this is the first line that doesn't have 4 strings built in, and yet the C code tries to read three strings from each entry.

...
    {'texlive-module-HA-prosper.doc-2011.tar.xz', 205064, 'e3615a136c769fc708d1cffcebf0fc91', 'u', '0664'},
    {'.texlive-module-aurical-2010.tar.xz.portage_lockfile', 'No permission to read'},
    {'kde-workspace-4.8.5.tar.xz', 21475948, 'edf020d45c4157d98edeef6df9eb80e4', 'u', '0664'},
...

The script isn't trying to read anything from a locked file. It's just reading values out of a table.
However, whoever generated the table appears to be not able to access the file, and as a result, produces a malformed entry with just two strings instead of four.

> Nothing wrong with Lua.

Now *that* we all agree on :)

Tom