Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module doesn't correctly handle _error state #1

Open
sjn opened this issue Sep 21, 2022 · 0 comments
Open

Module doesn't correctly handle _error state #1

sjn opened this issue Sep 21, 2022 · 0 comments

Comments

@sjn
Copy link

sjn commented Sep 21, 2022

Hei!

When running the test suite with verbose and warnings enabled (see below), a bunch of errors are expressed, that reveal that Net::SNMP->_object_type_validate() isn't called before object destruction. (See the Net::SNMP->DESTROY method).

This is how the warning is reproduced:

$ prove -w -l 
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/01-public-methods.t .... ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/02-session.t ........... ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/03-close.t ............. ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/04-dispatcher.t ........ ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/05-get-request.t ....... ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/06-get-next-request.t .. ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/07-set-request.t ....... ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/08-trap.t .............. ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/09-get-bulk-request.t .. ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/10-inform-request.t .... ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/11-snmpv2_trap.t ....... ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/12-get-table.t ......... ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/13-get-entries.t ....... ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/14-misc.t .............. ok
	(in cleanup) FATAL: Invalid blocking object count at /home/sjn/local/lib/perl5/site_perl/5.22.4/Net/SNMP.pm line 2163 during global destruction.
t/15-example.t ........... ok
All tests successful.
Files=15, Tests=237,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.79 cusr  0.09 csys =  0.91 CPU)
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant