==4683== Memcheck, a memory error detector. ==4683== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==4683== Using LibVEX rev 1854, a library for dynamic binary translation. ==4683== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==4683== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework. ==4683== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==4683== --4683-- Command line --4683-- ./uish --4683-- -f --4683-- ../uish.conf --4683-- Startup, with flags: --4683-- --leak-check=full --4683-- --show-reachable=yes --4683-- -v --4683-- Contents of /proc/version: --4683-- Linux version 2.6.27-11-generic (address@hidden) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Thu Jan 29 19:24:39 UTC 2009 --4683-- Arch and hwcaps: X86, x86-sse1-sse2 --4683-- Page sizes: currently 4096, max supported 4096 --4683-- Valgrind library directory: /usr/lib/valgrind --4683-- Reading syms from /lib/ld-2.8.90.so (0x4000000) --4683-- Reading debug info from /lib/ld-2.8.90.so... --4683-- ... CRC mismatch (computed 376a4995 wanted 3e537389) --4683-- object doesn't have a symbol table --4683-- Reading syms from /home/maciek/uish/temp/uish (0x8048000) --4683-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000) --4683-- object doesn't have a dynamic symbol table --4683-- Reading suppressions file: /usr/lib/valgrind/default.supp --4683-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x401F000) --4683-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4022000) --4683-- Reading syms from /usr/lib/libedit.so.2.11 (0x403B000) --4683-- Reading debug info from /usr/lib/libedit.so.2.11... --4683-- ... CRC mismatch (computed c3518359 wanted ddcc348c) --4683-- object doesn't have a symbol table --4683-- Reading syms from /lib/libncurses.so.5.6 (0x405D000) --4683-- Reading debug info from /lib/libncurses.so.5.6... --4683-- ... CRC mismatch (computed 62dcc11e wanted b9a214e6) --4683-- object doesn't have a symbol table --4683-- Reading syms from /lib/tls/i686/cmov/libc-2.8.90.so (0x408D000) --4683-- Reading debug info from /lib/tls/i686/cmov/libc-2.8.90.so... --4683-- ... CRC mismatch (computed dde89453 wanted 2e106c0f) --4683-- object doesn't have a symbol table --4683-- Reading syms from /lib/tls/i686/cmov/libdl-2.8.90.so (0x41EB000) --4683-- Reading debug info from /lib/tls/i686/cmov/libdl-2.8.90.so... --4683-- ... CRC mismatch (computed 23b259b6 wanted 0fd615fa) --4683-- object doesn't have a symbol table --4683-- REDIR: 0x4104770 (rindex) redirected to 0x4026080 (rindex) --4683-- REDIR: 0x41042f0 (strlen) redirected to 0x4026430 (strlen) --4683-- REDIR: 0x4100830 (malloc) redirected to 0x4025c70 (malloc) --4683-- REDIR: 0x4105b70 (memcpy) redirected to 0x40268a0 (memcpy) --4683-- REDIR: 0x4106780 (strchrnul) redirected to 0x4027410 (strchrnul) --4683-- REDIR: 0x41056c0 (mempcpy) redirected to 0x4027470 (mempcpy) /home/maciek/uish/main.c:77 |main: setup signals --4683-- REDIR: 0x4105660 (memset) redirected to 0x4027340 (memset) --4683-- REDIR: 0x4103c10 (index) redirected to 0x4026170 (index) /home/maciek/uish/main.c:84 |main: user defined config file: ../uish.conf --4683-- REDIR: 0x40fe420 (free) redirected to 0x4024a90 (free) /home/maciek/uish/main.c:100 |main: prepare config file: ../uish.conf /home/maciek/uish/main.c:105 |main: init uish --4683-- REDIR: 0x4104510 (strncmp) redirected to 0x40266a0 (strncmp) --4683-- REDIR: 0x4100500 (calloc) redirected to 0x4023d20 (calloc) --4683-- REDIR: 0x4104620 (strncpy) redirected to 0x4026560 (strncpy) --4683-- REDIR: 0x4103d80 (strcmp) redirected to 0x4026730 (strcmp) --4683-- REDIR: 0x4103df0 (strcpy) redirected to 0x4026490 (strcpy) --4683-- REDIR: 0x4100ce0 (realloc) redirected to 0x4025d80 (realloc) /home/maciek/uish/scan.l:109 |parser_set_state: old state: 0, new state: 1, can_switch: 1 /home/maciek/uish/scan.l:198 |yylex: command token /home/maciek/uish/scan.l:109 |parser_set_state: old state: 1, new state: 2, can_switch: 1 /home/maciek/uish/scan.l:203 |yylex: name: ble /home/maciek/uish/scan.l:205 |yylex: allocated cmd: ble /home/maciek/uish/scan.l:109 |parser_set_state: old state: 2, new state: 3, can_switch: 1 /home/maciek/uish/scan.l:95 |parser_get_string: input string: "blele" /home/maciek/uish/scan.l:102 |parser_get_string: output string: blele /home/maciek/uish/uish.c:302 |uish_cmd_set: user command: blele /home/maciek/uish/uish.c:290 |check_predef_command: compare 'blele' with '_exit' /home/maciek/uish/scan.l:109 |parser_set_state: old state: 3, new state: 6, can_switch: 1 /home/maciek/uish/scan.l:216 |yylex: semicolon /home/maciek/uish/scan.l:218 |yylex: --4683-- REDIR: 0x41043a0 (strnlen) redirected to 0x40263f0 (strnlen) parent: (nil) /home/maciek/uish/scan.l:223 |yylex: parent is TOP node /home/maciek/uish/scan.l:109 |parser_set_state: old state: 6, new state: 0, can_switch: 1 /home/maciek/uish/scan.l:109 |parser_set_state: old state: 0, new state: 1, can_switch: 1 /home/maciek/uish/scan.l:198 |yylex: command token /home/maciek/uish/scan.l:109 |parser_set_state: old state: 1, new state: 2, can_switch: 1 /home/maciek/uish/scan.l:203 |yylex: name: exit /home/maciek/uish/scan.l:205 |yylex: allocated cmd: exit /home/maciek/uish/scan.l:109 |parser_set_state: old state: 2, new state: 3, can_switch: 1 /home/maciek/uish/scan.l:95 |parser_get_string: input string: "_exit" /home/maciek/uish/scan.l:102 |parser_get_string: output string: _exit /home/maciek/uish/uish.c:302 |uish_cmd_set: user command: _exit /home/maciek/uish/uish.c:290 |check_predef_command: compare '_exit' with '_exit' /home/maciek/uish/uish.c:292 |check_predef_command: found predefined comand for: _exit, predef id: 1 /home/maciek/uish/uish.c:305 |uish_cmd_set: command is predefined /home/maciek/uish/scan.l:109 |parser_set_state: old state: 3, new state: 6, can_switch: 1 /home/maciek/uish/scan.l:216 |yylex: semicolon /home/maciek/uish/scan.l:218 |yylex: parent: (nil) /home/maciek/uish/scan.l:223 |yylex: parent is TOP node /home/maciek/uish/scan.l:109 |parser_set_state: old state: 6, new state: 0, can_switch: 1 /home/maciek/uish/scan.l:109 |parser_set_state: old state: 0, new state: 6, can_switch: 0 error parsing config file, line: 30 /home/maciek/uish/scan.l:275 |lexscan: parser errors detected, cleaning up... /home/maciek/uish/scan.l:129 |parser_release: free toplevel cmd: 0x42070c8 /home/maciek/uish/uish.c:281 |uish_cmd_free_recursive: free command: ble /home/maciek/uish/uish.c:259 |uish_cmd_free: removing command, name: ble /home/maciek/uish/uish.c:263 |uish_cmd_free: user command blele /home/maciek/uish/scan.l:129 |parser_release: free toplevel cmd: 0x42071c8 /home/maciek/uish/uish.c:281 |uish_cmd_free_recursive: free command: exit /home/maciek/uish/uish.c:259 |uish_cmd_free: removing command, name: exit /home/maciek/uish/uish.c:178 |uish_init: error while parsing config /home/maciek/uish/main.c:111 |main: enter input loop, run: 0 /home/maciek/uish/uish.c:194 |uish_end: uish releasing mem.., hist: 0x41f0270, el: 0x41f0328, tok: 0x4202ec8, prompt: 0x41f0238 /home/maciek/uish/uish.c:72 |cleanup_el: clean libedit /home/maciek/uish/main.c:123 |main: cleanup ==4683== ==4683== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) --4683-- --4683-- supp: 17 dl-hack3-cond-1 ==4683== malloc/free: in use at exit: 2,547 bytes in 7 blocks. ==4683== malloc/free: 394 allocs, 387 frees, 74,024 bytes allocated. ==4683== ==4683== searching for pointers to 7 not-freed blocks. ==4683== checked 88,772 bytes. ==4683== ==4683== 7 bytes in 1 blocks are still reachable in loss record 1 of 7 ==4683== at 0x4025D2E: malloc (vg_replace_malloc.c:207) ==4683== by 0x410405F: strdup (in /lib/tls/i686/cmov/libc-2.8.90.so) ==4683== by 0x407FC99: _nc_setupterm (in /lib/libncurses.so.5.6) ==4683== by 0x40802B7: tgetent (in /lib/libncurses.so.5.6) ==4683== by 0x404E649: (within /usr/lib/libedit.so.2.11) ==4683== by 0x404F0D6: el_init (in /usr/lib/libedit.so.2.11) ==4683== by 0x8049E03: setup_el (uish.c:58) ==4683== by 0x804A1C8: uish_init (uish.c:167) ==4683== by 0x8049BF6: main (main.c:106) ==4683== ==4683== ==4683== 25 bytes in 1 blocks are still reachable in loss record 2 of 7 ==4683== at 0x4025D2E: malloc (vg_replace_malloc.c:207) ==4683== by 0x407D9EC: _nc_home_terminfo (in /lib/libncurses.so.5.6) ==4683== by 0x407D608: _nc_next_db (in /lib/libncurses.so.5.6) ==4683== by 0x4083DF1: _nc_read_entry (in /lib/libncurses.so.5.6) ==4683== by 0x407FA92: _nc_setupterm (in /lib/libncurses.so.5.6) ==4683== by 0x40802B7: tgetent (in /lib/libncurses.so.5.6) ==4683== by 0x404E649: (within /usr/lib/libedit.so.2.11) ==4683== by 0x404F0D6: el_init (in /usr/lib/libedit.so.2.11) ==4683== by 0x8049E03: setup_el (uish.c:58) ==4683== by 0x804A1C8: uish_init (uish.c:167) ==4683== by 0x8049BF6: main (main.c:106) ==4683== ==4683== ==4683== 44 bytes in 1 blocks are still reachable in loss record 3 of 7 ==4683== at 0x4023DE2: calloc (vg_replace_malloc.c:397) ==4683== by 0x4083456: _nc_read_termtype (in /lib/libncurses.so.5.6) ==4683== by 0x4083CC4: _nc_read_file_entry (in /lib/libncurses.so.5.6) ==4683== by 0x4083E65: _nc_read_entry (in /lib/libncurses.so.5.6) ==4683== by 0x407FA92: _nc_setupterm (in /lib/libncurses.so.5.6) ==4683== by 0x40802B7: tgetent (in /lib/libncurses.so.5.6) ==4683== by 0x404E649: (within /usr/lib/libedit.so.2.11) ==4683== by 0x404F0D6: el_init (in /usr/lib/libedit.so.2.11) ==4683== by 0x8049E03: setup_el (uish.c:58) ==4683== by 0x804A1C8: uish_init (uish.c:167) ==4683== by 0x8049BF6: main (main.c:106) ==4683== ==4683== ==4683== 78 bytes in 1 blocks are still reachable in loss record 4 of 7 ==4683== at 0x4023DE2: calloc (vg_replace_malloc.c:397) ==4683== by 0x40834CD: _nc_read_termtype (in /lib/libncurses.so.5.6) ==4683== by 0x4083CC4: _nc_read_file_entry (in /lib/libncurses.so.5.6) ==4683== by 0x4083E65: _nc_read_entry (in /lib/libncurses.so.5.6) ==4683== by 0x407FA92: _nc_setupterm (in /lib/libncurses.so.5.6) ==4683== by 0x40802B7: tgetent (in /lib/libncurses.so.5.6) ==4683== by 0x404E649: (within /usr/lib/libedit.so.2.11) ==4683== by 0x404F0D6: el_init (in /usr/lib/libedit.so.2.11) ==4683== by 0x8049E03: setup_el (uish.c:58) ==4683== by 0x804A1C8: uish_init (uish.c:167) ==4683== by 0x8049BF6: main (main.c:106) ==4683== ==4683== ==4683== 172 bytes in 1 blocks are still reachable in loss record 5 of 7 ==4683== at 0x4023DE2: calloc (vg_replace_malloc.c:397) ==4683== by 0x407FA6C: _nc_setupterm (in /lib/libncurses.so.5.6) ==4683== by 0x40802B7: tgetent (in /lib/libncurses.so.5.6) ==4683== by 0x404E649: (within /usr/lib/libedit.so.2.11) ==4683== by 0x404F0D6: el_init (in /usr/lib/libedit.so.2.11) ==4683== by 0x8049E03: setup_el (uish.c:58) ==4683== by 0x804A1C8: uish_init (uish.c:167) ==4683== by 0x8049BF6: main (main.c:106) ==4683== ==4683== ==4683== 565 bytes in 1 blocks are still reachable in loss record 6 of 7 ==4683== at 0x4025D2E: malloc (vg_replace_malloc.c:207) ==4683== by 0x4083376: _nc_read_termtype (in /lib/libncurses.so.5.6) ==4683== by 0x4083CC4: _nc_read_file_entry (in /lib/libncurses.so.5.6) ==4683== by 0x4083E65: _nc_read_entry (in /lib/libncurses.so.5.6) ==4683== by 0x407FA92: _nc_setupterm (in /lib/libncurses.so.5.6) ==4683== by 0x40802B7: tgetent (in /lib/libncurses.so.5.6) ==4683== by 0x404E649: (within /usr/lib/libedit.so.2.11) ==4683== by 0x404F0D6: el_init (in /usr/lib/libedit.so.2.11) ==4683== by 0x8049E03: setup_el (uish.c:58) ==4683== by 0x804A1C8: uish_init (uish.c:167) ==4683== by 0x8049BF6: main (main.c:106) ==4683== ==4683== ==4683== 1,656 bytes in 1 blocks are still reachable in loss record 7 of 7 ==4683== at 0x4023DE2: calloc (vg_replace_malloc.c:397) ==4683== by 0x408354F: _nc_read_termtype (in /lib/libncurses.so.5.6) ==4683== by 0x4083CC4: _nc_read_file_entry (in /lib/libncurses.so.5.6) ==4683== by 0x4083E65: _nc_read_entry (in /lib/libncurses.so.5.6) ==4683== by 0x407FA92: _nc_setupterm (in /lib/libncurses.so.5.6) ==4683== by 0x40802B7: tgetent (in /lib/libncurses.so.5.6) ==4683== by 0x404E649: (within /usr/lib/libedit.so.2.11) ==4683== by 0x404F0D6: el_init (in /usr/lib/libedit.so.2.11) ==4683== by 0x8049E03: setup_el (uish.c:58) ==4683== by 0x804A1C8: uish_init (uish.c:167) ==4683== by 0x8049BF6: main (main.c:106) ==4683== ==4683== LEAK SUMMARY: ==4683== definitely lost: 0 bytes in 0 blocks. ==4683== possibly lost: 0 bytes in 0 blocks. ==4683== still reachable: 2,547 bytes in 7 blocks. ==4683== suppressed: 0 bytes in 0 blocks. --4683-- memcheck: sanity checks: 1 cheap, 2 expensive --4683-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --4683-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10 --4683-- memcheck: auxmaps_L2: 0 searches, 0 nodes --4683-- memcheck: SMs: n_issued = 13 (208k, 0M) --4683-- memcheck: SMs: n_deissued = 0 (0k, 0M) --4683-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M) --4683-- memcheck: SMs: max_undefined = 0 (0k, 0M) --4683-- memcheck: SMs: max_defined = 25 (400k, 0M) --4683-- memcheck: SMs: max_non_DSM = 13 (208k, 0M) --4683-- memcheck: max sec V bit nodes: 0 (0k, 0M) --4683-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0) --4683-- memcheck: max shadow mem size: 512k, 0M --4683-- translate: fast SP updates identified: 3,859 ( 88.0%) --4683-- translate: generic_known SP updates identified: 325 ( 7.4%) --4683-- translate: generic_unknown SP updates identified: 198 ( 4.5%) --4683-- tt/tc: 7,324 tt lookups requiring 7,480 probes --4683-- tt/tc: 7,324 fast-cache updates, 2 flushes --4683-- transtab: new 3,634 (81,738 -> 1,144,940; ratio 140:10) [0 scs] --4683-- transtab: dumped 0 (0 -> ??) --4683-- transtab: discarded 0 (0 -> ??) --4683-- scheduler: 153,301 jumps (bb entries). --4683-- scheduler: 1/4,701 major/minor sched events. --4683-- sanity: 2 cheap, 2 expensive checks. --4683-- exectx: 769 lists, 283 contexts (avg 0 per list) --4683-- exectx: 798 searches, 577 full compares (723 per 1000) --4683-- exectx: 21 cmp2, 38 cmp4, 0 cmpAll --4683-- errormgr: 13 supplist searches, 693 comparisons during search --4683-- errormgr: 17 errlist searches, 38 comparisons during search