[omniORB] valgrind reports errors in omniORB 4.0.6

Slawomir Lisznianski slisznianski at asyncnet.com
Mon May 16 10:27:09 BST 2005


How serious are the following errors reported by valgrind 2.4.0 against
omniORB-4.0.6:

==1688== Memcheck, a memory error detector for x86-linux.
==1688== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==1688== Using valgrind-2.4.0, a program supervision framework for
x86-linux.
==1688== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==1688== Valgrind library directory:
/custom/usr/local/valgrind-2.4.0/lib/valgrind
==1688== Command line
==1688==    ./Consumer
==1688==    localhost
==1688==    20000
==1688== Startup, with flags:
==1688==    -v
==1688==    --tool=memcheck
==1688== Contents of /proc/version:
==1688==   Linux version 2.6.10-0.1-13-Jan-2005
(slisznia at localhost.localdomain) (gcc version 3.4.2 20041017 (Red Hat
3.4.2-6.fc3)) #1 Fri Jan 14 20:30:01 CST 2005
==1688== Reading syms from
/mnt/gnomon/custom/build/silly-tests/mdl/ngMdlClientSdk/src/example/echo/consumer/Consumer
(0x8048000)
==1688== Reading syms from /lib/ld-2.3.5.so (0x1B8E4000)
==1688==    object doesn't have any debug info
==1688== Reading syms from
/custom/usr/local/valgrind-2.4.0/lib/valgrind/stage2 (0xB0000000)
==1688== Reading syms from /lib/ld-2.3.5.so (0xB1000000)
==1688==    object doesn't have any debug info
==1688== Reading syms from
/custom/usr/local/valgrind-2.4.0/lib/valgrind/vgskin_memcheck.so
(0xB7C62000)
==1688== Reading syms from /lib/tls/libc-2.3.5.so (0xB7EC2000)
==1688==    object doesn't have any debug info
==1688== Reading syms from /lib/libdl-2.3.5.so (0xB7FED000)
==1688==    object doesn't have any debug info
==1688== Reading suppressions file:
/custom/usr/local/valgrind-2.4.0/lib/valgrind/default.supp
==1688==
==1688== Reading syms from
/custom/usr/local/valgrind-2.4.0/lib/valgrind/vg_inject.so (0x1B8FD000)
==1688== Reading syms from
/custom/usr/local/valgrind-2.4.0/lib/valgrind/vgpreload_memcheck.so
(0x1B902000)
...
==1688== Reading syms from
/custom/usr/local/boost-1.32.0/lib/libboost_program_options-gcc-mt-1_32.so.1.32.0
(0x1BA6E000)
==1688==    object doesn't have a symbol table
==1688==    object doesn't have any debug info
==1688== Reading syms from
/custom/usr/local/boost-1.32.0/lib/libboost_filesystem-gcc-mt-1_32.so.1.32.0
(0x1BAAB000)
==1688==    object doesn't have a symbol table
==1688==    object doesn't have any debug info
==1688== Reading syms from
/custom/usr/local/boost-1.32.0/lib/libboost_thread-gcc-mt-1_32.so.1.32.0
(0x1BABE000)
==1688==    object doesn't have a symbol table
==1688==    object doesn't have any debug info
==1688== Reading syms from
/custom/usr/local/boost-1.32.0/lib/libboost_date_time-gcc-mt-1_32.so.1.32.0
(0x1BADF000)
==1688==    object doesn't have a symbol table
==1688==    object doesn't have any debug info
==1688== Reading syms from /lib/tls/libpthread-2.3.5.so (0x49158000)
==1688==    object doesn't have any debug info
==1688== Reading syms from /usr/lib/libstdc++.so.6.0.3 (0x4987F000)
==1688==    object doesn't have a symbol table
==1688==    object doesn't have any debug info
==1688== Reading syms from /lib/tls/libm-2.3.5.so (0x48F5E000)
==1688==    object doesn't have any debug info
==1688== Reading syms from /lib/libgcc_s-3.4.3-20050228.so.1
(0x49875000)
==1688==    object doesn't have a symbol table
==1688==    object doesn't have any debug info
==1688== Reading syms from /lib/tls/libc-2.3.5.so (0x48E32000)
==1688==    object doesn't have any debug info
==1688== Reading syms from /lib/libdl-2.3.5.so (0x48F83000)
==1688==    object doesn't have any debug info
==1688== Reading syms from
/custom/usr/local/omniORB-4.0.6/lib/libomniDynamic4.so.0.6 (0x1BB00000)
==1688==    object doesn't have any debug info
==1688== Reading syms from
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6 (0x1BD1C000)
==1688==    object doesn't have any debug info
==1688== Reading syms from
/custom/usr/local/omniORB-4.0.6/lib/libomnithread.so.3.1 (0x1BE83000)
==1688==    object doesn't have any debug info
==1688== Reading syms from /lib/tls/librt-2.3.5.so (0x49A69000)
==1688==    object doesn't have any debug info
==1688== TRANSLATE: 0x1B8E47A0 redirected to 0x52BFF020
==1688== TRANSLATE: 0x4991F330 redirected to 0x1B90537F
==1688== TRANSLATE: 0x4991F44C redirected to 0x1B9055B1
==1688== TRANSLATE: 0x48E95E80 redirected to 0x1B905210
==1688== TRANSLATE: 0x4991DE60 redirected to 0x1B905A38
==1688== TRANSLATE: 0x4991DE10 redirected to 0x1B9058AC
==1688== TRANSLATE: 0x48E95BA0 redirected to 0x1B905B40
==1688== TRANSLATE: 0x48E93DB0 redirected to 0x1B905720
==1688== Syscall param socketcall.sendto(msg) points to uninitialised
byte(s)
==1688==    at 0x48EF9F28: sendto (in /lib/tls/libc-2.3.5.so)
==1688==    by 0x48F1678F: getifaddrs (in /lib/tls/libc-2.3.5.so)
==1688==    by 0x1BE37E23: omni::ifaddrs_get_ifinfo(omnivector<char
const*>&) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDEC6D8: omni::omni_giopEndpoint_initialiser::attach()
(in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BD8EA5E: CORBA::ORB_init(int&, char**, char const*,
char const* (*) [2]) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
...
==1688==  Address 0x52BFE135 is on thread 1's stack
==1688==
==1688== Syscall param socketcall.sendto(msg) points to uninitialised
byte(s)
==1688==    at 0x48EF9F28: sendto (in /lib/tls/libc-2.3.5.so)
==1688==    by 0x48F167C7: getifaddrs (in /lib/tls/libc-2.3.5.so)
==1688==    by 0x1BE37E23: omni::ifaddrs_get_ifinfo(omnivector<char
const*>&) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDEC6D8: omni::omni_giopEndpoint_initialiser::attach()
(in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BD8EA5E: CORBA::ORB_init(int&, char**, char const*,
char const* (*) [2]) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
...
==1688==  Address 0x52BFE135 is on thread 1's stack
==1688== TRANSLATE: 0x48E9C090 redirected to 0x1B9066F4
==1688== Reading syms from /lib/libnss_files-2.3.5.so (0x1BAF0000)
==1688==    object doesn't have any debug info
==1688==
==1688== Thread 3:
==1688== Syscall param socketcall.send(msg) points to uninitialised
byte(s)
==1688==    at 0x49162888: send (in /lib/tls/libpthread-2.3.5.so)
==1688==    by 0x1BDF3C6F:
omni::giopStream::sendChunk(omni::giopStream_Buffer*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BE00FD9:
omni::giopImpl10::outputMessageEnd(omni::giopStream*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDF9642: omni::GIOP_C::InitialiseRequest() (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDDC1E7:
omniRemoteIdentity::dispatch(omniCallDescriptor&) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDC04B8: omniObjRef::_invoke(omniCallDescriptor&,
bool) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBF41A: omniObjRef::_remote_is_a(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBECB8: omniObjRef::_real_is_a(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBEE58: omniObjRef::_realNarrow(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
...
==1688==  Address 0x1BEC449D is 45 bytes inside a block of size 8220
alloc'd
==1688==    at 0x1B905639: operator new[](unsigned)
(vg_replace_malloc.c:138)
==1688==    by 0x1BDF2EB7: omni::giopStream_Buffer::newBuffer(unsigned
long) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BE00F49:
omni::giopImpl10::outputNewMessage(omni::giopStream*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BE00F8C:
omni::giopImpl10::outputMessageBegin(omni::giopStream*, void
(*)(omni::giopStream*)) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDF962D: omni::GIOP_C::InitialiseRequest() (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDDC1E7:
omniRemoteIdentity::dispatch(omniCallDescriptor&) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDC04B8: omniObjRef::_invoke(omniCallDescriptor&,
bool) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBF41A: omniObjRef::_remote_is_a(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBECB8: omniObjRef::_real_is_a(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBEE58: omniObjRef::_realNarrow(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
...
[2005-05-16T09:20:21.070902][NOTICE] Initiating consumer shutdown...
[2005-05-16T09:20:21.322406][NOTICE] Consumer shutdown completed
successfully. Bye!
==1688== discard syms at 0x1BAF0000-0x1BAFB000 in
/lib/libnss_files-2.3.5.so due to munmap()
==1688==
==1688== ERROR SUMMARY: 6 errors from 3 contexts (suppressed: 40 from 2)
==1688==
==1688== 1 errors in context 1 of 3:
==1688== Thread 1:
==1688== Syscall param socketcall.sendto(msg) points to uninitialised
byte(s)
==1688==    at 0x48EF9F28: sendto (in /lib/tls/libc-2.3.5.so)
==1688==    by 0x48F167C7: getifaddrs (in /lib/tls/libc-2.3.5.so)
==1688==    by 0x1BE37E23: omni::ifaddrs_get_ifinfo(omnivector<char
const*>&) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDEC6D8: omni::omni_giopEndpoint_initialiser::attach()
(in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BD8EA5E: CORBA::ORB_init(int&, char**, char const*,
char const* (*) [2]) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
...
==1688==  Address 0x52BFE135 is on thread 1's stack
==1688==
==1688== 1 errors in context 2 of 3:
==1688== Syscall param socketcall.sendto(msg) points to uninitialised
byte(s)
==1688==    at 0x48EF9F28: sendto (in /lib/tls/libc-2.3.5.so)
==1688==    by 0x48F1678F: getifaddrs (in /lib/tls/libc-2.3.5.so)
==1688==    by 0x1BE37E23: omni::ifaddrs_get_ifinfo(omnivector<char
const*>&) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDEC6D8: omni::omni_giopEndpoint_initialiser::attach()
(in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BD8EA5E: CORBA::ORB_init(int&, char**, char const*,
char const* (*) [2]) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
...
==1688==  Address 0x52BFE135 is on thread 1's stack
==1688==
==1688== 4 errors in context 3 of 3:
==1688== Thread 3:
==1688== Syscall param socketcall.send(msg) points to uninitialised
byte(s)
==1688==    at 0x49162888: send (in /lib/tls/libpthread-2.3.5.so)
==1688==    by 0x1BDF3C6F:
omni::giopStream::sendChunk(omni::giopStream_Buffer*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BE00FD9:
omni::giopImpl10::outputMessageEnd(omni::giopStream*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDF9642: omni::GIOP_C::InitialiseRequest() (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDDC1E7:
omniRemoteIdentity::dispatch(omniCallDescriptor&) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDC04B8: omniObjRef::_invoke(omniCallDescriptor&,
bool) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBF41A: omniObjRef::_remote_is_a(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBECB8: omniObjRef::_real_is_a(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBEE58: omniObjRef::_realNarrow(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
...
==1688==  Address 0x1BEC449D is 45 bytes inside a block of size 8220
alloc'd
==1688==    at 0x1B905639: operator new[](unsigned)
(vg_replace_malloc.c:138)
==1688==    by 0x1BDF2EB7: omni::giopStream_Buffer::newBuffer(unsigned
long) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BE00F49:
omni::giopImpl10::outputNewMessage(omni::giopStream*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BE00F8C:
omni::giopImpl10::outputMessageBegin(omni::giopStream*, void
(*)(omni::giopStream*)) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDF962D: omni::GIOP_C::InitialiseRequest() (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDDC1E7:
omniRemoteIdentity::dispatch(omniCallDescriptor&) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDC04B8: omniObjRef::_invoke(omniCallDescriptor&,
bool) (in /custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBF41A: omniObjRef::_remote_is_a(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBECB8: omniObjRef::_real_is_a(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
==1688==    by 0x1BDBEE58: omniObjRef::_realNarrow(char const*) (in
/custom/usr/local/omniORB-4.0.6/lib/libomniORB4.so.0.6)
...
--1688--
--1688-- supp:    2 Unterminated strstr string in is_smp_system() (NPTL)
--1688-- supp:   38 dl_relocate_object
==1688==
==1688== IN SUMMARY: 6 errors from 3 contexts (suppressed: 40 from 2)
==1688==
==1688== malloc/free: in use at exit: 1393 bytes in 37 blocks.
==1688== malloc/free: 2940 allocs, 2903 frees, 134516 bytes allocated.
==1688==
==1688== searching for pointers to 37 not-freed blocks.
==1688== checked 34087812 bytes.
==1688==
==1688== LEAK SUMMARY:
==1688==    definitely lost: 485 bytes in 13 blocks.
==1688==      possibly lost: 440 bytes in 8 blocks.
==1688==    still reachable: 468 bytes in 16 blocks.
==1688==         suppressed: 0 bytes in 0 blocks.
==1688== Use --leak-check=full to see details of leaked memory.
--1688--     TT/TC: 0 tc sectors discarded.
--1688--            36147 tt_fast misses.
--1688-- translate: new     32829 (525226 -> 7547242; ratio 143:10)
--1688--            discard 136 (1746 -> 24764; ratio 141:10).
--1688-- chainings: 16910 chainings, 0 unchainings.
--1688--  dispatch: 6635482 jumps (bb entries); of them 495697 (7%)
unchained.
--1688--            145/43044 major/minor sched events.
--1688-- reg-alloc: 4428 t-req-spill, 1338493+25369 orig+spill uis,
--1688--            164697 total-reg-rank
--1688--    sanity: 146 cheap, 6 expensive checks.
--1688--    ccalls: 179441 C calls, 57% saves+restores avoided (606476
bytes)
--1688--            233211 args, avg 0.89 setup instrs each (47476
bytes)
--1688--            0% clear the stack (537612 bytes)
--1688--            49882 retvals, 34% of reg-reg movs avoided (33080
bytes)


Thanks,
Slawomir



More information about the omniORB-list mailing list