[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-3497460 ] 5.7.1 crashes on solaris
From:       SourceForge.net <noreply () sourceforge ! net>
Date:       2012-03-25 7:41:19
Message-ID: E1SBi4n-0007vt-PS () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3497460, was opened at 2012-03-06 02:10
Message generated for change (Comment added) made by drook
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3497460&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: agent
Group: solaris
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: drook (drook)
Assigned to: Nobody/Anonymous (nobody)
Summary: 5.7.1 crashes on solaris

Initial Comment:
Solaris:
$ uname -a
SunOS avdesk2.enaza.ru 5.10 Generic_142910-17 i86pc i386 i86pc
snmpd:
$ /usr/local/net-snmp/sbin/snmpd -v

NET-SNMP version:  5.7.1
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net

snmpd is build from sources. Sometimes it crahes. The cause is unknown: may work for \
a week, may crash after couple of hours.

Backtrace:
[root@avdesk2 /home/emz/snmpd.cores]# dbx /usr/local/net-snmp/sbin/snmpd core.1
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc
Reading snmpd
core file header read successfully
Reading ld.so.1
Reading libnetsnmpagent.so.30.0.1
Reading libnetsnmpmibs.so.30.0.1
Reading libkvm.so.1
Reading libnetsnmp.so.30.0.1
Reading libadm.so.1
Reading libkstat.so.1
Reading libcrypto.so.0.9.7
Reading libnsl.so.1
Reading libsocket.so.1
Reading libelf.so.1
Reading libm.so.2
Reading libc.so.1
Reading libgcc_s.so.1
Reading libcrypto_extra.so.0.9.7
Reading ru_RU.UTF-8.so.3
Reading methods_unicode.so.3
program terminated by signal SEGV (no mapping at the fault address)
0xfffffd7ffec0188b: _private_memcpy+0x0a0b:     movdqu   (%rdx),%xmm0
Current function is getMibstat
  760               memcpy(resp, ep, entrysize);
(dbx) where
  [1] _private_memcpy(0xfffffd7fffdf8720, 0x730005ac000001d7, 0x730005ac000001d7, \
0xfffffd7fffdf8720, 0x9c, 0x100000), at 0xfffffd7ffec0188b  =>[2] getMibstat(grid = \
MIB_IP_ROUTE, resp = 0xfffffd7fffdf8720, entrysize = 156U, req_type = GET_FIRST, comp \
= 0xfffffd7fff2302de = &`libnetsnmpmibs.so.30.0.1`var_route.c`IP_Cmp_Route(void \
*addr, void *ep), arg = 0xfffffd7fffdf87c0), line 760 in "kernel_sunos5.c"  [3] \
var_ipRouteEntry(vp = 0xfffffd7fffdf8eb0, name = 0xfffffd7fffdf8a60, length = \
0xfffffd7fffdf8e68, exact = 0, var_len = 0xfffffd7fffdf8e70, write_method = \
0xfffffd7fffdf8e78), line 767 in "var_route.c"  [4] netsnmp_old_api_helper(handler = \
0x4372a0, reginfo = 0x43aeb0, reqinfo = 0x5e93a0, requests = 0x617430), line 320 in \
"old_api.c"  [5] netsnmp_call_handler(next_handler = 0x4372a0, reginfo = 0x43aeb0, \
reqinfo = 0x5e93a0, requests = 0x617430), line 526 in "agent_handler.c"  [6] \
netsnmp_call_next_handler(current = 0x437c50, reginfo = 0x43aeb0, reqinfo = 0x5e93a0, \
requests = 0x617430), line 640 in "agent_handler.c"  [7] \
netsnmp_bulk_to_next_helper(handler = 0x437c50, reginfo = 0x43aeb0, reqinfo = \
0x5e93a0, requests = 0x617430), line 110 in "bulk_to_next.c"  [8] \
netsnmp_call_handler(next_handler = 0x437c50, reginfo = 0x43aeb0, reqinfo = 0x5e93a0, \
requests = 0x617430), line 526 in "agent_handler.c"  [9] \
netsnmp_call_handlers(reginfo = 0x43aeb0, reqinfo = 0x5e93a0, requests = 0x617430), \
line 611 in "agent_handler.c"  [10] handle_var_requests(asp = 0x5a99b0), line 2676 in \
"snmp_agent.c"  [11] handle_getnext_loop(asp = 0x5a99b0), line 3122 in "snmp_agent.c"
  [12] handle_pdu(asp = 0x5a99b0), line 3499 in "snmp_agent.c"
  [13] netsnmp_handle_request(asp = 0x5a99b0, status = 0), line 3278 in \
"snmp_agent.c"  [14] handle_snmp_packet(op = 1, session = 0x6098f0, reqid = \
817503559, pdu = 0x60b120, magic = (nil)), line 1987 in "snmp_agent.c"  [15] \
_sess_process_packet(sessp = 0x5e9340, sp = 0x6098f0, isp = 0x58c1d0, transport = \
0x609680, opaque = 0x5570a0, olength = 36, packetptr = 0x78c330 \
"0.^B^A^A^D\nenaza-snmp ¥^]^B^D0 º^]G^B^A", length = 48), line 5400 in "snmp_api.c"  \
[16] _sess_read(sessp = 0x5e9340, fdset = 0xfffffd7fffdfdbc0), line 5829 in \
"snmp_api.c"  [17] snmp_sess_read2(sessp = 0x5e9340, fdset = 0xfffffd7fffdfdbc0), \
line 5861 in "snmp_api.c"  [18] snmp_read2(fdset = 0xfffffd7fffdfdbc0), line 5463 in \
"snmp_api.c"  [19] receive(), line 1315 in "snmpd.c"
  [20] main(argc = 1, argv = 0xfffffd7fffdffd48), line 1105 in "snmpd.c"
(dbx) list
  760               memcpy(resp, ep, entrysize);
  761           }
  762           ret = 0;
  763           cachep->cache_last_found =
  764               ((char *)ep - (char *)cachep->cache_addr) / entrysize;
  765       } else {
  766           ret = 1;            /* Not found */
  767       }
  768       DEBUGMSGTL(("kernel_sunos5", "... getMibstat returns %d\n", ret));
  769       return ret;
(dbx)

----------------------------------------------------------------------

> Comment By: drook (drook)
Date: 2012-03-25 00:41

Message:
Actually, I have like 5 cores of this bug already. Do I need to keep
posting 'em ? They do look identical.

----------------------------------------------------------------------

Comment By: drook (drook)
Date: 2012-03-09 12:34

Message:
Again:

[root@avdesk2 /home/emz/snmpd.cores]# dbx /usr/local/net-snmp/sbin/snmpd
core.2
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.7' in your
.dbxrc
Reading snmpd
core file header read successfully
Reading ld.so.1
Reading libnetsnmpagent.so.30.0.1
Reading libnetsnmpmibs.so.30.0.1
Reading libkvm.so.1
Reading libnetsnmp.so.30.0.1
Reading libadm.so.1
Reading libkstat.so.1
Reading libcrypto.so.0.9.7
Reading libnsl.so.1
Reading libsocket.so.1
Reading libelf.so.1
Reading libm.so.2
Reading libc.so.1
Reading libgcc_s.so.1
Reading libcrypto_extra.so.0.9.7
Reading ru_RU.UTF-8.so.3
Reading methods_unicode.so.3
program terminated by signal SEGV (no mapping at the fault address)
0xfffffd7ffec0188b: _private_memcpy+0x0a0b:     movdqu   (%rdx),%xmm0
Current function is getMibstat
  760               memcpy(resp, ep, entrysize);
(dbx) where
  [1] _private_memcpy(0xfffffd7fffdf8720, 0x7302a8c000000005,
0x7302a8c000000005, 0xfffffd7fffdf8720, 0x9c, 0x100000), at
0xfffffd7ffec0188b
=>[2] getMibstat(grid = MIB_IP_ROUTE, resp = 0xfffffd7fffdf8720, entrysize
= 156U, req_type = GET_FIRST, comp = 0xfffffd7fff2302de =
&`libnetsnmpmibs.so.30.0.1`var_route.c`IP_Cmp_Route(void *addr, void *ep),
arg = 0xfffffd7fffdf87c0), line 760 in "kernel_sunos5.c"
  [3] var_ipRouteEntry(vp = 0xfffffd7fffdf8eb0, name = 0xfffffd7fffdf8a60,
length = 0xfffffd7fffdf8e68, exact = 0, var_len = 0xfffffd7fffdf8e70,
write_method = 0xfffffd7fffdf8e78), line 767 in "var_route.c"
  [4] netsnmp_old_api_helper(handler = 0x4372a0, reginfo = 0x43aeb0,
reqinfo = 0x5e9400, requests = 0x598ef0), line 320 in "old_api.c"
  [5] netsnmp_call_handler(next_handler = 0x4372a0, reginfo = 0x43aeb0,
reqinfo = 0x5e9400, requests = 0x598ef0), line 526 in "agent_handler.c"
  [6] netsnmp_call_next_handler(current = 0x437c50, reginfo = 0x43aeb0,
reqinfo = 0x5e9400, requests = 0x598ef0), line 640 in "agent_handler.c"
  [7] netsnmp_bulk_to_next_helper(handler = 0x437c50, reginfo = 0x43aeb0,
reqinfo = 0x5e9400, requests = 0x598ef0), line 110 in "bulk_to_next.c"
  [8] netsnmp_call_handler(next_handler = 0x437c50, reginfo = 0x43aeb0,
reqinfo = 0x5e9400, requests = 0x598ef0), line 526 in "agent_handler.c"
  [9] netsnmp_call_handlers(reginfo = 0x43aeb0, reqinfo = 0x5e9400,
requests = 0x598ef0), line 611 in "agent_handler.c"
  [10] handle_var_requests(asp = 0x59f2c0), line 2676 in "snmp_agent.c"
  [11] handle_getnext_loop(asp = 0x59f2c0), line 3122 in "snmp_agent.c"
  [12] handle_pdu(asp = 0x59f2c0), line 3499 in "snmp_agent.c"
  [13] netsnmp_handle_request(asp = 0x59f2c0, status = 0), line 3278 in
"snmp_agent.c"
  [14] handle_snmp_packet(op = 1, session = 0x6098f0, reqid = 1487159831,
pdu = 0x6171f0, magic = (nil)), line 1987 in "snmp_agent.c"
  [15] _sess_process_packet(sessp = 0x5e9340, sp = 0x6098f0, isp =
0x58c1d0, transport = 0x609680, opaque = 0x578520, olength = 36, packetptr
= 0x6d2250 "0.^B^A^A^D\nenaza-snmp ¥^]^B^DX ¤B^W^B^A", length = 48), line
5400 in "snmp_api.c"
  [16] _sess_read(sessp = 0x5e9340, fdset = 0xfffffd7fffdfdbc0), line 5829
in "snmp_api.c"
  [17] snmp_sess_read2(sessp = 0x5e9340, fdset = 0xfffffd7fffdfdbc0), line
5861 in "snmp_api.c"
  [18] snmp_read2(fdset = 0xfffffd7fffdfdbc0), line 5463 in "snmp_api.c"
  [19] receive(), line 1315 in "snmpd.c"
  [20] main(argc = 1, argv = 0xfffffd7fffdffd48), line 1105 in "snmpd.c"
(dbx)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3497460&group_id=12694

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic