From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b5) Gecko/20051008 Fedora/1.5-0.5.0.beta2 Firefox/1.4.1 Description of problem: A sample perl module for net-snmp causes double free corruption # perl ./perl_module.pl starting perl_module.pl perl_module.pl loaded ok registering at netSnmp.999 NET-SNMP version 5.2.2.rc1 AgentX subagent connected started us as a subagent (NetSNMP::agent=HASH(0x917c360)) shutting down mainloop excercised *** glibc detected *** perl: double free or corruption (!prev): 0x091c3768 *** Version-Release number of selected component (if applicable): perl-5.8.7-0.5.fc5.i386 How reproducible: Always Steps to Reproduce: 1. start net-snmp add following line to snmpd.conf master agentx 2. start perl module (perl /path/to/perl_module.pl) 3. hit ctrl-c Additional info: testing with rawhide net-snmp
Created attachment 120156 [details] strace output
Created attachment 120157 [details] perl module
Could you please test this in previous dists, especially RHEL versions?
This worked on RHEL3, works on RHEL4, only rawhide seems to be broken.
Thanks for the analysis. Can someone in the perl team report this upstream and cross-reference with bug numbers?
I cannot reproduce this bug with net-snmp-5.2.1.2-3, glibc-2.3.90-15, and perl-5.8.7-0.5.fc5 . I added the 'master agentx' to the default /etc/snmp/snmpd.conf file . $ ./perl_module.pl starting perl_module.pl perl_module.pl loaded ok registering at netSnmp.999 started us as a subagent (NetSNMP::agent=HASH(0x90514cc)) ( pressed CTRL-C ) shutting down mainloop excercised I repeated this 10 times in a row with no glibc double free detected and a 0 exit status . The /var/net-snmp/perl.conf file was written OK . Can you still reproduce this ? If so, does the /etc/snmp/snmpd.conf configuration file you use differ in any way from the default, with 'master agentx' added at the end ?
Seems to be gone # rpm -q perl glibc perl-5.8.7-0.5.fc5.i386 glibc-2.3.90-14.i686 Can't say if it was glibc issue, I keep my test box rawhide up2date :) Closing as rawhide