bugZoneCheck - Bugs: bug #30232, same subnet = undefined method...

 
 

bug #30232: same subnet = undefined method `>>' for "4":String

Submitted by:  None
Submitted on:  Wed 23 Jun 2010 12:41:47 PM UTC  
 
Category: reportSeverity: High
Priority: 5 - NormalItem Group: Crash/Error
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 28 Jun 2010 07:00:44 AM UTC, comment #1:

Fixed in CVS.
Bug came from a difference of behaviour between ruby 1.8 and ruby 1.9.1 for the String[Fixnum] function

Diff to previous:
http://cvs.savannah.gnu.org/viewvc/zonecheck/zc/framework.rb?root=zonecheck&r1=1.52&r2=1.55

Fabien CHABANNE <chabannf>
Project Member
Wed 23 Jun 2010 12:41:47 PM UTC, original submission:

I obtains that legitimate message (legitimate meaning, not the error):

$ LANG=C zonecheck --INPUT=cli mydomain.org
[...]
w> [TEST nameserver addresses are likely to be all on the same subnet]: undefined method `>>' for "4":String
=> generic
[...]

With --debug 0x8000:

$ LANG=C zonecheck --INPUT=cli --debug 0x8000 mydomain.org
[...]
/usr/local/libexec/zonecheck/zc/framework.rb:209:in `prefix_of': undefined method `>>' for ";":String (NoMethodError)
from /usr/local/libexec/zonecheck/test/generic.rb:97:in `block (2 levels) in by_subnet'
from /usr/local/libexec/zonecheck/test/generic.rb:95:in `each'
from /usr/local/libexec/zonecheck/test/generic.rb:95:in `block in by_subnet'
from /usr/local/libexec/zonecheck/zc/cache.rb:127:in `block in use'
from /usr/lib/ruby/1.9.1/sync.rb:225:in `sync_synchronize'
from /usr/local/libexec/zonecheck/zc/cache.rb:123:in `use'
from /usr/local/libexec/zonecheck/test/generic.rb:93:in `by_subnet'
from /usr/local/libexec/zonecheck/test/generic.rb:152:in `chk_ip_all_same_net'
from /usr/local/libexec/zonecheck/zc/testmanager.rb:333:in `call'
from /usr/local/libexec/zonecheck/zc/testmanager.rb:333:in `check1'
from /usr/local/libexec/zonecheck/zc/instructions.rb:109:in `eval'
from /usr/local/libexec/zonecheck/zc/instructions.rb:79:in `block in eval'
from /usr/local/libexec/zonecheck/zc/instructions.rb:79:in `each'
from /usr/local/libexec/zonecheck/zc/instructions.rb:79:in `eval'
from /usr/local/libexec/zonecheck/zc/testmanager.rb:476:in `block (3 levels) in check'

$ uname -r
2.6.33-ARCH
$ ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]
$ zonecheck --INPUT=cli --version
zonecheck: version 3.0.0

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by chabannf (Posted a comment)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Jun 2010 02:37:13 PM UTCchabannfOpen/ClosedOpen=>Closed
    Mon 28 Jun 2010 07:00:44 AM UTCchabannfStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1