Wes Hardaker wrote:
On Mon, 02 May 2005 16:44:37 -0700, John Hardin <[EMAIL PROTECTED]> said:
John> trace: init_agent_snmp_session(): snmp_agent.c, 1244: John> snmp_agent: agent_sesion 0x80f18c0 created John> Segmentation fault
Can you run it in gdb and send us the results of a "where" call when it crashes?
# gdb snmpd ... gdb> r -f -Le ... [boom ] ... gdb> where
[useful stuff here]
Here ya go:
#0 0x4207a251 in chunk_alloc () from /lib/i686/libc.so.6
#1 0x4207a058 in malloc () from /lib/i686/libc.so.6
#2 0x40184639 in _clone_pdu_header (pdu=0x80f17c8) at snmp_client.c:327
#3 0x4018489c in _clone_pdu (pdu=0x80f17c8, drop_err=0) at snmp_client.c:509
#4 0x401848dc in snmp_clone_pdu (pdu=0x80f17c8) at snmp_client.c:537
#5 0x401390e6 in init_agent_snmp_session (session=0x81265c8, pdu=0x80f17c8) at snmp_agent.c:1246
#6 0x4013a18c in handle_snmp_packet (op=1, session=0x81265c8, reqid=1830018929, pdu=0x80f17c8, magic=0x0)
at snmp_agent.c:1738
#7 0x401a84a5 in _sess_process_packet (sessp=0x8122550, sp=0x81265c8, isp=0x811d9f8, transport=0x81228e0,
opaque=0x81367c0, olength=16,
packetptr=0x81267b8 "0;\002\001\001\004\006public\uffff.\002\004m\023\uffffq\002\001\002\002\001", length=61)
at snmp_api.c:5208
#8 0x401a932b in _sess_read (sessp=0x8122550, fdset=0xbfffe410) at snmp_api.c:5606
#9 0x401a9374 in snmp_sess_read (sessp=0x8122550, fdset=0xbfffe410) at snmp_api.c:5625
#10 0x401a85ee in snmp_read (fdset=0xbfffe410) at snmp_api.c:5260
#11 0x0804b776 in receive () at snmpd.c:1149
#12 0x0804b1d1 in main (argc=8, argv=0xbffff774) at snmpd.c:993
#13 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ 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