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: pluginsSeverity: 3 - Normal
Item Group: otherStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 0.3.9
IRC nick: Nei

Add a New Comment (Rich MarkupRich 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 File(s):
   
   
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
  • -unavailable- added by flashcode (Updated the item)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to 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 UTCflashcodeOpen/ClosedOpen=>Closed
    Tue 08 Jan 2013 09:10:20 PM UTCflashcodeItem GroupNone=>other
      StatusNone=>Fixed
      Assigned toNone=>flashcode
      Release1.1-dev=>0.3.9
    Tue 08 Jan 2013 02:38:12 PM UTCNoneAttached File-=>Added bug.pl, #27223

    Back to the top


    Powered by Savane 3.1-cleanup