On 17/03/11 11:56, Stefan Kost wrote: > there is no need for sarcasm. I am using valgrind for years. Just have a > look at the code: > http://buzztard.svn.sourceforge.net/viewvc/buzztard/trunk/buzztard/design/udev/udevls.c?revision=3231&view=markup#l40 > There is no free. The data I am suppose to get from udev is static.
I did try and look at the code, but I couldn't find udevcls.c in the git repository you mentioned. I hadn't noticed that you had also linked to another repository. That code is using %s format strings to print both devnode1 and devnode2 which are pointers returned from g_udev_device_get_device_file so my guess would be that freed memory is bring returned from that routine. Insert some VALGRIND_CHECK_MEM_IS_DEFINED calls before the printf to validate the arguments and see what is causing the problem. Tom -- Tom Hughes ([email protected]) http://compton.nu/ ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
