Re: snmptrapd with attached perl script eats all memory

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
michael kapelko wrote:
> I use net-snmp-5.4.1 on CentOS release 4.4 (Final)
> 
> # uname -a
> Linux zond2 2.6.9-42.ELsmp #1 SMP Tue Aug 15 10:35:26 BST 2006 x86_64
> x86_64 x86_64 GNU/Linux

You're most likely affected by bug 1955227:

  http://sf.net/support/tracker.php?aid=1955227

Please apply the attached patch, recompile, retest and report back.


+Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
net-snmp-5.4.x-perl-memleak-x86_64.patch (text/x-patch, 498 B)
Index: perl/TrapReceiver/TrapReceiver.xs
===================================================================
--- perl/TrapReceiver/TrapReceiver.xs	(revision 16982)
+++ perl/TrapReceiver/TrapReceiver.xs	(working copy)
@@ -213,9 +213,7 @@
     /* Not needed because of the G_DISCARD flag (I think) */
     /* SPAGAIN; */
     /* PUTBACK; */
-#ifndef __x86_64__
-    FREETMPS; /* FIXME: known to cause a segfault on x86-64 */
-#endif
+    FREETMPS;
     LEAVE;
     return NETSNMPTRAPD_HANDLER_OK;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.