bugWeeChat - Bugs: bug #39470, Lua plugin has a broken C stack.

 
 

bug #39470: Lua plugin has a broken C stack.

Submitter:  None
Submitted:  Fri 12 Jul 2013 04:17:44 AM UTC
   
 
Category:  script plugin Severity:  3 - Normal
Item Group:  other Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Jason Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.4.1
IRC nick:  JustAPerson
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Jul 2013 04:17:44 AM UTC, original submission:  

The following Lua script does not work as expected.


weechat.register('test', 'JustAPerson', '0.1', 'MIT', 'Broken C Stack bug', '', '')
local function func()
        weechat.print('', 'This will cause an error and is never actually printed')
end

local thread = coroutine.create(func) -- loads `func` in a separate lua_State
coroutine.resume(thread) -- should be equivalent to `func()`


I have attached a patch specific to weechat_lua_api_print(). A similar solution will need to be applied to every public weechat_lua_api_* function.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #28547:  patch added by None (755B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-06 flashcode Open/ClosedOpen Closed
    2013-07-13 flashcode StatusNone Fixed
        Assigned toNone flashcode
        Release3.3-dev 0.4.1
    2013-07-12 None Attached File- Added patch, #28547

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code