[AGENT++] Segmentation fault while finalizing request answer!
Carlos Vicente
carlos.vicente at edisoft.pt
Wed Jun 21 19:13:03 CEST 2006
Hi all,
I've started a few days ago, to make my way into the SNMP++,
AGENT++ and SNMP4j libraries.
At the moment I've managed to create my system mib file, an
agent in a linux box developed in C++ using AGENT++ and a manager in a
windows XP machine developed in JAVA using SNMP4J. After some back and
forth with the SNMP++ and AGENT++ definitions, I've stalled in a
Segmentation fault :-\ .
CURRENT STATUS:
I've disabled THREADS and SNMPv3.
I'm just sending a GETNEXT PDU, requesting the sysDescr and sysObjectID.
Everything seems to go well until the very last step...
Log:
20060621.17:45:35: 9040: (3)DEBUG : MibContext: adding MIB
object (context)(oid): (), (1.3.6.1.2.1.1)
20060621.17:45:35: 9040: (3)DEBUG : MibContext: adding MIB object
(context)(oid): (), (1.3.6.1.2.1.11)
20060621.17:45:42: 9040: (2)EVENT : RequestList: request received
(id)(siz)(fro)(ver)(com)(type): (1615674001), (2),
(192.168.10.153/2306), (SNMPv2c), (public), (161)
20060621.17:45:42: 9040: (2)EVENT : Agent: starting thread execution
(pduType)(subrequests): (161), (2)
20060621.17:45:42: 9040: (2)EVENT : Mib: process request: getnext
request, oid: (0), (1.3.6.1.2.1.1.1), (1.3.6.1.2.1.1.2)
20060621.17:45:42: 9040: (3)EVENT : Mib: process subrequest: getnext
request, oid: (0), (1.3.6.1.2.1.1.1)
20060621.17:45:42: 9040: (3)EVENT : RequestList: finished
subrequest (ind)(oid)(val)(syn): (0), (1.3.6.1.2.1.1.1.0), (DESCRIPTION
AND VERSION OF THE SYSTEM), (4)
20060621.17:45:42: 9040: (3)EVENT : Mib: process
subrequest: getnext request, oid: (0), (1.3.6.1.2.1.1.2)
20060621.17:45:42: 9040: (3)EVENT : RequestList: finished
subrequest (ind)(oid)(val)(syn): (1), (1.3.6.1.2.1.1.2.0),
(1.3.6.1.4.1.162), (6)
Segmentation fault (core dumped)
Core:
#0 0x00036e44 in Agentpp::Mib::finalize (this=0xef8a99a8,
req=0xd1318) at mib.cpp:4044
4044 requestList->answer(req);
(gdb) where
#0 0x00036e44 in Agentpp::Mib::finalize (this=0xef8a99a8, req=0xd1318)
at mib.cpp:4044
#1 0x00034188 in Agentpp::Mib::do_process_request (this=0xef8a99a8,
req=0xd1318) at mib.cpp:3552
#2 0x00033834 in Agentpp::Mib::process_request (this=0xef8a99a8,
req=0xd1318) at mib.cpp:3390
#3 0x0001de50 in main (argc=1, argv=0xef8a9ab4) at
main.cpp:40
Now... I can't really understand why its seg faulting in
requestList->answer(req). Any of you guys have guess what I might be
missing?
Thanks in advance for any help!
More information about the AGENTPP
mailing list