bugWeeChat - Bugs: bug #38044, perl bugs without multiplicity on...


bug #38044: perl bugs without multiplicity on some operation related to config files

Submitter:  None
Submitted:  Tue 08 Jan 2013 02:38:12 PM UTC
Category:  plugins Severity:  3 - Normal
Item Group:  other Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.3.9
IRC nick:  Nei
* Mandatory Fields

Add a New Comment Rich Markup

Tue 08 Jan 2013 02:38:12 PM UTC, original submission:  

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)



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

Attach Files:

Attached Files
file #27223:  bug.pl added by None (722B - text/x-perl - demo for the config_new_option bug)


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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-20 flashcode Open/ClosedOpen Closed
    2013-01-08 flashcode Item GroupNone other
        StatusNone Fixed
        Assigned toNone flashcode
        Release3.3-dev 0.3.9
    2013-01-08 None Attached File- Added bug.pl, #27223

    Back to the top

    Powered by Savane 3.13-c373.
    Corresponding source code