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

 
 

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

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

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Sun 20 Jan 2013 09:17:00 AM UTC flashcode Open/ClosedOpen => Closed
    Tue 08 Jan 2013 09:10:20 PM UTC flashcode Item GroupNone => other
        StatusNone => Fixed
        Assigned toNone => flashcode
        Release2.2-dev => 0.3.9
    Tue 08 Jan 2013 02:38:12 PM UTC None Attached File- => Added bug.pl, #27223

    Back to the top


    Powered by Savane 3.3