PacketFence - BTS - PacketFence
View Issue Details
0001349PacketFencecorepublic2011-12-21 06:282011-12-30 23:44
maikel 
obilodeau 
normalblockalways
closedfixed 
devel 
3.1.03.1.0 
39047cf67d4ed11e3f12ec117763f0089aa96253
0001349: Centos 6.1 fails to start packetfence
[root@ds3 html]# /etc/init.d/packetfence start
Starting PacketFence...Bad arg length for NetAddr::IP::Util::inet_ntoa, length is 16, should be 4 at /usr/local/pf/lib/pf/config.pm line 652.
Compilation failed in require at /usr/local/pf/bin/pfcmd line 75.
BEGIN failed--compilation aborted at /usr/local/pf/bin/pfcmd line 75.


Its linked to this part of code in config.pm around line 652

    for my $i (0 .. $#masks) {
        return inet_ntoa($addresses[$i]) if (inet_ntoa($masks[$i]) eq '255.255.255.255');
    }


No tags attached.
patch virtual-ip-detection-crasher-fix.patch (1,215) 2011-12-21 14:02
https://www.packetfence.org/bugs/file_download.php?file_id=123&type=bug
Issue History
2011-12-21 06:28maikelNew Issue
2011-12-21 09:21obilodeauStatusnew => assigned
2011-12-21 09:21obilodeauAssigned To => obilodeau
2011-12-21 09:22obilodeauNote Added: 0002474
2011-12-21 09:22obilodeauTarget Version => +1
2011-12-21 14:02obilodeauFile Added: virtual-ip-detection-crasher-fix.patch
2011-12-21 14:14obilodeaumtn revision => 39047cf67d4ed11e3f12ec117763f0089aa96253
2011-12-21 14:14obilodeauNote Added: 0002477
2011-12-21 14:14obilodeauStatusassigned => resolved
2011-12-21 14:14obilodeauFixed in Version => trunk
2011-12-21 14:14obilodeauResolutionopen => fixed
2011-12-30 23:28obilodeauFixed in Versiontrunk => 3.1.0
2011-12-30 23:33obilodeauTarget Version+1 => 3.1.0
2011-12-30 23:40obilodeauNote Added: 0002502
2011-12-30 23:44obilodeauStatusresolved => closed

Notes
(0002474)
obilodeau   
2011-12-21 09:22   
I bet this is IPv6 related! 4 byte vs 16 bytes.

Thanks for testing out trunk and letting us know. We plan to release really soon. This is appreciated!
(0002477)
obilodeau   
2011-12-21 14:14   
Try the attached patch. It should work. Re-open the ticket if not.

In any case we will be re-validating trunk against CentOS 6 today or tomorrow.

Thanks for the report.
(0002502)
obilodeau   
2011-12-30 23:40   
Released in version 3.1.0.