Hi, Trying to schedule the agent to call an SNMP set on a module that is implemented through the agent using the pass_persist framework: * We can call the SET from the command line using snmpset without issue * Using symbolic OIDs for built-in MIBs does *NOT* trigger the segfault (for example, the example in the Net-SNMP documentation to trigger the agent to re-read it's configuration works fine). * Using either a numeric or symbolic OID for our pass_persist module triggers the error
If I remove the schedule entry (either repeat or cron) the agent starts and runs as expected. This happens on both the CentOS and RHEL versions of the 5.4.2.1 agent. I have searched and am not finding other people having this issue. Am I doing something wrong? What would you recommend I do next to try and troubleshoot / debug this, the DISMAN-SCHEDULE-MIB is functionality we really want to use :) and I would be happy to help fix this if this is indeed a bug and not just another user error :p. Example: snmpd.conf: repeat 30 .1.3.6.1.4.1.1720.21.2.1.1.2.1.1.1 = 1 strace -o snmpd.out /usr/sbin/snmpd -f -Lf /dev/stdout \ -Ducd-snmp/pass_persist \ -Dschedule >From the agent: registered debug token ucd-snmp/pass_persist, 1 registered debug token schedule, 1 (SEGFAULT) Strace output (last 50 lines): ead(11, "SNMP-NOTIFICATION-MIB DEFINITION"..., 4096) = 4096 read(11, "AX SnmpAdminString (SIZE(1."..., 4096) = 4096 read(11, "orageType\n MAX-ACCESS read-c"..., 4096) = 4096 read(11, " i.e., any sub-identifier"..., 4096) = 4096 read(11, "CCESS read-only\n DESCR"..., 4096) = 3630 read(11, "", 4096) = 0 close(11) = 0 munmap(0xb7381000, 4096) = 0 open("/usr/share/snmp/mibs/SNMPv2-TM.txt", O_RDONLY|O_LARGEFILE) = 11 fstat64(11, {st_mode=S_IFREG|0644, st_size=5775, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7381000 read(11, "SNMPv2-TM DEFINITIONS ::= BEGIN\n"..., 4096) = 4096 read(11, "'n' as an unsigned integer\n "..., 4096) = 1679 read(11, "", 4096) = 0 close(11) = 0 munmap(0xb7381000, 4096) = 0 open("/etc/snmp/snmpd.conf", O_RDONLY|O_LARGEFILE) = 11 fstat64(11, {st_mode=S_IFREG|0644, st_size=1079, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7381000 read(11, "rwcommunity local\nagentaddress 0"..., 4096) = 1079 brk(0x8470000) = 0x8470000 brk(0x846f000) = 0x846f000 open("/etc/resolv.conf", O_RDONLY) = 12 fstat64(12, {st_mode=S_IFREG|0644, st_size=151, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7380000 read(12, "; generated by /sbin/dhclient-sc"..., 4096) = 151 read(12, "", 4096) = 0 close(12) = 0 munmap(0xb7380000, 4096) = 0 ocket(PF_FILE, SOCK_STREAM, 0) = 12 fcntl64(12, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(12, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(12, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0 poll([{fd=12, events=POLLOUT|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=12, revents=POLLOUT}] ) send(12, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL) = 18 poll([{fd=12, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=12, revents=POLLIN}]) recvmsg(12, {msg_name(0)=NULL, msg_iov(1)=[{"hosts\0", 6}], msg_controllen=16, {cmsg_len =16, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {13}}, msg_flags=0}, 0) = 6 fstat64(13, {st_mode=S_IFREG|0600, st_size=217016, ...}) = 0 pread64(13, "\1\0\0\0h\0\0\0\0<\0\0\1\0\0\0\345\273\222J\0\0\0\0\323\0\0\0\0L\3\0"..., 1 04, 0) = 104 mmap2(NULL, 217016, PROT_READ, MAP_SHARED, 13, 0) = 0xb734c000 close(13) = 0 close(12) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 12 uname({sys="Linux", node="vm-nagios-mschuber", ...}) = 0 getsockopt(12, SOL_SOCKET, SO_SNDBUF, [109568], [4]) = 0 getsockopt(12, SOL_SOCKET, SO_RCVBUF, [109568], [4]) = 0 bind(12, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 pipe([13, 14]) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV (core dumped) +++ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users