Singh, Ruchika wrote:

> I have an application that providers sensor instrumentation from BMC
> using OpenIPMI. I initialize OpenIPMI only once and subsequent
> requests fetch sensor data. I found my application seg faulting after
> several hundred runs. I used Valgrind tool to detect errors and found
> that each call to perform_one_op () in main loop complained of an
> initialized memory error.
>
> I broke down the project and used Valgrind for only the sample
> applications that OpenIPMI had. I have found that the errors I get are
> the same. I am attaching here part of log file that I get when I use
> Valgrind for ipmisample3 under OpenIPMI/samples/ . I’d appreciate an
> insight into the several uninitialized memory read errors by OpenIPMI
> library, If it might be a reason for the rare seg faults.
>
I think that most of these are due to the fact that valgrind doesn't
know that the IPMI receive ioctl fills in data. So it thinks that data
is uninitialized.

You can try initializing "recv", "addr", and "data" to zero (memset) in
ipmi_dev_data_handler() in lib/ipmi_smi.c and see what happens.

-Corey 




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to