PacketFence - BTS - PacketFence
View Issue Details
0000859PacketFenceerror-handlingpublic2009-11-25 14:332011-05-04 11:51
obilodeau 
obilodeau 
lowmajorsometimes
closedfixed 
 
1.8.5 
5815165026bd8d612710cba3cb088b9d3c931e80
0000859: error handling: thread failed to start: Can't call method "getSecureMacAddresses" without a package or object
If a switch in production is deleted, further node activity on another switch will result in a thread crash.

Here's the error message:
Nov 25 14:04:18 pfsetvlan(7): ERROR ! Unknown switch 10.128.16.230 (pf::SwitchFactory::instantiate)

Argument "" isn't numeric in numeric eq (==) at /usr/local/pf/lib/pf/SNMP.pm
        line 389 (0000001)
    (W numeric) The indicated string was fed as an argument to an operator
    that expected a numeric value instead.  If you're fortunate the message
    will identify which operator was so unfortunate.

thread failed to start: Can't call method "getSecureMacAddresses" without a
        package or object reference at /usr/local/pf//sbin/pfsetvlan line 1449 (0000002)
    (W threads)(S) The entry point function of threads->create() failed for some reason.


The problem is that we try to instantiate a switch that doesn't exist anymore only to close its locationlog entry (and set port security to a fake MAC or dissassociate or change VLAN..).

To fix:
- write test case to reproduce bug (grow our regression test suite)
- fix crasher: if switch doesn't exist close locationlog entry
- 'pfcmd switchconfig delete <IP>' should close all open locationlog entries for the deleted switch

No tags attached.
Issue History
2009-11-25 14:33obilodeauNew Issue
2009-11-25 14:33obilodeauStatusnew => assigned
2009-11-25 14:33obilodeauAssigned To => obilodeau
2009-11-25 14:33obilodeauPrioritynormal => high
2009-11-25 14:33obilodeauSeverityminor => major
2010-05-05 12:38obilodeauNote Added: 0001549
2010-05-05 12:38obilodeauPriorityhigh => low
2010-05-05 12:38obilodeauCategory1.8.5 => error-handling
2011-01-18 10:03obilodeauTarget Version => 2.0.1
2011-01-26 15:30obilodeauTarget Version2.0.1 => 2.0.2
2011-02-24 15:22obilodeaumtn revision => 5815165026bd8d612710cba3cb088b9d3c931e80
2011-02-24 15:22obilodeauNote Added: 0001880
2011-02-24 15:22obilodeauStatusassigned => resolved
2011-02-24 15:22obilodeauFixed in Version => 1.8.5
2011-02-24 15:22obilodeauResolutionopen => fixed
2011-05-04 11:51obilodeauStatusresolved => closed

Notes
(0001549)
obilodeau   
2010-05-05 12:38   
re-targeting for later, applied proper category
(0001880)
obilodeau   
2011-02-24 15:22   
Fixed by Regis in the way to 1.8.5.