snmpd crash after "response to proxy request illegal. We're screwed"

Tomasz Chmielewski <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
snmpd (5.6.1) crashes for me quite frequently after logging "response to proxy request illegal.  We're screwed".

Is there anything I can do to debug it further?


There was a similar case back in 2005, with no fix though:

http://groups.google.com/group/mailing.unix.net-snmp-users/browse_thread/thread/2454a5a796fb5814/1e7ebe0455051c7a


This is what happens if I run snmpd in the foreground and I hit this bug:


*** glibc detected *** /usr/sbin/snmpd: double free or corruption (!prev): 0x0000000000899ad0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x39d227230f]
/lib64/libc.so.6(cfree+0x4b)[0x39d227276b]
/usr/lib64/libnetsnmp.so.25[0x7f36c1413886]
/usr/lib64/libnetsnmp.so.25(_sess_read+0x6c5)[0x7f36c1414f45]
/usr/lib64/libnetsnmp.so.25(snmp_sess_read2+0x9)[0x7f36c1415839]
/usr/lib64/libnetsnmp.so.25(snmp_read2+0x23)[0x7f36c14158f3]
/usr/sbin/snmpd(main+0x1d4d)[0x404c8d]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x39d221d994]
/usr/sbin/snmpd[0x402d29]
======= Memory map: ========
00400000-00406000 r-xp 00000000 08:01 4298203                            /usr/sbin/snmpd
00606000-00607000 rw-p 00006000 08:01 4298203                            /usr/sbin/snmpd
00607000-008da000 rw-p 00000000 00:00 0                                  [heap]
39d1e00000-39d1e1c000 r-xp 00000000 08:01 8216955                        /lib64/ld-2.5.so
39d201b000-39d201c000 r--p 0001b000 08:01 8216955                        /lib64/ld-2.5.so
39d201c000-39d201d000 rw-p 0001c000 08:01 8216955                        /lib64/ld-2.5.so
39d2200000-39d234e000 r-xp 00000000 08:01 8216957                        /lib64/libc-2.5.so
39d234e000-39d254d000 ---p 0014e000 08:01 8216957                        /lib64/libc-2.5.so
39d254d000-39d2551000 r--p 0014d000 08:01 8216957                        /lib64/libc-2.5.so
39d2551000-39d2552000 rw-p 00151000 08:01 8216957                        /lib64/libc-2.5.so
39d2552000-39d2557000 rw-p 00000000 00:00 0 
39d2600000-39d2608000 r-xp 00000000 08:01 8216747                        /lib64/libwrap.so.0.7.6
39d2608000-39d2807000 ---p 00008000 08:01 8216747                        /lib64/libwrap.so.0.7.6
39d2807000-39d2809000 rw-p 00007000 08:01 8216747                        /lib64/libwrap.so.0.7.6
39d2a00000-39d2a82000 r-xp 00000000 08:01 8216966                        /lib64/libm-2.5.so
39d2a82000-39d2c81000 ---p 00082000 08:01 8216966                        /lib64/libm-2.5.so
39d2c81000-39d2c82000 r--p 00081000 08:01 8216966                        /lib64/libm-2.5.so
39d2c82000-39d2c83000 rw-p 00082000 08:01 8216966                        /lib64/libm-2.5.so
39d2e00000-39d2e0a000 r-xp 00000000 08:01 4296039                        /usr/lib64/libsysfs.so.2.0.0
39d2e0a000-39d3009000 ---p 0000a000 08:01 4296039                        /usr/lib64/libsysfs.so.2.0.0
39d3009000-39d300a000 rw-p 00009000 08:01 4296039                        /usr/lib64/libsysfs.so.2.0.0
39d3200000-39d3216000 r-xp 00000000 08:01 8217003                        /lib64/libpthread-2.5.so
39d3216000-39d3415000 ---p 00016000 08:01 8217003                        /lib64/libpthread-2.5.so
39d3415000-39d3416000 r--p 00015000 08:01 8217003                        /lib64/libpthread-2.5.so
39d3416000-39d3417000 rw-p 00016000 08:01 8217003                        /lib64/libpthread-2.5.so
39d3417000-39d341b000 rw-p 00000000 00:00 0 
39d3600000-39d363b000 r-xp 00000000 08:01 8217008                        /lib64/libsepol.so.1
39d363b000-39d383b000 ---p 0003b000 08:01 8217008                        /lib64/libsepol.so.1
39d383b000-39d383c000 rw-p 0003b000 08:01 8217008                        /lib64/libsepol.so.1
39d383c000-39d3846000 rw-p 00000000 00:00 0 
39d3a00000-39d3a15000 r-xp 00000000 08:01 8217070                        /lib64/libselinux.so.1
39d3a15000-39d3c15000 ---p 00015000 08:01 8217070                        /lib64/libselinux.so.1
39d3c15000-39d3c17000 rw-p 00015000 08:01 8217070                        /lib64/libselinux.so.1
39d3c17000-39d3c18000 rw-p 00000000 00:00 0 
39d3e00000-39d3e07000 r-xp 00000000 08:01 8217004                        /lib64/librt-2.5.so
39d3e07000-39d4007000 ---p 00007000 08:01 8217004                        /lib64/librt-2.5.so
39d4007000-39d4008000 r--p 00007000 08:01 8217004                        /lib64/librt-2.5.so
39d4008000-39d4009000 rw-p 00008000 08:01 8217004                        /lib64/librt-2.5.so
39d4200000-39d4215000 r-xp 00000000 08:01 8216971                        /lib64/libnsl-2.5.so
39d4215000-39d4414000 ---p 00015000 08:01 8216971                        /lib64/libnsl-2.5.so
39d4414000-39d4415000 r--p 00014000 08:01 8216971                        /lib64/libnsl-2.5.so
39d4415000-39d4416000 rw-p 00015000 08:01 8216971                        /lib64/libnsl-2.5.so
39d4416000-39d4418000 rw-p 00000000 00:00 0 
39d4600000-39d4609000 r-xp 00000000 08:01 8216989                        /lib64/libcrypt-2.5.so
39d4609000-39d4808000 ---p 00009000 08:01 8216989                        /lib64/libcrypt-2.5.so
39d4808000-39d4809000 r--p 00008000 08:01 8216989                        /lib64/libcrypt-2.5.so
39d4809000-39d480a000 rw-p 00009000 08:01 8216989                        /lib64/libcrypt-2.5.so
39d480a000-39d4838000 rw-p 00000000 00:00 0 
39d4a00000-39d4b2d000 r-xp 00000000 08:01 8217072                        /lib64/libcrypto.so.0.9.8e
39d4b2d000-39d4d2c000 ---p 0012d000 08:01 8217072                        /lib64/libcrypto.so.0.9.8e
39d4d2c000-39d4d4d000 rw-p 0012c000 08:01 8217072                        /lib64/libcrypto.so.0.9.8e
39d4d4d000-39d4d51000 rw-p 00000000 00:00 0 
39d4e00000-39d4f2c000 r-xp 00000000 08:01 4420539                        /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so
39d4f2c000-39d512b000 ---p 0012c000 08:01 4420539                        /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so
39d512b000-39d5134000 rw-p 0012b000 08:01 4420539                        /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so
39d5134000-39d5136000 rw-p 00000000 00:00 0 
39d5200000-39d5211000 r-xp 00000000 08:01 8216976                        /lib64/libresolv-2.5.so
39d5211000-39d5411000 ---p 00011000 08:01 8216976                        /lib64/libresolv-2.5.so
39d5411000-39d5412000 r--p 00011000 08:01 8216976                        /lib64/libresolv-2.5.so
39d5412000-39d5413000 rw-p 00012000 08:01 8216976                        /lib64/libresolv-2.5.so
39d5413000-39d5415000 rw-p 00000000 00:00 0 
39d5600000-39d570f000 r-xp 00000000 08:01 4302501                        /usr/lib64/librpmdb-4.4.soAborted



-- 
Tomasz Chmielewski
http://wpkg.org

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
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
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.