Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-snmpd Segmentation fault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cbreaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2003
Posts: 105
Location: Pawtucket, RI

PostPosted: Wed Mar 12, 2003 8:47 pm    Post subject: net-snmpd Segmentation fault Reply with quote

Okay I've been pulling my hair out for a long time now to no avail.

Both the net-snmp and ucd-snmp packages segfault as soon as they run.

There's no output to the log. It generates a zero byte file.

If I run: /usr/sbin/snmpd -f, I see "Segmentation Fault" and it terminates.

I read somewhere that the line "disk / 10000" can cause a seg fault on some systems, but I removed that line and it did the same thing.

I have another Gentoo box with the same ebuild/version of net-snmp installed and it works fine. Actually, I just copied the snmpd.conf file from it.

Here's my snmpd.conf file:

Code:
com2sec local     localhost       12345     
com2sec lan       192.168.0.0/16  12345     
com2sec public    any             public
group LocalGroup        v1         local
group LocalGroup        v2c        local
group LocalGroup        usm        local
group LANGroup          v1         lan
group LANGroup          v2c        lan
group LANGroup          usm        lan
group PublicGroup       v1         public
group PublicGroup       v2c        public
group PublicGroup       usm        public
view all    included  .1                               80
access LocalGroup   ""      any       noauth    exact  all    all    none
access LANGroup     ""      any       noauth    exact  all    all    none
access public       ""      any       noauth    exact  all    none   none
syslocation Pawtucket, RI
syscontact Me <Me@somecompany.com>
systype Linux
proc mountd
proc ntalkd 4
proc sendmail 10 1
exec echotest /bin/echo hello world
 disk / 10000
load 12 14 14


Here's the last few lines from the log if I turn on debug output (it's empty if I don't use the debug switch):

Code:
trace: netsnmp_ds_set_boolean(): default_store.c, 67
netsnmp_ds_set_boolean: Setting 0:26 = 1/True
trace: snmp_call_callbacks(): callback.c, 99
callback: START calling callbacks for maj=0 min=3
trace: snmp_call_callbacks(): callback.c, 107
callback: calling a callback for maj=0 min=3


Maybe there's some other configuration file I'm supposed to edit and I forgot, I don't know. I need snmp running on the machine and if I have to completely blow it away and install Gentoo or Debian just to get SNMP then I guess that's what I'll have to do.. somthing that I've only had to do on Windows machines.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum