[Klone-users] Re: "Segmentation fault" in kloned

Steven Van Ingelgem steven at vaningelgem.be
Fri Dec 5 08:47:32 EST 2008


Skipped content of type multipart/alternative-------------- next part --------------
==28059== Memcheck, a memory error detector.
==28059== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==28059== Using LibVEX rev 1658, a library for dynamic binary translation.
==28059== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==28059== Using valgrind-3.2.1-Debian, a dynamic binary instrumentation framework.
==28059== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==28059== 
--28059-- Command line
--28059--    ./kloned
--28059--    -d
--28059--    -F
--28059-- Startup, with flags:
--28059--    -v
--28059--    --leak-check=full
--28059--    --show-reachable=yes
--28059-- Contents of /proc/version:
--28059--   Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-23) (dannf at debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Mon Oct 13 16:13:09 UTC 2008
--28059-- Arch and hwcaps: X86, x86-sse1-sse2
--28059-- Valgrind library directory: /usr/lib/valgrind
--28059-- Reading syms from /lib/ld-2.3.6.so (0x4000000)
--28059-- Reading debug info from /lib/ld-2.3.6.so...
--28059-- ... CRC mismatch (computed A2342EFB wanted 8FC9FDDB)
--28059--    object doesn't have a symbol table
--28059-- Reading syms from /home/steven/klone/klone-2.1.1/build/target/klone-core-2.1.1/src/kloned/kloned (0x8048000)
--28059-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--28059--    object doesn't have a dynamic symbol table
--28059-- Reading suppressions file: /usr/lib/valgrind/default.supp
--28059-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4019000)
--28059-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401B000)
--28059-- Reading syms from /usr/lib/libz.so.1.2.3 (0x4027000)
--28059--    object doesn't have a symbol table
--28059-- Reading syms from /usr/local/lib/libsalvania.so (0x403B000)
--28059-- Reading syms from /usr/lib/libstdc++.so.6.0.8 (0x404D000)
--28059--    object doesn't have a symbol table
--28059-- Reading syms from /lib/tls/i686/cmov/libm-2.3.6.so (0x4133000)
--28059-- Reading debug info from /lib/tls/i686/cmov/libm-2.3.6.so...
--28059-- ... CRC mismatch (computed 70BA299D wanted 3AF3BB73)
--28059--    object doesn't have a symbol table
--28059-- Reading syms from /lib/libgcc_s.so.1 (0x4158000)
--28059--    object doesn't have a symbol table
--28059-- Reading syms from /lib/tls/i686/cmov/libc-2.3.6.so (0x4163000)
--28059-- Reading debug info from /lib/tls/i686/cmov/libc-2.3.6.so...
--28059-- ... CRC mismatch (computed 20EDF2B9 wanted ED81AE67)
--28059--    object doesn't have a symbol table
--28059-- REDIR: 0x41CE7F0 (rindex) redirected to 0x401DF30 (rindex)
--28059-- REDIR: 0x41CF680 (memset) redirected to 0x401E4F0 (memset)
--28059-- REDIR: 0x41CE430 (strlen) redirected to 0x401E200 (strlen)
--28059-- REDIR: 0x41CDD50 (index) redirected to 0x401E020 (index)
--28059-- REDIR: 0x41CA630 (calloc) redirected to 0x401C633 (calloc)
--28059-- REDIR: 0x41CA970 (malloc) redirected to 0x401D306 (malloc)
--28059-- REDIR: 0x41CFB20 (memcpy) redirected to 0x401EBE0 (memcpy)
--28059-- REDIR: 0x41C86B0 (free) redirected to 0x401CF20 (free)
--28059-- REDIR: 0x41CDF30 (strcpy) redirected to 0x401E970 (strcpy)
--28059-- REDIR: 0x41CDEC0 (strcmp) redirected to 0x401E2D0 (strcmp)
--28059-- REDIR: 0x41CAD90 (realloc) redirected to 0x401D3B5 (realloc)
--28059-- REDIR: 0x41CE740 (strncpy) redirected to 0x401ED70 (strncpy)
--28059-- REDIR: 0x41CF610 (memmove) redirected to 0x401E520 (memmove)
io_close(io: 0x04399228)
--28059-- REDIR: 0x41D03C0 (rawmemchr) redirected to 0x401E5C0 (rawmemchr)
  server_list  Salvania
  allow_root  yes
  log  
    type  syslog
    syslog  
      facility  LOG_DAEMON
  Salvania  
    type  http
    addr  
      type  IPv4
      port  8080
    dir_root  /www
io_close(io: 0x043B5468)
io_close(io: 0x043BAB50)
io_close(io: 0x043BBC28)
io_close(io: 0x043B0828)
io_close(io: 0x043C2E38)
io_close(io: 0x043C8520)
io_close(io: 0x043C95F8)
io_close(io: 0x043BE1F8)
io_close(io: 0x043D0808)
io_close(io: 0x043D5EF0)
io_close(io: 0x043D6FC8)
io_close(io: 0x043CBBC8)
io_close(io: 0x043DE1D8)
io_close(io: 0x043E38C0)
io_close(io: 0x043E4998)
io_close(io: 0x043D9598)
io_close(io: 0x043B0828)
==28059== Invalid read of size 4
==28059==    at 0x80773CC: io_close (io.c:447)
==28059==    by 0x806AD47: request_cb_close_socket (request.c:1545)
==28059==    by 0x805B71F: timerm_sigalrm (timer.c:100)
==28059==    by 0x418B8A7: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059==  Address 0x43B0858 is 48 bytes inside a block of size 112 free'd
==28059==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==28059==    by 0x8090D8F: u_free (memory.c:76)
==28059==    by 0x807773A: io_free (io.c:496)
==28059==    by 0x806545C: response_free (response.c:687)
==28059==    by 0x80567C3: http_serve (http.c:626)
==28059==    by 0x805773E: http_backend_serve (http.c:849)
==28059==    by 0x80745B2: backend_serve (backend.c:129)
==28059==    by 0x804D319: server_be_serve (server.c:658)
==28059==    by 0x804DC52: server_dispatch (server.c:818)
==28059==    by 0x804E667: server_loop (server.c:986)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059== 
==28059== Invalid read of size 4
==28059==    at 0x80773D6: io_close (io.c:448)
==28059==    by 0x806AD47: request_cb_close_socket (request.c:1545)
==28059==    by 0x805B71F: timerm_sigalrm (timer.c:100)
==28059==    by 0x418B8A7: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059==  Address 0x43B0858 is 48 bytes inside a block of size 112 free'd
==28059==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==28059==    by 0x8090D8F: u_free (memory.c:76)
==28059==    by 0x807773A: io_free (io.c:496)
==28059==    by 0x806545C: response_free (response.c:687)
==28059==    by 0x80567C3: http_serve (http.c:626)
==28059==    by 0x805773E: http_backend_serve (http.c:849)
==28059==    by 0x80745B2: backend_serve (backend.c:129)
==28059==    by 0x804D319: server_be_serve (server.c:658)
==28059==    by 0x804DC52: server_dispatch (server.c:818)
==28059==    by 0x804E667: server_loop (server.c:986)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059== 
==28059== Invalid read of size 4
==28059==    at 0x8075396: io_fd_close (iofd.c:101)
==28059==    by 0x80773E0: io_close (io.c:448)
==28059==    by 0x806AD47: request_cb_close_socket (request.c:1545)
==28059==    by 0x805B71F: timerm_sigalrm (timer.c:100)
==28059==    by 0x418B8A7: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059==  Address 0x43B0890 is 104 bytes inside a block of size 112 free'd
==28059==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==28059==    by 0x8090D8F: u_free (memory.c:76)
==28059==    by 0x807773A: io_free (io.c:496)
==28059==    by 0x806545C: response_free (response.c:687)
==28059==    by 0x80567C3: http_serve (http.c:626)
==28059==    by 0x805773E: http_backend_serve (http.c:849)
==28059==    by 0x80745B2: backend_serve (backend.c:129)
==28059==    by 0x804D319: server_be_serve (server.c:658)
==28059==    by 0x804DC52: server_dispatch (server.c:818)
==28059==    by 0x804E667: server_loop (server.c:986)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059== 
==28059== Invalid read of size 4
==28059==    at 0x80753A3: io_fd_close (iofd.c:101)
==28059==    by 0x80773E0: io_close (io.c:448)
==28059==    by 0x806AD47: request_cb_close_socket (request.c:1545)
==28059==    by 0x805B71F: timerm_sigalrm (timer.c:100)
==28059==    by 0x418B8A7: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059==  Address 0x43B088C is 100 bytes inside a block of size 112 free'd
==28059==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==28059==    by 0x8090D8F: u_free (memory.c:76)
==28059==    by 0x807773A: io_free (io.c:496)
==28059==    by 0x806545C: response_free (response.c:687)
==28059==    by 0x80567C3: http_serve (http.c:626)
==28059==    by 0x805773E: http_backend_serve (http.c:849)
==28059==    by 0x80745B2: backend_serve (backend.c:129)
==28059==    by 0x804D319: server_be_serve (server.c:658)
==28059==    by 0x804DC52: server_dispatch (server.c:818)
==28059==    by 0x804E667: server_loop (server.c:986)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
io_close(io: 0x043EDE80)
io_close(io: 0x043F3568)
io_close(io: 0x043F4640)
io_close(io: 0x043E9240)
io_close(io: 0x043BE1F8)
io_close(io: 0x043FDAE0)
io_close(io: 0x044031C8)
io_close(io: 0x044042A0)
io_close(io: 0x043F8EA0)
io_close(io: 0x043CBBC8)
io_close(io: 0x0440D740)
io_close(io: 0x04412E28)
io_close(io: 0x04413F00)
io_close(io: 0x04408B00)
io_close(io: 0x043D9598)
io_close(io: 0x0441D3A0)
io_close(io: 0x04422A88)
io_close(io: 0x04423B60)
io_close(io: 0x04418760)
io_close(io: 0x043E9240)
io_close(io: 0x043F8EA0)
==28059== 
==28059== ERROR SUMMARY: 24 errors from 4 contexts (suppressed: 23 from 1)
==28059== 
==28059== 6 errors in context 1 of 4:
==28059== Invalid read of size 4
==28059==    at 0x80753A3: io_fd_close (iofd.c:101)
==28059==    by 0x80773E0: io_close (io.c:448)
==28059==    by 0x806AD47: request_cb_close_socket (request.c:1545)
==28059==    by 0x805B71F: timerm_sigalrm (timer.c:100)
==28059==    by 0x418B8A7: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059==  Address 0x43B088C is 100 bytes inside a block of size 112 free'd
==28059==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==28059==    by 0x8090D8F: u_free (memory.c:76)
==28059==    by 0x807773A: io_free (io.c:496)
==28059==    by 0x806545C: response_free (response.c:687)
==28059==    by 0x80567C3: http_serve (http.c:626)
==28059==    by 0x805773E: http_backend_serve (http.c:849)
==28059==    by 0x80745B2: backend_serve (backend.c:129)
==28059==    by 0x804D319: server_be_serve (server.c:658)
==28059==    by 0x804DC52: server_dispatch (server.c:818)
==28059==    by 0x804E667: server_loop (server.c:986)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059== 
==28059== 6 errors in context 2 of 4:
==28059== Invalid read of size 4
==28059==    at 0x8075396: io_fd_close (iofd.c:101)
==28059==    by 0x80773E0: io_close (io.c:448)
==28059==    by 0x806AD47: request_cb_close_socket (request.c:1545)
==28059==    by 0x805B71F: timerm_sigalrm (timer.c:100)
==28059==    by 0x418B8A7: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059==  Address 0x43B0890 is 104 bytes inside a block of size 112 free'd
==28059==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==28059==    by 0x8090D8F: u_free (memory.c:76)
==28059==    by 0x807773A: io_free (io.c:496)
==28059==    by 0x806545C: response_free (response.c:687)
==28059==    by 0x80567C3: http_serve (http.c:626)
==28059==    by 0x805773E: http_backend_serve (http.c:849)
==28059==    by 0x80745B2: backend_serve (backend.c:129)
==28059==    by 0x804D319: server_be_serve (server.c:658)
==28059==    by 0x804DC52: server_dispatch (server.c:818)
==28059==    by 0x804E667: server_loop (server.c:986)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059== 
==28059== 6 errors in context 3 of 4:
==28059== Invalid read of size 4
==28059==    at 0x80773D6: io_close (io.c:448)
==28059==    by 0x806AD47: request_cb_close_socket (request.c:1545)
==28059==    by 0x805B71F: timerm_sigalrm (timer.c:100)
==28059==    by 0x418B8A7: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059==  Address 0x43B0858 is 48 bytes inside a block of size 112 free'd
==28059==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==28059==    by 0x8090D8F: u_free (memory.c:76)
==28059==    by 0x807773A: io_free (io.c:496)
==28059==    by 0x806545C: response_free (response.c:687)
==28059==    by 0x80567C3: http_serve (http.c:626)
==28059==    by 0x805773E: http_backend_serve (http.c:849)
==28059==    by 0x80745B2: backend_serve (backend.c:129)
==28059==    by 0x804D319: server_be_serve (server.c:658)
==28059==    by 0x804DC52: server_dispatch (server.c:818)
==28059==    by 0x804E667: server_loop (server.c:986)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059== 
==28059== 6 errors in context 4 of 4:
==28059== Invalid read of size 4
==28059==    at 0x80773CC: io_close (io.c:447)
==28059==    by 0x806AD47: request_cb_close_socket (request.c:1545)
==28059==    by 0x805B71F: timerm_sigalrm (timer.c:100)
==28059==    by 0x418B8A7: (within /lib/tls/i686/cmov/libc-2.3.6.so)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059==  Address 0x43B0858 is 48 bytes inside a block of size 112 free'd
==28059==    at 0x401CFA5: free (vg_replace_malloc.c:233)
==28059==    by 0x8090D8F: u_free (memory.c:76)
==28059==    by 0x807773A: io_free (io.c:496)
==28059==    by 0x806545C: response_free (response.c:687)
==28059==    by 0x80567C3: http_serve (http.c:626)
==28059==    by 0x805773E: http_backend_serve (http.c:849)
==28059==    by 0x80745B2: backend_serve (backend.c:129)
==28059==    by 0x804D319: server_be_serve (server.c:658)
==28059==    by 0x804DC52: server_dispatch (server.c:818)
==28059==    by 0x804E667: server_loop (server.c:986)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
--28059-- 
--28059-- supp:   23 Debian libc6 (2.3.x) stripped dynamic linker
==28059== 
==28059== IN SUMMARY: 24 errors from 4 contexts (suppressed: 23 from 1)
==28059== 
==28059== malloc/free: in use at exit: 2,448 bytes in 120 blocks.
==28059== malloc/free: 2,077 allocs, 1,957 frees, 1,586,793 bytes allocated.
==28059== 
==28059== searching for pointers to 120 not-freed blocks.
==28059== checked 125,888 bytes.
==28059== 
==28059== 
==28059== 56 bytes in 3 blocks are still reachable in loss record 1 of 3
==28059==    at 0x401C6CA: calloc (vg_replace_malloc.c:279)
==28059==    by 0x8090D56: u_zalloc (memory.c:63)
==28059==    by 0x805B9C4: timerm_create (timer.c:187)
==28059==    by 0x805BB56: timerm_add (timer.c:219)
==28059==    by 0x804E5D3: server_loop (server.c:975)
==28059==    by 0x8050A43: app_run (main.c:157)
==28059==    by 0x8050F17: main (entry.c:408)
==28059== 
==28059== 
==28059== 312 bytes in 15 blocks are indirectly lost in loss record 2 of 3
==28059==    at 0x401C6CA: calloc (vg_replace_malloc.c:279)
==28059==    by 0x8090D56: u_zalloc (memory.c:63)
==28059==    by 0x808E1D7: u_hmap_o_new (hmap.c:1072)
==28059==    by 0x80748FC: emb_register (emb.c:69)
==28059==    by 0x807AC6E: module_init_d201cbcac19b043a60f55604754a5373 (pg_d201cbcac19b043a60f55604754a5373.c:250)
==28059==    by 0x80795EC: do_register (register.c:50)
==28059==    by 0x80793E1: register_pages (register.c:9)
==28059==    by 0x80746FF: emb_init (emb.c:32)
==28059==    by 0x805072D: app_init (main.c:96)
==28059==    by 0x8050DF4: main (entry.c:397)
==28059== 
==28059== 
==28059== 2,392 (2,080 direct, 312 indirect) bytes in 102 blocks are definitely lost in loss record 3 of 3
==28059==    at 0x401C6CA: calloc (vg_replace_malloc.c:279)
==28059==    by 0x8090D56: u_zalloc (memory.c:63)
==28059==    by 0x808E1D7: u_hmap_o_new (hmap.c:1072)
==28059==    by 0x80748FC: emb_register (emb.c:69)
==28059==    by 0x807D94E: module_init_3c03a85447646e5d5127801337173786 (pg_3c03a85447646e5d5127801337173786.c:67)
==28059==    by 0x80793F4: do_register (register.c:22)
==28059==    by 0x80793E1: register_pages (register.c:9)
==28059==    by 0x80746FF: emb_init (emb.c:32)
==28059==    by 0x805072D: app_init (main.c:96)
==28059==    by 0x8050DF4: main (entry.c:397)
==28059== 
==28059== LEAK SUMMARY:
==28059==    definitely lost: 2,080 bytes in 102 blocks.
==28059==    indirectly lost: 312 bytes in 15 blocks.
==28059==      possibly lost: 0 bytes in 0 blocks.
==28059==    still reachable: 56 bytes in 3 blocks.
==28059==         suppressed: 0 bytes in 0 blocks.
--28059--  memcheck: sanity checks: 8 cheap, 1 expensive
--28059--  memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--28059--  memcheck: auxmaps: 0 searches, 0 comparisons
--28059--  memcheck: SMs: n_issued      = 38 (608k, 0M)
--28059--  memcheck: SMs: n_deissued    = 0 (0k, 0M)
--28059--  memcheck: SMs: max_noaccess  = 65535 (1048560k, 1023M)
--28059--  memcheck: SMs: max_undefined = 0 (0k, 0M)
--28059--  memcheck: SMs: max_defined   = 45 (720k, 0M)
--28059--  memcheck: SMs: max_non_DSM   = 38 (608k, 0M)
--28059--  memcheck: max sec V bit nodes:    1 (0k, 0M)
--28059--  memcheck: set_sec_vbits8 calls: 1 (new: 1, updates: 0)
--28059--  memcheck: max shadow mem size:   912k, 0M
--28059-- translate:            fast SP updates identified: 8,807 ( 83.6%)
--28059-- translate:   generic_known SP updates identified: 1,009 (  9.5%)
--28059-- translate: generic_unknown SP updates identified: 711 (  6.7%)
--28059--     tt/tc: 15,970 tt lookups requiring 17,042 probes
--28059--     tt/tc: 15,970 fast-cache updates, 2 flushes
--28059--  transtab: new        7,015 (155,398 -> 2,444,295; ratio 157:10) [0 scs]
--28059--  transtab: dumped     0 (0 -> ??)
--28059--  transtab: discarded  0 (0 -> ??)
--28059-- scheduler: 895,062 jumps (bb entries).
--28059-- scheduler: 8/14,067 major/minor sched events.
--28059--    sanity: 9 cheap, 1 expensive checks.
--28059--    exectx: 30,011 lists, 1,838 contexts (avg 0 per list)
--28059--    exectx: 3,947 searches, 2,196 full compares (556 per 1000)
--28059--    exectx: 117 cmp2, 149 cmp4, 0 cmpAll


More information about the klone-users mailing list