Hello Robert, I have deleted that line, but there's still errors. I used gdb to debug and got this:
Program received signal SIGSEGV, Segmentation fault. snmp_sess_synch_response (sessp=0x80d96a8, pdu=Variable "pdu" is not available. ) at snmp_client.c:870 870 cbsav = ss->callback; (gdb) l 865 int block; 866 867 ss = snmp_sess_session(sessp); 868 memset((void *) &lstate, 0, sizeof(lstate)); 869 state = &lstate; 870 cbsav = ss->callback; 871 cbmagsav = ss->callback_magic; 872 ss->callback = snmp_synch_input; 873 ss->callback_magic = (void *) state; 874 (gdb) bt #0 snmp_sess_synch_response (sessp=0x80d96a8, pdu=Variable "pdu" is not available. ) at snmp_client.c:870 #1 0x4011ef7f in snmpv3_engineID_probe (slp=Variable "slp" is not available. ) at snmp_api.c:1293 #2 0x4011f58c in _sess_open (in_session=0xbfffba20) at snmp_api.c:1429 #3 0x4011fb3d in snmp_sess_open (pss=Variable "pss" is not available. ) at snmp_api.c:1598 #4 0x4011e4fc in snmp_open (session=0xbfffba20) at snmp_api.c:876 #5 0x400c0e2d in snmpd_parse_config_trapsess (word=0xbfffd000 "trapsess", cptr=0xbfffd409 "-v 3 -u nbatest -n \"\" -l authPriv -a MD5 -A nbaprueba -x DES -X nbaprueba localhost:5250") at agent_trap.c:1127 #6 0x4013cff1 in run_config_handler (lptr=Variable "lptr" is not available. ) at read_config.c:484 #7 0x4013d8d8 in read_config (filename=0xbfffe2e0 "/usr/local/share/snmp/snmpd.conf", line_handler=0x804f2e0, when=0) at read_config.c:775 #8 0x4013e90e in read_config_files (when=0) at read_config.c:1116 #9 0x4013e067 in read_configs () at read_config.c:811 #10 0x4011e393 in init_snmp (type=Variable "type" is not available. ) at snmp_api.c:823 #11 0x0804a8d3 in main (argc=3, argv=0xbffff694) at snmpd.c:875 (gdb) What could the problem be? Thanks a lot for your attention. --- Robert Story <[EMAIL PROTECTED]> wrote: > On Sun, 17 Apr 2005 11:44:21 -0700 (PDT) Mauricio > wrote: > MR> I have tested the patch you sent me, but it > seems to > MR> fail. I get this line: > MR> > MR> C:\usr>snmpd > MR> netsnmp_assert x failed C:\Documents and > MR> Settings\Maure\Desktop\net-snmp-5.2.1\ne > MR> t-snmp-5.2.1\snmplib\snmp_api.c:1271 > MR> > MR> The code that seems to generate the error is > this: > MR> > MR> if (slp != NULL) { > MR> session = slp->session; > MR> netsnmp_assert(session == in_session); > <<----- > MR> } > > Hmmm. That line was testing an assumption of mine, > and apparently I assumed > wrong. Just delete that line. > > > MR> I get the same error if the trapsses > destionation is > MR> up or down. > > The real question is, if the remote peer is down and > comes back up later, do > traps get delivered? > > -- > NOTE: messages sent directly to me, instead of the > lists, will be deleted > unless they are requests for paid consulting > services. > > Robert Story; NET-SNMP Junkie > Support: <http://www.net-snmp.org/> > <irc://irc.freenode.net/#net-snmp> > Archive: > <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> > > You are lost in a twisty maze of little standards, > all different. > __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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