Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1070511 - apcupsd filling log with ASN.1 parsing messages
Summary: apcupsd filling log with ASN.1 parsing messages
Keywords:
Status: CLOSED DUPLICATE of bug 1053324
Alias: None
Product: Fedora
Classification: Fedora
Component: apcupsd
Version: 20
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-27 01:54 UTC by Philip Prindeville
Modified: 2014-02-27 02:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-27 02:07:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Philip Prindeville 2014-02-27 01:54:21 UTC
Description of problem:

/var/log/messages is filling up with ASN.1 (BER) primitive types, ostensibly as a result of parsing SNMP responses from a SmartUPS.

Version-Release number of selected component (if applicable):

apcupsd-3.14.10-13.fc20.x86_64

How reproducible:

Configure to use "UPSTYPE snmp" in /etc/apcupsd.conf and start service. Also "DEVICE apc:161:APC:private".

Steps to Reproduce:
1. Put host on network with SmartUPS with network card.
2. Configure to use SNMP as above.
3. Start service and inspect /var/log/messages after 12 minutes...

Actual results:

Feb 26 12:03:24 localhost apcupsd: OBJECTID
...
Feb 26 12:03:24 localhost apcupsd: SEQUENCE
Feb 26 12:03:25 localhost apcupsd: OBJECTID
...
Feb 26 12:03:25 localhost apcupsd: SEQUENCE
Feb 26 12:03:25 localhost apcupsd: OBJECTID
Feb 26 12:07:25 localhost apcupsd: INTEGER
Feb 26 12:07:25 localhost apcupsd: SEQUENCE
...
Feb 26 12:07:25 localhost apcupsd: OBJECTID
Feb 26 12:07:25 localhost apcupsd: INTEGER
...


Expected results:

No debugging output.

Additional info:

After some cursory reading, the culprit seems to be the function debug() in src/drivers/snmplite/asn.cpp which writes to stdout unconditionally.

Comment 1 Philip Prindeville 2014-02-27 02:07:47 UTC

*** This bug has been marked as a duplicate of bug 1053324 ***


Note You need to log in before you can comment on or make changes to this bug.