$ sudo valgrind /usr/lib/virtualbox/VBoxSVC Password: ==15664== Memcheck, a memory error detector ==15664== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==15664== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==15664== Command: /usr/lib/virtualbox/VBoxSVC ==15664== ==15667== ==15667== HEAP SUMMARY: ==15667== in use at exit: 200,046 bytes in 388 blocks ==15667== total heap usage: 519 allocs, 131 frees, 238,419 bytes allocated ==15667== ==15667== LEAK SUMMARY: ==15667== definitely lost: 36 bytes in 1 blocks ==15667== indirectly lost: 120 bytes in 10 blocks ==15667== possibly lost: 406 bytes in 10 blocks ==15667== still reachable: 199,484 bytes in 367 blocks ==15667== suppressed: 0 bytes in 0 blocks ==15667== Rerun with --leak-check=full to see details of leaked memory ==15667== ==15667== For counts of detected and suppressed errors, rerun with: -v ==15667== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from 7) ****************************************************** Oracle VM VirtualBox XPCOM Server Version 4.0.8-Gentoo (C) 2008-2011 Oracle Corporation All rights reserved. Starting event loop.... [press Ctrl-C to quit] VBoxNetAdpCtl: ioctl failed for /dev/vboxnetctl: Invalid argument Informational: VirtualBox object created (rc=NS_OK). ==15664== Thread 6: ==15664== Syscall param semctl(arg) points to uninitialised byte(s) ==15664== at 0x44CF94F: semctl@@GLIBC_2.2 (in /lib/libc-2.12.2.so) ==15664== by 0x8152821: VirtualBox::ClientWatcher(RTTHREADINT*, void*) (VirtualBoxImpl.cpp:4354) ==15664== by 0x41086FD: rtThreadMain (thread.cpp:680) ==15664== by 0x4152991: rtThreadNativeMain(void*) (thread-posix.cpp:258) ==15664== by 0x4098C42: start_thread (in /lib/libpthread-2.12.2.so) ==15664== by 0x44CC7FD: clone (clone.S:133) ==15664== Address 0x535a19c is on thread 6's stack ==15664== ==15664== Thread 12: ==15664== Invalid read of size 4 ==15664== at 0x8137BB2: std::list, std::allocator > >::remove(ComObjPtr const&) (stl_list.h:690) ==15664== by 0x81330F2: SessionMachine::restoreSnapshotHandler(SessionMachine::RestoreSnapshotTask&) (SnapshotImpl.cpp:1980) ==15664== by 0x8138CE7: SessionMachine::RestoreSnapshotTask::handler() (SnapshotImpl.cpp:1263) ==15664== by 0x812CDB5: SessionMachine::taskHandler(RTTHREADINT*, void*) (SnapshotImpl.cpp:1301) ==15664== by 0x41086FD: rtThreadMain (thread.cpp:680) ==15664== by 0x4152991: rtThreadNativeMain(void*) (thread-posix.cpp:258) ==15664== by 0x4098C42: start_thread (in /lib/libpthread-2.12.2.so) ==15664== by 0x44CC7FD: clone (clone.S:133) ==15664== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==15664== ==15664== ==15664== Process terminating with default action of signal 11 (SIGSEGV) ==15664== Access not within mapped region at address 0x0 ==15664== at 0x8137BB2: std::list, std::allocator > >::remove(ComObjPtr const&) (stl_list.h:690) ==15664== by 0x81330F2: SessionMachine::restoreSnapshotHandler(SessionMachine::RestoreSnapshotTask&) (SnapshotImpl.cpp:1980) ==15664== by 0x8138CE7: SessionMachine::RestoreSnapshotTask::handler() (SnapshotImpl.cpp:1263) ==15664== by 0x812CDB5: SessionMachine::taskHandler(RTTHREADINT*, void*) (SnapshotImpl.cpp:1301) ==15664== by 0x41086FD: rtThreadMain (thread.cpp:680) ==15664== by 0x4152991: rtThreadNativeMain(void*) (thread-posix.cpp:258) ==15664== by 0x4098C42: start_thread (in /lib/libpthread-2.12.2.so) ==15664== by 0x44CC7FD: clone (clone.S:133) ==15664== If you believe this happened as a result of a stack ==15664== overflow in your program's main thread (unlikely but ==15664== possible), you can try to increase the size of the ==15664== main thread stack using the --main-stacksize= flag. ==15664== The main thread stack size used in this run was 8388608. ==15664== ==15664== HEAP SUMMARY: ==15664== in use at exit: 692,544 bytes in 4,073 blocks ==15664== total heap usage: 410,297 allocs, 406,224 frees, 19,854,207 bytes allocated ==15664== ==15664== LEAK SUMMARY: ==15664== definitely lost: 1,444 bytes in 27 blocks ==15664== indirectly lost: 1,304 bytes in 42 blocks ==15664== possibly lost: 2,483 bytes in 29 blocks ==15664== still reachable: 687,313 bytes in 3,975 blocks ==15664== suppressed: 0 bytes in 0 blocks ==15664== Rerun with --leak-check=full to see details of leaked memory ==15664== ==15664== For counts of detected and suppressed errors, rerun with: -v ==15664== Use --track-origins=yes to see where uninitialised values come from ==15664== ERROR SUMMARY: 857 errors from 2 contexts (suppressed: 17 from 12) $