weechat-dev
[Top][All Lists]
Advanced

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

[Weechat-dev] [bug #38044] perl bugs without multiplicity on some operat


From: anonymous
Subject: [Weechat-dev] [bug #38044] perl bugs without multiplicity on some operation related to config files
Date: Tue, 08 Jan 2013 14:38:13 +0000
User-agent: w3m/0.5.2+cvs-1.1027

URL:
  <http://savannah.nongnu.org/bugs/?38044>

                 Summary: perl bugs without multiplicity on some operation
related to config files
                 Project: WeeChat
            Submitted by: None
            Submitted on: Tue 08 Jan 2013 02:38:12 PM UTC
                Category: plugins
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.4.0-dev
                IRC nick: Nei

    _______________________________________________________

Details:

the sample script creates the following error:

perl error: Undefined subroutine &main::config_create_opt called at line 7.

this indicates that the package (main::) for the callback is wrong, it should
be WeechatPerlPackage123::

a related bug is caused in relation to this code (haven't a minimal test case
but it is in menu.pl script)

hook_config('custom_config...*', 'menu_config', '');

which results in the error:

perl error: Undefined subroutine &?<? ::menu_config called at line 1003. 

Here, it looks like we even got stack corruption (not a valid package name by
any means and not main:: either)




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 08 Jan 2013 02:38:12 PM UTC  Name: bug.pl  Size: 722B   By: None
demo for the config_new_option bug
<http://savannah.nongnu.org/bugs/download.php?file_id=27223>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?38044>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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