I am trying to complete a project for a University class where we have to create a SNMP agent. It was suggested that we download and use a program that generates the C code for the agent, all we have to do is generate the code and then compile it after we add a few patches.
The first few times that I compiled the code, I had to manually run 'ranlib' on the libraries that were created in order to get my software to compile. I simply ran 'ranlib' without any options. Then I completed the compile.
The agent that was created seemed to be working correctly, part started crashing with malloc errors. i.e.
*** malloc[893]: Deallocation of a pointer not malloced: 0x672d456e; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug
Segmentation fault
When I completely redid the generation of the code, everything was working. I left it alone for a couple of days and went back to finish a couple of minor things, but the code is crashing once again.
Most of the code that I'm working with is generated by the utility that I downloaded. Does anybody have any suggestions?