valgrind openmsx -machine msx1 > 11 2> 22 & [1] 5994 Ok less 11 [1]+ Выход из 1 valgrind openmsx -machine msx1 > 11 2> 22 Ok cat 11 Ok cat 22 ==5994== Memcheck, a memory error detector ==5994== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==5994== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==5994== Command: openmsx -machine msx1 ==5994== Fatal error: Error in "msx1" machine: Couldn't find ROM file for "MSX BIOS with BASIC ROM" roms/hx-10_basic-bios1.rom. ==5994== Invalid free() / delete / delete[] ==5994== at 0x4024851: operator delete(void*) (vg_replace_malloc.c:387) ==5994== by 0x448AC2C: std::string::_Rep::_M_destroy(std::allocator const&) (in /usr/lib/libstdc++.so.6.0.13) ==5994== by 0x448C5DB: std::basic_string, std::allocator >::~basic_string() (in /usr/lib/libstdc++.so.6.0.13) ==5994== by 0x455D1BE: __run_exit_handlers (exit.c:78) ==5994== by 0x455D22E: exit (exit.c:100) ==5994== by 0x80C3C5B: ??? (in /opt/openMSX/bin/openmsx) ==5994== by 0x4544BD5: (below main) (libc-start.c:226) ==5994== Address 0x4d0eb0f is 1 bytes before a block of size 31 alloc'd ==5994== at 0x402569A: operator new(unsigned int) (vg_replace_malloc.c:255) ==5994== by 0x448AD05: std::string::_Rep::_S_create(unsigned int, unsigned int, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.13) ==5994== by 0x448BB10: ??? (in /usr/lib/libstdc++.so.6.0.13) ==5994== by 0x448BCF5: std::basic_string, std::allocator >::basic_string(char const*, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.13) ==5994== by 0x831E50F: ??? (in /opt/openMSX/bin/openmsx) ==5994== by 0x804EC67: ??? (in /opt/openMSX/bin/openmsx) ==5994== by 0x85B0908: ??? (in /opt/openMSX/bin/openmsx) ==5994== by 0x4544B73: (below main) (libc-start.c:185) ==5994== ==5994== ==5994== HEAP SUMMARY: ==5994== in use at exit: 3,434,321 bytes in 74 blocks ==5994== total heap usage: 158,494 allocs, 158,421 frees, 8,972,922 bytes allocated ==5994== ==5994== LEAK SUMMARY: ==5994== definitely lost: 40 bytes in 1 blocks ==5994== indirectly lost: 120 bytes in 10 blocks ==5994== possibly lost: 3,331,615 bytes in 9 blocks ==5994== still reachable: 102,546 bytes in 54 blocks ==5994== suppressed: 0 bytes in 0 blocks ==5994== Rerun with --leak-check=full to see details of leaked memory ==5994== ==5994== For counts of detected and suppressed errors, rerun with: -v ==5994== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 110 from 9) Ok