|
From: Tom H. <to...@co...> - 2011-03-17 12:20:17
|
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 (to...@co...) http://compton.nu/ |