[Top][All Lists]

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

[Weechat-dev] [bug #39470] Lua plugin has a broken C stack.

From: anonymous
Subject: [Weechat-dev] [bug #39470] Lua plugin has a broken C stack.
Date: Fri, 12 Jul 2013 04:17:45 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0


                 Summary: Lua plugin has a broken C stack.
                 Project: WeeChat
            Submitted by: None
            Submitted on: Fri 12 Jul 2013 04:17:44 AM UTC
                Category: script plugin
                Severity: 3 - Normal
              Item Group: other
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Jason
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.4.2-dev
                IRC nick: JustAPerson



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 

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.


File Attachments:

Date: Fri 12 Jul 2013 04:17:44 AM UTC  Name: patch  Size: 755B   By: None



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]