lextudio/sharpsnmplib

Loading an empty mib generates out of memory exception

lextudio-support opened this issue · 5 comments

I downloaded SNMPv2-CONF.mib along with a list of base mibs to load in my
application. The content of SNMPv2-CONF.mib looks as shown below. When
loading this mib, the application's memory usage continues to grow until out
of memory exception is thrown. If i exclude this file, all the other mibs
loads properly. So it looks like DefaultObjectRegistry has problem loading
mibs that don't define any new object.

-- *****************************************************************

-- SNMPv2-CONF.my: SNMPv2 Conformance MIB file
--
-- May 1994, Jeffrey T. Johnson
--
-- Copyright (c) 1994,1996 by cisco Systems, Inc.
-- All rights reserved.
--
-- *****************************************************************
--
-- This mib was extracted from RFC 1904
-- All macro definitions have been removed because they are
-- predefined in the mib compiler

SNMPv2-CONF DEFINITIONS ::= BEGIN

-- everything is predefined in the mib compiler

END

Original Reported Date: 2009-09-23T06:15:41.623-07:00
Original CodePlex Discussion Thread ID: 69843

Copied from CodePlex without authors:

I can confirm that this is a bug of #SNMP Compiler.

Will look into it this weekend.

Thanks for the report.

Lex

Original Posted Date: 2009-09-24T01:31:06.83-07:00

Copied from CodePlex without authors:

This discussion has been copied to a work item. Click
here to
go to the work item and continue the discussion.

Original Posted Date: 2009-09-24T01:31:32.533-07:00

Copied from CodePlex without authors:

I don't think it is a thing I can easily fix now.

I rather resolve it in a new compiler implementation.

Original Posted Date: 2009-09-25T23:30:53.723-07:00

Copied from CodePlex without authors:

Thanks for following up on this. I've excluded the offending mib from my
application and the rest of the mibs compile successfully.

Original Posted Date: 2009-09-26T21:45:35.96-07:00

Marked as Answer Date: 2013-10-06T20:59:27.283-07:00