PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000859PacketFenceerror-handlingpublic2009-11-25 14:332011-05-04 11:51
Reporterobilodeau 
Assigned Toobilodeau 
PrioritylowSeveritymajorReproducibilitysometimes
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version1.8.5 
Summary0000859: error handling: thread failed to start: Can't call method "getSecureMacAddresses" without a package or object
DescriptionIf 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

TagsNo tags attached.
fixed in git revision
fixed in mtn revision5815165026bd8d612710cba3cb088b9d3c931e80
Attached Files

- Relationships

-  Notes
(0001549)
obilodeau (reporter)
2010-05-05 12:38

re-targeting for later, applied proper category
(0001880)
obilodeau (reporter)
2011-02-24 15:22

Fixed by Regis in the way to 1.8.5.

- Issue History
Date Modified Username Field Change
2009-11-25 14:33 obilodeau New Issue
2009-11-25 14:33 obilodeau Status new => assigned
2009-11-25 14:33 obilodeau Assigned To => obilodeau
2009-11-25 14:33 obilodeau Priority normal => high
2009-11-25 14:33 obilodeau Severity minor => major
2010-05-05 12:38 obilodeau Note Added: 0001549
2010-05-05 12:38 obilodeau Priority high => low
2010-05-05 12:38 obilodeau Category 1.8.5 => error-handling
2011-01-18 10:03 obilodeau Target Version => 2.0.1
2011-01-26 15:30 obilodeau Target Version 2.0.1 => 2.0.2
2011-02-24 15:22 obilodeau mtn revision => 5815165026bd8d612710cba3cb088b9d3c931e80
2011-02-24 15:22 obilodeau Note Added: 0001880
2011-02-24 15:22 obilodeau Status assigned => resolved
2011-02-24 15:22 obilodeau Fixed in Version => 1.8.5
2011-02-24 15:22 obilodeau Resolution open => fixed
2011-05-04 11:51 obilodeau Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker