[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-896030 ] Win32 Perl OID module crashes
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2004-02-25 21:33:54
Message-ID: E1Aw6fC-0001wV-00 () sc8-sf-web4 ! sourceforge ! net
[Download RAW message or body]

Bugs item #896030, was opened at 2004-02-12 15:39
Message generated for change (Comment added) made by slif
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=896030&group_id=12694

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Alex Burger (alex_b)
Assigned to: Michael J. Slifcak (slif)
Summary: Win32 Perl OID module crashes

Initial Comment:
V5-1-patches:

The following will crash the OID Perl module on Windows:

my $oid = new NetSNMP::OID(".1.3.6.1");

That attached patch fixes the issue by calling
libraries_init in the nso_newptr function.  The
libraries_init function was copied from the
SNMP/SNMP.xs file to OID.xs.

With this patch, nmake test will completed 25 tests and
then crashes with:

&#039;Free to wrong pool 15d2d10 not 80101 at test.pl line 63.&#039;

There seems to be other projects with &#039;Free to wrong
pool&#039; errors on Windows, so it may not be Net-SNMP
specific.  It seems to be when the test script exits
that the error occurs, which would be during the
internal cleanup.  For example, if you put an &#039;exit;&#039;
after the first new NetSNMP::OID line in OID/test.pl
and run nmake test, it will give ok 1, ok 2, ok 3 and
then crash with the error.  Otherwise it crashes after
the 25th test (last one I assume).

This was tested with ActiveState Perl v5.8.2.

Tested changes with both Windows and Linux.



----------------------------------------------------------------------

Comment By: Michael J. Slifcak (slif)
Date: 2004-02-25 16:33

Message:
Logged In: YES 
user_id=88697

Thanks for the bug report!  We've fixed the problem in the
5.1.x code branch and the main development tree,
so it should be fixed in future releases of the net-snmp package.

----------------------------------------------------------------------

Comment By: Michael J. Slifcak (slif)
Date: 2004-02-16 22:43

Message:
Logged In: YES 
user_id=88697

patch #898464 purports to fix this bug.

----------------------------------------------------------------------

Comment By: Michael J. Slifcak (slif)
Date: 2004-02-16 17:54

Message:
Logged In: YES 
user_id=88697

03bbd2122c1d19fdb02cd5f72b009f65 carepkg.tar.gz

----------------------------------------------------------------------

Comment By: Michael J. Slifcak (slif)
Date: 2004-02-16 15:50

Message:
Logged In: YES 
user_id=88697

A howto is in the works.
Please try the carepkg.tar.gz.
Apply dll4.patch to a recent V5-1-patches CVS copy
and folllow the instructions in howto.
Make sure that netsnmp.dll is copied to %SYSTEMROOT%\System32,
which is done now in a recent update to install-net-snmp.bat,
before attempting to run 'makeperl'.

I would prefer NOT to delve into issues of 
paths containing spaces until we get some clean
build process in place for the Perl modules.




----------------------------------------------------------------------

Comment By: Michael J. Slifcak (slif)
Date: 2004-02-15 21:57

Message:
Logged In: YES 
user_id=88697


Please try patch-win32-free-wrong-pool.  It attempts to
solve the problem in a more general way.  I expect that it
solves other
"Free to wrong pool" errors, but have not tested that
expectation.

----------------------------------------------------------------------

Comment By: Michael J. Slifcak (slif)
Date: 2004-02-14 08:54

Message:
Logged In: YES 
user_id=88697

The patch you've submitted is not valid.
Try bugfix896030.patch. 
It forces the memory allocated on the library's memory heap,
and no longer triggers the "Free to wrong pool" error.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=896030&group_id=12694


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic