[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: code causing seg fault
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 29 Jun 2001 11:40:36 -0300
> The fault is at
> line 258 in ltable.c (in luaH_set):
>
> while (othern->next != mp) othern = othern->next; /* find previous */
>
> othern is NULL. mp->key is also all zeros.
That is strange. mp->key shouldn't be all zeros (if the tag is zero, the
value should be a valid TString pointer).
> My guess is that I am causing Lua to attempt to
> access an already-deleted C++ pointer
The only place where Lua accesses "user" pointers is when calling C
functions, but it is not common to delete them. Lua never accesses an
userdata (I hope).
-- Roberto