|
From: Mohit T. <moh...@gm...> - 2007-01-23 21:47:14
|
Hi, Is it possible to run uml under valgrind? I've seen posts as of 2002 stating that it has been done, but when I run the current uml version (linux-2.6.19-rc5 & FedoraCore5-x86-root_fs) with valgrind 3.1.1, on a 2.4.22 host kernel, it crashes with the following output.(below) I was wondering if it is possible to run uml under valgrind at all, or is it a problem with my versions of either? Mohit --------------------- valgrind ./linux-2.6.19-rc5 ubda=FedoraCore5-x86-root_fs mem=128M ==3803== Memcheck, a memory error detector. ==3803== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==3803== Using LibVEX rev 1575, a library for dynamic binary translation. ==3803== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==3803== Using valgrind-3.1.1, a dynamic binary instrumentation framework. ==3803== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==3803== For more details, rerun with: -v ==3803== Checking that ptrace can change system call numbers...==3804== ==3804== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 1) ==3804== malloc/free: in use at exit: 168 bytes in 5 blocks. ==3804== malloc/free: 5 allocs, 0 frees, 168 bytes allocated. ==3804== For counts of detected errors, rerun with: -v ==3804== searching for pointers to 5 not-freed blocks. ==3804== checked 1,992,892 bytes. ==3804== ==3804== LEAK SUMMARY: ==3804== definitely lost: 0 bytes in 0 blocks. ==3804== possibly lost: 0 bytes in 0 blocks. ==3804== still reachable: 168 bytes in 5 blocks. ==3804== suppressed: 0 bytes in 0 blocks. ==3804== Reachable blocks (those to which a pointer was found) are not shown. ==3804== To see them, rerun with: --show-reachable=yes Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...==3805== ==3805== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 1) ==3805== malloc/free: in use at exit: 168 bytes in 5 blocks. ==3805== malloc/free: 5 allocs, 0 frees, 168 bytes allocated. ==3805== For counts of detected errors, rerun with: -v ==3805== searching for pointers to 5 not-freed blocks. ==3805== checked 1,992,932 bytes. ==3805== ==3805== LEAK SUMMARY: ==3805== definitely lost: 0 bytes in 0 blocks. ==3805== possibly lost: 0 bytes in 0 blocks. ==3805== still reachable: 168 bytes in 5 blocks. ==3805== suppressed: 0 bytes in 0 blocks. ==3805== Reachable blocks (those to which a pointer was found) are not shown. ==3805== To see them, rerun with: --show-reachable=yes Checking syscall emulation patch for ptrace...missing Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...OK Checking if syscall restart handling in host can be skipped...check_skas_restart_skip : expected SIGTRAP, got status = 1407 ==3803== ==3803== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 1) ==3803== malloc/free: in use at exit: 178 bytes in 6 blocks. ==3803== malloc/free: 7 allocs, 1 frees, 4,274 bytes allocated. ==3803== For counts of detected errors, rerun with: -v ==3803== searching for pointers to 6 not-freed blocks. ==3803== checked 1,992,924 bytes. ==3803== ==3803== LEAK SUMMARY: ==3803== definitely lost: 0 bytes in 0 blocks. ==3803== possibly lost: 0 bytes in 0 blocks. ==3803== still reachable: 178 bytes in 6 blocks. ==3803== suppressed: 0 bytes in 0 blocks. ==3803== Reachable blocks (those to which a pointer was found) are not shown. ==3803== To see them, rerun with: --show-reachable=yes Checking if syscall restart handling in host can be skipped...[tiwari@nd-nduml]$ ==3806== ==3806== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 1) ==3806== malloc/free: in use at exit: 178 bytes in 6 blocks. ==3806== malloc/free: 7 allocs, 1 frees, 4,274 bytes allocated. ==3806== For counts of detected errors, rerun with: -v ==3806== searching for pointers to 6 not-freed blocks. ==3806== checked 1,992,900 bytes. ==3806== ==3806== LEAK SUMMARY: ==3806== definitely lost: 0 bytes in 0 blocks. ==3806== possibly lost: 0 bytes in 0 blocks. ==3806== still reachable: 178 bytes in 6 blocks. ==3806== suppressed: 0 bytes in 0 blocks. ==3806== Reachable blocks (those to which a pointer was found) are not shown. ==3806== To see them, rerun with: --show-reachable=yes -------------------------------------- |