<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/ldebug.c, branch v5.4.9</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.4.9</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.4.9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2025-05-15T18:14:56+00:00</updated>
<entry>
<title>Bug: Bad error message with fields of string _ENV</title>
<updated>2025-05-15T18:14:56+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-15T18:14:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d1ee2a4deb06a335b9ff99530917b828a7ebe3e5'/>
<id>urn:sha1:d1ee2a4deb06a335b9ff99530917b828a7ebe3e5</id>
<content type='text'>
Errors with fields of the string _ENV (e.g., ("_ENV").u + 1) report
the error as comming from a global.
</content>
</entry>
<entry>
<title>Bug: Active-lines for stripped vararg functions</title>
<updated>2024-05-13T16:10:35+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-05-13T16:10:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=dfbde4c7d540f81f2cc539741a2c1f4c00f91c10'/>
<id>urn:sha1:dfbde4c7d540f81f2cc539741a2c1f4c00f91c10</id>
<content type='text'>
Lua seg. faults when asked to create the 'activelines' table for a
vararg function with no debug information.
</content>
</entry>
<entry>
<title>Bug: Yielding in a hook stops in the wrong instruction</title>
<updated>2024-01-11T16:44:16+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-01-11T16:44:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e288c5a91883793d14ed9e9d93464f6ee0b08915'/>
<id>urn:sha1:e288c5a91883793d14ed9e9d93464f6ee0b08915</id>
<content type='text'>
Yielding in a hook must decrease the program counter, because it already
counted an instruction that, in the end, was not executed. However,
that decrement should be done only when about to restart the thread.
Otherwise, inspecting the thread with the debug library shows it one
instruction behind of where it really is.
</content>
</entry>
<entry>
<title>Bug: Recursion in 'getobjname' can stack overflow</title>
<updated>2023-11-01T15:00:54+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-11-01T15:00:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=7923dbbf72da303ca1cca17efd24725668992f15'/>
<id>urn:sha1:7923dbbf72da303ca1cca17efd24725668992f15</id>
<content type='text'>
'getobjname' now broken in two, a basic version that handles locals,
upvalues, and constants, and a full version, which uses the basic
version to handle table accesses (globals and fields).
</content>
</entry>
<entry>
<title>More disciplined use of 'getstr' and 'tsslen'</title>
<updated>2023-08-17T18:59:28+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-08-17T18:59:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9b4f39ab14fb2e55345c3d23537d129dac23b091'/>
<id>urn:sha1:9b4f39ab14fb2e55345c3d23537d129dac23b091</id>
<content type='text'>
We may want to add other string variants in the future; this change
documents better where the code may need to handle those variants.
</content>
</entry>
<entry>
<title>Bug: Call hook may be called twice when count hook yields</title>
<updated>2023-07-25T19:50:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-07-25T19:50:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=1b3f507f620d996ffb69da7476a19251acfb89ca'/>
<id>urn:sha1:1b3f507f620d996ffb69da7476a19251acfb89ca</id>
<content type='text'>
Took the opportunity and moved the code that controls call hooks
in 'luaV_execute' into a function.
</content>
</entry>
<entry>
<title>Details</title>
<updated>2023-04-18T12:44:10+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-04-18T12:44:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e15f1f2bb7a38a3c94519294d031e48508d65006'/>
<id>urn:sha1:e15f1f2bb7a38a3c94519294d031e48508d65006</id>
<content type='text'>
Typos in comments and details in the manual.
</content>
</entry>
<entry>
<title>More orderliness in casts of enumerations</title>
<updated>2023-03-27T19:29:39+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-03-27T19:29:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=7ca8105a2ea7b6a0d7b55b59d273ccd271c35268'/>
<id>urn:sha1:7ca8105a2ea7b6a0d7b55b59d273ccd271c35268</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stack indices changed to union's</title>
<updated>2022-10-29T15:06:37+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-10-29T15:06:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=413a393e6222482f46599e138bebac162610a572'/>
<id>urn:sha1:413a393e6222482f46599e138bebac162610a572</id>
<content type='text'>
That will allow to change pointers to offsets while reallocating
the stack.
</content>
</entry>
<entry>
<title>Save stack space while handling errors</title>
<updated>2022-05-20T16:14:33+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-05-20T16:14:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=42d40581dd919fb134c07027ca1ce0844c670daf'/>
<id>urn:sha1:42d40581dd919fb134c07027ca1ce0844c670daf</id>
<content type='text'>
Because error handling (luaG_errormsg) uses slots from EXTRA_STACK,
and some errors can recur (e.g., string overflow while creating an
error message in 'luaG_runerror', or a C-stack overflow before calling
the message handler), the code should use stack slots with parsimony.

This commit fixes the bug "Lua-stack overflow when C stack overflows
while handling an error".
</content>
</entry>
</feed>
