snmpd sigsegv

Bug #489215 reported by Anatoly Pugachev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Net-SNMP
Invalid
Undecided
Unassigned
net-snmp (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

System:

Ubuntu 9.04 x86_64 , 2.6.28-16-server kernel
snmpd-5.4.1~dfsg-12ubuntu3.1 package.

How to reproduce:

put to /etc/snmp/snmpd.conf an "exec" directive, even simple "exec echo hello" will do.

try to query snmpd for above results, I've used command line:

$ snmpwalk -v 1 -c ro localhost .extOutput.1

getting in /var/log/messages:

Nov 27 17:41:15 muse01 kernel: [11062.076227] snmpd[25032]: segfault at 60 ip 00007f29e357748c sp 00007fff37639800 error 4 in libnetsnmpmibs.so.15.1.0[7f29e]

running snmpd in a gdb to get backtrace and logs is in attachment.

Revision history for this message
Anatoly Pugachev (matorola) wrote :
Revision history for this message
Anatoly Pugachev (matorola) wrote :

sorry for wrong initial Bazaar assign, can someone remove it? thanks

Chuck Short (zulcss)
Changed in bzr:
status: New → Invalid
Revision history for this message
Chuck Short (zulcss) wrote :

Can you attach your /etc/snmp/snmp.conf?

Thanks
chuck

Changed in net-snmp (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Martin Pool (mbp)
affects: bzr → null
Revision history for this message
Anatoly Pugachev (matorola) wrote :

/etc/snmp/snmpd.conf :

rocommunity public
disk /

exec echo /bin/echo "hi there"

com2sec paranoid default public
com2sec readonly default public

group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite

view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system

access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none

on snmpd startup, there's a message in syslog:

$ tail /var/log/syslog
Nov 30 19:15:22 muse01 snmpd[26108]: duplicate table data attempted to be entered. row exists

Revision history for this message
Anatoly Pugachev (matorola) wrote :

There's a difference in community name in my last post and first post, I've intentionally changed community name, not to show it to the public, but bug still arise even with different (i.e. "public") RO community name. Thanks.

Revision history for this message
Chuck Short (zulcss) wrote :

This has been fixed in lucid.

Regards
chuck

Changed in net-snmp (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Anatoly Pugachev (matorola) wrote :

I don't see a fix is released... You're telling that it was fixed in lucid, which is not what I've reported on.
Any chance it will be back-ported to jaunty or i should upgrade all my servers to the last ubuntu release every time a bug has been fixed?

Sergey Svishchev (svs)
affects: null → netsnmp
Sergey Svishchev (svs)
summary: - snmpd sigserv
+ snmpd sigsegv
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.