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


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

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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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')

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.



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

Attach Files:

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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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.7