[AGENT++] Segmentation fault while finalizing request answer!
Carlos Vicente
carlos.vicente at edisoft.pt
Thu Jun 22 10:23:03 CEST 2006
Hi Frank, thanks for the quick answer.
Well, actually I've read a few threads in this mailing list before
sending this mail, so I've cleaned all objects and libs from SNMP++ and
Agent++ and rebuild them all. I had exactly the same result.
Unless "make -f Makefile.linux clean" is not cleaning everything as it
should... (by the way, I removed the libs manually...)
Any insights?
Thanks
-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com]
Sent: quarta-feira, 21 de Junho de 2006 19:41
To: Carlos Vicente
Cc: agentpp at agentpp.org
Subject: Re: [AGENT++] Segmentation fault while finalizing request
answer!
Hi Carlos,
Most likely you hit a FAQ. When you get a seg. fault
and you changed some compiler settings before
(e.g. disabled _THREADS or SNMPv3) then in 99%
of all cases you have not made a clean compilation
of *all* your libraries.
Best regards,
Frank
Carlos Vicente wrote:
> 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!
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the AGENTPP
mailing list