Environment: OS: Sun Solaris 10 Processor: AMD 64 bit
I have an application which uses net-snmp library. The application is portable (code level) to various OS and processor. In net-snmp, you can register a logging callback (a function pointer) which gets called when something is to be logged.
The problem is that when I run the application, it seg faults when net-snmp tries to call the callback function I have registered. The callback address that gets registered is 0xffe30b90 but net-snmp tries to call 0xffffffff ffe30b90.
While investigating, I wrote another function in the same application and registered it. That function gets called properly but it's address shows as 0x52e060 (no leading ff).
I am not able to figure out what the problem here is. It seems to be something related to byte alignment or some pointer overflow problem.
Any pointers for further investigation will be appreciated. Thanks,
-Farooque