Deleting table rows
Alex Finogenov
afinogenov____malibunet.com
Sun Jul 15 00:25:21 CEST 2001
Hi,
I am trying a different approach to the stateless agent problem.
In the generated code I overloaded update(Request *) method for table
entries. In this method, for each oid that arrives in a request I retrieve
an object from my database (if it exists there, of course), populate a row,
and add the row to the entry's table. If the oid does not have an index, I
add the first index that is valid for this table in the application at the
time of the request.
The problem is that agent++ keeps corrupting its stack after a couple of
GetNexts on the table entry's OID (no indexes; with indexes it seems to
work fine):
...
20010714.14:50:40: 09723: (3)EVENT : RequestList: finished subrequest
(ind)(oid)(val): (0), (1.3.6.1.4.1.5275.6.2.1.2.4.1.1.139), (139).
20010714.14:50:40: 09723: (4)EVENT : RequestList: request answered
(rid)(tid)(to)(err)(send)(sz): (140), (1), (172.16.1.127/1075), (0), (0),
(1).
20010714.14:50:40: 09723: (2)EVENT : Agent: finished thread execution.
Segmentation fault, aborting.
$
It dies in the main loop apparently cleaning up the response after sending a
correct reply.
Does anybody have any idea what is the problem: I am not doing anything
fancy in the update(), just generate unique rows and add them to the tables?
Thanks,
Alex
More information about the AGENTPP
mailing list